drm/amdgpu: avoid soft lockup when waiting for RLC serdes (v2)
authorpding <Pixel.Ding@amd.com>
Mon, 23 Oct 2017 08:31:04 +0000 (16:31 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 4 Dec 2017 21:33:13 +0000 (16:33 -0500)
commit1366b2d01654d2028cba64109ad1bffb8afbef73
tree1142b57bec657142999003dc2f4fc40df7359bb5
parent9953b72f9c9cb7733334753788faab33ccc4dc0a
drm/amdgpu: avoid soft lockup when waiting for RLC serdes (v2)

Normally all waiting get timeout if there's one.
Release the lock and return immediately when timeout happens.

v2:
 - set the se_sh to broadcase before return

Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: pding <Pixel.Ding@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c