OSDN Git Service

drm/i915: Skip remap_io_mapping() for non-x86 platforms
authorSiva Mullati <siva.mullati@intel.com>
Wed, 8 Dec 2021 04:12:15 +0000 (09:42 +0530)
committerLucas De Marchi <lucas.demarchi@intel.com>
Wed, 8 Dec 2021 21:26:14 +0000 (13:26 -0800)
commit67c430bbaae153433f76807d07b8298ac4714822
tree9314384b21a1af645534144c260d80ebe97b455a
parentc9ee950a2ca55ea0f63d0893f796b2eb089e7900
drm/i915: Skip remap_io_mapping() for non-x86 platforms

Only hw that supports mappable aperture would hit this path
vm_fault_gtt/vm_fault_tmm, So we never hit this function
remap_io_mapping() in discrete, So skip this code for non-x86
architectures.

v2: use IS_ENABLED () instead of #if defined

v3: move function prototypes from i915_drv.h to i915_mm.h

v4: added kernel error message in stub function

v5: fixed compilation warnings

v6: checkpatch style

Signed-off-by: Siva Mullati <siva.mullati@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211208041215.763098-1-siva.mullati@intel.com
drivers/gpu/drm/i915/gem/i915_gem_mman.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_mm.c
drivers/gpu/drm/i915/i915_mm.h [new file with mode: 0644]