Repository navigation
arm64: dts: apple: t6050-j716c: map die 0's second MMIO window - #3662
Conversation
On the J716c the shared T6050 inventory is placed in die 0's soc node, not in a unit-less /soc with identity ranges. Die 0's bus only maps 0x2_0000_0000 + 16 GiB, so nodes in the die's second MMIO window (0x22_2000_0000 + 7.5 GiB: media, JPEG, encoder) have no translatable reg. Since t6050-media.dtsi enabled the JPEG and encoder nodes and their DARTs, the DARTs probe without a MEM resource and apple-dart oopses on it at boot. Map the window 1:1 in die 0's ranges on this board. Its physical base and size are those of the J716c ADT's /arm-io ranges[1]. Every reg in the J716c DTB now translates; the other T6050 DTBs are unchanged. Fixes: 88d188d ("arm64: dts: apple: t6050: enable the media engines on every board") Signed-off-by: Erik Bourget <[email protected]>
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
There was a problem hiding this comment.
Verdict: HOLD at 03b510a3 — DT fix is clean; waiting on hosted dt-checks / host-tests at head.
Blockers:
- Hosted CI at
03b510a3(dt-checks,host-tests,readiness) is still queued (pr-textpassed). Ready to approve oncedt-checkscompletes cleanly.
Checked:
- Audited the single-file, board-only diff (
arch/arm64/boot/dts/apple/t6050-j716c.dts,+12/-0, DCOSigned-off-bypresent,MERGEABLEonmain):- Adds die 0's second MMIO window
<0x22 0x20000000 0x22 0x20000000 0x1 0xe0000000>([0x22_2000_0000, 0x24_0000_0000), 1:1) to&die0(soc@200000000), fixing#3618wherejpeg/ave0DARTs at0x22_8xxx_xxxxhad no translatable MEM resource and causedapple_dart_probe()to oops at boot onmain. - Confirmed
rangesreserves no MMIO so sibling bus overlap is benign and matches the identity/socon other T6050 boards.
- Adds die 0's second MMIO window
- Verified exact-head
03b510a3b6a1J716c M5 Max boot row PASS (boots to desktop, all 3 DARTs probe,jpeg0/jpeg1bind, 0 oopses, 0 new failed units vs daily; offline FDT translation confirms 0 untranslatableregentries ont6050-j716cand all 10 other T6050 DTBs byte-identical).
Evidence
arch/arm64/boot/dts/apple/t6050-j716c.dtsL67–L70:&die0rangesadds<0x22 0x20000000 0x22 0x20000000 0x1 0xe0000000>, isolated strictly to J716c.
There was a problem hiding this comment.
Verdict: MERGE at 03b510a3
Blockers: none
Checked:
- Hosted
dt-checks,host-tests,pr-text, andreadinesschecks at03b510a3have all passed, clearing the priorHOLD. - Single-file, board-only diff (
arch/arm64/boot/dts/apple/t6050-j716c.dts,+12/-0, DCOSigned-off-bypresent) adds die 0's second MMIO window (<0x22 0x20000000 0x22 0x20000000 0x1 0xe0000000>) to&die0, fixing#3618boot oops inapple_dart_probe(). - Exact-head
03b510a3b6a1J716c M5 Max boot row passes (boots to desktop, all 3 media DARTs probe,jpeg0/jpeg1bind, 0 oopses, 0 new failed units; 0 untranslatableregentries ont6050-j716cand all 10 other T6050 DTBs byte-identical).
Evidence
dt-checks(46319827171),host-tests,pr-text, andreadiness:SUCCESSat03b510a3b6a19d86bd49116067b0fbf57cac9300.- Companion merge order: land
#3662ahead of#3663so J716c boots cleanly onmainand closes#3618.
RyanTheTide
left a comment
There was a problem hiding this comment.
Approving at 03b510a3. This fixes the J716c regression from #2278, which enabled jpeg0/jpeg1, ave0 and their DARTs without checking that their reg translates on the J716c's die-0 bus. Sorry for that.
Checked:
- The added window matches T6050
/arm-ioranges[1]. The J873S 27.0 ADT has parent0x22_2000_0000, size0x1_e000_0000, the same base and size used here, mapped 1:1 like window 0. - Only
t6050-j716c.dtschanges. Your table shows the other ten T6050 DTBs byte-identical, with 0 untranslatableregentries before and after. So K114s/K116s/J714s/J873S, where #2278's rows ran, are untouched. - Agreed that an ave0-only disable (#3618's first trial) would not be enough, because the JPEG DART sits in the same window.
- The two remaining J716c probe errors (AVE0 DATA alias, AVD
-ENOENTfirmware file) are on nodes the daily never enabled, and they fail cleanly. They are not regressions from this PR. I'll track the AVE0 DATA alias on #3618's follow-up.
|
Merging at |
What: On the J716c, the shared T6050 nodes sit in die 0's
soc@200000000bus, and that bus maps only0x2_0000_0000+ 16 GiB. Since the media engines were enabled on every board (#2278), the JPEG and encoder DARTs at0x22_8xxx_xxxxprobe without a register resource, and apple-dart oopses at boot. This adds die 0's second MMIO window to that bus on the J716c. Fixes #3618Tested: J716c M5 Max at 03b510a: boots to the desktop (main without it never gets past the logo); JPEG/encoder DARTs probe, jpeg0/jpeg1 bind; 1 failed unit and 0 new kernel errors vs the J716c daily, except the two media probe errors listed under Not yet
Risk: two-way door · J716c only (the other ten T6050 DTBs are byte-identical)
Not yet: deep sleep on main still resets on this board until the sleep entry lowers VENC1_SYS (companion PR #3663); the AVE0 encoder still fails its probe on the J716c (
firmware DATA alias is missing or invalid; separate issue, unchanged by this PR), so its power domains stay insync_state() pending; AVD needs its firmware file installed (-ENOENT)Details
t6050-peripherals.dtsicreates the identity-mapped unit-less/socon every board except the J716c, so on the J716c&{/soc}resolves to die 0'ssoc@200000000(ranges = <0x2 0x0 0x2 0x0 0x4 0x0>). Nodes in the die's second window have no translatablereg: Linux names themsoc@200000000:iommu@22830a0000, and their platform devices get no MEM resource. Before #2278 every such node was disabled. #2278 enabledjpeg0/jpeg1,ave0and their three DARTs, andapple_dart_probe()dereferences the missing resource.The added entry maps that window 1:1. Its physical base and size (
0x22_2000_0000,0x1_e000_0000) are those of the J716c ADT's/arm-ioranges[1].rangesreserves no MMIO, so the overlap with the sibling busessoc@2300000000andsoc@2308000000claims nothing; the other boards already overlap them with their identity/soc.The AVE0-only disable proposed on #3618 would not be enough: the two AVE0 DARTs and the JPEG DART are separate enabled nodes in the same window, and they oops the same way.
Evidence
Trial kernel 7.3.0-ewb401+ = main 972a566 + 03b510a, the J716c build config with
CONFIG_VIDEO_APPLE_AVE/JPEG/PRORES=m, booted once through a watchdog-armed trial loader. The command line is the default pluswatchdog.open_timeout=120(the trial dead-man).No
Unable to handle/Internal error/Oopsin dmesg.systemctl is-system-running:degraded, fromaurora-peripherals.serviceonly, which fails the same way on the J716c daily (7.3.0-ewb342+). Kernel errors at err level and above: 4 unique lines. Two match the daily (systemd-gpt-auto-generator); the other two are the AVE0 DATA-alias error above andavd 2309080000.avd: probe with driver avd failed with error -2, from nodes the daily does not enable. No SELinux on this install.Without this change, main (de965eb, booted the same way on this Mac with a console attached) oopses at about 0.22 s in
apple_dart_probe()forsoc@200000000:iommu@22830a0000(no MEM resource), before the console comes up.Offline: an FDT walker translated every
regof every node under a simple-bus, for each T6050 board DTB built from 972a566 with and without the commit:rangesonlycheckpatch.pl -g HEAD: 0 errors, 0 warnings.