From: Tvrtko Ursulin <tvrtko.ursu...@intel.com>

Certain workloads need the ability to disable preemption completely so
allow them to do that by whitelisting GEN8_CS_CHICKEN1.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursu...@intel.com>
Cc: Michal Mrozek <michal.mro...@intel.com>
Cc: Tony Ye <tony...@intel.com>
Cc: Rafael Antognolli <rafael.antogno...@intel.com>
Cc: Jason Ekstrand <ja...@jlekstrand.net>
---
We need confirmation and acks from all three userspace components here.
Especially since my impression was some are for and some were against
whitelisting this one.
---
 drivers/gpu/drm/i915/gt/intel_workarounds.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/gpu/drm/i915/gt/intel_workarounds.c 
b/drivers/gpu/drm/i915/gt/intel_workarounds.c
index 391f39b1fb26..37becdf77427 100644
--- a/drivers/gpu/drm/i915/gt/intel_workarounds.c
+++ b/drivers/gpu/drm/i915/gt/intel_workarounds.c
@@ -1276,6 +1276,9 @@ static void tgl_whitelist_build(struct intel_engine_cs 
*engine)
 
                /* Wa_1806527549:tgl */
                whitelist_reg(w, HIZ_CHICKEN);
+
+               /* WaEnablePreemptionGranularityControlByUMD:tgl */
+               whitelist_reg(w, GEN8_CS_CHICKEN1);
                break;
        default:
                break;
-- 
2.20.1

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to