#asahi-dev · 2022-07-07 18:07
marcanwe can sleep/resume the MTP, but it won't re-send HID report descriptors when you do that I believe#asahi-dev · 2022-07-07 18:07
marcanI sure hope we can find some way to do that, because otherwise making u-boot and Linux play is going to *really* suck...#asahi-dev · 2022-07-07 18:07
marcanproblem jannau just made me realize: I don't know how to reset MTP, and it only sends HID report descriptors on startup#asahi-dev · 2022-07-07 17:56
marcanjannau, kettenis, sven, j`ey: let me know your thoughts ^#asahi-dev · 2022-07-07 17:55
marcan(it properly supports output reports and such now, so the keyboard LEDs work)#asahi-dev · 2022-07-07 17:55
marcanfinally, done with that silly driver. That took way too much effort.#asahi-dev · 2022-07-07 17:55
marcanhttps://github.com/AsahiLinux/linux/compare/b781679f65b2f7b376e32d2b8b7f9283dfb94f5d..t8112/bringup#asahi-dev · 2022-07-07 16:02
marcaner, GET_REPORT#asahi-dev · 2022-07-07 16:02
marcan(I tried spamming every GET_REQUEST on stm)#asahi-dev · 2022-07-07 16:01
marcanmacOS just never gets them#asahi-dev · 2022-07-07 16:01
marcanthere *are* IDs!#asahi-dev · 2022-07-07 16:01
marcan[MTP][stm] 00000020 5a |Z |#asahi-dev · 2022-07-07 16:01
marcan[MTP][stm] 00000010 31 38 36 30 38 31 53 31 4a 36 43 33 4b 2b 45 4d |186081S1J6C3K+EM|#asahi-dev · 2022-07-07 16:01
marcan[MTP][stm] 00000000 10 02 ac 05 54 03 40 02 02 00 02 15 46 4d 37 32 |....T.@.....FM72|#asahi-dev · 2022-07-06 16:16
marcanI don't know how to turn it on yet, and I probably won't care for the time being#asahi-dev · 2022-07-05 05:01
marcan(and that stacks on top of sync trace mode if you want)#asahi-dev · 2022-07-05 05:00
marcanthe hv can patch in hook mode you know :p#asahi-dev · 2022-07-04 16:38
marcan(and bluetooth, if you feel up to it :D)#asahi-dev · 2022-07-04 16:36
marcanand then we ship an asahi release with M2 and Mac Studio support this weekend :p#asahi-dev · 2022-07-04 16:36
marcanI *think* I can#asahi-dev · 2022-07-04 16:36
marcananyway, I should get some sleep and see if I can actually wrap up this touchpad mess tomorrow#asahi-dev · 2022-07-04 16:35
marcanI mean, broadcom was involved#asahi-dev · 2022-07-04 16:34
marcanlovely#asahi-dev · 2022-07-04 16:34
marcanheh#asahi-dev · 2022-07-04 16:32
marcanyeah, good idea#asahi-dev · 2022-07-04 16:32
marcanso it probably Just Works#asahi-dev · 2022-07-04 16:32
marcansurely this controller knows not to try to put more data than fits in the ring#asahi-dev · 2022-07-04 16:32
marcanbut anyway, I'm guessing you don't *actually* have to configure it#asahi-dev · 2022-07-04 16:31
marcanlinux never sends that hci command though, at least not in the kernel...#asahi-dev · 2022-07-04 16:30
marcanso I guess they don't actually map 1:1 to the packets on air, there's a layer of re-segmentation in the controller#asahi-dev · 2022-07-04 16:29
marcanets will not exceed these sizes.#asahi-dev · 2022-07-04 16:29
marcanfrom the Controller to the Host, so#asahi-dev · 2022-07-04 16:29
marcanthat data contained in HCI Data Pack-#asahi-dev · 2022-07-04 16:29
marcansegment the data to be transmitted#asahi-dev · 2022-07-04 16:29
marcanThe Controller will#asahi-dev · 2022-07-04 16:29
marcanPacket that the Host is able to accept.#asahi-dev · 2022-07-04 16:29
marcan0xXXXX#asahi-dev · 2022-07-04 16:29
marcanMaximum length (in octets) of the data portion of each HCI ACL Data#asahi-dev · 2022-07-04 16:28
marcanHost Buffer Size command#asahi-dev · 2022-07-04 16:28
marcanah wait, this is configurable#asahi-dev · 2022-07-04 16:24
marcanprobably just wrong#asahi-dev · 2022-07-04 16:24
marcanthat header is not present at the HCI layer, so 1021 data bytes + HCI header#asahi-dev · 2022-07-04 16:23
marcan(including the 2-byte payload header)#asahi-dev · 2022-07-04 16:23
marcanThe 3-DH5 packet has between 2 and 1023 information bytes#asahi-dev · 2022-07-04 16:21
marcanso 1025 bytes with HCI header#asahi-dev · 2022-07-04 16:21
marcanoh wait, 1023#asahi-dev · 2022-07-04 16:21
marcanso yeah...#asahi-dev · 2022-07-04 16:21
marcanI think the max packet size is 1022 bytes without the header, and then at the HCI layer it adds a 4-byte header, so 1026#asahi-dev · 2022-07-04 16:18
marcanhuh, interesting, so it really is just borderline#asahi-dev · 2022-07-04 16:14
marcansven: isn't there a relatively small max ACL packet size?