Skip to content

Commit b64268d

Browse files
Rex Zhualexdeucher
authored andcommitted
drm/amd/powerplay: initialize the soft_regs offset in struct smu7_hwmgr
This could lead to mclk dpm problems on some boards. Signed-off-by: Rex Zhu <Rex.Zhu@amd.com> Ack-by: Tom St Denis <tom.stdenis@amd.com> Reviewed-by: Huang Rui <ray.huang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 9704668 commit b64268d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smc.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2214,6 +2214,7 @@ uint32_t polaris10_get_mac_definition(uint32_t value)
22142214
int polaris10_process_firmware_header(struct pp_hwmgr *hwmgr)
22152215
{
22162216
struct polaris10_smumgr *smu_data = (struct polaris10_smumgr *)(hwmgr->smumgr->backend);
2217+
struct smu7_hwmgr *data = (struct smu7_hwmgr *)(hwmgr->backend);
22172218
uint32_t tmp;
22182219
int result;
22192220
bool error = false;
@@ -2233,8 +2234,10 @@ int polaris10_process_firmware_header(struct pp_hwmgr *hwmgr)
22332234
offsetof(SMU74_Firmware_Header, SoftRegisters),
22342235
&tmp, SMC_RAM_END);
22352236

2236-
if (!result)
2237+
if (!result) {
2238+
data->soft_regs_start = tmp;
22372239
smu_data->smu7_data.soft_regs_start = tmp;
2240+
}
22382241

22392242
error |= (0 != result);
22402243

0 commit comments

Comments
 (0)