Repository navigation
Conversation
t6050-peripherals.dtsi places the T6050 media nodes (ave0, ave0_dart, ave0_dart1, jpeg0, jpeg1, jpeg0_dart, scaler0, scaler1) under &die0 on J716c, while t6050-base.dtsi only maps 0x02_00000000..0x05_ffffffff in die0's ranges property. Without a translation entry covering 0x22_00000000..0x23_ffffffff, OF address translation fails for every die-0 child whose reg property lies in that window (such as ave0 at 0x22_82000000 and jpeg0_dart at 0x22_81020000), leaving those devices without their primary MMIO resource when enabled. Add the 1:1 0x22_00000000..0x23_ffffffff translation window to &die0 in t6050-j716c.dts so all die-0 upper MMIO nodes translate cleanly without affecting J714c. Signed-off-by: Erik Bourget <[email protected]>
There was a problem hiding this comment.
The 2-cell identity translation covers the two tested upper-aperture resources and retains the lower range. The shared t6050-peripherals.dtsi declares both registers, and t6050-j714s.dts also enables jpeg0_dart and ave0. That DTS has no die0 ranges override at this revision. Checking that J714c is byte-identical does not settle the J714s gap. Please compare the effective ranges and translated resources for J716c and J714s. If both have the same aperture, add the mapping to the appropriate shared die description and verify the changed DTBs. If apertures differ, document the address-map evidence for scoping it to J716c. Hosted DT schema checks are still queued.
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
|
There is no J714s translation gap at In
Comparing the compiled DTBs (
Scoping the |
|
Merge-train status at |
There was a problem hiding this comment.
Verdict: MERGE at e82ed13.
Checked: The earlier review assumed both machines put the media nodes under die0. At this head the shared include directs J714s to /soc with empty identity ranges and J716c to die0. The J716c override preserves the low window and adds the upper identity window without changing the common die map. The author supplied compiled-DTB paths and resource translations for both, with zero untranslated entries over eleven T6050 DTBs. Hosted dt-checks and host-tests pass.
|
Subsequently approved at Also verified at
Hardware verification update:
|
|
Closing in favour of #3662, which makes the same J716c fix: it adds die 0's second MMIO window to |
What: Extend
&die0rangesinarch/arm64/boot/dts/apple/t6050-j716c.dtsto include the upper0x22_00000000..0x23_ffffffffMMIO window so media and upper-MMIO nodes placed under&die0on J716c (jpeg0_dart,jpeg0,jpeg1,ave0,ave0_dart,ave0_dart1,scaler0/1,apr1_dart,error_handler, andperipheral_clocksupper banks) translate cleanly instead of failing OF address translation. Companion to#3395(feat/ave-t6050-26b123), and required onmainafter#2278enabledt6050-media.dtsion J716c.Tested: At
e82ed13d64e7(and clean merge withorigin/main18058ea228e2):checkpatch --strict, all 11t6050-*.dtbtargets build (W=1 CHECK_DTBS=y,0untranslatedregresources,0new warnings ont6050-j716c.dtb, 10 non-J716c DTBs byte-identical), and hosteddt-checks/host-tests/pr-text/readinesspass. J716c (16-inch M5 Max, T6050) ate82ed13d64e7(standalone probe row + paired with#3395in batched trial kernel3545ebecb76f, hunk-identical):2281020000.iommu(2281020000-228102bfffin/proc/iomem),22830a0000.iommu,2283080000.iommu,2281000000.jpeg,2281060000.jpeg, and2283100000.video-encoderbind and translate with all 8 observed upper-MMIO/proc/iomementries present, 1080p30 H.264/HEVC encodes pass,venc0-sysoff-0at idle,0warnings on the standalone probe, initial boot smoke snapshot clean (1failed system unitaurora-peripherals.service, same as baseline warm reboots; later checks recorded additional messages).Risk: two-way door · J716c (16-inch M5 Max) only
Revert:
git revert -m 1 <merge-commit>removes the&die0rangesoverride fromarch/arm64/boot/dts/apple/t6050-j716c.dts, restoring the lower-only0x2..0x5_ffffffffwindow fromt6050-base.dtsi; no persistent on-disk or firmware state is written.Not yet: all other T6050 boards (
J714s,J714c,J716s,J775c,J775d,J873s,K114c,K114s,K116c,K116s) and all non-T6050 Mac families are untested on hardware here becauset6050-j716c.dtsis J716c-only and every other DTB is byte-for-byte unchanged.Details
t6050-base.dtsimaps only die 0's lower0x2..0x5_ffffffffwindow (ranges = <0x2 0x0 0x2 0x0 0x4 0x0>;) indie0: soc@200000000. Int6050-peripherals.dtsi,#ifndef T6050_J716Ccreates a unit-less/socbus with an emptyranges;(1:1 identity translation across the full address space) and attachesperipheral_clocksand the0x22..0x23upper-MMIO media/peripheral nodes (jpeg0_dart,jpeg0,jpeg1,ave0,ave0_dart,ave0_dart1,ave1,ave1_dart,ave1_dart1,scaler0,scaler0_dart,scaler1,scaler1_dart,apr1_dart,error_handler) to&{/soc}on J714s and every other non-J716c T6050 board.Only
T6050_J716Cskips/socand attaches those nodes directly under&die0(soc@200000000) so loader/socpath lookups resolve unambiguously. Extending&die0rangeswith<0x22 0x0 0x22 0x0 0x2 0x0>int6050-j716c.dtscovers the upper die-0 MMIO aperture (0x22_00000000..0x23_ffffffff) for J716c while leaving J714s (already translated 1:1 via/soc { ranges; }) and all other T6050 DTBs unchanged.Companion / merge order:
#2278(merged onmain) enablesave0,ave0_dart,ave0_dart1,jpeg0_dart,jpeg0, andjpeg1on J716c and the boards that includet6050-media.dtsi(10 direct includes across 11 T6050 boards;t6050-j775c.dtsdoes not include it);#3396provides the&die0upper-MMIO translation needed for those nodes on J716c, and#3395(feat/ave-t6050-26b123) admits the J716c26B123AVE firmware build.Evidence
e82ed13d64e7:scripts/checkpatch.pl --strict --git e82ed13d64e7~1..e82ed13d64e7:0 errors, 0 warnings, 0 checks(15lines checked).apple/t6050-*.dtbtargets (j714c,j714s,j716c,j716s,j775c,j775d,j873s,k114c,k114s,k116c,k116s) withW=1 CHECK_DTBS=y:0new warnings ont6050-j716c.dtb(7pre-existing: 6unit_address_vs_regint6050-j716c-gpu-panel.dtsiand 1simple_bus_regonpmp@284e00000),0schema warnings onsoc@200000000or itsranges.sha256comparison (e82ed13d64e7~1vse82ed13d64e7) across all 11t6050-*.dtbfiles: onlyt6050-j716c.dtbchanged (8f55dd4c16d8->e97532284dd8); all 10 non-J716c DTBs are byte-identical.t6050-j716c.dtbvst6050-j714s.dtb):/soc@200000000(ranges = <0x02 0x00 0x02 0x00 0x04 0x00 0x22 0x00 0x22 0x00 0x02 0x00>) parentsiommu@2281020000,jpeg@2281000000,jpeg@2281060000,video-encoder@2283100000,iommu@22830a0000, andiommu@2283080000; no/socnode exists./soc(ranges;, 1:1 identity) parents those nodes;/soc@200000000(ranges = <0x02 0x00 0x02 0x00 0x04 0x00>) contains only0x02..0x05_ffffffffnodes.origin/main(18058ea228e2, including#2278t6050-media.dtsi):git merge origin/mainmerged cleanly with0conflicts; all 11apple/t6050-*.dtbtargets built withW=1 CHECK_DTBS=y(0new warnings ont6050-j716c.dtb) and0untranslatedregentries across every/soc*bus (829–922regentries checked per DTB;869ont6050-j716c.dtb).e82ed13d64e7:dt-checks,host-tests,pr-text, andreadinessallSUCCESS; approved ate82ed13d64e7(technically resolving the J714s/socobjection from the earlier changes-requested review, while GitHub still reportsREVIEW_REQUIRED/BLOCKED).e82ed13d64e7:e82ed13d64e7):/sys/bus/platform/devices/2281020000.iommupresent;/proc/iomem:2281020000-228102bfff : 2281020000.iommu dart;apple-ave 2283100000.video-encoderprobed cleanly with H.264/HEVC encode passing and0kernel warnings.origin/mainb897ccb4e71cplus 18 open PR heads, commit3545ebecb76f;t6050-j716c.dtsis hunk-identical there): kernel image SHA-256d56efde4c7232208bd29d5c4e5890319e0050595dd4f4b1c3844df6656a08312, one-shot Stage 2 SHA-256b7d99286395ddd7dadccc6d9593f4bd55391d9e787af97c18b45f58688d9885d(default Stage 221edee972e1ff1718c6f41c32b91ee151afdc58cbb69f16f2f6a4d8d4c722170and default kernel untouched):2281020000.iommu,22830a0000.iommu,2283080000.iommubound toapple-dart,2281000000.jpegand2281060000.jpegtoapple-jpeg(JPEG encoder, HWREV 0x110010),2283100000.video-encodertoapple-ave(26B123,d33ed3b4), with all 8 observed/proc/iomementries present:2281000000-2281003fff : 2281000000.jpeg jpeg@22810000002281020000-228102bfff : 2281020000.iommu dart2281060000-2281063fff : 2281060000.jpeg jpeg@22810600002283050000-2283053fff : 2283100000.video-encoder mailbox2283080000-228308bfff : 2283080000.iommu dart22830a0000-22830abfff : 22830a0000.iommu dart2283100000-228355bfff : 2283100000.video-encoder codec2283800000-2283ffffff : 2283100000.video-encoder coprocPlus 1080p30
h264_v4l2m2mandhevc_v4l2m2mencodes,venc0-sysoff-0at idle. 5-item smoke: displayeDP-13456x2234@120 enabled; input Apple MTP keyboard, trackpad and SMC lid devices enumerated (not exercised remotely); networkingwlan0connected, 0% loss over 3 pings; permitted audio sinkAppleJ716+AppleJ716HPAIpresent withspeakerguarddv2 active (no playback outside thelinux#3085row); GPU BorealisApple M5 Max (G17C B1),renderD128,vkcube --c 180 --wsi waylandclean.1failed system unit (aurora-peripherals.service, same as baseline warm reboots;0new failed units),0failed user units,0LSM denials (no SELinux/AppArmor loaded),0Oops/BUG/fault lines; initial boot smoke snapshoterr+40lines against55on the default boot, none that the default boot lacks (apple-dcp ... unable to match service ...,systemd-gpt-auto-generator; later checks in the session recorded additional messages). Redacteddmesgexcerpt:[ 1.250760] sn201202x 1-08: port controller ready;[ 2.677310] apple-ave 2283100000.video-encoder: firmware build 26B123 (TEXT 0x158000 CRC d33ed3b4, DATA 0x134000);[ 5.907044] apple-dcp 392e00000.dcp: RTKit: syslog message: ... fControllerPowerState 0 ...;[ 135.265810] PM: suspend entry (s2idle)/[ 140.691796] PM: suspend exit(pm_test=devices).