Skip to content

Commit 010cc73

Browse files
Lijo Lazaralexdeucher
authored andcommitted
drm/amd/pm: Add support for new P2S table revision
Add p2s table support for a new revision of SMUv13.0.6. Signed-off-by: Lijo Lazar <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Reviewed-by: Asad Kamal <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 875ff9a commit 010cc73

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ struct mca_ras_info {
121121

122122
#define P2S_TABLE_ID_A 0x50325341
123123
#define P2S_TABLE_ID_X 0x50325358
124+
#define P2S_TABLE_ID_3 0x50325303
124125

125126
// clang-format off
126127
static const struct cmn2asic_msg_mapping smu_v13_0_6_message_map[SMU_MSG_MAX_COUNT] = {
@@ -271,14 +272,18 @@ static int smu_v13_0_6_init_microcode(struct smu_context *smu)
271272
struct amdgpu_device *adev = smu->adev;
272273
uint32_t p2s_table_id = P2S_TABLE_ID_A;
273274
int ret = 0, i, p2stable_count;
275+
int var = (adev->pdev->device & 0xF);
274276
char ucode_prefix[15];
275277

276278
/* No need to load P2S tables in IOV mode */
277279
if (amdgpu_sriov_vf(adev))
278280
return 0;
279281

280-
if (!(adev->flags & AMD_IS_APU))
282+
if (!(adev->flags & AMD_IS_APU)) {
281283
p2s_table_id = P2S_TABLE_ID_X;
284+
if (var == 0x5)
285+
p2s_table_id = P2S_TABLE_ID_3;
286+
}
282287

283288
amdgpu_ucode_ip_version_decode(adev, MP1_HWIP, ucode_prefix,
284289
sizeof(ucode_prefix));

0 commit comments

Comments
 (0)