OSDN Git Service

drm/amdgpu: Fix KIQ hang on bare metal for device unbind/bind back v2.
authorAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Wed, 28 Mar 2018 12:01:53 +0000 (08:01 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 3 Apr 2018 17:52:58 +0000 (12:52 -0500)
commit326aa996a6681dca76477337b66f5e303aa8953e
treef1b3782e0b0ef95e565a245e6724427d75e12d77
parentfd8d415148ccf5af1ca87d7e38fd2902cc7d8904
drm/amdgpu: Fix KIQ hang on bare metal for device unbind/bind back v2.

Problem: When unbind and then bind back the device KIQ hangs on Vega
after mapping KCQs request.

Fix: Adding deinitialzie code from CAIL  during HW fini solves the
hang.

v2: use srbm_mutex around soc15_grbm_select()

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