aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/psp_v3_1.c
diff options
context:
space:
mode:
authorAlex Deucher <[email protected]>2018-11-16 18:22:38 +0000
committerAlex Deucher <[email protected]>2018-11-19 21:38:15 +0000
commitccce29abfe036967a0fa0f291acb9ea4f5595486 (patch)
tree69cb1d41f2c3ecb3942a060c1fb99a77512b815b /drivers/gpu/drm/amd/amdgpu/psp_v3_1.c
parentdrm/scheduler: Fix bad job be re-processed in TDR (diff)
downloadkernel-ccce29abfe036967a0fa0f291acb9ea4f5595486.tar.gz
kernel-ccce29abfe036967a0fa0f291acb9ea4f5595486.zip
drm/amdgpu/psp: use define rather than magic number for mode1 reset
Use the define rather than hardcoded value. Acked-by: Christian König <[email protected]> Reviewed-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/psp_v3_1.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/psp_v3_1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/psp_v3_1.c b/drivers/gpu/drm/amd/amdgpu/psp_v3_1.c
index 64c267f37d4b..7efb823dd3b1 100644
--- a/drivers/gpu/drm/amd/amdgpu/psp_v3_1.c
+++ b/drivers/gpu/drm/amd/amdgpu/psp_v3_1.c
@@ -590,7 +590,7 @@ static int psp_v3_1_mode1_reset(struct psp_context *psp)
}
/*send the mode 1 reset command*/
- WREG32(offset, 0x70000);
+ WREG32(offset, GFX_CTRL_CMD_ID_MODE1_RST);
mdelay(1000);