summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/gt/intel_lrc_reg.h
diff options
context:
space:
mode:
authorStuart Summers <stuart.summers@intel.com>2021-07-21 15:30:33 -0700
committerMatt Roper <matthew.d.roper@intel.com>2021-07-22 09:37:26 -0700
commit50a9ea0843da815bf0e05fad4c9d80f89ab5349e (patch)
tree957bce35ea6540316b022e9298ea1ad8aaff3b22 /drivers/gpu/drm/i915/gt/intel_lrc_reg.h
parent8f57f295c8952ed45aa7c1c6296d36ced08f85ed (diff)
drm/i915/xehp: Handle new device context ID format
Xe_HP changes the format of the context ID from past platforms. Signed-off-by: Stuart Summers <stuart.summers@intel.com> Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com> Signed-off-by: Matt Roper <matthew.d.roper@intel.com> Reviewed-by: Matt Atwood <matthew.s.atwood@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20210721223043.834562-9-matthew.d.roper@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/gt/intel_lrc_reg.h')
-rw-r--r--drivers/gpu/drm/i915/gt/intel_lrc_reg.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/gt/intel_lrc_reg.h b/drivers/gpu/drm/i915/gt/intel_lrc_reg.h
index 41e5350a7a05..9548f4ade068 100644
--- a/drivers/gpu/drm/i915/gt/intel_lrc_reg.h
+++ b/drivers/gpu/drm/i915/gt/intel_lrc_reg.h
@@ -91,5 +91,7 @@
#define GEN11_MAX_CONTEXT_HW_ID (1 << 11) /* exclusive */
/* in Gen12 ID 0x7FF is reserved to indicate idle */
#define GEN12_MAX_CONTEXT_HW_ID (GEN11_MAX_CONTEXT_HW_ID - 1)
+/* in Xe_HP ID 0xFFFF is reserved to indicate "invalid context" */
+#define XEHP_MAX_CONTEXT_HW_ID 0xFFFF
#endif /* _INTEL_LRC_REG_H_ */