Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-gfx] [PATCH 0/2] Splitting intel-gtt calls for non-x86 platforms
@ 2022-03-19  2:00 Casey Bowman
  2022-03-19  2:00 ` [Intel-gfx] [PATCH 1/2] drm/i915: Require INTEL_GTT to depend on X86 Casey Bowman
                   ` (5 more replies)
  0 siblings, 6 replies; 12+ messages in thread
From: Casey Bowman @ 2022-03-19  2:00 UTC (permalink / raw)
  To: intel-gfx; +Cc: thomas.hellstrom, lucas.demarchi, chris

The intel-gtt module defines some functions used by i915, but they are
only supported by x86 platforms. In order to bring i915 to a more
arch-neutral state, we split out these functions and provide stubs in
the case of non-x86 builds.

There may be a better filename choice for the files used in splitting
the calls, it's very much open to discussion.

Casey Bowman (2):
  drm/i915: Require INTEL_GTT to depend on X86
  drm/i915/gt: Split intel-gtt functions by arch

 drivers/gpu/drm/i915/Kconfig                |   2 +-
 drivers/gpu/drm/i915/Makefile               |   2 +
 drivers/gpu/drm/i915/gt/intel_ggtt.c        |  97 +----------------
 drivers/gpu/drm/i915/gt/intel_gt.c          |   6 +-
 drivers/gpu/drm/i915/gt/intel_gtt.h         |  10 ++
 drivers/gpu/drm/i915/gt/intel_gtt_support.c | 113 ++++++++++++++++++++
 drivers/gpu/drm/i915/gt/intel_gtt_support.h |  39 +++++++
 7 files changed, 172 insertions(+), 97 deletions(-)
 create mode 100644 drivers/gpu/drm/i915/gt/intel_gtt_support.c
 create mode 100644 drivers/gpu/drm/i915/gt/intel_gtt_support.h

-- 
2.25.1


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2022-03-22 11:31 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-19  2:00 [Intel-gfx] [PATCH 0/2] Splitting intel-gtt calls for non-x86 platforms Casey Bowman
2022-03-19  2:00 ` [Intel-gfx] [PATCH 1/2] drm/i915: Require INTEL_GTT to depend on X86 Casey Bowman
2022-03-19  3:40   ` Lucas De Marchi
2022-03-19 17:37     ` Casey Bowman
2022-03-19  2:00 ` [Intel-gfx] [PATCH 2/2] drm/i915/gt: Split intel-gtt functions by arch Casey Bowman
2022-03-19  3:39   ` Lucas De Marchi
2022-03-19 17:46     ` Casey Bowman
2022-03-22 11:31     ` Tvrtko Ursulin
2022-03-19  2:30 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for Splitting intel-gtt calls for non-x86 platforms Patchwork
2022-03-19  2:31 ` [Intel-gfx] ✗ Fi.CI.SPARSE: " Patchwork
2022-03-19  3:11 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2022-03-19  4:26 ` [Intel-gfx] ✓ Fi.CI.IGT: " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox