#
✕ nick:rqou_
#asahi-re · 2022-04-08 06:49
rqou_so what do i have to put into the HV to trace it?
#asahi-re · 2022-04-08 06:48
rqou_afaict d221ap/iphoneX/A11 has bluetooth on a uart while d331ap/iphoneXS/A12 has it on pcie
#asahi-re · 2022-04-08 06:46
rqou_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
#asahi-re · 2022-04-08 06:32
rqou_i usually see that explicitly specified as {x|E|U|O}HCI though
#asahi-re · 2022-04-08 06:32
rqou_oh right lol
#asahi-re · 2022-04-08 06:31
rqou_HCI over USB over PCIe also seems pretty reasonable tbh
#asahi-re · 2022-04-08 06:30
rqou_i didn't see any references to USB
#asahi-re · 2022-04-08 06:30
rqou_chadmed: are you sure?
#asahi-re · 2022-04-08 06:30
rqou_there's a pcie driver, but all it seems to do is issue function level resets
#asahi-re · 2022-04-08 06:29
rqou_and i definitely never figured out what driver is even involved in macos, since the macos stack seems really overcomplicated
#asahi-re · 2022-04-08 06:29
rqou_i have no idea how to trace PCIe though
#asahi-re · 2022-04-08 06:28
rqou_yes, function 1 vs function 0
#asahi-re · 2022-04-08 06:21
rqou_i assume it's been made way more complicated than just HCI over PCIe?
#asahi-re · 2022-04-08 06:20
rqou_has anyone taken any kind of look at bluetooth?
#asahi-re · 2022-04-07 19:00
rqou_the scaler and prores blocks have a _huge_ pile of dart tunables
#asahi-re · 2022-04-07 18:58
rqou_that's why my current guess is that it might be something about caching or something about transaction queue limits
#asahi-re · 2022-04-07 18:57
rqou_but i don't know what that is either lol
#asahi-re · 2022-04-07 18:57
rqou_the tunables code has a debug error message mentioning something about "client partitions"
#asahi-re · 2022-04-07 18:53
rqou_btw for reference: not applying the t8110 DART tunables still seems to work (consequences not yet determined), but not applying the prores tunables seems to make the block completely stop working
#asahi-re · 2022-04-07 18:52
rqou_feels like it
#asahi-re · 2022-04-07 18:47
rqou_bits [15:8] and [7:0] for major/minor
#asahi-re · 2022-04-07 18:46
rqou_it's found at register +0x8
#asahi-re · 2022-04-07 18:41
rqou_t8110 also seems to have settings related to controlling or otherwise affecting the number of outstanding transactions, but i don't understand anything about that either
#asahi-re · 2022-04-07 18:39
rqou_e.g. "STT" "CTC" "STC"
#asahi-re · 2022-04-07 18:38
rqou_e.g. invalidating caches with an address range, extra page table levels, and a bunch of other acronym soup i don't understand
#asahi-re · 2022-04-07 18:36
rqou_version 2 supports a lot more features
#asahi-re · 2022-04-07 18:36
rqou_yes, what i mean is that the m2 might have t8110 darts with version 2 instead of version 1
#asahi-re · 2022-04-07 18:33
rqou_the m2 might be much more "exciting"
#asahi-re · 2022-04-07 18:33
rqou_the t8110 dart in the t600x feels like a weird transitionary implementation with most of the features missing
#asahi-re · 2022-04-07 18:30
rqou_ok i really need to go out and buy a thunderbolt widget and take a look
#asahi-re · 2022-04-07 18:29
rqou_the register interface seems to be built for up to 256 streams, but the first 16 seem to still be special with more features
#asahi-re · 2022-04-07 18:29
rqou_of the t8110 darts i've looked at, they all support 16 streams, 42-bit physaddrs, and 36-bit iova according to the parameter registers
#asahi-re · 2022-04-07 18:28
rqou_the prores block itself is limited to 42 bit iova space
#asahi-re · 2022-04-07 18:27
rqou_i can test it with the prores block later
#asahi-re · 2022-04-07 18:27
rqou_the hardware config register says 36 bits
#asahi-re · 2022-04-07 18:27
rqou_that's just from static analysis of macos drivers
#asahi-re · 2022-04-07 18:27
rqou_fwiw i haven't _tested_ the full extent of the iova space
#asahi-re · 2022-04-07 18:26
rqou_i should buy a thunderbolt widget just so i can do what you suggested (read register 0 once macos has set everything up)
#asahi-re · 2022-04-07 18:25
rqou_no, 36 bits on everything except the apciec ones, which i haven't managed to check
#asahi-re · 2022-04-07 18:23
rqou_fwiw t8110 doesn't seem to have any equivalent setting, so either i haven't found it or it cannot do that
#asahi-re · 2022-04-07 18:22
rqou_afaict it only does 32bit, but i've only been testing in m1n1 with DART enabled
#asahi-re · 2022-04-07 18:22
rqou_at bit [23:16]
#asahi-re · 2022-04-07 18:21
rqou_it's in the register that m1n1 seems to be calling TCR
#asahi-re · 2022-04-07 18:21
rqou_that's probably what the "bypass_addr_39_32" does then
#asahi-re · 2022-04-07 18:20
rqou_but that won't work for devices like jpeg that only seem to itself be able to pass 32-bit physaddrs?
#asahi-re · 2022-04-07 18:20
rqou_huh
#asahi-re · 2022-04-07 18:20
rqou_oh ok
#asahi-re · 2022-04-07 18:19
rqou_isn't the iova space smaller than the physical address space?
#asahi-re · 2022-04-07 18:18
rqou_but i don't quite understand how bypass mode works (and i'm not sure t8110 has it)
#asahi-re · 2022-04-07 18:17
rqou_there's also bypass_addr_39_32 (and bypass_addr_41_32 for t6000) in the TCR

plus ›