Repository navigation
mux: apple-display-crossbar: replace the T602x selector fields instead of OR-ing them - #1
Merged
DjDeveloperr merged 1 commit intoSep 18, 2026
Conversation
…d of OR-ing them apple_dpxbar_set_t602x() sets the two selector fields with dpxbar_set32(), which ORs, and the disconnect path never writes them at all, so a port stays routed to the pipeline selected before it: going from dispext2 (state 4) to dispext0 (state 0) leaves 4 in place. The DCP that asked for the port then drives nothing -- its DPTX calls time out and the firmware reports the device as not started, leaving the pipeline unusable until reboot. Signed-off-by: Marcelo Alcantara <[email protected]>
sithglan
referenced
this pull request
in sithglan/aurora-linux
Nov 13, 2026
The J873 backend builds only the 26A428 (macOS 27.0, 27.0.1) InitData graph and admits only that firmware's loader receipt. macOS 27.2 (26B123) ships the G18G firmware RTKit 3514.41.1, which rejects that graph at its first check. Against 26A434, whose GPU firmware is the 26A428 one, 26B123 differs in three places: - the root version word gains bit 45 (0x0c8b_4339_83a0_04c0 -> 0x0c8b_6339_83a0_04c0), which both roles compare with root +0; - the perf/policy block grows from 0x7800 to 0x7860 and the status config from 0x6d0 to 0x6d8; the other 22 allocations keep their sizes. Everything after the policy in shared allocation #1 moves by 0x80, and the page total stays 0x28000. The private cluster keeps its layout, as 0x6d8 packs to the same 0x700; - inside those two objects fields move: policy +0x2f0c..+0x2f17 by 0x10 and +0x2fb4..+0x6d9f by 0x18, with a new word at +0x2f28; status config +0x59c..+0x5b3 by 4 and +0x5b4 to the end by 8, with new words at +0x59c (left zero) and +0x5b8. The new words carry a new accelerator power-controller field, which the generic power and performance setup sets to 5000. hw_data, the roots, the main configs, status B and region C keep their field offsets. Describe a firmware build's layouts as G18GLayouts. The 26A428 encoders stay as they are; for 26B123 the policy and status config they produce are moved by relocation bands and the new words are written. The loader receipt names the build: G18G-RTKit-3514.0.15.release selects 26A428 as before, G18G-RTKit-3514.41.1.release selects 26B123. The 26A428 graph is unchanged. Tested on a J873 (Mac mini M6) booted from a macOS 27.2 stub, with this change on the tree that drives its display: both firmware roles accept the graph, stage 10 registers the render node, sway composites on the GPU and es2gears runs at about 300 FPS without vsync. Signed-off-by: Thomas Glanzmann <[email protected]>
This was referenced Nov 13, 2026
2 of 4 tasks
This was referenced Nov 21, 2026
RyanTheTide
pushed a commit
that referenced
this pull request
Nov 21, 2026
The J873 backend builds only the 26A428 (macOS 27.0, 27.0.1) InitData graph and admits only that firmware's loader receipt. macOS 27.2 (26B123) ships the G18G firmware RTKit 3514.41.1, which rejects that graph at its first check. Against 26A434, whose GPU firmware is the 26A428 one, 26B123 differs in three places: - the root version word gains bit 45 (0x0c8b_4339_83a0_04c0 -> 0x0c8b_6339_83a0_04c0), which both roles compare with root +0; - the perf/policy block grows from 0x7800 to 0x7860 and the status config from 0x6d0 to 0x6d8; the other 22 allocations keep their sizes. Everything after the policy in shared allocation #1 moves by 0x80, and the page total stays 0x28000. The private cluster keeps its layout, as 0x6d8 packs to the same 0x700; - inside those two objects fields move: policy +0x2f0c..+0x2f17 by 0x10 and +0x2fb4..+0x6d9f by 0x18, with a new word at +0x2f28; status config +0x59c..+0x5b3 by 4 and +0x5b4 to the end by 8, with new words at +0x59c and +0x5b8. +0x2f28 and +0x5b8 carry a new parameter of the GPU power controller. Neither the ADT's GPU node nor the firmware data the loader passes carries it. With both words zero the firmware boots, and renders with the same throughput and latency, so they stay zero, as +0x59c does; the 26A428 layout runs without them. hw_data, the roots, the main configs, status B and region C keep their field offsets. Describe a firmware build's layouts as G18GLayouts. The 26A428 encoders stay as they are; for 26B123 the policy and status config they produce are moved by relocation bands. The loader receipt names the build: G18G-RTKit-3514.0.15.release selects 26A428 as before, G18G-RTKit-3514.41.1.release selects 26B123. The 26A428 graph is unchanged. Tested on a J873 (Mac mini M6) booted from a macOS 27.2 stub, with this change on the tree that drives its display: both firmware roles accept the graph, stage 10 registers the render node, sway composites on the GPU and es2gears runs at about 300 FPS without vsync. With the power-controller words zero, a 1M-triangle scene runs at 20.2 fps, a 20k one at 493 fps and a compositor-like clear every 16.7 ms signals after 0.39 ms (p50), the same as with them set, and no GPU job fails. Signed-off-by: Thomas Glanzmann <[email protected]>
This was referenced Nov 22, 2026
This was referenced Nov 22, 2026
Merged
This was referenced Nov 23, 2026
RyanTheTide
added a commit
that referenced
this pull request
Nov 25, 2026
make pacman-pkg rebuilds and relinks the kernel (the build number goes from #1 to #2), so the standalone Image.gz and modules tarball were not the binaries in the Arch package, and the QEMU smoke run booted the former. When the Arch packages build, take Image.gz (decoded from the package's EFI zboot vmlinuz), the modules tree (with depmod run against the package's System.map), the DTBs, the config and System.map from the runtime and headers packages, so every asset and the smoke run use the binaries that ship. Without makepkg the previous direct path stays. Checked against the Arch packages of run 45429366862: the staged Image equals the zstd payload of the package's vmlinuz byte for byte; 5915 modules with modules.dep; 1629 DTBs. Signed-off-by: Ryan Murray <[email protected]>
DjDeveloperr
added a commit
that referenced
this pull request
Nov 27, 2026
…quest Not for merging. Reading the ASC's windows after the stop's idle kept GFX from going off. Bit 30 of aurora.g16_sleep_snap takes snapshot #0 before the first RUN instead, iBoot's state, for the restart's snapshot #1 to diff against. Signed-off-by: DjDeveloperr <[email protected]>
This was referenced Nov 27, 2026
This was referenced Nov 28, 2026
RyanTheTide
added a commit
to petrskuta/linux
that referenced
this pull request
Nov 28, 2026
Behind a non-posted BAR (USB4/Thunderbolt PCIe tunnels on Apple Silicon) a VRAM buffer object is mapped Device-nGnRnE, and plain memset(), memcpy() and compiler-merged struct stores through its kernel pointer take an alignment fault. amdgpu_bo_memset(), amdgpu_bo_memcpy_to() and amdgpu_bo_memcpy_from() cover this for the GFX v11/v12, SDMA v7, MES, PSP and display paths, but not for CIK: Internal error: Oops: 0000000096000061 [aurora-silicon#1] SMP pc : __pi_memset_generic+0x16c/0x188 lr : gfx_v7_0_mec_init+0x90/0x120 [amdgpu] and, with that fixed, pc : amdgpu_uvd_ring_test_ib+0x48/0x244 [amdgpu] Use the helpers for the GFX v7 HPD EOP clear, the MQD clear, backup and restore, the UVD create and destroy messages, and the reset-magic copy and check that read the GART table. On hosts without non-posted BARs the helpers are the plain functions, so nothing changes there. Signed-off-by: Ryan Murray <[email protected]>
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.
apple_dpxbar_set_t602x()writes the two selector fields inT602X_REG_030withdpxbar_set32(), which ORs, and the disconnect path never clears them. A port therefore stays routed to whichever pipeline it was selected onto first: moving a port from dispext2 (state 4) to dispext0 (state 0) leaves 4 in place, because OR-ing zero changes nothing.The DCP that asked for the port then drives nothing. Validate/connect/request-display all succeed, but
set_hpdtimes out (-110), the firmware raises DPTX faults 22 (DEVICE_NOT_RESPONDING) and 24 (DEVICE_NOT_STARTED), and the pipeline stays unusable until reboot while still holding the route — so an HDMI display on that pipeline cannot come back either.The fix writes both fields with a masked update,
GENMASK(23, 20) | GENMASK(11, 8).Tested on a MacBook Pro 16" M2 Max (J416c) with the internal panel plus four externals (3 Type-C + HDMI), on top of
tb@ 38c14f6:sel before=2/2 after=0/0.-110timeouts or DPTX faults (previously every attempt wedged the pipeline).Independent of the companion DCP patch (
drm/apple: release a stale DPTX link before borrowing a Type-C route); either can land alone.