#asahi-dev · 2022-06-30 20:53
svenstill need to clean up some minor crap but the core part is reasonable now#asahi-dev · 2022-06-30 20:52
svenseens to be working again now though #asahi-dev · 2022-06-30 20:52
svenyup :D#asahi-dev · 2022-06-30 20:32
svenlol, i was wondering why the music was pretty glitch-y and only then realized that I had all my debug spam and the tracer on :D#asahi-dev · 2022-06-30 19:54
svenalright, it's pairing again. but ofc audio is broken again :<#asahi-dev · 2022-06-30 19:42
svenj`ey: it doesn't help that half the time I just don't know if it's the usual bluetooth flakiness or an actual bug in the driver :D#asahi-dev · 2022-06-30 19:40
svenfirst thing is a message from rtkit, second thing is a message to rtkit#asahi-dev · 2022-06-30 19:40
svenit's the same value but a different thing semantically#asahi-dev · 2022-06-30 19:40
svenyes#asahi-dev · 2022-06-30 19:36
svenalso, looks like i broke the driver during this cleanup in more than one way. now it can scan again but refuses to pair new devices :(#asahi-dev · 2022-06-30 19:32
svenyeah, it's essentially just an array of bools#asahi-dev · 2022-06-30 19:17
svenbitmaps? do you mean the GENMASK/BIT stuff?#asahi-dev · 2022-06-30 19:08
svenprobably not too hard since it’s pretty isolated and doesn’t use many kernel APIs#asahi-dev · 2022-06-30 18:01
sven[ 2.272353] nvme-apple 27bcc0000.nvme: ANS did not boot <-- okay, how did that break now :<#asahi-dev · 2022-06-30 17:50
svenand ofc this one time I decided I don't need atomic commits so I can't even bisect *sigh#asahi-dev · 2022-06-30 17:50
svenyeah :/#asahi-dev · 2022-06-30 17:49
svenbah... how did i break this bluetooth driver while trying to clean it up now :<#asahi-dev · 2022-06-28 18:19
svenoh, and the MAC address was byteswapped but I doubt that actually caused any issues #asahi-dev · 2022-06-28 18:17
sveni sent the wrong one because strcmp returns 0 when the strings are equal and had an if(strcmp(…))#asahi-dev · 2022-06-28 18:17
svenyeah, and maybe also an issue with the calibration blob#asahi-dev · 2022-06-28 18:13
svenaaaand it works 😌#asahi-dev · 2022-06-28 17:10
svenyeah, tcpdump for Bluetooth#asahi-dev · 2022-06-28 17:09
sveni can see that something goes horribly wrong with btmon ;)#asahi-dev · 2022-06-28 17:07
svenhci traffic works fine but audio goes over a different pipe that behaves slightly different#asahi-dev · 2022-06-28 17:06
svennah, this is 99% something dumb. There’s something broken with how I handle these ipc queues#asahi-dev · 2022-06-28 17:01
svenI think the "advance the non-existing transmission queue" is their hack to generate an interrupt on the device#asahi-dev · 2022-06-28 17:00
sventhere's a transmission and a completion queue and device->host IPC works by putting an entry on the completion queue (nope, this doesn't make sense) and then the host advances the non-existing transmission queue (this also doesn't make sense)#asahi-dev · 2022-06-28 16:59
sventhe main issue probably is device -> host IPC. i don't quite understand the idea behind that mess yet#asahi-dev · 2022-06-28 16:56
sven<sven> i have nothing else to test it with and these airpods works with my other non-apple linux machine#asahi-dev · 2022-06-28 16:56
sven*sigh*#asahi-dev · 2022-06-28 16:55
sveni'm pretty sure this is just some bug in my driver#asahi-dev · 2022-06-28 16:50
sven*work#asahi-dev · 2022-06-28 16:50
sveni have nothing else to test it with and these airpods works with my other non-apple linux machine#asahi-dev · 2022-06-28 16:49
svenlooks like there's still something broken#asahi-dev · 2022-06-28 16:48
svennow if it would only also play music on them :D#asahi-dev · 2022-06-28 16:48
svenPairing successful#asahi-dev · 2022-06-28 16:48
svenAttempting to pair with XX:XX:XX:XX:XX:XX#asahi-dev · 2022-06-28 16:48
sven[bluetooth]# pair XX:XX:XX:XX:XX:XX#asahi-dev · 2022-06-28 16:48
sven[CHG] Device XX:XX:XX:XX:XX:XX Alias: Sven’s AirPods#asahi-dev · 2022-06-28 11:54
svenmarcan: btw., which broadcom chip does the M2 use? still 4378/4387?#asahi-dev · 2022-06-28 11:45
svenmarcan: I guess that'll work for anything that more-or-less treats rtkit stuff as something like a clock or power domain. we might also need some way to trigger a rtkit reset then#asahi-dev · 2022-06-28 10:37
sveni'll just assume it's the same for now. if only BT scanning works but pairing or connecting times out on T2 we'll have to go look for it there as well#asahi-dev · 2022-06-28 10:36
svenoh, nice!#asahi-dev · 2022-06-28 10:35
svenbluetooth really needs it to actually work and I figured I'd just add T2 support while i'm at it#asahi-dev · 2022-06-28 10:35
svenbtw. do you know where that cal-blob for wifi comes from on ACPI platforms?#asahi-dev · 2022-06-28 10:34
svennow we could've added a ASC node and then attach SART to both that ASC and NVME but meh..#asahi-dev · 2022-06-28 10:34
svenyeah, all debug commands use SART#asahi-dev · 2022-06-27 17:43
svenat least this probably confirms that Bluetooth is mostly Broadcom. This is too disgusting for apple :D#asahi-dev · 2022-06-27 17:42
sven*sigh*