#
#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
Jamie[m]1oh hmm
#asahi-re · 2022-04-10 05:16
rqou_afaict that's USB
#asahi-re · 2022-04-10 05:14
Jamie[m]1implication of this gentoo wiki article section is that some sort of broadcom pcie bluetooth is supported
#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:14
Jamie[m]1uploaded an image: (125KiB) < https://matrix.org/_matrix/media/r0/download/memes.nz/ygzmqFweNptQrsgWsMAlRXpH/image.png >
#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
marcanmaybe there's some way to configure a timeout
#asahi-re · 2022-04-10 05:12
rqou_there's broadcom uart bluetooth
#asahi-re · 2022-04-10 05:12
marcanI dunno, maybe? I mean it sounds like a TLP that never completes
#asahi-re · 2022-04-10 05:12
rqou_hrm, i'm not aware of anything
#asahi-re · 2022-04-10 05:12
marcanI find it hard to believe nothing else uses this
#asahi-re · 2022-04-10 05:12
rqou_it can't be turned into a bus error?
#asahi-re · 2022-04-10 05:12
marcanis there really no linux driver for this at all? like no other bluetooth driver that fits? some broadcom sdhc stuff? some android source drop?
#asahi-re · 2022-04-10 05:12
marcanwhich is not sane
#asahi-re · 2022-04-10 05:12
marcansince a stuck MMIO isn't exactly recoverable except by another CPU
#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
marcanit's unclear if there is a way to recover
#asahi-re · 2022-04-10 05:11
marcanI know
#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:11
marcanI would expect the PCIe core to be ~the same, but not a lot of the rest since the bluetooth stuff has a very different lineage
#asahi-re · 2022-04-10 05:10
marcanthat's not surprising
#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
#asahi-re · 2022-04-10 05:09
marcanyes, it uses two for wifi too
#asahi-re · 2022-04-10 05:09
rqou_for bluetooth
#asahi-re · 2022-04-10 05:09
rqou_yes, macos definitely uses more
#asahi-re · 2022-04-10 05:09
marcanand then other hardcoded ones
#asahi-re · 2022-04-10 05:09
marcanat least two configurable ones
#asahi-re · 2022-04-10 05:09
marcanalso there are several BAR windows, linux only uses one AFAIR
#asahi-re · 2022-04-10 05:08
marcanand I doubt they have a different PCIe core for bluetooth so it should have the same registers for that?
#asahi-re · 2022-04-10 05:08
rqou_many parts are similar though
#asahi-re · 2022-04-10 05:08
marcanI mean the idea of remapping the BAR window via config space
#asahi-re · 2022-04-10 05:08
rqou_i have been reading it, but it doesn't look the same?
#asahi-re · 2022-04-10 05:08
marcaneverything you're describing about the window stuff sounds exactly like what it does
#asahi-re · 2022-04-10 05:07
marcanrqou_: you should read the broadcom wifi driver
#asahi-re · 2022-04-10 05:02
rqou_yolo
#asahi-re · 2022-04-10 05:02
rqou_afaict it's not guaranteed to be page aligned, but happens to be for now
#asahi-re · 2022-04-10 05:00
phireshould work if the thing you are tracing is page aligned. It only runs into issues if a read/store starts on a previous non-traced page, and overflows into the page you are tracing

plus ›