Skip to content

i915: Initial multi-tile support

Matt Roper dri-devel intel-gfx 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest10 patches 10 repliesIn review
  2. v111 patches 17 repliesSuperseded

Changes in v3 from the cover letter

- Fix GEM_BUG_ON() assertion on pre-gen9 platforms; the assertion was only meant for multi-tile platforms and will always fail on old platforms that have a BAR0 smaller than 16MB.
- Rename some of the gt/tile initialization functions. (Lucas/Jani)
- Move top-level tile memory init to i915_drv.c since it isn't directly related to the GT. (Lucas)
- Squash per-gt cleanup into the patch that introduces the per-gt setup.
- Fix handling of display and GSE interrupts (our current multi-tile platforms don't have display, but we can't count on that being true in the future).

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10drm/i915: rework some irq functions to take intel_gt as argumentdrivers/gpu/drm/i915/i915_irq.c+15 -110 replies
2/10drm/i915: split general MMIO setup from per-GT uncore initdrivers/gpu/drm/i915/i915_drv.c drivers/gpu/drm/i915/intel_uncore.c drivers/gpu/drm/i915/intel_uncore.h+13 -151 reply
3/10drm/i915: Restructure probe to handle multi-tile platformsdrivers/gpu/drm/i915/gt/intel_gt.c drivers/gpu/drm/i915/gt/intel_gt.h drivers/gpu/drm/i915/gt/intel_gt_pm.c +4 more+77 -212 replies
4/10drm/i915: Store backpointer to GT in uncoredrivers/gpu/drm/i915/gt/intel_gt.c drivers/gpu/drm/i915/intel_uncore.c drivers/gpu/drm/i915/intel_uncore.h +2 more+10 -90 replies
5/10drm/i915: Prepare for multiple gtsdrivers/gpu/drm/i915/gt/intel_gt.c drivers/gpu/drm/i915/gt/intel_gt.h drivers/gpu/drm/i915/gt/intel_gt_types.h +3 more+96 -85 replies
6/10drm/i915: Initial support for per-tile uncoredrivers/gpu/drm/i915/gt/intel_gt.c drivers/gpu/drm/i915/i915_debugfs.c drivers/gpu/drm/i915/i915_drv.c+51 -160 replies
7/10drm/i915/xehp: Determine which tile raised an interruptdrivers/gpu/drm/i915/i915_irq.c+23 -181 reply
8/10drm/i915/xehp: Make IRQ reset and postinstall multi-tile awaredrivers/gpu/drm/i915/i915_irq.c+18 -100 replies
9/10drm/i915/guc: Update CT debug macro for multi-tiledrivers/gpu/drm/i915/gt/uc/intel_guc_ct.c+3 -31 reply
10/10drm/i915/xehpsdv: Initialize multi-tilesdrivers/gpu/drm/i915/gt/intel_engine_cs.c drivers/gpu/drm/i915/gt/intel_gt.c drivers/gpu/drm/i915/gt/intel_gt.h +5 more+146 -120 replies

Reviews trailers per patch

8 of 10 patches have a Reviewed-by or Acked-by.

PatchTvrtko UrsulinLucas De MarchiAndi ShytiMatt Roper
1/10Co-authored-by R-b R-b
2/10R-b R-b
3/10R-b
4/10R-b
5/10
6/10R-b
7/10R-b
8/10R-b
9/10R-b
10/10Co-authored-by

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v3 thread

Cover letter [PATCH v3 00/10] i915: Initial multi-tile support

Some of our upcoming platforms, including the Xe_HP SDV, support a "multi-tile" design. A multi-tile platform is effectively a platform with multiple GT instances and local memory regions, all behind a single PCI device. From an i915 perspective, this translates to multiple intel_gt structures per drm_i915_private. This series provides the initial refactoring to support multiple independent GTs per card, but further work (especially related to local memory) will be required to fully enable a multi-tile platform.

Note that the presence of multiple GTs is largely transparent to userspace. A multi-tile platform will advertise a larger list of engines to userspace, but the concept of "tile" is not something userspace has to worry about directly. There will be some uapi implications later due to the devices having multiple local memory regions, but that aspect of multi-tile is not covered by this patch series and will show up in future work.

v2:
- Include some additional tile setup refactoring that got missed in v1.

v3:
- Fix GEM_BUG_ON() assertion on pre-gen9 platforms; the assertion was only meant for multi-tile platforms and will always fail on old platforms that have a BAR0 smaller than 16MB.
- Rename some of the gt/tile initialization functions. (Lucas/Jani)
- Move top-level tile memory init to i915_drv.c since it isn't directly related to the GT. (Lucas)
- Squash per-gt cleanup into the patch that introduces the per-gt setup.
- Fix handling of display and GSE interrupts (our current multi-tile platforms don't have display, but we can't count on that being true in the future).

Daniele Ceraolo Spurio (2):
drm/i915: split general MMIO setup from per-GT uncore init drm/i915: Initial support for per-tile uncore

Matt Roper (1):
drm/i915: Restructure probe to handle multi-tile platforms

Michal Wajdeczko (1):
drm/i915/guc: Update CT debug macro for multi-tile

Michał Winiarski (1):
drm/i915: Store backpointer to GT in uncore

Paulo Zanoni (3):
drm/i915: rework some irq functions to take intel_gt as argument drm/i915/xehp: Determine which tile raised an interrupt drm/i915/xehp: Make IRQ reset and postinstall multi-tile aware

Tvrtko Ursulin (2):
drm/i915: Prepare for multiple gts
drm/i915/xehpsdv: Initialize multi-tiles

 drivers/gpu/drm/i915/gt/intel_engine_cs.c     |   2 +-
 drivers/gpu/drm/i915/gt/intel_gt.c            | 177 +++++++++++++++++-
 drivers/gpu/drm/i915/gt/intel_gt.h            |  11 ++
 drivers/gpu/drm/i915/gt/intel_gt_pm.c         |   9 +-
 drivers/gpu/drm/i915/gt/intel_gt_types.h      |  10 +
 drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c     |   6 +-
 drivers/gpu/drm/i915/i915_debugfs.c           |   5 +-
 drivers/gpu/drm/i915/i915_drv.c               | 102 ++++++++--
 drivers/gpu/drm/i915/i915_drv.h               |   9 +
 drivers/gpu/drm/i915/i915_irq.c               |  77 +++++---
 drivers/gpu/drm/i915/i915_pci.c               |  40 +++-
 drivers/gpu/drm/i915/i915_reg.h               |   4 +
 drivers/gpu/drm/i915/intel_device_info.h      |  15 ++
 drivers/gpu/drm/i915/intel_memory_region.h    |   3 +
 drivers/gpu/drm/i915/intel_uncore.c           |  36 ++--
 drivers/gpu/drm/i915/intel_uncore.h           |   6 +-
 .../gpu/drm/i915/selftests/mock_gem_device.c  |   3 +-
 drivers/gpu/drm/i915/selftests/mock_uncore.c  |   2 +-
 18 files changed, 423 insertions(+), 94 deletions(-)
Signature · 1 line
2.33.0