mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 23:53:32 +00:00
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>
This commit is contained in:
parent
ed834af243
commit
71aec257ec
1 changed files with 3 additions and 0 deletions
|
@ -448,6 +448,9 @@ union drm_amdgpu_cs {
|
||||||
/* Preamble flag, which means the IB could be dropped if no context switch */
|
/* Preamble flag, which means the IB could be dropped if no context switch */
|
||||||
#define AMDGPU_IB_FLAG_PREAMBLE (1<<1)
|
#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 {
|
struct drm_amdgpu_cs_chunk_ib {
|
||||||
__u32 _pad;
|
__u32 _pad;
|
||||||
/** AMDGPU_IB_FLAG_* */
|
/** AMDGPU_IB_FLAG_* */
|
||||||
|
|
Loading…
Reference in a new issue