summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/xe/regs/xe_gt_regs.h
diff options
context:
space:
mode:
authorNirmoy Das <nirmoy.das@intel.com>2024-01-04 19:26:15 +0100
committerMatt Roper <matthew.d.roper@intel.com>2024-01-08 11:43:19 -0800
commitddb5bade29de7a3e1e1ce42df33f4a98f8a9f323 (patch)
tree253c1ba2693cd3b1778de2740fbdff625934b014 /drivers/gpu/drm/xe/regs/xe_gt_regs.h
parentbe8755a0a81866bbf89bf3fb03ae180978b5a91f (diff)
downloadlinux-stable-ddb5bade29de7a3e1e1ce42df33f4a98f8a9f323.tar.gz
linux-stable-ddb5bade29de7a3e1e1ce42df33f4a98f8a9f323.tar.bz2
linux-stable-ddb5bade29de7a3e1e1ce42df33f4a98f8a9f323.zip
drm/xe/xe2: synchronise CS_CHICKEN1 with WMTP support
Recommendation is to read FUSE4 register to check if WMTP has been enabled/disabled by HW. If enabled we don't need to do anything special, however if disabled recommendation is to also disable the WMTP mode in the FF_SLICE_CS_CHICKEN2 register, falling back to thread-group and mid-batch preemption only. However on Linux, the per-context CS_CHICKEN1 is how userspace controls pre-emption, so instead use the default lrc to disable WMTP using CS_CHICKEN1, if disabled by HW. Userspace is still free to set CS_CHICKEN1 to whatever they want later. v2: remove redundant version check and also add descriptive name(Matt) v3: remove usage of REG_FIELD_GET(Matt) Cc: Matt Roper <matthew.d.roper@intel.com> Co-developed-by: Matthew Auld <matthew.auld@intel.com> Signed-off-by: Matthew Auld <matthew.auld@intel.com> Signed-off-by: Nirmoy Das <nirmoy.das@intel.com> Reviewed-by: Matt Roper <matthew.d.roper@intel.com> Link: https://lore.kernel.org/r/20240104182615.21327-1-nirmoy.das@intel.com Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/regs/xe_gt_regs.h')
-rw-r--r--drivers/gpu/drm/xe/regs/xe_gt_regs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/xe/regs/xe_gt_regs.h b/drivers/gpu/drm/xe/regs/xe_gt_regs.h
index 6aaaf1f63c72..6dfad86aaea6 100644
--- a/drivers/gpu/drm/xe/regs/xe_gt_regs.h
+++ b/drivers/gpu/drm/xe/regs/xe_gt_regs.h
@@ -146,6 +146,7 @@
/* Fuse readout registers for GT */
#define XEHP_FUSE4 XE_REG(0x9114)
+#define CFEG_WMTP_DISABLE REG_BIT(20)
#define CCS_EN_MASK REG_GENMASK(19, 16)
#define GT_L3_EXC_MASK REG_GENMASK(6, 4)