drm/i915: do not map aperture if it is not available.
authorDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Tue, 29 Oct 2019 09:58:51 +0000 (09:58 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 29 Oct 2019 10:35:43 +0000 (10:35 +0000)
commit54b512cd7a6d5a14938e6a28335ce33942fdb2bb
treee4726c329351306e678c2de2c4e6dceb72992e7c
parent773ed805b5ee3c88a889622fac48ce8e3640bcd9
drm/i915: do not map aperture if it is not available.

Skip both setup and cleanup of the aperture mapping if the HW doesn't
have an aperture bar.

Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
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/20191029095856.25431-2-matthew.auld@intel.com
drivers/gpu/drm/i915/i915_gem_gtt.c