]> 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)
commit8b091d367dacec9b58bf1b2c536c9909da6e5761
tree56ef46698200c770b3b3454c469bd9fe3f2f62ae
parent22493c39fef2b6232897a76c8cc9a0cebd884039
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