#
#asahi-dev · 2026-01-20 15:08
fl0_id___yuka, do you have this up somewhere, just in case it helps me? I will probably also test some mcc.c changes, as tz_regs seem different, and i don't know what device was used for those.
#asahi-dev · 2026-01-20 15:06
nickchant8120 = a16, t8122 = m3, t8130 = a17, t8132 = m4
#asahi-dev · 2026-01-20 15:04
svenm4, should be t8132 I think
#asahi-dev · 2026-01-20 15:02
Dcow[m]yuka: could you please remind what is T8123 is?
#asahi-dev · 2026-01-20 14:56
yukaOr, well, the debug_putc stops working after that, so I assume it hangs
#asahi-dev · 2026-01-20 14:56
yukanow it hangs at cpuhp_setup_state
#asahi-dev · 2026-01-20 14:55
yuka*parameters
#asahi-dev · 2026-01-20 14:54
yukalikely fixed one mistake in my device tree's aic node parameter
#asahi-dev · 2026-01-20 14:54
yukaI was able to map the uart mmio ranges in early boot and use debug_putc after enable_mmu, traced up to aic init
#asahi-dev · 2026-01-20 14:53
yukamade some progress on t8123:
#asahi-dev · 2026-01-20 09:39
nickchanand when doing that might end up finding a CNTPCT_EL0 equivlant too
#asahi-dev · 2026-01-20 09:29
kitlithjannau: https://gitlab.freedesktop.org/kitlith/mesa/-/commit/279e9caf1090017001c235ed3ef9a5dc0a2d6f19 -- i'm not entirely sure that filtering out virtio at this stage is strictly necessary. It does show up as platform bus, I'm pretty sure it'll fail anyway when trying to find the connector, as drm_info fails to get any useful information when running under muvm. But I guess there's also little reason not to filter it out at this stage, aside f
#asahi-dev · 2026-01-20 09:25
Shiznickchan: right, that tracks
#asahi-dev · 2026-01-20 09:20
nickchanfind_regs.py should list all the EL0 accessible regisetrs
#asahi-dev · 2026-01-20 09:20
nickchanespecially the EL0 accessible registers
#asahi-dev · 2026-01-20 09:18
nickchanand then the set bits experiment can get going
#asahi-dev · 2026-01-20 09:17
nickchanfrom how things are going in xnu source that register just had to exist....
#asahi-dev · 2026-01-20 09:17
nickchannoopwafel: maybe find a register that reads out 0x16e3600 (24 MHz) or 0x3b9aca00 (1 GHz) other than CNTFRQ_EL0
#asahi-dev · 2026-01-20 08:56
nickchanive seen the same register first referenced as acntrdir_el1 but later agtcntrdir_el1 and the encoding is the same
#asahi-dev · 2026-01-20 08:55
nickchanthough it seems that apple changed from A... to AGT...
#asahi-dev · 2026-01-20 08:51
nickchanBut if you run strings on a kernel then you can see it
#asahi-dev · 2026-01-20 08:51
nickchanfor example, agtcntrdir_el1 isn't anywhere in the public sources
#asahi-dev · 2026-01-20 08:45
nickchanthis is not all need to play with hw to know what the rest of the arch register clones are
#asahi-dev · 2026-01-20 08:45
nickchanhttps://github.com/apple-oss-distributions/xnu/blob/43a90889846e00bfb5cf1d255cdc0a701a1e05a4/osfmk/arm64/machine_routines.c#L2324
#asahi-dev · 2026-01-20 08:44
nickchaninstead of the arch ones
#asahi-dev · 2026-01-20 08:44
nickchanso for the other bits maybe go check their effect on *those* registers instead
#asahi-dev · 2026-01-20 08:43
nickchanShiz: i mean we know that there's a whole set of custom timer registers that's 1:1 to the arch ones likely with just with a different freq
#asahi-dev · 2026-01-20 08:42
nickchanbut ofc that's redacted
#asahi-dev · 2026-01-20 08:42
nickchanit must setting some of the bits in the hypervisor
#asahi-dev · 2026-01-20 08:42
Shizthe xnu source straight up sets the other bits to 0 too, wonder if that's meaningful
#asahi-dev · 2026-01-20 08:41
nickchanso if i had to guess bit[0] would have something to do with EL0
#asahi-dev · 2026-01-20 08:41
Shizright, okay
#asahi-dev · 2026-01-20 08:41
nickchanShiz: setting bit[1] sets the corresponding EL's timer to 24 MHz subject to VHE caveats
#asahi-dev · 2026-01-20 08:17
noopwafelI mean, if useful I could just play "set bits and see what happens"..
#asahi-dev · 2026-01-20 08:16
Shizsurely one of them is related to the architectural timer clock scaling
#asahi-dev · 2026-01-20 08:16
Shiznickchan: do we know what bit[1] does? :P
#asahi-dev · 2026-01-20 08:16
Shizyeah i was wondering, "slunds like you're describing smp" :p
#asahi-dev · 2026-01-20 08:15
noopwafelohhh jannau's tree also gets me _working serial from early boot_, amazing
#asahi-dev · 2026-01-20 08:13
noopwafelugh right SMP :D
#asahi-dev · 2026-01-20 08:13
chaos_princess14.latest seems fine?
#asahi-dev · 2026-01-20 08:12
noopwafeldoes anyone have some idea what might be a reasonable firmware target for m3? I am running with 14.8.3 and wondering if I am going to waste my time porting to that
#asahi-dev · 2026-01-20 08:12
chaos_princesssmt or smp? :P
#asahi-dev · 2026-01-20 08:09
noopwafeljannau: thanks, that gives me working SMT after just adding a minimal j613 dts which is a big improvement at least :)
#asahi-dev · 2026-01-20 07:57
jannauack, that doesn't mean I know what the bit does. switched the PR to draft
#asahi-dev · 2026-01-20 07:55
nickchani see you set them in the PR
#asahi-dev · 2026-01-20 07:55
jannaunickchan: I still don't know, I didn't find time yet to look at it
#asahi-dev · 2026-01-20 07:54
nickchanseems like jannau figured them out
#asahi-dev · 2026-01-20 07:53
nickchanso what does bit[0] of AGTCNTRDIR_EL{1,2,12} do after all
#asahi-dev · 2026-01-20 07:52
noopwafelyep .. I have no i2c0
#asahi-dev · 2026-01-20 07:52
jannaumoved the usb-c ports (not enabled) to the device .dts since j504 should be the only m3 device with i2c USB-PD port controllers

plus ›