aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h
diff options
context:
space:
mode:
authorMonk Liu <[email protected]>2017-01-23 06:22:08 +0000
committerAlex Deucher <[email protected]>2017-03-30 03:52:45 +0000
commita90ad3c2afe5bebdd5d00aaec87fec6823545c59 (patch)
tree65b7bfb4bc1152ba0aacdf0e7971cde1cea2e138 /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h
parentdrm/amdgpu:divide KCQ mqd init to sw and hw (diff)
downloadkernel-a90ad3c2afe5bebdd5d00aaec87fec6823545c59.tar.gz
kernel-a90ad3c2afe5bebdd5d00aaec87fec6823545c59.zip
drm/amdgpu:implement SRIOV gpu_reset (v2)
implement SRIOV gpu_reset for future use. it wil be called from: 1) job timeout 2) privl access or instruction error interrupt 3) hypervisor detect VF hang v2: agd: rebase on upstream Signed-off-by: Monk Liu <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h
index 675e12c42532..73d24df2efa1 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h
@@ -89,5 +89,6 @@ void amdgpu_virt_kiq_wreg(struct amdgpu_device *adev, uint32_t reg, uint32_t v);
int amdgpu_virt_request_full_gpu(struct amdgpu_device *adev, bool init);
int amdgpu_virt_release_full_gpu(struct amdgpu_device *adev, bool init);
int amdgpu_virt_reset_gpu(struct amdgpu_device *adev);
+int amdgpu_sriov_gpu_reset(struct amdgpu_device *adev, bool voluntary);
#endif