drm/amdgpu: fix mca ipid socketid decode issue
Subsystems (3)
PATCH 1/1 drm/amdgpu: fix mca ipid socketid decode issue
Fix mca ipid socket id decode issue
Fixes 610259215805 ("drm/amdgpu: correct mca ipid die/socket/addr decode")
Signed-off-by Yang Wang <[email protected]>
--- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c +1 -1
@@ -2410,7 +2410,7 @@ static void mca_bank_entry_info_decode(struct mca_bank_entry *entry, struct mca_ instidhi =REG_GET_FIELD (ipid,MCMP1_IPIDT0 , InstanceIdHi); instid =REG_GET_FIELD (ipid,MCMP1_IPIDT0 , InstanceIdLo); info->aid = ((instidhi >>2 ) &0x03 ); - info->socket_id = ((instid &0x1 ) <<4 ) | (instidhi &0x03 ); + info->socket_id = ((instid &0x1 ) <<2 ) | (instidhi &0x03 ); } static int mca_bank_read_reg(struct amdgpu_device *adev, enum amdgpu_mca_error_type type,
Signature · 1 line
2.34.1
[AMD Official Use Only - General]
Reviewed-by Hawking Zhang <[email protected]>
Regards,
Hawking
-----Original Message-----
From: Wang, Yang(Kevin) <[email protected]>
Sent: Wednesday, November 15, 2023 07:59
To: [email protected]
Cc: Zhang, Hawking <[email protected]>; Wang, Yang(Kevin) <[email protected]>
Subject: [PATCH] drm/amdgpu: fix mca ipid socketid decode issue
Fix mca ipid socket id decode issue
Fixes 610259215805 ("drm/amdgpu: correct mca ipid die/socket/addr decode")
Signed-off-by Yang Wang <[email protected]>
--- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c +1 -1
@@ -2410,7 +2410,7 @@ static void mca_bank_entry_info_decode(struct mca_bank_entry *entry, struct mca_ instidhi =REG_GET_FIELD (ipid,MCMP1_IPIDT0 , InstanceIdHi); instid =REG_GET_FIELD (ipid,MCMP1_IPIDT0 , InstanceIdLo); info->aid = ((instidhi >>2 ) &0x03 ); - info->socket_id = ((instid &0x1 ) <<4 ) | (instidhi &0x03 ); + info->socket_id = ((instid &0x1 ) <<2 ) | (instidhi &0x03 ); } static int mca_bank_read_reg(struct amdgpu_device *adev, enum amdgpu_mca_error_type type,
--
2.34.1