drm/amdgpu/psp: Update waiting in psp mode1 reset.
authorAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Fri, 30 Nov 2018 17:24:33 +0000 (12:24 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 3 Dec 2018 16:15:00 +0000 (11:15 -0500)
commit38cd8a280d725cd4e0be14b0fbc2797c26cd9de5
tree56ef46698200c770b3b3454c469bd9fe3f2f62ae
parent30da7bb18471327fbeddb976de2b21fd9e34c36a
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>
drivers/gpu/drm/amd/amdgpu/psp_v11_0.c
drivers/gpu/drm/amd/amdgpu/psp_v3_1.c