summaryrefslogtreecommitdiff
path: root/include/uapi/drm
diff options
context:
space:
mode:
authorMonk Liu <Monk.Liu@amd.com>2017-03-08 10:38:54 +0300
committerAlex Deucher <alexander.deucher@amd.com>2017-03-30 06:55:37 +0300
commit71aec257ec52caadf8ea3c297e6cff39fec49a2d (patch)
treedafa153f610ba0d9febdf5fe0d18a8059ba3639f /include/uapi/drm
parented834af243d04637fbb9ca63c8e58677edf266bc (diff)
downloadlinux-71aec257ec52caadf8ea3c297e6cff39fec49a2d.tar.xz
uapi/drm:add new flag for Preemption
when MCBP supported, we will set pre_enb bit for those IBs with PREEMPT flag tagged Signed-off-by: Monk Liu <Monk.Liu@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'include/uapi/drm')
-rw-r--r--include/uapi/drm/amdgpu_drm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/uapi/drm/amdgpu_drm.h b/include/uapi/drm/amdgpu_drm.h
index 4179241e5e7c..516a9f285730 100644
--- a/include/uapi/drm/amdgpu_drm.h
+++ b/include/uapi/drm/amdgpu_drm.h
@@ -448,6 +448,9 @@ union drm_amdgpu_cs {
/* Preamble flag, which means the IB could be dropped if no context switch */
#define AMDGPU_IB_FLAG_PREAMBLE (1<<1)
+/* Preempt flag, IB should set Pre_enb bit if PREEMPT flag detected */
+#define AMDGPU_IB_FLAG_PREEMPT (1<<2)
+
struct drm_amdgpu_cs_chunk_ib {
__u32 _pad;
/** AMDGPU_IB_FLAG_* */