2025-03-29
00:04zumi_ has joined #asahi-dev
00:04zumi has quit [Remote host closed the connection]
00:09zumi_ is now known as zumi
00:12nela has quit [Quit: Ping timeout (120 seconds)]
00:13nela has joined #asahi-dev
00:30chrisl has joined #asahi-dev
00:38chrisl has quit [Ping timeout: 480 seconds]
00:42john-cabaj has joined #asahi-dev
00:43pb17 has quit [Ping timeout: 480 seconds]
01:10pb17 has joined #asahi-dev
01:31chrisl has joined #asahi-dev
01:39chrisl has quit [Ping timeout: 480 seconds]
01:40rrendec has quit [Ping timeout: 480 seconds]
01:46john-cabaj has quit [Ping timeout: 480 seconds]
01:57chadmedive pushed and released speakersafetyd 1.1.0 which runs as the speakersafetyd user by default
02:31fl0_idI was experimenting with the bluetooth packet logger on macos for testing resume etc - is there a secret to use that app or is it know that only some combinations of software/hardware firmware work? It just doesn't give any output. kinda like this https://developer.apple.com/forums/thread/761623
02:32nicolas17fl0_id: I tried it once and it logged stuff, but it seemed like the bluetooth stack used vendor-defined commands for basic operations (like sending LE advertisements) which the GUI didn't know how to decode
02:43nyx_o has quit [Read error: Connection reset by peer]
02:46fl0_idmmh I thought I maybe had an old version, but it seems the packet logger binary stayed the same, still a 2022 version number
02:48chadmed_ has quit [Remote host closed the connection]
02:51nyx_o has joined #asahi-dev
02:54pb17 has quit [Ping timeout: 480 seconds]
03:00ciara has quit [Remote host closed the connection]
03:00ciara has joined #asahi-dev
03:24pb17 has joined #asahi-dev
03:26psykose has quit [Remote host closed the connection]
03:27psykose has joined #asahi-dev
03:37tobhe_ has joined #asahi-dev
03:44chrisl has joined #asahi-dev
03:44tobhe has quit [Ping timeout: 480 seconds]
03:52chrisl has quit [Ping timeout: 480 seconds]
04:08nora_ has joined #asahi-dev
04:10nora has quit [Ping timeout: 480 seconds]
04:23chaos_princessYou need to install the profile for it to work: https://developer.apple.com/services-account/download?path=/OS_X/OS_X_Logs/Bluetooth_macOS.mobileconfig
04:33chrisl has joined #asahi-dev
04:41chrisl has quit [Ping timeout: 480 seconds]
04:58chadmednicolas17: tbh the only real permission it needs is CAP_SYS_NICE so idk if the audio group is even necessary
05:01nicolas17on my old debian system those devices are "crw-rw----+ 1 root audio", so if you're not in the audio group you can't even open() them
05:10chaos_princesssomewhat annoying that we can't just dynamicuser it due to blackbox
05:18nicolas17if you want to restrict it further for security, you could use ProtectSystem= and friends
05:18chaos_princessthat too won't hurt, but dynamicuser also simplifies packaging
05:18JayBeeFOSS has quit [Remote host closed the connection]
05:20JayBeeFOSS has joined #asahi-dev
05:29pb17 has quit [Ping timeout: 480 seconds]
05:35chrisl has joined #asahi-dev
05:37chadmedit was only there to debug issues with the kernel lock but like its clearly stable lmfao
05:39chaos_princessUp to y'all, i am not brave enough to sign off on safety decisions :P
05:41chadmedit just dumps out the last set of VISENSE samples processed so we could see what the codecs were doing
05:43chrisl has quit [Ping timeout: 480 seconds]
05:48pb17 has joined #asahi-dev
05:59yuyichao_ has quit [Ping timeout: 480 seconds]
06:05zumi_ has joined #asahi-dev
06:05zumi has quit [Remote host closed the connection]
06:10zumi_ is now known as zumi
06:39chrisl has joined #asahi-dev
06:47chrisl has quit [Ping timeout: 480 seconds]
06:58pb17 has quit [Ping timeout: 480 seconds]
07:00r0ni has quit [Ping timeout: 480 seconds]
07:09mildsunrise has quit [Quit: disconnect]
07:10mildsunrise has joined #asahi-dev
07:14pb17 has joined #asahi-dev
07:46chrisl has joined #asahi-dev
07:54chrisl has quit [Ping timeout: 480 seconds]
08:05jannaufl0_id: have you seen https://github.com/AsahiLinux/docs/issues/85 and https://github.com/bluez/bluez/issues/722
08:13okb has joined #asahi-dev
08:28pb17 has quit [Ping timeout: 480 seconds]
08:33apaloshttps://lore.kernel.org/u-boot/20250301164922.397441-1-ilias.apalodimas@linaro.org/ is applied in u-boot -next can anyone spin this for m1n1?
08:33apalosThere are reasons we don't enable by default yet so you have to do a menuconfig to enable it
08:36chrisl has joined #asahi-dev
08:37apalosand CONFIG_CMD_MEMINFO_MAP if you want to dump the mapping in the u-boot command line with 'meminfo'
08:42jannauapalos: I did that last week: https://gist.github.com/jannau/73388b7cc9599ab6fea8fdc8ce3278ad
08:44chrisl has quit [Ping timeout: 480 seconds]
08:44pb17 has joined #asahi-dev
08:51apalosUnfortunately, there are places in u-boot where people were doing const char *blah and the write it...
08:51apalosWhich now blows up since the strings are emitted in .rodata which is properly protected now
08:54apalosThere's still a messs with EFI runtime services, but I plan to fix this as well at some point and set the permissions for that as well
09:38chrisl has joined #asahi-dev
09:46chrisl has quit [Ping timeout: 480 seconds]
10:04hspak44053 has joined #asahi-dev
10:09hspak4405 has quit [Ping timeout: 480 seconds]
10:24roxfan has quit [Remote host closed the connection]
10:34roxfan has joined #asahi-dev
10:43chrisl has joined #asahi-dev
10:51chrisl has quit [Ping timeout: 480 seconds]
11:38chrisl has joined #asahi-dev
11:46chrisl has quit [Ping timeout: 480 seconds]
12:01pb17 has quit [Ping timeout: 480 seconds]
12:04zumi_ has joined #asahi-dev
12:04zumi has quit [Remote host closed the connection]
12:09zumi_ is now known as zumi
12:10wtfcxt has joined #asahi-dev
12:10wtfcxt has quit []
12:11wtfcxt has joined #asahi-dev
12:15pb17 has joined #asahi-dev
12:39chrisl has joined #asahi-dev
12:47chrisl has quit [Ping timeout: 480 seconds]
12:48zumi has quit [Remote host closed the connection]
12:55wtfcxt has quit [Quit: https://quassel-irc.org - Komfortabler Chat. Überall. ]
12:55wtfcxt has joined #asahi-dev
12:56wtfcxt has quit []
12:56wtfcxt has joined #asahi-dev
12:57fl0_idchaos_princess thx. I found that, but then wasn't sure of that was only for sending to apple and it required rebooting and it was late...
13:29chrisl has joined #asahi-dev
13:37chrisl has quit [Ping timeout: 480 seconds]
13:37rrendec has joined #asahi-dev
13:50wtfcxt has quit [Ping timeout: 480 seconds]
13:55pb17 has quit [Ping timeout: 480 seconds]
14:17pb17 has joined #asahi-dev
15:26chrisl has joined #asahi-dev
15:34chrisl has quit [Ping timeout: 480 seconds]
15:49pb17 has quit [Ping timeout: 480 seconds]
16:05pb17 has joined #asahi-dev
16:25chrisl has joined #asahi-dev
16:33chrisl has quit [Ping timeout: 480 seconds]
17:03mattia013 has joined #asahi-dev
17:16mischa85 has joined #asahi-dev
17:26chrisl has joined #asahi-dev
17:30mischa85aight i'm back on t6041 duties again. this time taking a closer look at what happens regarding the HCR_EL2 register. it crashes on the first call: hcr = HCR(self.u.mrs(HCR_EL2))
17:33___nick___ has joined #asahi-dev
17:34chrisl has quit [Ping timeout: 480 seconds]
17:35pb17 has quit [Ping timeout: 480 seconds]
17:36mischa85searching HCR_EL2 on the IRC history of this channel results in someone mentioning it being a per-core setting rather than system-wide
17:36mischa85so my theory, perhaps this register is tied to a disabled core and it's trying to read it?
17:43pb17 has joined #asahi-dev
17:44mischa85this is the exception it throws: https://gist.github.com/mischa85/6fd90c909d4c4e79820fa4cdbf313927
17:46aissen has quit [Quit: brb]
17:49aissen has joined #asahi-dev
17:52nicolas17 has quit [Ping timeout: 480 seconds]
17:52nicolas17 has joined #asahi-dev
17:58kloenk has quit [Remote host closed the connection]
17:59kloenk has joined #asahi-dev
18:18fl0_idjannau so if I read this correctly, there isn't any consensus in bluez yet, on how to implement this?
18:27chrisl has joined #asahi-dev
18:33___nick___ has quit []
18:35elvishjerricco has quit [Remote host closed the connection]
18:35chrisl has quit [Ping timeout: 480 seconds]
18:35___nick___ has joined #asahi-dev
18:37___nick___ has quit []
18:40___nick___ has joined #asahi-dev
18:52mischa85ok i want to test some things, but i have some noobish questions. i'm trying read32(MIDR_EL1) which of course doesn't work because it expects an integer. but i cannot for the life of me figure out what that integer should be
18:54chaos_princessThat does not make sense, read32 is a memory read, and MIDR_EL1 id a system register
18:55chaos_princesslike, it is closer to x15 or eax than a memory address
18:56elvishjerricco has joined #asahi-dev
19:01j`eymischa85: in chickens.c it's reading it directly/compiled, with mrs() in the shell, im pretty sure it tries to allocate some memory, and then copy the instruction there
19:03mischa85j`ey: thanks. does that mean when mrs() gets called from the hypervisor python script it tries to do the same?
19:06chaos_princessIf memory allocation failed i think you'd have no python at all
19:06chaos_princessit looks more like it fails to make it executable
19:06j`eyok found https://github.com/AsahiLinux/m1n1/blob/5291d5c1ccee788086972dbad21ba9202be30b8d/proxyclient/m1n1/proxyutils.py#L216 looks like it just has a code_buffer it uses
19:14mischa85right here: https://github.com/AsahiLinux/m1n1/blob/5291d5c1ccee788086972dbad21ba9202be30b8d/proxyclient/m1n1/proxyutils.py#L82
19:17cow123 has joined #asahi-dev
19:47pb17 has quit [Ping timeout: 480 seconds]
19:55WindowPain5 has joined #asahi-dev
20:01WindowPain has quit [Ping timeout: 480 seconds]
20:01WindowPain5 is now known as WindowPain
20:03chrisl has joined #asahi-dev
20:11chrisl has quit [Ping timeout: 480 seconds]
20:15chrisl has joined #asahi-dev
20:18pb17 has joined #asahi-dev
20:22mischa85alright a lot of the msr() calls now work, obviously. the only things commented out now are AMX_CONFIG_EL1, VMKEYLO_EL2, VMKEYHI_EL2, APSTS_EL12, SPRR_CONFIG_EL1 and GXF_CONFIG_EL1
20:23chrisl has quit [Ping timeout: 480 seconds]
20:26chaos_princesstime to spam printfs after every line here? https://github.com/AsahiLinux/m1n1/blob/main/src/hv.c#L112
20:57chaos_princess"Exception taken from EL2h" - i dont think so?
21:00jnn is now known as jn
21:01chaos_princessi guess we will find out once the printf results return :P
21:04___nick___ has quit [Remote host closed the connection]
21:06mischa85ok i took out SYS_IMP_APL_AMX_CTL_EL2, SYS_IMP_APL_APVMKEYLO_EL2, SYS_IMP_APL_APVMKEYHI_EL2, SYS_IMP_APL_APSTS_EL12, SYS_IMP_APL_SPRR_CONFIG_EL1 and SYS_IMP_APL_GXF_CONFIG_EL1 from hv_start(). execution reaches hv_enter_guest but crashes like this: https://gist.github.com/mischa85/864fe86f35034a6bb7f1fe64965cbc62
21:14chaos_princesstime to spam printfs into the fiq handler :P
21:35ddxtanx has quit [Remote host closed the connection]
21:42chrisl has joined #asahi-dev
21:50chrisl has quit [Ping timeout: 480 seconds]
21:53chaos_princesstry this one? https://github.com/AsahiLinux/m1n1/blob/5291d5c1ccee788086972dbad21ba9202be30b8d/src/exception.c#L375
22:00ethantwa1 has quit [Quit: WeeChat 4.4.2]
22:01ethantwardy has joined #asahi-dev
22:09ddxtanx has joined #asahi-dev
22:12pb17 has quit [Ping timeout: 480 seconds]
22:42pb17 has joined #asahi-dev
22:50chrisl has joined #asahi-dev
22:58chrisl has quit [Ping timeout: 480 seconds]
23:50chrisl has joined #asahi-dev
23:58chrisl has quit [Ping timeout: 480 seconds]