Repository navigation
kboot: forward the A8X GPU's bridge settings to the device tree - #25
Merged
Merged
Conversation
The A8X's GPU (apple,t7001-gpu, iPad Air 2) writes its two bus bridges'
register settings after every power-on. They belong to the device:
/arm-io/pmgr has them as bridge-settings-9 and bridge-settings-10, 33
little-endian {offset, value} pairs each, offsets relative to the bridge.
Add them to the GPU node as apple,bridge-settings, big-endian cells
relative to the node's "bridges" region (the second bridge at +0x80000),
which is what the powervr driver's A8X support reads. Without the
property that driver refuses to probe.
Nothing happens on boards without an apple,t7001-gpu node, or where the
ADT lacks the two properties or has them at another length.
Tested on an iPad Air 2 (J81) with the A8X kernel series
(OrchardLinux/linux#165): the property reaches the node and powervr
probes (CORE_REVISION 0x00070500) under Orchard's launcher and Omarchy A.
Assisted-by: LLM
Signed-off-by: Martin Puškáč <martin@icebear.sk>
Drop the double blank line after the function and align the two GPU_BRIDGE_* defines, as clang-format wants. Assisted-by: LLM Signed-off-by: Henrik Klee <henrik@goat-code.com>
henrikklee
force-pushed
the
a8x-gpu-bridge-settings
branch
from
December 5, 2026 00:40
2fa5c7b to
933c797
Compare
|
Merged. Welcome to OrchardLinux, Martin, and thank you for your first contribution! Passing the A8X GPU's bridge settings through from Apple's device tree is the missing piece that lets the iPad Air 2's GPU driver start, and the code is careful: it does nothing on other boards or when the data isn't there, and its output matches exactly what the driver in linux#165 reads.
|
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.
The A8X's GPU (apple,t7001-gpu, iPad Air 2) writes its two bus bridges' register settings after every power-on. They belong to the device: /arm-io/pmgr has them as bridge-settings-9 and bridge-settings-10, 33 little-endian {offset, value} pairs each, offsets relative to the bridge. This adds them to the GPU node as apple,bridge-settings, big-endian cells relative to the node's "bridges" region (the second bridge at +0x80000), which is what the powervr driver's A8X support reads (OrchardLinux/linux#165). Without the property that driver refuses to probe: "bad or missing apple,bridge-settings". Nothing happens on boards without an apple,t7001-gpu node, or where the ADT lacks the two properties or has them at another length.
This is a port of the patch the series was developed with on HoolockLinux's m1n1 (it did not apply here: kboot.c moved). The function runs right after dt_set_gpu().
Checked: builds with Orchard's m1n1 container (USE_CLANG=1 ARCH=aarch64-linux-gnu CHAINLOADING=1), and the new strings are in the binary. The Hoolock-based predecessor, with the same rows, ran on an iPad Air 2 (J81): the property reached the node and powervr probed. This exact build has not been booted yet; a second J81 owner reproduced the series with the same ported change (see the comments on OrchardLinux/linux#165).
Once merged, boot/m1n1/upstream.lock in orchard can move to the merge commit.
🤖 Generated with Claude Code