#
…

2022-06-19

01:24chadmed has joined #asahi-dev
01:29nicolas17 has quit [Quit: Konversation terminated!]
01:29nicolas17 has joined #asahi-dev
01:54nicolas17 has quit [Quit: Konversation terminated!]
01:54nicolas17 has joined #asahi-dev
02:33PhilippvK has quit [Ping timeout: 480 seconds]
02:52nicolas17 has quit [Ping timeout: 480 seconds]
03:33nico_32 has quit [Ping timeout: 480 seconds]
03:58nico_32 has joined #asahi-dev
06:19the_lanetly_052 has joined #asahi-dev
07:09bisko has joined #asahi-dev
07:21bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
09:19the_lanetly_052 has quit [Ping timeout: 480 seconds]
09:29c10l has quit [Quit: Bye o/]
09:29svendoes anyone know how to add the bluetooth function here by heart? it'll also need at least the board type. otherwise i'll go read some documentation but i'd like to avoid that :D https://github.com/AsahiLinux/linux/blob/asahi/arch/arm64/boot/dts/apple/t8103-jxxx.dtsi#L125
09:33c10l has joined #asahi-dev
09:45svenah, that was easier than expected
09:46svenreg = <0x10100 0x0 0x0 0x0 0x0>; works
09:46j`eybt works? :P
09:46svenit probes and the BARs are correctly mapped
09:47svenand now it can also construct the correct firmware filename (minus that weird MUR vs. USI part I still have to figure out)
09:47j`eywhich driver?
09:47svenuh, the one I wrote. there's unfortunately nothing that's similar
09:48svenR already did some nice reverse engineering, essentially it's HCI over what apple calls "Apple Converged IPC"
09:48j`eythat's a shame!
09:53svenyeah :(
09:53the_lanetly_052 has joined #asahi-dev
09:54svenI kinda hoped it would just be similar enough to some other broadcom stuff but there's no pcie broadcom bluetooth driver in linux
09:54svenit sounds like apple was involved in the design though
10:20the_lanetly_052 has quit [Ping timeout: 480 seconds]
10:33svenM=RASP m=6.11 V=m <-- that looks like part of the wifi otp, doesn't it?
10:33svenmarcan: ^--
10:34j`eyRASP is part of the wifi fw name
10:35j`eyhm, part of the .txt: brcmfmac4378b1-pcie.apple,shikoku-RASP-m.txt
10:35svenokay, looks like that's the bluetooth OTP then. unfortunately it doesn't seem to contain that "USI" or "MUR" string that's part of the bt firmware name
10:38gabuscus has joined #asahi-dev
10:50c10l has quit [Quit: Bye o/]
10:54c10l has joined #asahi-dev
12:09marcansven: yes, that's the wifi otp format
12:10marcansven: V=m = MUR, V=u = USI
12:10marcanm = murata
12:11marcanu = no idea but probably starts with USI
12:11marcanit's the module vendor
12:11svenohhhh…. duh
12:11marcanwe should just have the renamer do s/MUR/m/ s/USI/u/
12:11marcankeep with the format, avoid hardcoding nonsense in the driver
13:17chadmed has quit [Ping timeout: 480 seconds]
13:18chadmed has joined #asahi-dev
13:40MajorBiscuit has joined #asahi-dev
14:35sven[ 0.727905] applebt 0000:01:00.1: OTP: revision=b1, vendor=m
14:35sven[ 0.727909] applebt 0000:01:00.1: firmware name: brcmbt4378b1-apple,atlantisb-m.bin; ptb name: brcmbt4378b1-apple,atlantisb-m.ptb
14:36svenOTP parsing works just the same. let's see if I can actually get it to boot that firmware now
14:43yunisven: good luck! :-)
15:08amarioguy has joined #asahi-dev
15:24jakebot6 has quit [Quit: The Lounge - https://thelounge.chat]
15:30jakebot6 has joined #asahi-dev
15:38___nick___ has joined #asahi-dev
16:07MajorBiscuit has quit [Quit: WeeChat 3.5]
18:32sven*sigh*
18:32svenit booted almost immediately but it hated me because I didn't setup irqs correctly
18:53svenat least that confirms that this abomination actually requires the msi doorbell addressed to be configured inside some register in the BAR though
19:54j`eysven: did you see f3ce8a68d07d8001b8f90a908cd2e9d904e6df72 ? in m1n1
19:55svenbriefly
19:55j`eyoh thread here https://github.com/AsahiLinux/m1n1/pull/222 but the slowdown sounds fixed
19:55sveni got a bit sidetracked with what I assumed to be a quick and fun driver (Bluetooth) to take a break from that atcphy mess
19:57jannauslowdown is fixed
19:59jannausigh, why is the slimmed down io-pgtable-arm copy now broken. according to git reflog i made no significant changes
20:08___nick___ has quit [Ping timeout: 480 seconds]
20:23yunisven: All the drivers are a mess ^_^
20:24jannaudid I trick myself with CONFIG_USB_MASS_STORAGE_DEBUG=y, seems so
20:25j`eytrick yourself how? I guess this is related to the 5.19 thing you mentioned?
20:27jannauforgtton that I enabled it and thought it output looked like errors
20:29svenyuni: yup :-(
20:41sven[ 0.735752] applebt 0000:01:00.1: firmware name: brcmbt4378b1-apple,atlantisb-m.bin; ptb name: brcmbt4378b1-apple,atlantisb-m.ptb
20:41sven[ 1.174772] applebt 0000:01:00.1: firmware has booted (2)
20:41svenwith almost-sane code now :D
20:42svennow let's see about these complex IPC structures. so far I could drop most of the mystery init pokes as usual
21:11jannauhttps://github.com/jannau/linux/tree/apple-dart-t6000 with stripped down copy of io-pgtable-arm.c as io-pgtable-dart.c
21:12jannaulet's hope we get this one merged, I'll send it out tomorrow or tuesday
21:14jannaunext on the list for upstream are t600x devicetrees
21:14j`ey"found in the Apple M1 (t8103) is only
21:14j`eynot fully compatible with io-pgtable-arm."
21:15j`eyis the 'only' just an accidental extra word?
21:16j`ey"regarding the physical address bit 1" -> "regarding the physical address size, bit 1"
21:17j`eyalso add the asahi copyright to io-pgtable-dart.c
21:27j`eydart_prot_to_pte has pte = 0, in the DART2 branch, but it was already 0
21:33jannauyesall fixed. thanks
21:42yuyichao has joined #asahi-dev
21:45LunaFoxgirlVT has joined #asahi-dev
22:18LunaFoxgirlVT has quit [Quit: Leaving]
22:31manawyrm has joined #asahi-dev
23:59yunijannau: Hopefully that also lets you handle the dcp darts in a less-gross way?
23:59yuni"Move Apple DART", I mean
…