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)
commit90cad095eeaa43711d60066096cddaf0d3b58bf6
tree4c368d32140891a2bc8132a08a2fb1f374bf4b5d
parent0db8c961209153498fe7e279b8f0d3deb81808f0
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