#
#asahi-dev · 2026-04-09 15:34
chaos_princessand you shouldn't care about pio-ranges, that is v2 specific
#asahi-dev · 2026-04-09 15:32
tryhard[m]great
#asahi-dev · 2026-04-09 15:32
chaos_princessyes
#asahi-dev · 2026-04-09 15:32
tryhard[m]so i should probably only care about t8103.dtsi
#asahi-dev · 2026-04-09 15:31
chaos_princessas that is two Mx Max glued together
#asahi-dev · 2026-04-09 15:31
chaos_princessfor t600x there is a complicated setup to avoid copy-paste for Mx Ultra
#asahi-dev · 2026-04-09 15:30
tryhard[m]at different dtsi files
#asahi-dev · 2026-04-09 15:30
tryhard[m]tho looking at your pr i can see you put similar pio ranges but a bit different
#asahi-dev · 2026-04-09 15:29
chaos_princessair is j313 iirc
#asahi-dev · 2026-04-09 15:29
chaos_princessthe "i" at the end means "include", it is pulled from other dts files
#asahi-dev · 2026-04-09 15:29
chaos_princesst8103.dtsi is for everything that uses the vanilla m1
#asahi-dev · 2026-04-09 15:28
tryhard[m]i assume they're similar
#asahi-dev · 2026-04-09 15:28
tryhard[m]i modified t8103.dtsi, but there is like others for mini or pro
#asahi-dev · 2026-04-09 15:28
tryhard[m]alright. also, which .dtsi files should i modify? i only have access to m1 air
#asahi-dev · 2026-04-09 15:27
chaos_princessfor t8103 darts it is "AIC_IRQ number-from-adt-here IRQ_TYPE_LEVEL_HIGH"
#asahi-dev · 2026-04-09 15:26
tryhard[m]like this AIC and whats after
#asahi-dev · 2026-04-09 15:26
tryhard[m]but there is more stuff
#asahi-dev · 2026-04-09 15:25
chaos_princessdart sends interrupts on violations and some other things. just copy the number from adt
#asahi-dev · 2026-04-09 15:25
tryhard[m]its also in pmp_dart
#asahi-dev · 2026-04-09 15:24
chaos_princesswhich ones, for the asc mailbox?
#asahi-dev · 2026-04-09 15:24
tryhard[m]this dtsi thing is tedious i need some intern to do this kind of stuff
#asahi-dev · 2026-04-09 15:24
tryhard[m]also, about the interrupts numbers, where can i find what they mean?
#asahi-dev · 2026-04-09 15:23
tryhard[m]don't worry i'm also embarrassing
#asahi-dev · 2026-04-09 15:23
chaos_princess(that took me an embarrassing amount of time to figure out)
#asahi-dev · 2026-04-09 15:23
tryhard[m]yeah that's right
#asahi-dev · 2026-04-09 15:23
chaos_princessyou probably also don't need to subtract one
#asahi-dev · 2026-04-09 15:22
tryhard[m]yeah i just need to change it id2
#asahi-dev · 2026-04-09 15:20
chaos_princessas that uses the pmgr ids
#asahi-dev · 2026-04-09 15:20
chaos_princessbut those are inapplicable for v1
#asahi-dev · 2026-04-09 15:20
chaos_princesshttps://github.com/asahilinux/m1n1/blob/main/proxyclient/tools/pmp_assist.py#L33
#asahi-dev · 2026-04-09 15:19
tryhard[m]chaos_princess: from where did you get the addresses for the different pmp_report?
#asahi-dev · 2026-04-09 12:21
chaos_princessyes
#asahi-dev · 2026-04-09 12:19
tryhard[m]and then its accessed by dev.fwnode()?
#asahi-dev · 2026-04-09 12:15
chaos_princesslook at how everything else in t8103.dtsi is done
#asahi-dev · 2026-04-09 12:15
chaos_princessno, those are put into dts files
#asahi-dev · 2026-04-09 12:12
tryhard[m]in kboot.c
#asahi-dev · 2026-04-09 12:12
tryhard[m]do i need to parse pmp registers as well?
#asahi-dev · 2026-04-09 11:56
l1rox3[m]Hey, I've been looking into the SPTM on M4 (t8132) and put together an experimental m1n1 patch that tries to handle the SPTM bootstrap sequence. It's very much a work in progress and untested. If anyone happens to have an M4 Mac and a UART cable and wouldn't mind flashing a test binary and sharing the serial output, I'd love to see what happens. No worries if not. Feel free to DM me.
#asahi-dev · 2026-04-09 11:22
tryhard[m]got it. thx
#asahi-dev · 2026-04-09 11:21
chaos_princessyes. look at how gpu/aop/pmp v2 drivers use "device properties"
#asahi-dev · 2026-04-09 11:21
tryhard[m]then i access the fdt?
#asahi-dev · 2026-04-09 11:20
tryhard[m]oh alright
#asahi-dev · 2026-04-09 11:20
chaos_princessuse m1n1's kboot.c to copy data from adt to fdt
#asahi-dev · 2026-04-09 11:20
chaos_princessyou don't. neither from rust nor c.
#asahi-dev · 2026-04-09 11:20
tryhard[m]no, in the kernel
#asahi-dev · 2026-04-09 11:18
chaos_princessin m1n1?
#asahi-dev · 2026-04-09 11:16
tryhard[m]is there a way to access adt from rust? or should i just hardcode the data
#asahi-dev · 2026-04-08 19:48
tryhard[m]ill check it out, thx
#asahi-dev · 2026-04-08 19:44
chaos_princessright, so look at how pmp v2 driver hooks up into device power tree
#asahi-dev · 2026-04-08 19:43
tryhard[m]we need to notify pmp whenever we turn off/on different units

plus ›