#asahi-dev · 2026-04-11 21:22
tryhard[m]i thought at first to use pmdomain in rust but it seems there are no bindings for it#asahi-dev · 2026-04-11 21:20
tryhard[m]chaos_princess: ok that's good.#asahi-dev · 2026-04-11 21:19
tryhard[m]because i need to send the devpwr messages whenever the kernel asks for.#asahi-dev · 2026-04-11 21:03
tryhard[m]i need then to send a message through rtkit, but i think that the main driver is already initializaing rtkit so it might not be a good idea to reinit in c?#asahi-dev · 2026-04-11 19:04
tryhard[m]it justs seems that apple_pmp_report_of_match uses those#asahi-dev · 2026-04-11 19:02
tryhard[m]so what are those apple_pmp_report_offsets?#asahi-dev · 2026-04-11 18:53
tryhard[m]yes i saw that. then i guess the job is simpler now. although i don't understand how exactly i get the reporting in the driver from the dtsi.#asahi-dev · 2026-04-11 18:48
tryhard[m]chaos_princess: where do you actually send the messages in your driver for devpwr?#asahi-dev · 2026-04-10 13:23
tryhard[m]uh gotcha#asahi-dev · 2026-04-10 13:22
tryhard[m]then what should i set the names#asahi-dev · 2026-04-10 13:21
tryhard[m]its like 45 regions#asahi-dev · 2026-04-10 13:21
tryhard[m]yeah but idk the names#asahi-dev · 2026-04-10 13:19
tryhard[m]chaos_princess: great. also, just to confirm, using `resource_by_index` for getting the regions is correct right?#asahi-dev · 2026-04-10 13:18
tryhard[m]chaos_princess: mhmm yet#asahi-dev · 2026-04-10 13:09
tryhard[m]whats the equiv of self.asc.dart.iomap_at(0, dva, addr, size) in rust?#asahi-dev · 2026-04-09 17:46
tryhard[m]i dont think so#asahi-dev · 2026-04-09 17:42
tryhard[m]v1#asahi-dev · 2026-04-09 17:40
tryhard[m]regs in pmp#asahi-dev · 2026-04-09 17:40
tryhard[m]chaos_princess: what are the 3 first regions in regs? first one is pmp region, second is asc i think, and what is the third one?#asahi-dev · 2026-04-09 15:47
tryhard[m]i guess it has its use cases #asahi-dev · 2026-04-09 15:44
tryhard[m]i mean i don't think pmp is something that an atomic context is helpful#asahi-dev · 2026-04-09 15:43
tryhard[m]thats specific#asahi-dev · 2026-04-09 15:42
tryhard[m]whats the logic#asahi-dev · 2026-04-09 15:40
tryhard[m]uh ok#asahi-dev · 2026-04-09 15:39
tryhard[m]i thought this is the one that reports to pmp about different units#asahi-dev · 2026-04-09 15:37
tryhard[m]also, why did you choose that address and reg for:... (full message at <https://matrix.org/oftc/media/v1/media/download/AQd6gpJGES5O6FXNXjpfMbXwR0PyTXQ_V_qsSnDN0iHJto1jipaXmXYhaBa2PxHXK0Nf-R0vguQIqZHdjbG0l3hCeduv176wAG1hdHJpeC5vcmcvYnRpYUdIR1NHT1VIdWZDa3JKeE1XeXdQ>)#asahi-dev · 2026-04-09 15:35
tryhard[m]tho it appears in the adt#asahi-dev · 2026-04-09 15:32
tryhard[m]great#asahi-dev · 2026-04-09 15:32
tryhard[m]so i should probably only care about t8103.dtsi#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: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: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
tryhard[m]its also in pmp_dart#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
tryhard[m]yeah that's right#asahi-dev · 2026-04-09 15:22
tryhard[m]yeah i just need to change it id2#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:19
tryhard[m]and then its accessed by dev.fwnode()?#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:22
tryhard[m]got it. thx#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
tryhard[m]no, in the kernel