[PATCH] amdgpu:update IB flags with PREEMPT

Monk Liu Monk.Liu at amd.com
Wed Mar 8 10:22:47 UTC 2017


PREEMPT flag is used for MCBP

Change-Id: I2ddf00000f3912c219663e80680f76d671c7856e
Signed-off-by: Monk Liu <Monk.Liu at amd.com>
---
 include/drm/amdgpu_drm.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/include/drm/amdgpu_drm.h b/include/drm/amdgpu_drm.h
index ad161c4..aca54c2 100644
--- a/include/drm/amdgpu_drm.h
+++ b/include/drm/amdgpu_drm.h
@@ -409,9 +409,12 @@ union drm_amdgpu_cs {
 /* This IB should be submitted to CE */
 #define AMDGPU_IB_FLAG_CE	(1<<0)
 
-/* CE Preamble */
+/* Preamble */
 #define AMDGPU_IB_FLAG_PREAMBLE (1<<1)
 
+/* Preemptible */
+#define AMDGPU_IB_FLAG_PREEMPT (1<<2)
+
 struct drm_amdgpu_cs_chunk_ib {
 	uint32_t _pad;
 	/** AMDGPU_IB_FLAG_* */
-- 
2.7.4



More information about the amd-gfx mailing list