#
✕ nick:sven
#asahi-dev · 2022-07-18 17:52
svenuh, dumb question, but how do i exit suspend2idle? :D
#asahi-dev · 2022-07-18 15:21
sveni just thought that was broken because I didn't sleep afterwards. looks like XNU does the same (or, well, I at least don't see any polling in the mmio trace)
#asahi-dev · 2022-07-18 15:20
svenyes
#asahi-dev · 2022-07-18 15:17
svenlol, turns out resetting the bluetooth devices requires nothing special except for a normal pcie function level reset + sleeping a bit to make sure it had time to come up again
#asahi-dev · 2022-07-17 19:33
svensounds good!
#asahi-dev · 2022-07-17 16:22
svenI’ll probably give up on t2 support there as well. pretty sure there’s some subtle difference that crashed the fw after a while and I can’t figure that out easily without a HV + access to a t2 Mac
#asahi-dev · 2022-07-17 16:21
svenofc btcoex is apple-specific. at least it’s probably no issue with the bt driver
#asahi-dev · 2022-07-17 12:49
svenhuh, that’s why I never noticed it then. I’m not connected to any WiFi on the m1 mini
#asahi-dev · 2022-07-17 12:42
svenweird
#asahi-dev · 2022-07-17 12:34
svenit should get the correct calibration data now though
#asahi-dev · 2022-07-17 12:33
svenmaybe I should try pairing my AirPods and see if they are different
#asahi-dev · 2022-07-17 12:33
svenhrm, my Bose headphones work fine even under the HV
#asahi-dev · 2022-07-17 12:25
svenare the AirPods unstable in SCO or ACL mode?
#asahi-dev · 2022-07-17 12:20
svenuh wait, that looks like something in the Bluetooth core
#asahi-dev · 2022-07-17 12:18
svendon’t think I ever saw that
#asahi-dev · 2022-07-17 12:18
svenstill weird that something timed out though
#asahi-dev · 2022-07-17 12:17
svenI think i replaced them all with _timeout_interruptible but it’s possible i missed one
#asahi-dev · 2022-07-15 19:10
sven:D
#asahi-dev · 2022-07-15 19:00
svenand then there's still ATC/thunderbolt...
#asahi-dev · 2022-07-15 19:00
sveni only consider bluetooth done anyway once it's in torvald's tree ;)
#asahi-dev · 2022-07-15 18:58
sveni didn't even realize that this would "complete" imac support :D
#asahi-dev · 2022-07-15 18:57
svenjannau: nice!
#asahi-dev · 2022-07-15 16:37
svenlooks like the bt function can be reset just like the WiFi one in the brcm Android driver. It just doesn’t come back up afterwards yet :(
#asahi-dev · 2022-07-15 11:35
sven:D
#asahi-dev · 2022-07-15 08:03
svenmany of broadcom's devices start with 43, i just didn't realize and that's why I called the driver bcm43xx
#asahi-dev · 2022-07-15 07:20
sven*than
#asahi-dev · 2022-07-15 07:20
sventhose are much more fun that one of these big planes :>
#asahi-dev · 2022-07-15 07:19
svenhave fun!
#asahi-dev · 2022-07-15 07:19
sven:D
#asahi-dev · 2022-07-15 07:18
sven(and because alyssa complained that BCM43XX looks ugly :D)
#asahi-dev · 2022-07-15 07:18
sveni've changed the name from 43xx to 4377 fwiw since there are tons of 43xx chips from broadcom that also do bluetooth but are just UART
#asahi-dev · 2022-07-15 07:09
sven(and maybe fixes 4377 but who knows)
#asahi-dev · 2022-07-15 07:08
svenit also sends the proper calibration data for M2 now though I'm not sure that makes any difference
#asahi-dev · 2022-07-15 07:07
sventhe LE thing is fixed in the current bluetooth-wip fwiw
#asahi-dev · 2022-07-15 04:02
svenand you also don’t have different pagetables in GL2 which is one of the things that makes the runtime service easier
#asahi-dev · 2022-07-15 04:02
svenyou need SPRR when you enable GXF and that’s not going to be possible upstream since it completely changes the meaning of pagetable permissions
#asahi-dev · 2022-07-14 15:43
sven*top
#asahi-dev · 2022-07-14 15:43
sveninteresting. so maybe it makes sense to just always drop the too byte in these controllers
#asahi-dev · 2022-07-14 15:06
svenhttps://www.bluetooth.com/specifications/specs/core-specification-5-3/
#asahi-dev · 2022-07-14 15:03
sven0x13 means Connectable,Scannable and Legacy PDU just like btmon claims
#asahi-dev · 2022-07-14 15:02
svennope
#asahi-dev · 2022-07-14 15:01
sven(and that’s the special thing about this controller, in the BT spec the upper byte is “reserved for future use”)
#asahi-dev · 2022-07-14 15:01
sventhe upper byte is likely the channel number the frame was received on
#asahi-dev · 2022-07-14 15:00
sventhe 0x13 is part of the BT spec
#asahi-dev · 2022-07-14 15:00
svenno. it says just below what 0x13 means
#asahi-dev · 2022-07-14 14:24
svennice, more confirmation that's it's literally just that one byte that's different
#asahi-dev · 2022-07-14 13:43
sveni'd still be very surprised
#asahi-dev · 2022-07-14 12:57
svenmacos works just fine with this, why would they bother to touch it?
#asahi-dev · 2022-07-14 12:57
svendon’t think so
#asahi-dev · 2022-07-14 07:44
sveni still wonder if it’s intentional or just a bug

plus ›