File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed
drivers/gpu/drm/amd/pm/swsmu/smu13 Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -335,12 +335,12 @@ static int smu_v13_0_0_check_powerplay_table(struct smu_context *smu)
335335 if (powerplay_table -> platform_caps & SMU_13_0_0_PP_PLATFORM_CAP_HARDWAREDC )
336336 smu -> dc_controlled_by_gpio = true;
337337
338- if (powerplay_table -> platform_caps & SMU_13_0_0_PP_PLATFORM_CAP_BACO ||
339- powerplay_table -> platform_caps & SMU_13_0_0_PP_PLATFORM_CAP_MACO )
338+ if (powerplay_table -> platform_caps & SMU_13_0_0_PP_PLATFORM_CAP_BACO ) {
340339 smu_baco -> platform_support = true;
341340
342- if (powerplay_table -> platform_caps & SMU_13_0_0_PP_PLATFORM_CAP_MACO )
343- smu_baco -> maco_support = true;
341+ if (powerplay_table -> platform_caps & SMU_13_0_0_PP_PLATFORM_CAP_MACO )
342+ smu_baco -> maco_support = true;
343+ }
344344
345345 table_context -> thermal_controller_type =
346346 powerplay_table -> thermal_controller_type ;
Original file line number Diff line number Diff line change @@ -326,12 +326,13 @@ static int smu_v13_0_7_check_powerplay_table(struct smu_context *smu)
326326 if (powerplay_table -> platform_caps & SMU_13_0_7_PP_PLATFORM_CAP_HARDWAREDC )
327327 smu -> dc_controlled_by_gpio = true;
328328
329- if (powerplay_table -> platform_caps & SMU_13_0_7_PP_PLATFORM_CAP_BACO ||
330- powerplay_table -> platform_caps & SMU_13_0_7_PP_PLATFORM_CAP_MACO )
329+ if (powerplay_table -> platform_caps & SMU_13_0_7_PP_PLATFORM_CAP_BACO ) {
331330 smu_baco -> platform_support = true;
332331
333- if (smu_baco -> platform_support && (BoardTable -> HsrEnabled || BoardTable -> VddqOffEnabled ))
334- smu_baco -> maco_support = true;
332+ if ((powerplay_table -> platform_caps & SMU_13_0_7_PP_PLATFORM_CAP_MACO )
333+ && (BoardTable -> HsrEnabled || BoardTable -> VddqOffEnabled ))
334+ smu_baco -> maco_support = true;
335+ }
335336
336337 table_context -> thermal_controller_type =
337338 powerplay_table -> thermal_controller_type ;
You can’t perform that action at this time.
0 commit comments