]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/bxt: don't allow cached GEM mappings on A stepping
authorImre Deak <imre.deak@intel.com>
Fri, 14 Aug 2015 15:43:30 +0000 (18:43 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 26 Aug 2015 07:39:14 +0000 (09:39 +0200)
commit6ed4c69db0a4c663fba99b5e9a8f8f608060ecff
tree4a8d82055d6736a0d76fe04e18334156466faa62
parent2dcd07d283fc229b7ce53cc86d9d6cca0abb1455
drm/i915/bxt: don't allow cached GEM mappings on A stepping

Due to a coherency issue on BXT A steppings we can't guarantee a
coherent view of cached (CPU snooped) GPU mappings, so fail such
requests. User space is supposed to fall back to uncached mappings in
this case.

v2:
- limit the WA to A steppings, on later stepping this HW issue is fixed
v3:
- return error instead of trying to work around the issue in kernel,
  since that could confuse user space (Chris)

Testcast: igt/gem_store_dword_batches_loop/cached-mapping
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c