[PATCH v7 05/14] drm/amdgpu/: extend queue flags for user queue query status
Prike Liang
Prike.Liang at amd.com
Tue Jul 22 07:46:14 UTC 2025
Add the userq flag to identify the invalid userq cases.
Signed-off-by: Prike Liang <Prike.Liang at amd.com>
---
include/uapi/drm/amdgpu_drm.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/uapi/drm/amdgpu_drm.h b/include/uapi/drm/amdgpu_drm.h
index efd0d2356077..3c536c8517cd 100644
--- a/include/uapi/drm/amdgpu_drm.h
+++ b/include/uapi/drm/amdgpu_drm.h
@@ -346,6 +346,10 @@ union drm_amdgpu_ctx {
#define AMDGPU_USERQ_QUERY_STATUS_FLAGS_HUNG (1 << 0)
/* indicate vram lost since queue was created */
#define AMDGPU_USERQ_QUERY_STATUS_FLAGS_VRAMLOST (1 << 1)
+/* the invalid userq input argument */
+#define AMDGPU_USERQ_QUERY_STATUS_FLAGS_INVALID_ARG (1 << 2)
+/* the invalid userq VA unmapped */
+#define AMDGPU_USERQ_QUERY_STATUS_FLAGS_INVALID_VA (1 << 3)
/*
* This structure is a container to pass input configuration
--
2.34.1
More information about the amd-gfx
mailing list