]> 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)
commit87ed95cdc10a6b8c4bd89e9c0700bd0ec21a83d9
tree901c12d9e8065a884f8030f38d1419933071b9e7
parentc82d0f249837147a602676475c22aac43c2b7ff7
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