mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
drm/amdgpu: fix init save/restore list in gfx_v8.0
set valid data to mmRLC_SRM_INDEX_CNTL_ADDRx/DATAx. Signed-off-by: Rex Zhu <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Cc: [email protected]
This commit is contained in:
parent
eb58424122
commit
202e0b227b
1 changed files with 6 additions and 2 deletions
|
|
@ -3949,8 +3949,12 @@ static int gfx_v8_0_init_save_restore_list(struct amdgpu_device *adev)
|
|||
temp = mmRLC_SRM_INDEX_CNTL_ADDR_0;
|
||||
data = mmRLC_SRM_INDEX_CNTL_DATA_0;
|
||||
for (i = 0; i < sizeof(unique_indices) / sizeof(int); i++) {
|
||||
amdgpu_mm_wreg(adev, temp + i, unique_indices[i] & 0x3FFFF, false);
|
||||
amdgpu_mm_wreg(adev, data + i, unique_indices[i] >> 20, false);
|
||||
if (unique_indices[i] != 0) {
|
||||
amdgpu_mm_wreg(adev, temp + i,
|
||||
unique_indices[i] & 0x3FFFF, false);
|
||||
amdgpu_mm_wreg(adev, data + i,
|
||||
unique_indices[i] >> 20, false);
|
||||
}
|
||||
}
|
||||
kfree(register_list_format);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue