]> Git Repo - linux.git/commitdiff
drm/amdgpu: Fix hbm stack id in boot error report
authorHawking Zhang <[email protected]>
Fri, 28 Jun 2024 08:50:56 +0000 (16:50 +0800)
committerAlex Deucher <[email protected]>
Mon, 1 Jul 2024 20:10:47 +0000 (16:10 -0400)
To align with firmware, hbm id field 0x1 refers to
hbm stack 0, 0x2 refers to hbm statck 1.

Signed-off-by: Hawking Zhang <[email protected]>
Reviewed-by: Tao Zhou <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c

index 4edd8e333d367964e9adad53d47474cb20868b8a..6d1f974e2987a1494d8313d65e09ce0b23475c0b 100644 (file)
@@ -4565,7 +4565,7 @@ static void amdgpu_ras_boot_time_error_reporting(struct amdgpu_device *adev,
 
        socket_id = AMDGPU_RAS_GPU_ERR_SOCKET_ID(boot_error);
        aid_id = AMDGPU_RAS_GPU_ERR_AID_ID(boot_error);
-       hbm_id = AMDGPU_RAS_GPU_ERR_HBM_ID(boot_error);
+       hbm_id = ((1 == AMDGPU_RAS_GPU_ERR_HBM_ID(boot_error)) ? 0 : 1);
 
        if (AMDGPU_RAS_GPU_ERR_MEM_TRAINING(boot_error))
                dev_info(adev->dev,
This page took 0.080604 seconds and 4 git commands to generate.