aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/mxgpu_ai.h
diff options
context:
space:
mode:
authorEllen Pan <[email protected]>2025-04-29 20:48:09 +0000
committerAlex Deucher <[email protected]>2025-05-07 21:41:49 +0000
commit5da3d8820dd3202d5ae871050e45facb2787235d (patch)
treeb91db527c27e25145926c35e725c9ea76b6ec0dd /drivers/gpu/drm/amd/amdgpu/mxgpu_ai.h
parentdrm/amdgpu: Add Runtime Bad Page message definitions for VFs (diff)
downloadkernel-5da3d8820dd3202d5ae871050e45facb2787235d.tar.gz
kernel-5da3d8820dd3202d5ae871050e45facb2787235d.zip
drm/amdgpu: Implement Runtime Bad Page query for VFs
Host will send a notification when new bad pages are available. Uopn guest request, the first 256 bad page addresses will be placed into the PF2VF region. Guest should pause the PF2VF worker thread while the copy is in progress. Reviewed-by: Shravan Kumar Gande <[email protected]> Signed-off-by: Victor Skvortsov <[email protected]> Signed-off-by: Ellen Pan <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/mxgpu_ai.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/mxgpu_ai.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/mxgpu_ai.h b/drivers/gpu/drm/amd/amdgpu/mxgpu_ai.h
index ed57cbc150af..efb452ad1700 100644
--- a/drivers/gpu/drm/amd/amdgpu/mxgpu_ai.h
+++ b/drivers/gpu/drm/amd/amdgpu/mxgpu_ai.h
@@ -40,6 +40,7 @@ enum idh_request {
IDH_LOG_VF_ERROR = 200,
IDH_READY_TO_RESET = 201,
IDH_RAS_POISON = 202,
+ IDH_REQ_RAS_BAD_PAGES = 205,
};
enum idh_event {
@@ -54,6 +55,8 @@ enum idh_event {
IDH_RAS_POISON_READY,
IDH_PF_SOFT_FLR_NOTIFICATION,
IDH_RAS_ERROR_DETECTED,
+ IDH_RAS_BAD_PAGES_READY = 15,
+ IDH_RAS_BAD_PAGES_NOTIFICATION = 16,
IDH_TEXT_MESSAGE = 255,
};