#asahi-dev · 2024-07-20 01:58
chadmedi509vcb: are you offeirng to find out for us :p #asahi-dev · 2024-07-20 01:58
i509vcbhttps://github.com/AsahiLinux/docs/wiki/HW%3AUSB-PD says the debug UART is 1.2V. I assume putting more than 1.2V in the transmit side will damage the hardware?#asahi-dev · 2024-07-15 11:03
chadmedmaybe the apple variants have some undocumented thing or we arent doing impedance matching properly or something#asahi-dev · 2024-07-15 11:03
chadmedwe also got an interesting issue re a set of external speakers driven from the jack clipping at ~70% volume where they dont clip at all under macos. i had a look at the codec datasheets again and couldnt find any configurable power settings for the DAC beyond the DVC #asahi-dev · 2024-07-15 11:01
chadmedbut without a machine in front of me i cant say for certain. i trust marcans judgement more than $random_user's but oversaturation/clipping on those machines was a pretty common theme in most of the asahi-audio issues so idk #asahi-dev · 2024-07-15 11:00
chadmeddid some housekeeping on asahi-audio and speakersafetyd. i want to revisit j314/414 soonish and i think that j293 and friends are probably being driven too hard on the IRs given feedback from users#asahi-dev · 2024-07-14 15:31
martinrjannau: great thanks, tidying up now#asahi-dev · 2024-07-14 15:29
kettenisright#asahi-dev · 2024-07-14 15:28
jannaukettenis: this is only for stage1 / kmutil configure boot. I don't think m1n1.macho still works for that since 12.x#asahi-dev · 2024-07-14 15:27
jannaunickchan: seems like m1n1 get's further than one would expect with sptm#asahi-dev · 2024-07-14 15:25
jannaumartinr: just for reboot/enable UART the sysfs interface seems fine#asahi-dev · 2024-07-14 15:25
kettenisguess it should only matter for the first-stage m1n1#asahi-dev · 2024-07-14 15:24
kettenisah, but we support both and some of us may still be in the habit of using macho?#asahi-dev · 2024-07-14 14:52
nickchanthey also said that only macho boot objects should be ran with sptm#asahi-dev · 2024-07-14 14:51
nickchanjannau: someone said running a raw image should be without sptm, so maybe sptm is not running after all#asahi-dev · 2024-07-14 12:24
martinrthere are other minutiae: currently tipd does not support resetting the cd321x. do we now send the unlock command on initialization and enable this functionality?#asahi-dev · 2024-07-14 12:05
martinrOk, I just managed to get initial VDM support added to tipd (i.e. just the reboot command working for now). I might need some input from somone on best practices re. interfaces (currently exposed via sysfs), as this is my first attempt at driver code.#asahi-dev · 2024-07-14 11:34
svenhrm, the GL2 init happens before that and i'd expect that to already fail if this SPTM thing was running#asahi-dev · 2024-07-14 11:28
jannauM2 mac mini#asahi-dev · 2024-07-14 11:28
jannauenabling the MMU in m1n1 is broken on macos 15 beta: https://gist.github.com/jannau/7da57f30440606337991568e87d57fda#asahi-dev · 2024-07-14 08:53
sveneither way, we can’t really run Linux under SPTM so there better be a way to skip all that ;)#asahi-dev · 2024-07-14 08:53
nickchanand this order of things getting SPTM makes sense when you consider iOS as the most important to apple, followed by iPadOS, then macOS; and that newer devices are more important than older ones.#asahi-dev · 2024-07-14 08:51
nickchanlike moving Core Bringup to it#asahi-dev · 2024-07-14 08:51
nickchanit is all an enginnering time thing that it is not on other devices yet since for SPTM to be a functioning hypervisor there is a lot of stuff beyond renaming PPL to SPTM#asahi-dev · 2024-07-14 08:49
nickchanchadmed: sptm is not a thing yet on j314 since it is the m1 pro and for mac it is on M2 on macOS 15 and nothing else#asahi-dev · 2024-07-14 08:47
nickchanneed SPTM as the hypervisor to run Exclave#asahi-dev · 2024-07-14 08:47
nickchanyeah every exception level is used now GL2: SPTM; EL2: XNU; GL1: ExclaveCore; EL1: Guest Kernel; GL0: ExclaveOS; EL0: macOS userland#asahi-dev · 2024-07-14 08:45
jannausounds like it is part of the exclave handling present for tons of intersting devices in the ipad pro m4 ADT#asahi-dev · 2024-07-14 08:45
nickchanit is expected that it will eventually be introduced to M1/A14+#asahi-dev · 2024-07-14 08:44
nickchanA15-A17: SPTM introduced in iOS 17; M4: SPTM launched with iPadOS 17.5; M2: SPTM introduced in iOS 18/macOS 15#asahi-dev · 2024-07-14 08:42
svenI would expect that there’s some way to skip that in permissive security but would still be interesting to check that #asahi-dev · 2024-07-14 08:42
jannausomewhat helpful https://www.df-f.com/blog/ios17#asahi-dev · 2024-07-14 08:41
nickchanthe fact that it is not in the kernel image is the problem since the code execution primitive we have on apple silicon is being able to replace that#asahi-dev · 2024-07-14 08:40
nickchanit has the highest privilege in macOS, just like PPL#asahi-dev · 2024-07-14 08:39
nickchanSPTM stands for Secure Page Table Monitor, it is a PPL replacement but unlike PPL it is not part of the kernel image#asahi-dev · 2024-07-14 08:38
svenwhat’s SPTM?#asahi-dev · 2024-07-14 08:37
jannaumacos15 is sequoia#asahi-dev · 2024-07-14 08:37
chadmedhm ill try again next time i need the hv#asahi-dev · 2024-07-14 08:37
jannauboots without obvious issues (ignoring the missing hw support)#asahi-dev · 2024-07-14 08:36
jannausonoma on M3 #asahi-dev · 2024-07-14 08:35
chadmed(i did do the usual steps of disabling sip and bputil -nkcas etc) #asahi-dev · 2024-07-14 08:35
chadmedno idea, this was on j314 so is it even a thing there#asahi-dev · 2024-07-14 08:34
jannauis SPTM active in permissive security?#asahi-dev · 2024-07-14 08:34
chadmedm1n1 does not boot on sonoma no#asahi-dev · 2024-07-14 08:33
jannauI'd say it's very unlikely that anyone has tried. looking at newer stubs only makes sense for new device support due to the firmware dependencies#asahi-dev · 2024-07-14 08:18
nickchanAlso under SPTM, XNU cannot ever run with MMU disabled, as it is no longer physically contiguous in memory.#asahi-dev · 2024-07-14 08:15
nickchanhas anyone checked whether m1n1 boots with a macOS 15 beta stub on M2? In macOS 15 on M2, SPTM is introduced to the M2 (and ONLY M2, not any of the Pro/Max/Ultra or M3). The XNU would be loaded in EL2 while GL is enabled, this will break everything in m1n1 unless Apple has special logic when flat arm64 executables are specified in kmutil.#asahi-dev · 2024-07-11 19:53
jannauHej martinr, no as far as I'm aware noboby is working on that#asahi-dev · 2024-07-11 19:47
martinrhi - I'd like to work on extending tipd to add VDM/serial support. has anyone else already picked this up? just in the interest of avoiding duplicate work