diff options
author | Andrey Grodzovsky <andrey.grodzovsky@amd.com> | 2018-11-30 18:24:33 +0100 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-12-03 17:15:00 +0100 |
commit | 38cd8a280d725cd4e0be14b0fbc2797c26cd9de5 (patch) | |
tree | 56ef46698200c770b3b3454c469bd9fe3f2f62ae /drivers/gpu/drm/amd/amdgpu/psp_v11_0.c | |
parent | drm/amdgpu: add missing error handling (diff) | |
download | linux-38cd8a280d725cd4e0be14b0fbc2797c26cd9de5.tar.xz linux-38cd8a280d725cd4e0be14b0fbc2797c26cd9de5.zip |
drm/amdgpu/psp: Update waiting in psp mode1 reset.
No point in use mdelay unless running from interrupt context (which we are not)
This is busy wait which will block the CPU for the entirety of the wait time.
Also, reduce wait time to 500ms as it is done in refernce code because
1s might cause PSP FW TO issues during XGMI hive reset.
Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/psp_v11_0.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/psp_v11_0.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/psp_v11_0.c b/drivers/gpu/drm/amd/amdgpu/psp_v11_0.c index e5dd052d9e06..2b19616cb402 100644 --- a/drivers/gpu/drm/amd/amdgpu/psp_v11_0.c +++ b/drivers/gpu/drm/amd/amdgpu/psp_v11_0.c @@ -547,7 +547,7 @@ static int psp_v11_0_mode1_reset(struct psp_context *psp) /*send the mode 1 reset command*/ WREG32(offset, GFX_CTRL_CMD_ID_MODE1_RST); - mdelay(1000); + msleep(500); offset = SOC15_REG_OFFSET(MP0, 0, mmMP0_SMN_C2PMSG_33); |