Skip to content

Non-interface changing GuC CTBs updates

Matthew Brost dri-devel intel-gfx 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest18 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/18drm/i915/guc: skip disabling CTBs before sanitizing the GuCdrivers/gpu/drm/i915/gt/uc/intel_uc.c+1 -70 replies
2/18drm/i915/guc: use probe_error log for CT enablement failuredrivers/gpu/drm/i915/gt/uc/intel_guc_ct.c+25 -230 replies
3/18drm/i915/guc: enable only the user interrupt when using GuC submissiondrivers/gpu/drm/i915/gt/intel_gt_irq.c drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c+11 -380 replies
4/18drm/i915/guc: Remove sample_forcewake h2g actiondrivers/gpu/drm/i915/gt/uc/intel_guc.c drivers/gpu/drm/i915/gt/uc/intel_guc.h drivers/gpu/drm/i915/gt/uc/intel_guc_fwif.h +1 more+0 -250 replies
5/18drm/i915/guc: Keep strict GuC ABI definitionsdrivers/gpu/drm/i915/gt/uc/abi/guc_actions_abi.h drivers/gpu/drm/i915/gt/uc/abi/guc_communication_ctb_abi.h drivers/gpu/drm/i915/gt/uc/abi/guc_communication_mmio_abi.h +3 more+250 -1970 replies
6/18drm/i915/guc: Drop guc->interrupts.enableddrivers/gpu/drm/i915/gt/uc/intel_guc.c drivers/gpu/drm/i915/gt/uc/intel_guc.h+9 -192 replies
7/18drm/i915/guc: Stop using fence/status from CTB descriptordrivers/gpu/drm/i915/gt/uc/abi/guc_communication_ctb_abi.h drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c+6 -700 replies
8/18drm/i915: Promote ptrdiff() to i915_utils.hdrivers/gpu/drm/i915/i915_utils.h drivers/gpu/drm/i915/i915_vma.h+5 -50 replies
9/18drm/i915/guc: Only rely on own CTB sizedrivers/gpu/drm/i915/gt/uc/intel_guc_ct.c drivers/gpu/drm/i915/gt/uc/intel_guc_ct.h+43 -140 replies
10/18drm/i915/guc: Don't repeat CTB layout calculationsdrivers/gpu/drm/i915/gt/uc/intel_guc_ct.c+10 -60 replies
11/18drm/i915/guc: Replace CTB array with explicit membersdrivers/gpu/drm/i915/gt/uc/intel_guc_ct.c drivers/gpu/drm/i915/gt/uc/intel_guc_ct.h+30 -230 replies
12/18drm/i915/guc: Update sizes of CTB buffersdrivers/gpu/drm/i915/gt/uc/intel_guc_ct.c+32 -280 replies
13/18drm/i915/guc: Relax CTB response timeoutdrivers/gpu/drm/i915/Kconfig.profile drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c+13 -12 replies
14/18drm/i915/guc: Start protecting access to CTB descriptorsdrivers/gpu/drm/i915/gt/uc/intel_guc_ct.c drivers/gpu/drm/i915/gt/uc/intel_guc_ct.h+14 -20 replies
15/18drm/i915/guc: Ensure H2G buffer updates visible before tail updatedrivers/gpu/drm/i915/gt/uc/intel_guc_ct.c+18 -04 replies
16/18drm/i915/guc: Stop using mutex while sending CTB messagesdrivers/gpu/drm/i915/gt/uc/intel_guc_ct.c+0 -40 replies
17/18drm/i915/guc: Don't receive all G2H messages in irq handlerdrivers/gpu/drm/i915/gt/uc/intel_guc_ct.c drivers/gpu/drm/i915/gt/uc/intel_guc_ct.h+50 -200 replies
18/18drm/i915/guc: Always copy CT message to new allocationdrivers/gpu/drm/i915/gt/uc/intel_guc_ct.c+120 -600 replies

Reviews trailers per patch

All 18 patches have a Reviewed-by or Acked-by.

PatchMichal WajdeczkoMatthew BrostMichał WiniarskiJohn Harrison
1/18R-b
2/18R-b
3/18R-b
4/18A-b R-b
5/18R-b
6/18R-b
7/18R-b
8/18R-b
9/18R-b
10/18R-b
11/18R-b
12/18R-b
13/18R-b
14/18R-b
15/18R-b
16/18R-b
17/18R-b
18/18R-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 4 reviewers.

Read the v1 thread

Cover letter [PATCH 00/18] Non-interface changing GuC CTBs updates

As discussed in [1] we are breaking that large series into a several smaller ones. This series is the non-interface changing part of step #2
- it makes all the changes needed before updating the GuC firwmare to a new version without breaking any old interfaces.

A follow on series will be squashed into a single patch that updates the GuC firmware + the required interface changes.

Patch number #13 needs an Ack from Michal Wajdeczko. Patch number #6, #15 need reviews.

v2: Fix some checkpatch warnings, add patch number #6 to address CI failure [2] in first rev

[1] https://patchwork.freedesktop.org/series/89844/
[2] https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20192/shard-tglb3/igt@[email protected]

Daniele Ceraolo Spurio (3):
drm/i915/guc: skip disabling CTBs before sanitizing the GuC drm/i915/guc: use probe_error log for CT enablement failure drm/i915/guc: enable only the user interrupt when using GuC submission

Matthew Brost (2):
drm/i915/guc: Drop guc->interrupts.enabled drm/i915/guc: Ensure H2G buffer updates visible before tail update

Michal Wajdeczko (12):
drm/i915/guc: Keep strict GuC ABI definitions drm/i915/guc: Stop using fence/status from CTB descriptor drm/i915: Promote ptrdiff() to i915_utils.h drm/i915/guc: Only rely on own CTB size drm/i915/guc: Don't repeat CTB layout calculations drm/i915/guc: Replace CTB array with explicit members drm/i915/guc: Update sizes of CTB buffers drm/i915/guc: Relax CTB response timeout drm/i915/guc: Start protecting access to CTB descriptors drm/i915/guc: Stop using mutex while sending CTB messages drm/i915/guc: Don't receive all G2H messages in irq handler drm/i915/guc: Always copy CT message to new allocation

Rodrigo Vivi (1):
drm/i915/guc: Remove sample_forcewake h2g action

 drivers/gpu/drm/i915/Kconfig.profile          |   9 +
 drivers/gpu/drm/i915/gt/intel_gt_irq.c        |  18 +-
 .../gpu/drm/i915/gt/uc/abi/guc_actions_abi.h  |  51 ++
 .../gt/uc/abi/guc_communication_ctb_abi.h     | 106 ++++
 .../gt/uc/abi/guc_communication_mmio_abi.h    |  52 ++
 .../gpu/drm/i915/gt/uc/abi/guc_errors_abi.h   |  14 +
 .../gpu/drm/i915/gt/uc/abi/guc_messages_abi.h |  21 +
 drivers/gpu/drm/i915/gt/uc/intel_guc.c        |  43 +-
 drivers/gpu/drm/i915/gt/uc/intel_guc.h        |   2 -
 drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c     | 527 ++++++++++--------
 drivers/gpu/drm/i915/gt/uc/intel_guc_ct.h     |  14 +-
 drivers/gpu/drm/i915/gt/uc/intel_guc_fwif.h   | 207 +------
 .../gpu/drm/i915/gt/uc/intel_guc_submission.c |  31 --
 drivers/gpu/drm/i915/gt/uc/intel_uc.c         |  10 -
 drivers/gpu/drm/i915/i915_utils.h             |   5 +
 drivers/gpu/drm/i915/i915_vma.h               |   5 -
 16 files changed, 605 insertions(+), 510 deletions(-)
 create mode 100644 drivers/gpu/drm/i915/gt/uc/abi/guc_actions_abi.h
 create mode 100644 drivers/gpu/drm/i915/gt/uc/abi/guc_communication_ctb_abi.h
 create mode 100644 drivers/gpu/drm/i915/gt/uc/abi/guc_communication_mmio_abi.h
 create mode 100644 drivers/gpu/drm/i915/gt/uc/abi/guc_errors_abi.h
 create mode 100644 drivers/gpu/drm/i915/gt/uc/abi/guc_messages_abi.h
Signature · 1 line
2.28.0