projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
629c30d
)
drm/amdgpu: avoid gfx register accessing during gfxoff
author
Evan Quan
<evan.quan@amd.com>
Fri, 26 Aug 2022 11:30:20 +0000
(19:30 +0800)
committer
Alex Deucher
<alexander.deucher@amd.com>
Thu, 29 Sep 2022 13:41:42 +0000
(09:41 -0400)
Make sure gfxoff is disabled before gfx register accessing.
Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
b/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
index 565d7492a43c956b8707c707ff5805ef900a2d4a..b6bb02482907d4ac4cdc5a6cf23d8636970e9a9b 100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
+++ b/
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
@@
-5097,6
+5097,8
@@
static void gfx_v11_0_update_spm_vmid(struct amdgpu_device *adev, unsigned vmid)
{
u32 reg, data;
+ amdgpu_gfx_off_ctrl(adev, false);
+
reg = SOC15_REG_OFFSET(GC, 0, regRLC_SPM_MC_CNTL);
if (amdgpu_sriov_is_pp_one_vf(adev))
data = RREG32_NO_KIQ(reg);
@@
-5110,6
+5112,8
@@
static void gfx_v11_0_update_spm_vmid(struct amdgpu_device *adev, unsigned vmid)
WREG32_SOC15_NO_KIQ(GC, 0, regRLC_SPM_MC_CNTL, data);
else
WREG32_SOC15(GC, 0, regRLC_SPM_MC_CNTL, data);
+
+ amdgpu_gfx_off_ctrl(adev, true);
}
static const struct amdgpu_rlc_funcs gfx_v11_0_rlc_funcs = {