]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gt: Split intel-gtt functions by arch
authorCasey Bowman <casey.g.bowman@intel.com>
Wed, 30 Mar 2022 23:48:08 +0000 (16:48 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Wed, 6 Apr 2022 18:00:51 +0000 (11:00 -0700)
commit046d72214818f41e7c0c1cc28b790b19ecec9df8
tree3ed4a271fb9acceaa8033adb1a4bb91f7e807a6e
parent3fb9f587a1d0be60f95c2f90a89241fa1b83be0b
drm/i915/gt: Split intel-gtt functions by arch

Some functions defined in the intel-gtt module are used in several
areas, but is only supported on x86 platforms.

By separating these calls and their static underlying functions to
another area, we are able to compile out these functions for
non-x86 builds and provide stubs for the non-x86 implementations.

In addition to the problematic calls, we are moving the gmch-related
functions to the new area.

Signed-off-by: Casey Bowman <casey.g.bowman@intel.com>
Acked-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220330234809.1218210-2-casey.g.bowman@intel.com
drivers/gpu/drm/i915/Makefile
drivers/gpu/drm/i915/gt/intel_ggtt.c
drivers/gpu/drm/i915/gt/intel_gt.c
drivers/gpu/drm/i915/gt/intel_gt.h
drivers/gpu/drm/i915/gt/intel_gt_gmch.c [new file with mode: 0644]
drivers/gpu/drm/i915/gt/intel_gt_gmch.h [new file with mode: 0644]
drivers/gpu/drm/i915/gt/intel_gtt.h