drm/i915/icl: Add command cache invalidate
authorMika Kuoppala <mika.kuoppala@linux.intel.com>
Thu, 15 Aug 2019 08:30:54 +0000 (11:30 +0300)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 15 Aug 2019 12:13:23 +0000 (13:13 +0100)
On the set of invalidations, we need to add command
cache invalidate as a new domain.

Signed-off-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20190815083055.14132-2-mika.kuoppala@linux.intel.com
drivers/gpu/drm/i915/gt/intel_gpu_commands.h
drivers/gpu/drm/i915/gt/intel_lrc.c

index 929a17e54f2cada064b5b1228aebff967d54c3ec..86e00a2db8a45e702478b501581b4057f5780774 100644 (file)
 #define   DISPLAY_PLANE_A           (0<<20)
 #define   DISPLAY_PLANE_B           (1<<20)
 #define GFX_OP_PIPE_CONTROL(len)       ((0x3<<29)|(0x3<<27)|(0x2<<24)|((len)-2))
+#define   PIPE_CONTROL_COMMAND_CACHE_INVALIDATE                (1<<29) /* gen11+ */
 #define   PIPE_CONTROL_TILE_CACHE_FLUSH                        (1<<28) /* gen11+ */
 #define   PIPE_CONTROL_FLUSH_L3                                (1<<27)
 #define   PIPE_CONTROL_GLOBAL_GTT_IVB                  (1<<24) /* gen7+ */
index 6a27a897d7a63a15ef5ef985e7787228458b7f03..9018afb4e9efd1656f0eedc2f3f79d7a18a09646 100644 (file)
@@ -2691,6 +2691,7 @@ static int gen11_emit_flush_render(struct i915_request *request,
 
                flags |= PIPE_CONTROL_CS_STALL;
 
+               flags |= PIPE_CONTROL_COMMAND_CACHE_INVALIDATE;
                flags |= PIPE_CONTROL_TLB_INVALIDATE;
                flags |= PIPE_CONTROL_INSTRUCTION_CACHE_INVALIDATE;
                flags |= PIPE_CONTROL_TEXTURE_CACHE_INVALIDATE;