#
✕ nick:nickchan
#asahi-dev · 2026-07-06 09:10
nickchanokay, got 4 level paging to work properly now
#asahi-dev · 2026-07-06 09:01
nickchannvm I missed the l3d += BIT(VADDR_L3_OFFSET_BITS)
#asahi-dev · 2026-07-06 09:00
nickchansince every L3 page in the originally L2 mapping would just get translated to the first L3 page
#asahi-dev · 2026-07-06 08:58
nickchan...which would break the originally L2 mapping other than the first L3 page of it
#asahi-dev · 2026-07-06 08:58
nickchanBut the way this code works right now if the vaddr is currently mapped using a L2 block, when remapping the output address (paddr) of the L3 entries would all be the same
#asahi-dev · 2026-07-06 08:57
nickchanand if the the vaddr is currently mapped using a L2 block entry then it is remapped using L3
#asahi-dev · 2026-07-06 08:57
nickchanerm, vaddr
#asahi-dev · 2026-07-06 08:56
nickchanif i understand this code correctly this function returns the L3 of a paddr
#asahi-dev · 2026-07-06 08:56
nickchanhttps://github.com/AsahiLinux/m1n1/blob/4c47636d53998da65a57aa69cf7bc06f8b8bcd7e/src/memory.c#L241
#asahi-dev · 2026-07-06 08:06
nickchanin particular that find_regs.py
#asahi-dev · 2026-07-06 08:05
nickchanenable el3's mmu is also useful for python scripting purposes
#asahi-dev · 2026-07-06 08:02
nickchanif I ever enable mmu in EL3 for psci stuffs having to keep multiple megabytes of reserved pagetable is not ideal
#asahi-dev · 2026-07-06 08:01
nickchansven: so m1n1's 4K paging is not scuffed
#asahi-dev · 2026-07-06 07:59
nickchanhopefully no 5level paging on apple silicon anytime soon
#asahi-dev · 2026-07-06 07:55
nickchanso I need to implement 4level paging in m1n1 which I think is overdue anyways
#asahi-dev · 2026-07-06 07:46
nickchanm1 would be annoying without nested virt
#asahi-dev · 2026-07-06 07:43
nickchanso how to fix tlb flush
#asahi-dev · 2026-07-06 07:41
nickchan🎉
#asahi-dev · 2026-07-06 07:32
nickchanand not have that 4 MiB worth of pagetable blob
#asahi-dev · 2026-07-06 07:32
nickchan...I would actually have to do 4k paging properly
#asahi-dev · 2026-07-06 07:32
nickchannow if i ever had to turn on EL3 mmu that's even more fun in the pagetables because m1n1's 4K paging works by allocating like 4 MiB worth of static pagetables
#asahi-dev · 2026-07-06 07:30
nickchanchadmed: m1n1 is already installed in EL3 on A7-A9, it just does not do anything at all now
#asahi-dev · 2026-07-06 07:13
nickchannot many platforms get you EL3 access
#asahi-dev · 2026-07-06 07:12
nickchaneven more so for A7-A9 where i could play with having a real EL3
#asahi-dev · 2026-07-06 07:12
nickchanthis is going to be fun for pre-M1
#asahi-dev · 2026-07-06 07:01
nickchanthough... is the resident/entry/exit latency all made-up?
#asahi-dev · 2026-07-06 07:00
nickchanlooking forward to the psci conduit and the m1n1 side code
#asahi-dev · 2026-07-03 14:24
nickchandoes every m1+ dockchannel has an interrupt property?
#asahi-dev · 2026-07-03 14:23
nickchanwhich existed solely to test the pesky spi with the spi flash
#asahi-dev · 2026-07-03 14:22
nickchan...this is actually the state of some of the T2 device trees if one doesn't want to solder a test point
#asahi-dev · 2026-07-03 14:22
nickchana device tree where the only form of I/O is watchdog
#asahi-dev · 2026-07-03 14:20
nickchanyuka: 1. pmOS 2. a specific crafted ramdisk to test a bunch of stuff
#asahi-dev · 2026-07-03 14:18
nickchanit's basically tested once when I want to send something and then not tested (testing stays downstream)
#asahi-dev · 2026-07-03 14:17
nickchanactually, I retract that statement because I do not test the upstream a lot
#asahi-dev · 2026-07-03 14:17
nickchananyways they boot in practice just with very little IO
#asahi-dev · 2026-07-03 14:15
nickchanyuka: right those files are trickled from upstream
#asahi-dev · 2026-06-30 13:26
nickchan(corellium code for pcie, not dart)
#asahi-dev · 2026-06-30 13:26
nickchannot very comfortable with the dart support being only tested with the corellium blob code which code have some stupids it in
#asahi-dev · 2026-06-30 13:26
nickchanin any case im going to test adp on a10
#asahi-dev · 2026-06-30 13:16
nickchanm1 dart needs this too, but there's no user of that upstream anytime soon
#asahi-dev · 2026-06-30 13:15
nickchan
#asahi-dev · 2026-06-30 13:15
nickchan(with the right dt-bindings changes ofc)
#asahi-dev · 2026-06-30 13:15
nickchanhttps://github.com/AsahiLinux/linux/commit/99fe3a15e8177329c857a432d769279e79f9029c this being apple,dma-range
#asahi-dev · 2026-06-30 13:14
nickchanshould I send dart's apple,dma-range by itself or attach a7-a10 dart support with it
#asahi-dev · 2026-06-28 15:50
nickchani probably should write a binding for it and send it upstream
#asahi-dev · 2026-06-28 15:50
nickchani could make use the apple,dma-range property in the downstream dart driver
#asahi-dev · 2026-06-28 11:20
nickchannot complaining that the 4K paging worked perfectly ofc
#asahi-dev · 2026-06-28 11:20
nickchanFor some reason, the pagetable driver supported 4K paging even though none of that is in M1
#asahi-dev · 2026-06-28 11:18
nickchanfor the DART1 variant, read protection is support from A10 onwards and there's no subpage protection but allowing *more* memory is generally fine
#asahi-dev · 2026-06-28 11:18
nickchanio-pgtable-dart's pagetable could work on A10

plus ›