]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: cleanups for vram lost handling
authorMonk Liu <Monk.Liu@amd.com>
Mon, 25 Dec 2017 03:59:27 +0000 (11:59 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 1 Mar 2018 16:52:41 +0000 (11:52 -0500)
commitf788f12504b9103348bdcb8a91bdcf53af79463b
tree093f0edfda55ac39e070ee685900fc5bd1226eac
parentfd7c6214f123e5b8a7310d4ab6368263a801f9b6
drm/amdgpu: cleanups for vram lost handling

1)create a routine "handle_vram_lost" to do the vram
recovery, and put it into amdgpu_device_reset/reset_sriov,
this way no need of the extra paramter to hold the
VRAM LOST information and the related macros can be removed.

3)show vram_recover failure if time out, and set TMO equal to
lockup_timeout if vram_recover is under SRIOV runtime mode.

4)report error if any ip reset failed for SR-IOV

Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Acked-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c