#
…

2022-04-08

02:50yuyichao has quit [Ping timeout: 480 seconds]
02:55phiologe has joined #asahi-re
02:58PhilippvK has quit [Ping timeout: 480 seconds]
03:04yuyichao has joined #asahi-re
03:38nicolas17 has quit [Ping timeout: 480 seconds]
03:44akemin_dayo has quit [Quit: ┐(´д`🍍)┌ ]
03:45akemin_dayo has joined #asahi-re
04:36emptynine has quit [Remote host closed the connection]
04:36emptynine has joined #asahi-re
06:11alexsv has joined #asahi-re
06:20rqou_has anyone taken any kind of look at bluetooth?
06:21rqou_i assume it's been made way more complicated than just HCI over PCIe?
06:22the_lanetly_052___ has joined #asahi-re
06:25jannauI'm not aware of anyone looking into bluetooth
06:25chadmedits like HCI over USB over PCIe or something silly like that
06:25chadmedbut i dont think anyone figured anything out beyond that information
06:26Jamie[m]1is it in the same broadcom chip as the wifi?
06:28chadmedi would imagine so but dont quote me on that
06:28rqou_yes, function 1 vs function 0
06:29rqou_i have no idea how to trace PCIe though
06:29rqou_and i definitely never figured out what driver is even involved in macos, since the macos stack seems really overcomplicated
06:30rqou_there's a pcie driver, but all it seems to do is issue function level resets
06:30rqou_chadmed: are you sure?
06:30rqou_i didn't see any references to USB
06:31rqou_HCI over USB over PCIe also seems pretty reasonable tbh
06:31Jamie[m]1isn't usb over pcie also called HCI? :P
06:32rqou_oh right lol
06:32rqou_i usually see that explicitly specified as {x|E|U|O}HCI though
06:35jannauchadmed: macos ioreg doesn't look like there's usb involved for bt
06:39jannauHCI is just host controller interface. it's just a name from the standards. sata as ahci, nvme has nvmhci, firewire has one too
06:46svenbluetooth will essentially just be a MMIO region inside the pcie one
06:46rqou_interestingly, bluetooth has a compatible of "bluetooth,n88" in the m1 adt, but there exists idevice DTs that have "bluetooth,n88" attached to a UART
06:48rqou_afaict d221ap/iphoneX/A11 has bluetooth on a uart while d331ap/iphoneXS/A12 has it on pcie
06:48svenmaybe that bluetooth function just exposes a simple UART over pcie :D
06:49rqou_so what do i have to put into the HV to trace it?
06:49rqou_i'm still not super familiar with all of the trace tooling
06:50rqou_i'm guessing wifi was made working without involving much tracing?
06:52rqou_fwiw bluetooth has 2 BARs so it's not "simple"
06:54svenyou should be able to use trace_range to get started
06:54Jamie[m]1one for uart tx, one for uart rx :P
06:54svenjust gotta figure out where the BAR is mapped
06:54rqou_lmao no they're different sizes
08:43itsn0k[m] has joined #asahi-re
08:43MajorBiscuit has joined #asahi-re
08:47f14h has joined #asahi-re
09:34bisko has quit [Read error: Connection reset by peer]
11:46the_lanetly_052__ has joined #asahi-re
11:52the_lanetly_052___ has quit [Ping timeout: 480 seconds]
12:10yuyichao has quit [Ping timeout: 480 seconds]
12:21yuyichao has joined #asahi-re
12:27MajorBiscuit has quit [Ping timeout: 480 seconds]
14:08amarioguy has joined #asahi-re
14:15MajorBiscuit has joined #asahi-re
14:49doggkruse has joined #asahi-re
15:05cyrozap has quit [Ping timeout: 480 seconds]
15:06cyrozap has joined #asahi-re
15:35amarioguy has quit [Ping timeout: 480 seconds]
15:47doggkruse has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
15:50the_lanetly_052__ has quit [Ping timeout: 480 seconds]
16:03the_lanetly_052__ has joined #asahi-re
16:47MajorBiscuit has quit [Ping timeout: 480 seconds]
16:58amarioguy has joined #asahi-re
17:21nicolas17 has joined #asahi-re
17:50doggkruse has joined #asahi-re
18:30doggkruse has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:54amarioguy has quit [Ping timeout: 480 seconds]
20:18doggkruse has joined #asahi-re
20:18doggkruse has quit []
20:26doggkruse has joined #asahi-re
20:28doggkruse has quit []
21:56Lightsword has quit [Quit: ZNC]
22:06Lightsword has joined #asahi-re
22:09f14h has quit [Remote host closed the connection]
23:16zopieux has quit [Ping timeout: 480 seconds]
23:18zopieux has joined #asahi-re
…