File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
drivers/gpu/drm/amd/powerplay/smumgr Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -644,18 +644,20 @@ static int vegam_get_dependency_volt_by_clk(struct pp_hwmgr *hwmgr,
644
644
645
645
/* sclk is bigger than max sclk in the dependence table */
646
646
* voltage |= (dep_table -> entries [i - 1 ].vddc * VOLTAGE_SCALE ) << VDDC_SHIFT ;
647
- vddci = phm_find_closest_vddci (& (data -> vddci_voltage_table ),
648
- (dep_table -> entries [i - 1 ].vddc -
649
- (uint16_t )VDDC_VDDCI_DELTA ));
650
647
651
648
if (SMU7_VOLTAGE_CONTROL_NONE == data -> vddci_control )
652
649
* voltage |= (data -> vbios_boot_state .vddci_bootup_value *
653
650
VOLTAGE_SCALE ) << VDDCI_SHIFT ;
654
651
else if (dep_table -> entries [i - 1 ].vddci )
655
652
* voltage |= (dep_table -> entries [i - 1 ].vddci *
656
653
VOLTAGE_SCALE ) << VDDC_SHIFT ;
657
- else
654
+ else {
655
+ vddci = phm_find_closest_vddci (& (data -> vddci_voltage_table ),
656
+ (dep_table -> entries [i - 1 ].vddc -
657
+ (uint16_t )VDDC_VDDCI_DELTA ));
658
+
658
659
* voltage |= (vddci * VOLTAGE_SCALE ) << VDDCI_SHIFT ;
660
+ }
659
661
660
662
if (SMU7_VOLTAGE_CONTROL_NONE == data -> mvdd_control )
661
663
* mvdd = data -> vbios_boot_state .mvdd_bootup_value * VOLTAGE_SCALE ;
You can’t perform that action at this time.
0 commit comments