#asahi-re · 2022-04-12 10:28
rqou_oh yolo i got SCO to "work"#asahi-re · 2022-04-12 10:13
rqou_BLE doesn't seem to work, but that might be a higher level software stack problem#asahi-re · 2022-04-12 10:09
rqou_it's glitchy at times of course since the prototype driver can only ever queue up one packet at a time, but it produces intelligible sound#asahi-re · 2022-04-12 10:08
rqou_i can't believe A2DP SBC is mostly usable with this#asahi-re · 2022-04-12 09:07
rqou_SCO is weird, it has a totally different setup with e.g. doorbells#asahi-re · 2022-04-12 09:05
rqou_now the only thing that doesn't work is SCO#asahi-re · 2022-04-12 09:04
rqou_i got bluetooth ACL links working: https://twitter.com/rqou_/status/1513804983308746753#asahi-re · 2022-04-11 10:33
rqou_they're conceptually similar, but for some reason they have different flags#asahi-re · 2022-04-11 10:32
rqou_not _quite_ sure how SCO/ACL links work yt#asahi-re · 2022-04-11 10:32
rqou_https://twitter.com/rqou_/status/1513463982073409537#asahi-re · 2022-04-11 10:32
rqou_bluetooth bringup: HCI is basically all figured out#asahi-re · 2022-04-10 12:16
rqou_whoops i forgot to go to bed, but success! https://github.com/AsahiLinux/m1n1/pull/192#asahi-re · 2022-04-10 09:14
rqou_rn i hardcode it and reboot if it seems wrong#asahi-re · 2022-04-10 09:13
rqou_sven: how do i do that from a trace script though?#asahi-re · 2022-04-10 09:13
rqou_but i see a 0xFC01 command, a 0x0C13 command and my computer hostname, and then a huge pile of 0xFD97 with a payload that starts with "BLOB"#asahi-re · 2022-04-10 09:11
rqou_still don't understand replies though, nor a giant pile of magic numbers#asahi-re · 2022-04-10 09:11
rqou_success(-ish)! i can read what appear to be bluetooth HCI commands that macos is sending to the bluetooth card#asahi-re · 2022-04-10 07:08
rqou_and there's a mapping between everything encoded in the macos plist#asahi-re · 2022-04-10 07:08
rqou_but somehow this has to share a fixed number of doorbells#asahi-re · 2022-04-10 07:07
rqou_seems there's a "main" message and completion ring, which maybe is used to "open" a pipe containing its own message and completion rings?#asahi-re · 2022-04-10 07:07
rqou_everything here is over-layered AF#asahi-re · 2022-04-10 06:58
rqou_it's really not quite designed to trace access to general RAM, isn't it#asahi-re · 2022-04-10 06:45
rqou_wtf, AlignmentError on STUR emulation#asahi-re · 2022-04-10 06:43
rqou_it seems nondeterministic#asahi-re · 2022-04-10 06:42
rqou_ugh what's the proper way to figure out which DART stream a pcie device is using?#asahi-re · 2022-04-10 05:44
rqou_i don't care about skywalk though#asahi-re · 2022-04-10 05:44
rqou_neat#asahi-re · 2022-04-10 05:25
rqou_after also taking a detour through a giant undocumented networking-related stack called skywalk (which i do not care about)#asahi-re · 2022-04-10 05:25
rqou_afaict it _does_ eventually tunnel bluetooth hci though#asahi-re · 2022-04-10 05:24
rqou_with an ipc mechanism over pcie where you can set up multiple pipes#asahi-re · 2022-04-10 05:24
rqou_this whole thing feels very apple overcomplicated#asahi-re · 2022-04-10 05:21
rqou_the driver class names also strongly implies something custom: AppleConvergedPCI -> AppleConvergedIPC -> AppleConvergedIPCOLYBTControl#asahi-re · 2022-04-10 05:18
rqou_if you ever meet me in person, ask me about the facetime hd chip#asahi-re · 2022-04-10 05:17
rqou_i strongly suspect this is something broadcom made special for apple, out of existing IP blocks#asahi-re · 2022-04-10 05:16
rqou_afaict that's USB#asahi-re · 2022-04-10 05:14
rqou_it wouldn't surprise me if broadcom cooked up something special just for apple#asahi-re · 2022-04-10 05:13
rqou_afaict nobody has bluetooth on pcie#asahi-re · 2022-04-10 05:13
rqou_i haven't done a thorough check of android vendor kernels though#asahi-re · 2022-04-10 05:12
rqou_which afaict is also different#asahi-re · 2022-04-10 05:12
rqou_there's broadcom uart bluetooth#asahi-re · 2022-04-10 05:12
rqou_hrm, i'm not aware of anything#asahi-re · 2022-04-10 05:12
rqou_it can't be turned into a bus error?#asahi-re · 2022-04-10 05:11
rqou_but yeah, the pcie looks similar, and there's definitely a chipcommon#asahi-re · 2022-04-10 05:11
rqou_in the pcie core#asahi-re · 2022-04-10 05:11
rqou_something about error recovery might be broken#asahi-re · 2022-04-10 05:11
rqou_tbh poking the lower-level bar window stuff is a pain because the instant you do a "bad" read the whole system locks up#asahi-re · 2022-04-10 05:10
rqou_or the firmware boot process#asahi-re · 2022-04-10 05:10
rqou_everything else seems different though, even the layout of message rings#asahi-re · 2022-04-10 05:10
rqou_i did find that one of the config space registers matches the wifi side#asahi-re · 2022-04-10 05:09
rqou_macos seems to use 5 for bluetooth