Skip to content

i915: Turn on compute engine 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. v2 Latest4 patches 7 repliesIn review
  2. v12 patches 9 repliesSuperseded

Changes in v2 from the cover letter

- Update TLB invalidation register for compute engines and move it to a separate patch since it isn't related to the new uapi. (Tvrtko, Prathap)
- Move new kerneldoc for pre-existing engine classes to a separate patch. (Andi)
- Drop the compute UMD merge request link for now because it also included some additional multi-tile uapi that we're not ready to upstream just yet. Even if they don't have a disentangled MR ready for reference, we still have the Mesa MR as a key userspace consumer. (Tvrtko)

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4drm/i915/uapi: Add kerneldoc for engine class enuminclude/uapi/drm/i915_drm.h+47 -61 reply
2/4drm/i915/xehp: Add register for compute engine's MMIO-based TLB invalidationdrivers/gpu/drm/i915/gt/intel_gt.c drivers/gpu/drm/i915/gt/intel_gt_regs.h+2 -02 replies
3/4drm/i915/xehp: Add compute engine ABIdrivers/gpu/drm/i915/gt/intel_engine_user.c drivers/gpu/drm/i915/i915_drm_client.c drivers/gpu/drm/i915/i915_drm_client.h +1 more+12 -22 replies
4/4drm/i915: Xe_HP SDV and DG2 have up to 4 CCS enginesdrivers/gpu/drm/i915/i915_pci.c+4 -20 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMatt RoperAndi ShytiTvrtko UrsulinPrathap Kumar ValsanJordan Justen
SeriesR-b T-b
1/4R-b
2/4A-b R-b
3/4R-b A-b
4/4R-b R-b

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

Read the v2 thread

Cover letter [PATCH v2 0/4] i915: Turn on compute engine support

Now that the necessary GuC-based hardware workarounds have landed, we're finally ready to actually enable compute engines for use by userspace. All of the "under-the-hood" heavy lifting already landed a while back in other series so all that remains now is to add I915_ENGINE_CLASS_COMPUTE to the uapi enum and add the CCS engines to the engine lists for the Xe_HP SDV and DG2.

Userspace (Mesa) is linked in the ABI patch. Existing IGT tests (e.g., i915_hangman) provide test coverage for general engine behavior since compute engines should follow the same general rules as other engines. We've also recently added some additional subtests like igt@gem_reset_stats@shared-reset-domain to cover the user-visible impacts of the compute engines sharing the same hardware reset domain as the render engine.

v2:
- Update TLB invalidation register for compute engines and move it to a separate patch since it isn't related to the new uapi. (Tvrtko, Prathap)
- Move new kerneldoc for pre-existing engine classes to a separate patch. (Andi)
- Drop the compute UMD merge request link for now because it also included some additional multi-tile uapi that we're not ready to upstream just yet. Even if they don't have a disentangled MR ready for reference, we still have the Mesa MR as a key userspace consumer. (Tvrtko)

Cc Lucas De Marchi <[email protected]>
Cc Tvrtko Ursulin <[email protected]>

Daniele Ceraolo Spurio (1):
drm/i915: Xe_HP SDV and DG2 have up to 4 CCS engines

Matt Roper (3):
drm/i915/uapi: Add kerneldoc for engine class enum drm/i915/xehp: Add register for compute engine's MMIO-based TLB
invalidation
drm/i915/xehp: Add compute engine ABI

 drivers/gpu/drm/i915/gt/intel_engine_user.c |  2 +-
 drivers/gpu/drm/i915/gt/intel_gt.c          |  1 +
 drivers/gpu/drm/i915/gt/intel_gt_regs.h     |  1 +
 drivers/gpu/drm/i915/i915_drm_client.c      |  1 +
 drivers/gpu/drm/i915/i915_drm_client.h      |  2 +-
 drivers/gpu/drm/i915/i915_pci.c             |  6 +-
 include/uapi/drm/i915_drm.h                 | 62 +++++++++++++++++++--
 7 files changed, 65 insertions(+), 10 deletions(-)
Signature · 1 line
2.35.1