]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amdgpu/mes12_1: set multi-xcc mes log address
authorMichael Chen <michael.chen@amd.com>
Fri, 21 Mar 2025 18:39:03 +0000 (14:39 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 8 Dec 2025 19:13:20 +0000 (14:13 -0500)
Set mes event log address based on xcc id and pipe.

Signed-off-by: Michael Chen <michael.chen@amd.com>
Reviewed-by: Jack Xiao <Jack.Xiao@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/mes_v12_1.c

index ecaf07380d480c183674bcac3fa8fae501a5b130..06c5b923957bf10ffbb497d779d34aba0046d779 100644 (file)
@@ -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)