All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915: Move L3 MOCS to engine reset domain.
@ 2019-10-16  4:05 Prathap Kumar Valsan
  2019-10-16  4:22 ` ✓ Fi.CI.BAT: success for " Patchwork
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Prathap Kumar Valsan @ 2019-10-16  4:05 UTC (permalink / raw)
  To: intel-gfx

Gen12 has L3 MOCS in engine reset domain, having us to re-initialize on
an engine reset.

References: https://bugs.freedesktop.org/show_bug.cgi?id=111723
References: https://bugs.freedesktop.org/show_bug.cgi?id=111645
References: HSDES#1607983814
References: HSDES#14010115701

Signed-off-by: Prathap Kumar Valsan <prathap.kumar.valsan@intel.com>
---
 drivers/gpu/drm/i915/gt/intel_mocs.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/gpu/drm/i915/gt/intel_mocs.c b/drivers/gpu/drm/i915/gt/intel_mocs.c
index 728704bbbe18..774c5df0d0e9 100644
--- a/drivers/gpu/drm/i915/gt/intel_mocs.c
+++ b/drivers/gpu/drm/i915/gt/intel_mocs.c
@@ -365,6 +365,8 @@ static u32 get_entry_control(const struct drm_i915_mocs_table *table,
 	return table->table[I915_MOCS_PTE].control_value;
 }
 
+static void intel_mocs_init_l3cc_table(struct intel_gt *gt);
+
 /**
  * intel_mocs_init_engine() - emit the mocs control table
  * @engine:	The engine for whom to emit the registers.
@@ -380,6 +382,9 @@ void intel_mocs_init_engine(struct intel_engine_cs *engine)
 	unsigned int index;
 	u32 unused_value;
 
+	if (IS_GEN(gt->i915, 12) && engine->class == RENDER_CLASS)
+		intel_mocs_init_l3cc_table(gt);
+
 	/* Platforms with global MOCS do not need per-engine initialization. */
 	if (HAS_GLOBAL_MOCS_REGISTERS(gt->i915))
 		return;
-- 
2.20.1

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

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-10-16 16:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-16  4:05 [PATCH] drm/i915: Move L3 MOCS to engine reset domain Prathap Kumar Valsan
2019-10-16  4:22 ` ✓ Fi.CI.BAT: success for " Patchwork
2019-10-16  8:42 ` [PATCH] " Chris Wilson
2019-10-16 17:13   ` Kumar Valsan, Prathap
2019-10-16 15:13 ` ✗ Fi.CI.IGT: failure for " Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.