drm/amdgpu/gfx9.4.3: program the RLC SPM in RLC resume
Subsystems (2)
Alex Deucher
maintainerPATCH v2 4/5 drm/amdgpu/gfx9.4.3: program the RLC SPM in RLC resume
The register needs to be reprogrammed after a suspend and resume or a GPU reset so program it in rlc_resume rather than rlc_init.
v2: pass xcc_id when calling
Fixes 7c0f7ee00c7d ("drm/amdgpu: add gc v9_4_3 rlc_funcs implementation")
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c +4 -4
@@ -1395,10 +1395,6 @@ static void gfx_v9_4_3_init_rlcg_reg_access_ctrl(struct amdgpu_device *adev)static int gfx_v9_4_3_rlc_init (struct amdgpu_device *adev) { -/* init spm vmid with 0xf */ -if (adev->gfx.rlc.funcs->update_spm_vmid) - adev->gfx.rlc.funcs->update_spm_vmid (adev,0 , adev->vm_manager.spm_vmid); -return 0 ; }
@@ -1588,6 +1584,10 @@ static int gfx_v9_4_3_xcc_rlc_resume(struct amdgpu_device *adev, int xcc_id)gfx_v9_4_3_xcc_init_pg (adev, xcc_id);amdgpu_gfx_rlc_exit_safe_mode (adev, xcc_id); +/* init spm vmid with 0xf */ +if (adev->gfx.rlc.funcs->update_spm_vmid) + adev->gfx.rlc.funcs->update_spm_vmid (adev, xcc_id, adev->vm_manager.spm_vmid); +return 0 ; }
Signature · 1 line
2.56.1