#
✕ nick:sven
#asahi-dev · 2022-07-04 21:19
svenit also seems to generate reasonable interrupts this way
#asahi-dev · 2022-07-04 21:18
svenringing it for h->d as well made the connection glitch-y
#asahi-dev · 2022-07-04 21:17
sveni only ring it for d->h transfers and that seems to be required
#asahi-dev · 2022-07-04 21:17
svenI found something that works :D
#asahi-dev · 2022-07-04 21:16
svenI at least had some flag wrong and everything still worked
#asahi-dev · 2022-07-04 21:16
svenI’m reasonably sure it also ignores the flags because it iirc still worked when I kept the flags as 0 everywhere
#asahi-dev · 2022-07-04 21:14
svenand using a different msi index only works for the control ring iirc
#asahi-dev · 2022-07-04 21:14
svenyou can’t e.g. route the acl packets to another completion ring
#asahi-dev · 2022-07-04 21:14
sventhe firmware ignores almost anything anyway
#asahi-dev · 2022-07-04 21:13
svenmaybe different macOS version or something
#asahi-dev · 2022-07-04 21:13
svenbut when I traced it it certainly had the virtual flag here
#asahi-dev · 2022-07-04 21:13
svenI never looked at the plist
#asahi-dev · 2022-07-04 21:12
sveni was just confused why it had a buffer attached
#asahi-dev · 2022-07-04 21:12
svenI’m pretty sure macOS set the virtual flag anyway
#asahi-dev · 2022-07-04 21:10
svenfun
#asahi-dev · 2022-07-04 21:08
sveni wonder if that command to limit the acl size marcan found just works instead
#asahi-dev · 2022-07-04 21:06
svenurgh… that sounds like a disgusting hack. Doesn’t surprise me with the rest of this mess though :/
#asahi-dev · 2022-07-04 16:58
svenit probably still has some minor issues but people testing it will actually uncover those!
#asahi-dev · 2022-07-04 16:57
svensure, feel free to include it :)
#asahi-dev · 2022-07-04 16:36
svengoodnight!
#asahi-dev · 2022-07-04 16:36
svensounds like a plan :)
#asahi-dev · 2022-07-04 16:36
sventrue
#asahi-dev · 2022-07-04 16:35
svenand completion rings (which I know are called like that from strings) are actually transfer rings for device-> host messages. it’s a mess
#asahi-dev · 2022-07-04 16:34
svenit also has fun features like configurable transfer/completion ring mapping that the firmware will sometimes ignore for some rings
#asahi-dev · 2022-07-04 16:33
svengiven that this entire thing is a bit weird it wouldn’t surprise me if it just hangs when it can’t put the data it got into the ring
#asahi-dev · 2022-07-04 16:32
svenill check if macOS sends it. worst case I’ll add it to the setup function where I need to send that calibration stuff anyway
#asahi-dev · 2022-07-04 16:29
svenohhh… interesting
#asahi-dev · 2022-07-04 16:28
svenanyway, I’ll see if I can manage to connect macOS to a Linux machine via bt and see if I can trigger some large packages to see what’s going on
#asahi-dev · 2022-07-04 16:27
svenmacOS 1008 limit is also strange
#asahi-dev · 2022-07-04 16:24
svenI wonder how they got 1028 then :/
#asahi-dev · 2022-07-04 16:22
svenLinux hci.h claims max_frame_size as 1024+4
#asahi-dev · 2022-07-04 16:20
svendunno if that’s possible with BT though
#asahi-dev · 2022-07-04 16:20
svenI’ll have to see if I can just connect my Linux machine as a device to a macOS host and somehow send those large ACL frames and see what happens
#asahi-dev · 2022-07-04 16:19
svenbut they drive this hw a bit strange anyway
#asahi-dev · 2022-07-04 16:18
svenmacOS limits it to 1008 or so which is also weird
#asahi-dev · 2022-07-04 16:18
svenyup
#asahi-dev · 2022-07-04 16:17
svenbut that doesn’t work for device->host
#asahi-dev · 2022-07-04 16:16
svenfor host->device that isn’t a problem because I can just map the buffer instead and pass an iova
#asahi-dev · 2022-07-04 16:16
sven1024 bytes I think, but I can’t put more than 1020 (4*0xff) into a single ring entry
#asahi-dev · 2022-07-04 16:03
svenjust from looking at strings of the kext there also seems to be some way to get it to push logs to us
#asahi-dev · 2022-07-04 16:00
svenbiggest one is probably how very large ACL transfers from device -> host work. I can't fit the max frame size into the ring and macos even limits it to the max event size which is much smaller
#asahi-dev · 2022-07-04 15:57
svenhttps://github.com/AsahiLinux/linux/tree/bluetooth-wip almost happy with it now, still need to track down a few edge cases though
#asahi-dev · 2022-07-03 21:02
svenfor some reason I thought keyboard kinda worked but today you discovered that firmware blob… and now that I wrote it I realize that doesn’t make any sense
#asahi-dev · 2022-07-03 21:01
svenmaybe I should’ve paid better attention during the stream. I thought it was both keyboard and touchpad
#asahi-dev · 2022-07-03 21:00
svenand all this just to get a keyboard and the touchpad to work :(
#asahi-dev · 2022-07-03 20:55
svenyeah
#asahi-dev · 2022-07-03 20:55
svenbut why the touchpad thingy?!
#asahi-dev · 2022-07-03 20:55
svenlike, I get why WiFi and Bluetooth und that usb thing has to be loaded by Linux
#asahi-dev · 2022-07-03 20:55
svenI wonder why this firmware is different from the others
#asahi-dev · 2022-07-03 20:54
svenfair enough…

plus ›