marcan changed the topic of #asahi-dev to: Asahi Linux: porting Linux to Apple Silicon macs | Non-development talk: #asahi | General development | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Logs: https://alx.sh/l/asahi-dev
amarioguy2 has quit [Ping timeout: 480 seconds]
<marcan> jannau: I expected that, yes we need to add proper PM to the keyboard stuff :)
<marcan> should be easy on the M2, just suspend rtkit
<marcan> no idea about the SPI ones though
whistlingoat has joined #asahi-dev
zw has joined #asahi-dev
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
zw has quit [Quit: leaving]
whistlingoat has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
whistlingoat has joined #asahi-dev
whistlingoat has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
Etrien_ has quit [Ping timeout: 480 seconds]
Etrien has joined #asahi-dev
Etrien_ has joined #asahi-dev
Etrien has quit [Ping timeout: 480 seconds]
<marcan> sven: do you know how bluetooth link keys are stored/shared? we're going to have to figure out how to sync that with macos at some point
<marcan> I tried following the Arch instructions for that but the plist mentioned no longer has the keys as far as I can tell
<marcan> nvram has a bunch of bluetooth related stuff, but I didn't see anything that clearly looked like keys?
<marcan> not sure...
pthariensflame has joined #asahi-dev
pthariensflame has quit []
Etrien_ has quit [Read error: Connection reset by peer]
Etrien has joined #asahi-dev
bluetail has quit [Ping timeout: 480 seconds]
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
duban6 has quit []
duban6 has joined #asahi-dev
duban6 has quit []
duban6 has joined #asahi-dev
bluetail has joined #asahi-dev
bluetail2 has joined #asahi-dev
bluetail has quit [Ping timeout: 480 seconds]
bluetail2 is now known as bluetail
<marcan> hm, I'm considering having a linux-asahi-dev package
<marcan> it would basically be the same thing as linux-asahi in asahi-dev, but pushed less often but enable more bleeding edge stuff (like sleep mode and eventually DCP and AGX)
<marcan> the idea being that users can install it without switching wholesale to asahi-dev, and can go back if it doesn't work for them
<marcan> thoughts?
<marcan> I could probably have the same PKGBUILD make both variants, and just do it as a .config difference
<marcan> I guess in practice these things can be disabled via cmdline options, but I feel like switching packages is more user-friendly than telling people to put stuff in /etc/default/grub to fix regressions...
bluetail8 has joined #asahi-dev
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
bluetail has quit [Ping timeout: 480 seconds]
bluetail8 is now known as bluetail
pthariensflame has joined #asahi-dev
pthariensflame has quit [Read error: Connection reset by peer]
bluetail has quit [Quit: The Lounge - https://thelounge.chat]
bluetail has joined #asahi-dev
<tpw_rules> just a reminder that i think additional clarity in what you are actually shipping to whom is necessary
bluetail6 has joined #asahi-dev
bluetail has quit [Ping timeout: 480 seconds]
bluetail6 is now known as bluetail
<sven> marcan: nope, never looked into where they are stored on macOS
<jannau> marcan: bluetooth link keys are stored in the keychain
<marcan> ohh, keychain. huh.
<marcan> then how do they sync between macOS installs? I assume they have to do that
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
<jannau> they are synced with recovery as well so maybe they are in nvram
<marcan> nvram has some stuff, possibly for a subset of devices only? (maybe HID only?)
<marcan> but I didn't see anything that clearly said link keys
<marcan> I wonder if SEP is involved...
<dottedmag> These keys are definitely synced between two macOS installs on the same machine
<jannau> do we know hoow the wlan ssid/passphrase/key is shared with recovery? I would expect that bt device MACs and link keys are shared in the same way
Etrien has quit [Read error: Connection reset by peer]
Etrien has joined #asahi-dev
ella-0 has joined #asahi-dev
ella-0_ has quit [Read error: Connection reset by peer]
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
SSJ_GZ has joined #asahi-dev
<sven> isn’t the wlan key stored in nvram and even propagated to the adt?
jakebot6022 has quit [Ping timeout: 480 seconds]
<jannau> I see BluetoothUHEDevices in nvram which has strings of the connected devices and enough binary looking additional data to include MAC and link key
jakebot6022 has joined #asahi-dev
the_lanetly_052 has joined #asahi-dev
the_lanetly_052__ has joined #asahi-dev
the_lanetly_052 has quit [Ping timeout: 480 seconds]
<jannau> BluetoothUHEDevices is in nvram-proxy-data in the ADT. the link keys are probably sensitive enough to avoid stuffing them into the devicetree
<jannau> I'll look tonight how (if) MAC and link key are encoded in there
dd has joined #asahi-dev
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
povik has joined #asahi-dev
the_lanetly_052 has joined #asahi-dev
bluetail has quit [Ping timeout: 480 seconds]
the_lanetly_052__ has quit [Ping timeout: 480 seconds]
as400 has joined #asahi-dev
<as400> marcan: linux-asahi-dev package is a great idea. That's my two cents.
ella-0 has left #asahi-dev [#asahi-dev]
MajorBiscuit has joined #asahi-dev
<mps> I have linux-asahi-git for my usage and testing on alpine, though don't upload it anywhere
bluetail has joined #asahi-dev
ril has joined #asahi-dev
ril has quit [Quit: leaving]
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
<as400> mps: afaiu it would be something similar
<mps> as400: similar yes, but not same
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
as400 has quit [Quit: Page closed]
SSJ_GZ has quit [Ping timeout: 480 seconds]
MajorBiscuit has quit [Ping timeout: 480 seconds]
SSJ_GZ has joined #asahi-dev
chadmed has joined #asahi-dev
kedde has joined #asahi-dev
MajorBiscuit has joined #asahi-dev
chipxxx has joined #asahi-dev
chipxxx has quit [Read error: Connection reset by peer]
chipxxx has joined #asahi-dev
chipxxx has quit [Remote host closed the connection]
chipxxx has joined #asahi-dev
MajorBiscuit has quit [Ping timeout: 480 seconds]
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
MajorBiscuit has joined #asahi-dev
the_lanetly_052__ has joined #asahi-dev
MajorBiscuit has quit [Read error: Connection reset by peer]
MajorBiscuit has joined #asahi-dev
the_lanetly_052 has quit [Ping timeout: 480 seconds]
MajorBiscuit has quit []
Etrien_ has joined #asahi-dev
Etrien has quit [Ping timeout: 480 seconds]
MajorBiscuit has joined #asahi-dev
amarioguy2 has joined #asahi-dev
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
c10l6 has joined #asahi-dev
c10l6 has quit []
c10l9 has joined #asahi-dev
c10l has quit [Ping timeout: 480 seconds]
c10l9 has quit []
c10l has joined #asahi-dev
chengsun has quit [Quit: Quit]
chengsun has joined #asahi-dev
the_lanetly_052__ has quit [Ping timeout: 480 seconds]
c10l9 has joined #asahi-dev
c10l9 has quit []
c10l4 has joined #asahi-dev
c10l4 has quit []
c10l7 has joined #asahi-dev
c10l7 has quit []
c10l has quit [Ping timeout: 480 seconds]
amarioguy2 has quit [Ping timeout: 480 seconds]
c10l has joined #asahi-dev
<ayke_> marcan: I did sync my Bluetooth keyboard and headphones between Linux and MacOS, it is possible
<ayke_> I updated the Arch wiki with the information and also left some important notes for BT 5.1 on the discussion page
<ayke_> In short, extract the keys from the plist in the keychain, convert from base64 to hex or numbers, and follow the tutorial as usual
<jannau> isn't there an option in keychain to display as hex? I can't remember that I had to convert the keys from base64
<ayke_> I don't know, I simply extracted the plist from the keychain
<jannau> just checked: it's encoded as string in the form 12-34-56-78-AD-EC... if you klich show password
<jannau> but it's in nvram/adt which is more convenient
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
c10l2 has joined #asahi-dev
c10l2 has quit []
c10l5 has joined #asahi-dev
c10l5 has quit []
c10l5 has joined #asahi-dev
c10l5 has quit []
MajorBiscuit has quit [Ping timeout: 480 seconds]
c10l2 has joined #asahi-dev
c10l2 has quit []
c10l has quit [Ping timeout: 480 seconds]
c10l has joined #asahi-dev
MajorBiscuit has joined #asahi-dev
<r0ni> ooh i'd love if i could get that bt sync to work on slackware, i'll have to try it later (hate this "gaming" keyboard)
amarioguy2 has joined #asahi-dev
gladiac has joined #asahi-dev
m5zs7k has quit [Ping timeout: 480 seconds]
m5zs7k has joined #asahi-dev
balrog_ has joined #asahi-dev
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
balrog has quit [Ping timeout: 480 seconds]
chipxxx has quit [Ping timeout: 480 seconds]
amarioguy2 has quit [Ping timeout: 480 seconds]
amarioguy2 has joined #asahi-dev
<ayke_> jannau: how did you do it? I did it via Keychain Access which just gives me an XML/plist file
amarioguy2 has quit [Ping timeout: 480 seconds]
Deewiant has quit [Remote host closed the connection]
Deewiant has joined #asahi-dev
<maz> marcan: does m1n1 always enable the guest timers before entering the payload?
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
<maz> or maybe they just default to enabled... odd.
kedde has quit [Ping timeout: 480 seconds]
Gaspare has joined #asahi-dev
Gaspare has quit []
Gaspare has joined #asahi-dev
dd has quit [Read error: Connection reset by peer]
MajorBiscuit has quit [Ping timeout: 480 seconds]
c10l has quit [Quit: Bye o/]
c10l has joined #asahi-dev
chadmed has quit [Remote host closed the connection]
Gaspare has quit [Quit: Gaspare]
c10l has quit [Quit: Bye o/]
c10l has joined #asahi-dev
whistlingoat has joined #asahi-dev
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
c10l has quit []
whistlingoat has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
ljs has joined #asahi-dev
whistlingoat has joined #asahi-dev
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
MajorBiscuit has joined #asahi-dev
MajorBiscuit has quit [Ping timeout: 480 seconds]
Gaspare has joined #asahi-dev
gladiac has quit [Quit: k thx bye]
ljs has quit [Ping timeout: 480 seconds]
Gaspare has quit [Quit: Gaspare]
Gaspare has joined #asahi-dev
qyliss has joined #asahi-dev
c10l has joined #asahi-dev
c10l has quit []
c10l has joined #asahi-dev
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
whistlingoat has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
enron has joined #asahi-dev
c10l has quit [Quit: Bye o/]
c10l has joined #asahi-dev
jluthra has quit [Remote host closed the connection]
jluthra has joined #asahi-dev
ljs has joined #asahi-dev
Gaspare has quit [Quit: Gaspare]
Retr0id1 has joined #asahi-dev
Retr0id has quit [Remote host closed the connection]
Retr0id1 is now known as Retr0id
whistlingoat has joined #asahi-dev
Gaspare has joined #asahi-dev
espo has joined #asahi-dev
whistlingoat has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
Gaspare has quit [Quit: Gaspare]
Gaspare has joined #asahi-dev
Gaspare has quit [Quit: Gaspare]
Gaspare has joined #asahi-dev
ljs has quit [Ping timeout: 480 seconds]
MajorBiscuit has joined #asahi-dev
derzahl has joined #asahi-dev
espo has quit [Quit: zzz]
* robher iommu probing seems flaky on current asahi-wip:
<robher> In this case, things seem to be working. Some boots have no audio nor USB and there's a NULL ptr backtrace from the DART driver. I don't seem to have captured a log from that.
MajorBiscuit has quit [Ping timeout: 480 seconds]
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
<jannau> did we somehow end up with duplicated device nodes:
<jannau> sysfs: cannot create duplicate filename '/devices/platform/soc/39b400000.dma-controller/iommu_group'
espo has joined #asahi-dev
<sven> there was also that bus_set_iommu cleanup series in the core, maybe that interacts with dart in a strange way
<jannau> hmm, is that just a side effect of the dual darts in admac
<sven> well… USB has dual darts as well and it apparently also breaks sometimes
<sven> maybe that combined with the bus_set_iommu? Would also explain why I never noticed it because I usually run upstream kernels which don’t have the usb nodes
derzahl has quit [Remote host closed the connection]
<jannau> pcie darts fail as well
derzahl has joined #asahi-dev
<jannau> but yes, I would suspect an interaction with something else in v6.1-rc1. I've never seen that with the same devicetrees in v6.0-rc*
<sven> hrm, i don’t think I ran 6.1 yet
<sven> I remember testing that bus cleanup on top of 6.0 though
<jannau> no dart probe errors m2 so far and I did quite a few reboots due to the tps6598x issue
<jannau> I guess I'll test on the ultra, more darts to trigger bugs
<robher> The dts looks sane to me...
<jannau> yes. it was a first guess since we moved dart_sio to order it correctly by address which could have cause merge/rebase issues but dtc would have screamed
bisko has quit [Read error: Connection reset by peer]
bisko has joined #asahi-dev
Etrien has joined #asahi-dev
<robher> I thought maybe there was both dart@1234 and iommu@1234 which dtc only complains about with 'W=1', but no complaint there. Though 'dart' should be fixed...
espo has quit [Quit: espo]
Etrien_ has quit [Ping timeout: 480 seconds]
<jannau> I see "cacheinfo: Unable to detect cache hierarchy for CPU x" for every cpu core
<jannau> not new
Etrien_ has joined #asahi-dev
<robher> Here's a boot with the NULL deref: https://www.irccloud.com/pastebin/6EhNxoL3/
Etrien has quit [Ping timeout: 480 seconds]
<jannau> robher: are the drivers mostly built-in? I can't reproduce it here but I have a much nicer probe order. all darts are probed before the first device is attached to an iommu domain
<robher> jannau: It's the config from Asahi for the most part.
<robher> Actually, the NULL deref happened the current (sucessful) boot too...
dd has joined #asahi-dev
dd has quit []
SSJ_GZ has quit [Ping timeout: 480 seconds]
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
<jannau> robher: reproduced after removing the dart module from the initramfs
<robher> jannau: I think the problem may be PCI probes before the DART.
<robher> Or just another problem...
<robher> OF: /soc/pcie@590000000: no iommu-map translation for id 0x0 on (null)
<jannau> it looks like probing dart and devices using dart at the same causes problems for devices which in someway use more than 1 dart
<jannau> dwc3 and admac directly, pcie one for each link
<jannau> could it be that the problem is that the device is probed after probing the first dart and device iommu setup races with probing of additional darts?
<robher> No splats and wifi works now with dart built-in!
<robher> I'm guessing fw_devlink is not handling iommu-map dependency nor is deferred probe working for it.
Gaspare has quit [Quit: Gaspare]
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
nikorai_ has joined #asahi-dev
nikorai has quit [Ping timeout: 480 seconds]
whistlingoat has joined #asahi-dev
Core9066 has joined #asahi-dev
whistlingoat has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]