#
#asahi-dev · 2026-07-28 18:34
yukaI think it's just not upstreamable because of the offset is hardcoded and might change
#asahi-dev · 2026-07-28 18:34
yukaah yes that should work as well
#asahi-dev · 2026-07-28 18:33
sofusfl0_id: i think i only applied https://gist.github.com/jannau/90e961655b1741e251281f31a903809f
#asahi-dev · 2026-07-28 18:30
yukarecount_base is still required, but init_base and config_base are now integrated into m1n1
#asahi-dev · 2026-07-28 18:29
fl0_idwill check logs
#asahi-dev · 2026-07-28 18:29
fl0_idoki. right I read sth about that...
#asahi-dev · 2026-07-28 18:28
yukaiirc 1/3 of the manual patches are still required
#asahi-dev · 2026-07-28 18:28
fl0_idis there a simpler way now to get working HV macos on m3? or is the guide by integralpilot still current?
#asahi-dev · 2026-07-28 18:25
yukais remote access to one helpful to get started?
#asahi-dev · 2026-07-28 18:13
svennext up: time to get a M4 and see what SPTM/TXM needs additionally
#asahi-dev · 2026-07-28 18:11
svenhttps://github.com/AsahiLinux/m1n1/pull/643 the cursed thing
#asahi-dev · 2026-07-28 14:35
chaos_princessi think our oslog code is just wrong
#asahi-dev · 2026-07-28 14:32
nickchanin any case, 14 commits later i finally did all the prerequesites at least I think so time to lock in on that disk driver
#asahi-dev · 2026-07-28 14:29
nickchanand the oslog that does reuse the top 8 bits don't follow this convention, APPLE_RTKIT_OSLOG_SIZE is bit 55:36 so it is irrelvant
#asahi-dev · 2026-07-28 14:28
nickchanso im fully convinced that really is supposed to be 4 bit wide
#asahi-dev · 2026-07-28 14:28
nickchanthe thing that starts at bit 52 is also used as a message type within that endpoint for syslog, crashlog, and ioreport and none of them exceed 0xf
#asahi-dev · 2026-07-28 14:25
svenhmhm.. no idea where that mask comes from then
#asahi-dev · 2026-07-28 14:25
nickchanit seems the upper 8 bits did get reused in the OSLOG endpoint though, and that starts at 56
#asahi-dev · 2026-07-28 14:25
nickchannone of the fields actually starts at 60
#asahi-dev · 2026-07-28 14:22
svenno idea, those bits might've just been a guess because the next field starts at 60
#asahi-dev · 2026-07-28 14:18
nickchani sure hope these devices get removed next year because somehow the a8 homepod survives into version 27
#asahi-dev · 2026-07-28 14:13
nickchansome homepod and apple tv
#asahi-dev · 2026-07-28 14:13
nickchanand the reason is the top 8 bits of the mailbox message is used for endpoint on 64 bit mailboxes and there are such device still supported in latest
#asahi-dev · 2026-07-28 14:12
nickchanthe list in linux only goes up to 0xb so it would fit within 4 bits
#asahi-dev · 2026-07-28 14:12
nickchanmanagement message type
#asahi-dev · 2026-07-28 14:11
nickchansven: have you seen RTKit management message > 0xf ? linux says it is bit [59:52] but i believe it is bit [55:52]
#asahi-dev · 2026-07-28 08:56
svenwe don't need this to work for tracing, would've just been fun
#asahi-dev · 2026-07-28 08:56
svenit's just not important though
#asahi-dev · 2026-07-28 08:55
sveni'd just patch the library and make it do what i want
#asahi-dev · 2026-07-28 08:54
NickChan[m]And if you make it think it has full SPRR then it would try to use the EL0 switching registers which can't easily be trapped
#asahi-dev · 2026-07-28 08:54
NickChan[m]so the problem is you can't make it think the machine is a VMAPPLE because then it would try to make rwx mappings that won't work if you are virtualizing SPTM and SPRR
#asahi-dev · 2026-07-28 08:50
svenor see if i can mess with the commpage in some way to make it think it has userspace sprr but then not actually try to mrs/msr
#asahi-dev · 2026-07-28 08:49
sveni can only trap that register up to EL1 but not to EL2. i'd just patch libsystem_pthread or whatever at that point
#asahi-dev · 2026-07-28 08:48
NickChan[m]arm specification says it is implementation defined for each encoding
#asahi-dev · 2026-07-28 08:48
NickChan[m]I do not know if TIDCP traps the EL0 registers on apple silicon
#asahi-dev · 2026-07-28 08:47
sveni could probably hack this by just mapping the pages as rwx but meh.. this will be good enough for tracing
#asahi-dev · 2026-07-28 08:47
NickChan[m](using the same physical memory but mapped rx in one location rw in another could also work, but safari does not do that)
#asahi-dev · 2026-07-28 08:46
svenyeah, that's obviously what happens
#asahi-dev · 2026-07-28 08:46
NickChan[m]and changing pagetable requires sptm
#asahi-dev · 2026-07-28 08:46
NickChan[m]sven: if there's no jit fast switching then i think it does jit by changing pagetable since rwx don't exist under sprr
#asahi-dev · 2026-07-28 08:30
sofusfilling out the struct is not actually 4000 loc, the 4000 loc are the static values and filling
#asahi-dev · 2026-07-28 08:27
sofusbut at least the output has color now :p
#asahi-dev · 2026-07-28 08:26
sofusbut all tests still fail, so im afraid there is more somewhere else
#asahi-dev · 2026-07-28 08:24
sofusim very happy i could mostly copy from drivers/media/platform/verisilicon/rockchip_av1_entropymode.c
#asahi-dev · 2026-07-28 08:24
JamesCalligeros[m]And i thought dcp’s 7-ish kib swap request was bad
#asahi-dev · 2026-07-28 08:23
JamesCalligeros[m]Eugh
#asahi-dev · 2026-07-28 08:23
sofusyep
#asahi-dev · 2026-07-28 08:23
JamesCalligeros[m]Does that need to be pushed for every damn frame
#asahi-dev · 2026-07-28 08:23
sven\o/
#asahi-dev · 2026-07-28 08:22
sofusfilling out this struct is 4675 loc :)

plus ›