ChanServ changed the topic of #asahi-dev to: Asahi Linux: porting Linux to Apple Silicon macs | General development | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Logs: https://alx.sh/l/asahi-dev
chadmed has joined #asahi-dev
nicolas17 has quit [Quit: Konversation terminated!]
nicolas17 has joined #asahi-dev
nicolas17 has quit [Quit: Konversation terminated!]
nicolas17 has joined #asahi-dev
PhilippvK has quit [Ping timeout: 480 seconds]
nicolas17 has quit [Ping timeout: 480 seconds]
nico_32 has quit [Ping timeout: 480 seconds]
nico_32 has joined #asahi-dev
the_lanetly_052 has joined #asahi-dev
bisko has joined #asahi-dev
bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
the_lanetly_052 has quit [Ping timeout: 480 seconds]
c10l has quit [Quit: Bye o/]
<sven> does 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
c10l has joined #asahi-dev
<sven> ah, that was easier than expected
<sven> reg = <0x10100 0x0 0x0 0x0 0x0>; works
<j`ey> bt works? :P
<sven> no :D
<sven> it probes and the BARs are correctly mapped
<sven> and now it can also construct the correct firmware filename (minus that weird MUR vs. USI part I still have to figure out)
<j`ey> which driver?
<sven> uh, the one I wrote. there's unfortunately nothing that's similar
<j`ey> oh
<sven> R already did some nice reverse engineering, essentially it's HCI over what apple calls "Apple Converged IPC"
<j`ey> that's a shame!
<sven> yeah :(
the_lanetly_052 has joined #asahi-dev
<sven> I kinda hoped it would just be similar enough to some other broadcom stuff but there's no pcie broadcom bluetooth driver in linux
<sven> it sounds like apple was involved in the design though
the_lanetly_052 has quit [Ping timeout: 480 seconds]
<sven> M=RASP m=6.11 V=m <-- that looks like part of the wifi otp, doesn't it?
<sven> marcan: ^--
<j`ey> RASP is part of the wifi fw name
<j`ey> hm, part of the .txt: brcmfmac4378b1-pcie.apple,shikoku-RASP-m.txt
<sven> okay, 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
gabuscus has joined #asahi-dev
c10l has quit [Quit: Bye o/]
c10l has joined #asahi-dev
<marcan> sven: yes, that's the wifi otp format
<marcan> sven: V=m = MUR, V=u = USI
<marcan> m = murata
<marcan> u = no idea but probably starts with USI
<marcan> it's the module vendor
<sven> ohhhh…. duh
<marcan> we should just have the renamer do s/MUR/m/ s/USI/u/
<marcan> keep with the format, avoid hardcoding nonsense in the driver
<sven> yeah
chadmed has quit [Ping timeout: 480 seconds]
chadmed has joined #asahi-dev
MajorBiscuit has joined #asahi-dev
<dottedmag> USI probably https://www.usiglobal.com/en
<sven> [ 0.727905] applebt 0000:01:00.1: OTP: revision=b1, vendor=m
<sven> [ 0.727909] applebt 0000:01:00.1: firmware name: brcmbt4378b1-apple,atlantisb-m.bin; ptb name: brcmbt4378b1-apple,atlantisb-m.ptb
<sven> OTP parsing works just the same. let's see if I can actually get it to boot that firmware now
<yuni> sven: good luck! :-)
amarioguy has joined #asahi-dev
jakebot6 has quit [Quit: The Lounge - https://thelounge.chat]
jakebot6 has joined #asahi-dev
___nick___ has joined #asahi-dev
MajorBiscuit has quit [Quit: WeeChat 3.5]
<sven> *sigh*
<sven> it booted almost immediately but it hated me because I didn't setup irqs correctly
<sven> at least that confirms that this abomination actually requires the msi doorbell addressed to be configured inside some register in the BAR though
<j`ey> sven: did you see f3ce8a68d07d8001b8f90a908cd2e9d904e6df72 ? in m1n1
<sven> briefly
<j`ey> oh thread here https://github.com/AsahiLinux/m1n1/pull/222 but the slowdown sounds fixed
<sven> i got a bit sidetracked with what I assumed to be a quick and fun driver (Bluetooth) to take a break from that atcphy mess
<jannau> slowdown is fixed
<jannau> sigh, why is the slimmed down io-pgtable-arm copy now broken. according to git reflog i made no significant changes
___nick___ has quit [Ping timeout: 480 seconds]
<yuni> sven: All the drivers are a mess ^_^
<jannau> did I trick myself with CONFIG_USB_MASS_STORAGE_DEBUG=y, seems so
<j`ey> trick yourself how? I guess this is related to the 5.19 thing you mentioned?
<jannau> forgtton that I enabled it and thought it output looked like errors
<j`ey> oh!
<sven> yuni: yup :-(
<sven> [ 0.735752] applebt 0000:01:00.1: firmware name: brcmbt4378b1-apple,atlantisb-m.bin; ptb name: brcmbt4378b1-apple,atlantisb-m.ptb
<sven> [ 1.174772] applebt 0000:01:00.1: firmware has booted (2)
<sven> with almost-sane code now :D
<sven> now let's see about these complex IPC structures. so far I could drop most of the mystery init pokes as usual
<jannau> https://github.com/jannau/linux/tree/apple-dart-t6000 with stripped down copy of io-pgtable-arm.c as io-pgtable-dart.c
<jannau> let's hope we get this one merged, I'll send it out tomorrow or tuesday
<jannau> next on the list for upstream are t600x devicetrees
<j`ey> "found in the Apple M1 (t8103) is only
<j`ey> not fully compatible with io-pgtable-arm."
<j`ey> is the 'only' just an accidental extra word?
<j`ey> "regarding the physical address bit 1" -> "regarding the physical address size, bit 1"
<j`ey> also add the asahi copyright to io-pgtable-dart.c
<j`ey> dart_prot_to_pte has pte = 0, in the DART2 branch, but it was already 0
<jannau> yesall fixed. thanks
yuyichao has joined #asahi-dev
LunaFoxgirlVT has joined #asahi-dev
LunaFoxgirlVT has quit [Quit: Leaving]
manawyrm has joined #asahi-dev
<yuni> jannau: Hopefully that also lets you handle the dcp darts in a less-gross way?
<yuni> "Move Apple DART", I mean