]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Fix GPU reset error.
authorAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Wed, 4 Mar 2020 21:36:42 +0000 (16:36 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 6 Mar 2020 19:32:24 +0000 (14:32 -0500)
commit87e247f928f5b415e543232eaa11b16e746054f8
tree901c12d9e8065a884f8030f38d1419933071b9e7
parentdf2e3390fa0e89264d2182c9a08f90f4c3157900
drm/amdgpu: Fix GPU reset error.

Problem:
During GU reset PSP's sysfs was being wrongly reinitilized
during call to amdgpu_device_ip_late_init which was failing
with duplicate error.
Fix:
Move psp_sysfs_init to psp_sw_init to avoid this. Add guards
in sysfs file's read and write hook agains premature call
if PSP is not finished initialization.

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/amdgpu_psp.c