]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Disable MI_STORE_DATA_IMM for i915g/i915gm
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 6 Sep 2017 15:28:59 +0000 (16:28 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 6 Sep 2017 16:36:30 +0000 (17:36 +0100)
commit8b3d903ddc55bcb3c813b53543b42d122c3d7d80
tree4c368d32140891a2bc8132a08a2fb1f374bf4b5d
parent7ee1057527f151543d2ccc436adb8c318185d11d
drm/i915: Disable MI_STORE_DATA_IMM for i915g/i915gm

The early gen3 machines (i915g/Grantsdale and i915gm/Alviso) share a lot
of characteristics in their MI/GTT blocks with gen2, and in particular
can only use physical addresses in MI_STORE_DATA_IMM. This makes it
incompatible with our usage, so include those two machines in the
blacklist to prevent usage.

v2: Make it easy for gcc and rewrite it as a switch to save some space.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> #v1
Link: https://patchwork.freedesktop.org/patch/msgid/20170906152859.5304-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem_execbuffer.c
drivers/gpu/drm/i915/intel_engine_cs.c
drivers/gpu/drm/i915/intel_ringbuffer.h