]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1da7b5996e406f5dc367ce507770461ebc5f2a0e
tree56ef46698200c770b3b3454c469bd9fe3f2f62ae
parent562274e2a577c3342e0a5f73f31092c4c58d5f70
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