Skip to contentSkip to conversation

drm/amdgpu: fix mca ipid socketid decode issue

PATCH In review Yang Wang 2 participants 2 messages Nov 14, 2023 – Nov 15, 2023

Subsystems (3)
lore
Share & tools
lore

Yang Wang

author
#0 lore raw

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")
---
 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
index 6daa8ee49035..d4e312003181 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw

[AMD Official Use Only - General]

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")
---
 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
index 6daa8ee49035..d4e312003181 100644
@@ -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