Repository navigation
T6000/T8112: SoC error reporting and a coherent T6000 video decoder - #1304
Merged
Merged
Conversation
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]>
Contributor
Author
M2 (j413, T8112) receipt: event-logThe 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
The only failed units on the trial boots of both Macs were:
The CI host-tests job passes. |
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This closes two device-tree coverage gaps found on the M1 Pro (j316s, T6000), and one on the M2 (j413, T8112).
apple_soc_edachad 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.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_COHERENTplusNO_CACHE_CLEAN/NO_CACHE_INVALIDATE, one picture in flight. All were bit-exact for H.264 and HEVC 1080p:So the T6000 AVD is IO-coherent in both directions.
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 sourcesapple_soc_edac 28e080000.event-log: monitoring 28 error sourcesue_countandce_count0 on both controls, 0 err-level kernel lines, 0 AVC (Enforcing).T8112 event-log: an M2 trial follows, and its results will be added below before merge.
Assisted-by: LLM
🤖 Generated with Claude Code