From: Michael Chen Date: Fri, 21 Mar 2025 18:39:03 +0000 (-0400) Subject: drm/amdgpu/mes12_1: set multi-xcc mes log address X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=61a3ade2f68b73d903428083c42b8a6c11c54161;p=thirdparty%2Fkernel%2Flinux.git drm/amdgpu/mes12_1: set multi-xcc mes log address Set mes event log address based on xcc id and pipe. Signed-off-by: Michael Chen Reviewed-by: Jack Xiao Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/mes_v12_1.c b/drivers/gpu/drm/amd/amdgpu/mes_v12_1.c index ecaf07380d480..06c5b923957bf 100644 --- a/drivers/gpu/drm/amd/amdgpu/mes_v12_1.c +++ b/drivers/gpu/drm/amd/amdgpu/mes_v12_1.c @@ -707,7 +707,7 @@ static int mes_v12_1_set_hw_resources(struct amdgpu_mes *mes, if (amdgpu_mes_log_enable) { mes_set_hw_res_pkt.enable_mes_event_int_logging = 1; mes_set_hw_res_pkt.event_intr_history_gpu_mc_ptr = - mes->event_log_gpu_addr + pipe * AMDGPU_MES_LOG_BUFFER_SIZE; + mes->event_log_gpu_addr + MES_PIPE_INST(xcc_id, pipe) * AMDGPU_MES_LOG_BUFFER_SIZE; } if (adev->enforce_isolation[0] == AMDGPU_ENFORCE_ISOLATION_ENABLE)