Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 71aec257 authored by Monk Liu's avatar Monk Liu Committed by Alex Deucher
Browse files

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: default avatarMonk Liu <Monk.Liu@amd.com>
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent ed834af2
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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_* */