Skip to content

T6000/T8112: SoC error reporting and a coherent T6000 video decoder - #1304

Merged
RyanTheTide merged 3 commits into
integration/aurorafrom
gaps10/t6000-edac-avd
Nov 9, 2026
Merged

RyanTheTide merged 3 commits into
integration/aurorafrom
gaps10/t6000-edac-avd

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

This closes two device-tree coverage gaps found on the M1 Pro (j316s, T6000), and one on the M2 (j413, T8112).

  1. EDAC on T6000. apple_soc_edac had no T6000 match, so the error-handler and event-log interrupt groups were left unclaimed. This adds T6000 match data and enables both nodes in t6000.dtsi.
    • The error-handler has 76 lines in 17 source groups, read from the node's group descriptions in the firmware device tree. These descriptions decode to exactly the existing T6041 table when applied to T6041.
    • SEP, IOA, NI0-NI8 and NSR are claimed (46 lines). AMCC, DCS, NSC and NSI stay unclaimed, the same policy as T6041. PMGR has no line on this SoC.
    • All 28 event-log lines are claimed.
    • T6000 uses the IRQ-only path, as T8140 does. The T6041 NI status offset has not been checked here, so no status window is mapped.
  2. EDAC on T8112. The 16 event-log lines are claimed. The T8112 error-handler stays unclaimed: its firmware node does not say which line belongs to which source group.
  3. AVD on T6000. The video decoder is marked dma-coherent, as on T8112 (AVD: describe the video decoder's IO-coherent DMA (T8112, T604x) #1169) and T6041.

Benchmark (AVD, M1 Pro j316s, same Mac, avd-bench, every frame bit-exact against the software decode)

The probes skip every cache operation: V4L2_MEMORY_FLAG_NON_COHERENT plus NO_CACHE_CLEAN/NO_CACHE_INVALIDATE, one picture in flight. All were bit-exact for H.264 and HEVC 1080p:

  • the device reads CPU-dirty lines correctly (OUTPUT buffers written through a cacheable mapping, queued without a clean, at Q1 and Q16);
  • device writes invalidate CPU lines (CPU-dirtied CAPTURE buffers);
  • CPU-cached reads after DQBUF need no invalidate.

So the T6000 AVD is IO-coherent in both directions.

stock (fleet44) dma-coherent (trial)
h264 1080p Q16, 3 passes 1047-1090 fps 1103-1112 fps
hevc 1080p Q16, 3 passes 1207-1229 fps 1221-1236 fps
h264 1080p Q1 286-293 fps 300 fps
consumer reads every frame (default allocation) 197 MB/s, 35.3 ms/frame 24821 MB/s, 0.28 ms/frame
decode + read, h264 1080p 28.2 fps 1110.6 fps
DART faults 0 0

The M1 Pro maps uncached frames even more slowly than the M2 (2.4 GB/s there), so this matters most here. Any consumer that reads pixels (VA-API image download, GStreamer copies, software fallbacks) is affected.

Hardware proof (M1 Pro, silent)

This was a one-shot trial: aura-try RAM-only Stage 2 equal to the live recipe, with only the j316s DTB changed (fleet44 DTB plus these three properties), and test kernel 7.3.0-aurora-gaps10a (integration 6ff31cb + these commits). Stage 2 was not committed and Stage 1 was not touched.

  • apple_soc_edac 395440000.error-handler: monitoring 46 error sources
  • apple_soc_edac 28e080000.event-log: monitoring 28 error sources
  • Both bound to the driver. None of the 74 claimed AIC lines is shared with another driver.
  • Over 5 min idle, 3 min CPU load and the AVD bench: 0 interrupts on every claimed line, ue_count and ce_count 0 on both controls, 0 err-level kernel lines, 0 AVC (Enforcing).
  • Warn-level lines are the same as on the default kernel (btrfs swapfile, kauditd, BT LE coded PHY).
  • The Mac was restored to its production chain: boot.bin unchanged, bootchain check 0.

T8112 event-log: an M2 trial follows, and its results will be added below before merge.

Assisted-by: LLM

🤖 Generated with Claude Code

Register the T6000 (M1 Pro) error-handler and event-log interrupt
groups. The error-handler has 76 lines in 17 groups. Claim SEP, IOA,
NI0-NI8 and NSR; leave AMCC, DCS, NSC and NSI unclaimed as on T6041.
PMGR has no line on this SoC. All 28 event-log lines are claimed.

T6000 uses the IRQ-only path, as T8140 does: the T6041 NI status
offset has not been checked on this SoC, so no status window is
mapped.

Enable both nodes on T6000.

Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
Claim the 16 T8112 (M2) event-log lines and enable the node. The
T8112 error-handler stays unclaimed: unlike T6000 and T6041, its ADT
node does not describe which line belongs to which source group.

Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
The T6000 AVD is IO-coherent in both directions. This was measured on an
M1 Pro (J316s) with every cache operation skipped
(V4L2_MEMORY_FLAG_NON_COHERENT plus V4L2_BUF_FLAG_NO_CACHE_CLEAN and
NO_CACHE_INVALIDATE), one picture in flight, H.264 and HEVC 1080p:

- CPU-dirtied CAPTURE buffers decode bit-exact;
- CPU-cached CAPTURE buffers read back bit-exact without an invalidate;
- bitstream OUTPUT buffers written through a cacheable mapping and queued
  without a clean decode bit-exact.

Without dma-coherent every decoded frame is mapped uncached. On this SoC
a consumer that reads every frame gets about 0.2 GB/s from it.

Results, same Mac, avd-bench, every frame checked against the software
decode:

                           stock            dma-coherent
  h264 1080p, Q16          1047-1090 fps    1103-1112 fps
  hevc 1080p, Q16          1207-1229 fps    1221-1236 fps
  h264 1080p, Q1           286-293 fps      300 fps
  read every frame         197 MB/s         24821 MB/s
                           (35.3 ms/frame)  (0.28 ms/frame)
  decode + read, h264      28.2 fps         1110.6 fps

There were no DART faults and every result is bit-exact.

Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

M2 (j413, T8112) receipt: event-log

The M2 trial used the same method as the M1 Pro. The aura-try RAM-only Stage 2 was the live recipe with only the j413 DTB changed (fleet44 DTB with the event-log node okay). The test kernel was 7.3.0-aurora-gaps10b (integration 6ff31cb + this PR's commits).

  • apple_soc_edac 23b700000.event-log: monitoring 16 error sources. The error-handler stays disabled as intended.
  • Over 5 min idle and 2 min CPU load: 0 interrupts on all 16 lines, ue_count and ce_count 0, 0 err-level kernel lines, 0 AVC (Enforcing).
  • Warn-level lines are the same set as on the default kernel.
  • The M2 was restored to its production chain: boot.bin unchanged, bootchain check 0, 0 failed units.

The only failed units on the trial boots of both Macs were:

  • aurora-stage2-commit: it refuses manually armed trial markers. This is known and harmless.
  • speakerguardd-v2-switchtest: it fails with "cleanup EBUSY" on every kernel built on integration >= 6ff31cb, with or without this PR. That regression is tracked separately; this PR touches no audio code.

The CI host-tests job passes.

@RyanTheTide
RyanTheTide merged commit 83df8e4 into integration/aurora Nov 9, 2026
2 checks passed
@RyanTheTide
RyanTheTide deleted the gaps10/t6000-edac-avd branch November 9, 2026 09:17
DjDeveloperr added a commit that referenced this pull request Nov 9, 2026
Bring in the T6000/T8112 EDAC handlers (#1304), the T6000 JPEG PMP request
(#1305) and the J616s PMGR parents (#1287); no overlap, nothing dropped.
DjDeveloperr added a commit that referenced this pull request Nov 9, 2026
Keep the driver-owned domain skip at the wake next to #1283's no-recovery
rule during system sleep; take the J700 JPEG1, watchdog IRQ and #1304 as is.
DjDeveloperr added a commit that referenced this pull request Nov 9, 2026
…ddr-wake

Keep the T8140 NI aperture table and acknowledge path next to #1304's
T6000 error and T6000/T8112 event-log handlers in apple_soc_edac.c.
DjDeveloperr added a commit that referenced this pull request Nov 9, 2026
Keep the PCIe domain wait before the AXI enables; take the stack below,
with #1304 and its EDAC merge, as is.
DjDeveloperr added a commit that referenced this pull request Nov 9, 2026
Keep the tipd rearm and the partner wait after the cut; take the stack
below, with #1304 and its EDAC merge, as is.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant