File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
drivers/gpu/drm/amd/pm/swsmu/smu13 Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -121,6 +121,7 @@ struct mca_ras_info {
121
121
122
122
#define P2S_TABLE_ID_A 0x50325341
123
123
#define P2S_TABLE_ID_X 0x50325358
124
+ #define P2S_TABLE_ID_3 0x50325303
124
125
125
126
// clang-format off
126
127
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)
271
272
struct amdgpu_device * adev = smu -> adev ;
272
273
uint32_t p2s_table_id = P2S_TABLE_ID_A ;
273
274
int ret = 0 , i , p2stable_count ;
275
+ int var = (adev -> pdev -> device & 0xF );
274
276
char ucode_prefix [15 ];
275
277
276
278
/* No need to load P2S tables in IOV mode */
277
279
if (amdgpu_sriov_vf (adev ))
278
280
return 0 ;
279
281
280
- if (!(adev -> flags & AMD_IS_APU ))
282
+ if (!(adev -> flags & AMD_IS_APU )) {
281
283
p2s_table_id = P2S_TABLE_ID_X ;
284
+ if (var == 0x5 )
285
+ p2s_table_id = P2S_TABLE_ID_3 ;
286
+ }
282
287
283
288
amdgpu_ucode_ip_version_decode (adev , MP1_HWIP , ucode_prefix ,
284
289
sizeof (ucode_prefix ));
You can’t perform that action at this time.
0 commit comments