Skip to content

Commit 47c4533

Browse files
shaoyunlalexdeucher
authored andcommitted
drm/amdgpu: Enable event log on MES 11
Enable event log through the HW specific FW API Signed-off-by: shaoyunl <shaoyun.liu@amd.com> Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent b2662d4 commit 47c4533

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/gpu/drm/amd/amdgpu/mes_v11_0.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,8 @@ static int mes_v11_0_set_hw_resources(struct amdgpu_mes *mes)
408408
mes_set_hw_res_pkt.enable_reg_active_poll = 1;
409409
mes_set_hw_res_pkt.enable_level_process_quantum_check = 1;
410410
mes_set_hw_res_pkt.oversubscription_timer = 50;
411+
mes_set_hw_res_pkt.enable_mes_event_int_logging = 1;
412+
mes_set_hw_res_pkt.event_intr_history_gpu_mc_ptr = mes->event_log_gpu_addr;
411413

412414
return mes_v11_0_submit_pkt_and_poll_completion(mes,
413415
&mes_set_hw_res_pkt, sizeof(mes_set_hw_res_pkt),

drivers/gpu/drm/amd/include/mes_v11_api_def.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ union MESAPI_SET_HW_RESOURCES {
232232
};
233233
uint32_t oversubscription_timer;
234234
uint64_t doorbell_info;
235+
uint64_t event_intr_history_gpu_mc_ptr;
235236
};
236237

237238
uint32_t max_dwords_in_api[API_FRAME_SIZE_IN_DWORDS];

0 commit comments

Comments
 (0)