]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
drm/i915: Consolidate #ifdef CONFIG_INTEL_IOMMU
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 25 May 2017 12:16:12 +0000 (13:16 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 25 May 2017 20:51:49 +0000 (21:51 +0100)
commit80debff8d9afbf649a15c7ecb0c2cdeb89b36231
treee89fd3d89cd92d5b8bc659e74c2aa6d828849938
parentb2241f182aa0942749e7c95eca92b840ab93263b
drm/i915: Consolidate #ifdef CONFIG_INTEL_IOMMU

We depend on intel_iommu_gfx_mapped for various workarounds, but that is
only available under an #ifdef CONFIG_INTEL_IOMMU. Refactor all the
cut-and-paste ifdefs to a common routine.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/20170525121612.2190-1-chris@chris-wilson.co.uk
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_gem_gtt.c
drivers/gpu/drm/i915/i915_gem_stolen.c
drivers/gpu/drm/i915/intel_fbc.c