drm/amdgpu/virt: add wait_reset virt ops
authorpding <Pixel.Ding@amd.com>
Tue, 24 Oct 2017 01:51:04 +0000 (09:51 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 4 Dec 2017 21:33:13 +0000 (16:33 -0500)
commitb636176efdf0e365a69613f03f6ecbf6fd0408cb
treec8aa6361e2719540a7b2c3d060388c084334266f
parenta16f8f11c599cdec16e77020d56d230fedabe922
drm/amdgpu/virt: add wait_reset virt ops

Driver can use this interface to check if there's a function level
reset done in hypervisor. It's helpful when IRQ handler for reset
is not ready, or special handling is required.

Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Monk Liu <monk.liu@amd.com>
Signed-off-by: pding <Pixel.Ding@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h