summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/mxgpu_nv.h
diff options
context:
space:
mode:
authorJiange Zhao <Jiange.Zhao@amd.com>2021-03-19 05:32:04 +0300
committerAlex Deucher <alexander.deucher@amd.com>2021-08-16 22:17:57 +0300
commit3e183e2faea97fb284f82861286de09aa16e3630 (patch)
tree0f3bc514e363562382e370590d6faecbed4d1483 /drivers/gpu/drm/amd/amdgpu/mxgpu_nv.h
parent1d0e622f8db264240086dc13e3018b5802e8df18 (diff)
downloadlinux-3e183e2faea97fb284f82861286de09aa16e3630.tar.xz
drm/amdgpu: Add MB_REQ_MSG_READY_TO_RESET response when VF get FLR notification.
When guest received FLR notification from host, it would lock adapter into reset state. There will be no more job submission and hardware access after that. Then it should send a response to host that it has prepared for host reset. Signed-off-by: Jiange Zhao <Jiange.Zhao@amd.com> Signed-off-by: Peng Ju Zhou <PengJu.Zhou@amd.com> Reviewed-by: Emily.Deng <Emily.Deng@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/mxgpu_nv.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/mxgpu_nv.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/mxgpu_nv.h b/drivers/gpu/drm/amd/amdgpu/mxgpu_nv.h
index 9f5808616174..73887b0aa1d6 100644
--- a/drivers/gpu/drm/amd/amdgpu/mxgpu_nv.h
+++ b/drivers/gpu/drm/amd/amdgpu/mxgpu_nv.h
@@ -37,7 +37,8 @@ enum idh_request {
IDH_REQ_GPU_RESET_ACCESS,
IDH_REQ_GPU_INIT_DATA,
- IDH_LOG_VF_ERROR = 200,
+ IDH_LOG_VF_ERROR = 200,
+ IDH_READY_TO_RESET = 201,
};
enum idh_event {