Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/i915: Remove superfluous GEN8_LR_CONTEXT_ALIGN

As GEN8_LR_CONTEXT_ALIGN is I915_GTT_MIN_ALIGNMENT is it functionally
equivalent to 0, and we will not be able to reduce the min-alignment for
the GTT, so passing 0 is and will remain equivalent.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180727092947.1953-1-chris@chris-wilson.co.uk

+1 -3
+1 -1
drivers/gpu/drm/i915/intel_lrc.c
··· 1306 1306 if (ctx->ggtt_offset_bias) 1307 1307 flags |= PIN_OFFSET_BIAS | ctx->ggtt_offset_bias; 1308 1308 1309 - return i915_vma_pin(vma, 0, GEN8_LR_CONTEXT_ALIGN, flags); 1309 + return i915_vma_pin(vma, 0, 0, flags); 1310 1310 } 1311 1311 1312 1312 static struct intel_context *
-2
drivers/gpu/drm/i915/intel_lrc.h
··· 27 27 #include "intel_ringbuffer.h" 28 28 #include "i915_gem_context.h" 29 29 30 - #define GEN8_LR_CONTEXT_ALIGN I915_GTT_MIN_ALIGNMENT 31 - 32 30 /* Execlists regs */ 33 31 #define RING_ELSP(engine) _MMIO((engine)->mmio_base + 0x230) 34 32 #define RING_EXECLIST_STATUS_LO(engine) _MMIO((engine)->mmio_base + 0x234)