]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gtt: enable GTT cache by default
authorMatthew Auld <matthew.auld@intel.com>
Fri, 9 Aug 2019 19:34:55 +0000 (20:34 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 10 Aug 2019 12:18:32 +0000 (13:18 +0100)
commitdbcc4acd5d2913b2bbe5c99e826762d73ac8c04d
tree8bc62abd733909cab90a4766ea3e2f2b3f724a2a
parent73cc30e40f52d179c2659a6e992d3f2ef80e6f7c
drm/i915/gtt: enable GTT cache by default

For some platforms the GTT cache is by default not enabled, and
currently where we explicitly enable it, we make it conditional on 2M GTT
page support, since the BSpec states that we must disable it if we
enable 2M/1G pages. To make this more consistent opt for blanket
enabling the GTT cache for all relevant gens in a single place, while
still keeping the same behaviour of checking for 2M support.

BSpec: 9314
BSpec: 423
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
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/20190809193456.3836-1-matthew.auld@intel.com
drivers/gpu/drm/i915/i915_gem_gtt.c
drivers/gpu/drm/i915/intel_pm.c