#asahi-dev · 2026-04-15 13:58
tryhard[m]its still not an issue#asahi-dev · 2026-04-15 13:58
chaos_princessno, it needs the place to store it's own stuff#asahi-dev · 2026-04-15 13:58
tryhard[m]the bus driver could just check if drvdata was set#asahi-dev · 2026-04-15 13:57
chaos_princessthose bus drivers do not touch drvdata (i think?)#asahi-dev · 2026-04-15 13:57
tryhard[m]in c though its possible#asahi-dev · 2026-04-15 13:57
chaos_princessthat place ain't yours :P#asahi-dev · 2026-04-15 13:56
chaos_princesscause bus driver also sets it.#asahi-dev · 2026-04-15 13:56
tryhard[m]why i cant set drvdata#asahi-dev · 2026-04-15 13:56
tryhard[m]why is it like that#asahi-dev · 2026-04-15 13:56
tryhard[m]thats smart #asahi-dev · 2026-04-15 13:53
chaos_princessthe same thing as aop does, it returns the thing from the probe() fn, and the bus driver writes it to drvdata#asahi-dev · 2026-04-15 13:52
tryhard[m]i need to write to driver data#asahi-dev · 2026-04-15 13:52
tryhard[m]so what the squid should i do#asahi-dev · 2026-04-15 13:48
chaos_princessapparently you can't use set_drvdata from drivers, it is only for the bus code#asahi-dev · 2026-04-15 13:41
tryhard[m]sent a code block: https://matrix.org/oftc/media/v1/media/download/ARIgv53lbFtcUrDr6z_pljhZO6TVXMtPp58D8oalkTy0KvDLm81GgzkSLCJn5kqUeqdQsUWpXor0M3oC-C0x7hJCed2XkLOQAG1hdHJpeC5vcmcvQWhzVVpXaU5meXVsRUZsdWJNdHlQbERl#asahi-dev · 2026-04-15 08:15
yukaeven though they are both from the boot core#asahi-dev · 2026-04-15 08:15
yukaI also noticed my regs_boot_core and regs_full dumps have some different values in the s3_6_c15_c{12,13,14}_* range#asahi-dev · 2026-04-15 08:13
svenmuch of the s3_0_c11_c smells like CTRR stuff to me#asahi-dev · 2026-04-15 07:50
chaos_princessdoes xnu write to those anywhere?#asahi-dev · 2026-04-15 07:44
svenbut maybe it just moved to a different place for the secondaries#asahi-dev · 2026-04-15 07:44
sveni dont think i saw any chicken setup in either SPTM or XNU for m4#asahi-dev · 2026-04-15 07:32
yukaBut if the chickens are initialized by iboot on the boot core but not on the other cores that would in general make sense that the other cores behave weirdly#asahi-dev · 2026-04-15 07:31
yukaI'm not sure if I didn't find all wfis but I'm definitely still getting some register corruption unless I compile with pretty much all drivers and features disabled#asahi-dev · 2026-04-15 07:25
yukaSo lots of s3_0_c11_c*_* which differ between core 6 (boot core) and 7, but are the same between 7 and 8. but all are readonly.#asahi-dev · 2026-04-15 07:22
yukahttp://yuyu.yuka.dev/public/regs_core0#asahi-dev · 2026-04-15 07:22
yukaAnd also the regs of an e-core:#asahi-dev · 2026-04-15 07:19
yukahttp://yuyu.yuka.dev/public/regs_full2#asahi-dev · 2026-04-15 07:19
yukaalso did the readonly check on a secondary core to be sure#asahi-dev · 2026-04-15 07:18
yukathe others are just the values on different cores#asahi-dev · 2026-04-15 07:18
yukaregs_full is with the readonly / el2-only checks#asahi-dev · 2026-04-15 07:18
yukahttp://yuyu.yuka.dev/public/regs_full#asahi-dev · 2026-04-15 07:18
yukahttp://yuyu.yuka.dev/public/regs_core8#asahi-dev · 2026-04-15 07:18
yukahttp://yuyu.yuka.dev/public/regs_core7#asahi-dev · 2026-04-15 07:17
yukahttp://yuyu.yuka.dev/public/regs_boot_core#asahi-dev · 2026-04-15 07:16
svensure, I’m curious about the differences #asahi-dev · 2026-04-14 22:38
yukaanyways thanks for the hints, heading to bed#asahi-dev · 2026-04-14 22:27
yukaIn fact, all regs which differ between the boot cpu and a secondary cpu are readonly, so it is going to be difficult to find out which one we would need#asahi-dev · 2026-04-14 22:21
yukashould I upload the dumps somewhere?#asahi-dev · 2026-04-14 22:20
yukaalmost everything is readonly#asahi-dev · 2026-04-14 22:19
yukaso I can compare 3-way#asahi-dev · 2026-04-14 22:19
yukaI now have dumps of the boot core, and two other p-cores#asahi-dev · 2026-04-14 21:39
yukaof the boot core at least#asahi-dev · 2026-04-14 21:39
yukaok, dumped the regs#asahi-dev · 2026-04-14 21:37
yukathe exception handler crashes#asahi-dev · 2026-04-14 21:35
yukawill decrease the size of the insns blocks#asahi-dev · 2026-04-14 21:34
yukaUartTimeout as soon as the first u.exec(insns, ...) runs#asahi-dev · 2026-04-14 21:33
multipla1234[m]project!#asahi-dev · 2026-04-14 21:33
multipla1234[m]Hi! I just joined the channel to get some more insights on M4 bringup. Luckily at the right time. It seems I was able to live witness a milestone! Congrats! I dont think an unexperienced dev like me could help a lot in this stage but if there is let me know. I only have experience in some kernel driver development for nvidia jetson devices and having a M4 Mini myself. Anyway, congrats! Thanks for all the effort that is put into this#asahi-dev · 2026-04-14 21:09
chaos_princesshttps://github.com/AsahiLinux/m1n1/blob/main/proxyclient/m1n1/find_regs.py