ChanServ 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
robinp has joined #asahi-dev
robinp has quit [Ping timeout: 480 seconds]
abby_ has joined #asahi-dev
abby has quit [Ping timeout: 480 seconds]
abby_ is now known as abby
robinp has joined #asahi-dev
abby has quit [Read error: Connection reset by peer]
robinp has quit [Ping timeout: 480 seconds]
abby has joined #asahi-dev
kesslerd has joined #asahi-dev
opticron has quit [Ping timeout: 480 seconds]
robinp has joined #asahi-dev
robinp has quit [Ping timeout: 480 seconds]
opticron has joined #asahi-dev
robinp has joined #asahi-dev
robinp has quit [Ping timeout: 480 seconds]
c10l has quit [Ping timeout: 480 seconds]
robinp has joined #asahi-dev
systwi has joined #asahi-dev
robinp has quit [Ping timeout: 480 seconds]
zef has joined #asahi-dev
zef_ has quit [Ping timeout: 480 seconds]
winter has joined #asahi-dev
Hibyehello has quit [Ping timeout: 480 seconds]
Mary has quit [Quit: The Lounge - https://thelounge.chat]
Mary has joined #asahi-dev
eiln has quit [Remote host closed the connection]
robinp has joined #asahi-dev
robinp has quit [Ping timeout: 480 seconds]
kesslerd has quit [Remote host closed the connection]
kesslerd has joined #asahi-dev
kesslerd has quit [Quit: Konversation terminated!]
kesslerd has joined #asahi-dev
robinp has joined #asahi-dev
kesslerd has quit [Remote host closed the connection]
nullroute has quit [Max SendQ exceeded]
nullroute has joined #asahi-dev
robinp has quit [Ping timeout: 480 seconds]
Leo3418 has quit [Quit: Applying updates]
robinp has joined #asahi-dev
Leo3418 has joined #asahi-dev
robinp has quit [Ping timeout: 480 seconds]
robinp has joined #asahi-dev
kalrykh has joined #asahi-dev
robinp has quit [Ping timeout: 480 seconds]
nopeslide1 has quit []
robinp has joined #asahi-dev
Schnipp has joined #asahi-dev
Schnipp has quit []
robinp has quit [Ping timeout: 480 seconds]
nopeslide1 has joined #asahi-dev
robinp has joined #asahi-dev
robinp has quit [Ping timeout: 480 seconds]
<dottedmag> telerga
<dottedmag> oops, sorry
Schnipp has joined #asahi-dev
Schnipp has quit []
kalrykh has quit [Remote host closed the connection]
aomizu has joined #asahi-dev
aomizu has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
nyilas has joined #asahi-dev
roxfan has quit [Ping timeout: 480 seconds]
bisko has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Schnipp has joined #asahi-dev
aomizu has joined #asahi-dev
Schnipp has quit [Remote host closed the connection]
robinp has joined #asahi-dev
robinp has quit [Ping timeout: 480 seconds]
<jannau> kettenis: u-boot with pcie support doesn't fail over the firmware less asmedia usb hci but possibly breaks the pcie links for the hci and ethernet adapter on the studio
kloenk has quit [Ping timeout: 480 seconds]
MajorBiscuit has joined #asahi-dev
robinp has joined #asahi-dev
nyilas has quit [Remote host closed the connection]
robinp has quit [Ping timeout: 480 seconds]
nyilas has joined #asahi-dev
<jannau> usb hci and ethernet work with PCI_APPLE disabled
eiln has joined #asahi-dev
<kettenis> does linux provide some clues why it is unhappy?
<jannau> just "pcie-apple 590000000.pcie: /soc/die0/pcie@590000000/pci@2,0 link didn't come up"
<jannau> for pci@3,0 as well
<sven> it should be possible to recover from that by going through a perst cycle but that might need tunable to be reapplied :/
<sven> (at least it’s possible to recover from that for the usb4 pcie)
robinp has joined #asahi-dev
<jannau> what do you mean by perst cycle? the port setup in apple_pcie_setup_port() or something else?
<kettenis> tunable survive a PERST# cycle
<kettenis> tunables even
<sven> iirc port setup doesn’t actually set the bit in the MMIO, it just uses that gpio
<kettenis> correct
<sven> if you set/clear that bit in the MMIO at least on the usb4 one additional stuff seems to be reset
<sven> iirc that then disables the app clk as well which also disables the pcie dart
<jannau> it does rmw_set(PORT_PERST_OFF, port->base + PORT_PERST); but never clears the bit
<sven> yeah, if you clean it more stuff seems to be reset (at least on usb4)
robinp has quit [Ping timeout: 480 seconds]
<sven> *clear
aomizu has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
<kettenis> the OpenBSD driver short-circuits if it detects that the link is already up
<kettenis> maybe u-boot should bring the link down again; we'd have to figure out how to do that
chadmed has joined #asahi-dev
robinp has joined #asahi-dev
robinp has quit [Ping timeout: 480 seconds]
robinp has joined #asahi-dev
robinp has quit [Ping timeout: 480 seconds]
<jannau> short circuiting #PERST if the link is already up works for ethernet
<jannau> the asmedia hci still doesn't work. the link is not detected as up. I'll try to cycle its missing pwren-gpio
<jannau> not missing on j375
<kettenis> doas the asmedia chip show up in u-boot at all?
<jannau> yes
<kettenis> then the link must be up at that stage
<jannau> Bus xhci_pci: Register 400087f NbrPorts 4
<kettenis> but maybe accessing the chip without the proper firmware crashes it?
<jannau> cycling pwren is not enough I guess the pcie port needs to be reset as well to recover
robinp has joined #asahi-dev
robinp has quit [Ping timeout: 480 seconds]
bisko has joined #asahi-dev
robinp has joined #asahi-dev
aomizu has joined #asahi-dev
bisko has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
robinp has quit [Ping timeout: 480 seconds]
robinp has joined #asahi-dev
c10l has joined #asahi-dev
robinp has quit [Ping timeout: 480 seconds]
kesslerd has joined #asahi-dev
<jannau> skipping the port setup for ports with "pwren-gpios" in u-boot fixes the usb hci
<jannau> probably ok as workaround as long as we don't support it. A little annoying when support is added as the gpio is on at boot
bisko has joined #asahi-dev
<jannau> and doing the same as m1n1 on pcie shutdown in u-boot fixes the ethernet controller
<kettenis> ah, I didn't think about looking at what m1n1 did
<jannau> minor annoyance with that is that we have to rely on a constant offset between rc and phy reg as the latter is not in the devicetree
aomizu has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
<jannau> seems to be enough to clear PORT_APPCLK_EN and PORT_PERST_OFF
bisko has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jannau> sigh, no. that doesn't work. I just broke pcie port init completely
kesslerd_ has joined #asahi-dev
aomizu has joined #asahi-dev
kesslerd_ has quit []
robinp has joined #asahi-dev
robinp has quit [Ping timeout: 480 seconds]
kesslerd_ has joined #asahi-dev
aomizu has quit [resistance.oftc.net coherence.oftc.net]
WindowPain has quit [resistance.oftc.net coherence.oftc.net]
maria has quit [resistance.oftc.net coherence.oftc.net]
duckworld has quit [resistance.oftc.net coherence.oftc.net]
sirn has quit [resistance.oftc.net coherence.oftc.net]
WindowPain has joined #asahi-dev
maria has joined #asahi-dev
aomizu has joined #asahi-dev
duckworld has joined #asahi-dev
sirn has joined #asahi-dev
robinp has joined #asahi-dev
LucasZ has joined #asahi-dev
beeblebrox has quit [Quit: Konversation terminated!]
robinp has quit [Ping timeout: 480 seconds]
robinp has joined #asahi-dev
aomizu has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
robinp has quit [Ping timeout: 480 seconds]
<jannau> are there SD cards faster than PCIe1 x1? apple apparently expect the SD card reader to use PCIe2 x1. the ADT has maximum-link-speed, initial-link-speed, expected-link-speed and target-link-speed properties
robinp has joined #asahi-dev
Schnipp has joined #asahi-dev
Schnipp has quit []
<ChaosPrincess> uhs-2 can do that
<ChaosPrincess> but not sure whether such cards exist on the market
<kettenis> in theory at least
robinp has quit [Ping timeout: 480 seconds]
<opticron> Is the reader even UHS-2 capable?
<kettenis> GL9755 supports SD 4.0 UHS-II
<kettenis> s/supports/claims to support/
leitao has joined #asahi-dev
robinp has joined #asahi-dev
<jannau> there are uhs-2 cards with a claimed read speed of 300 MB/s which would exceed pcie 1.0
robinp has quit [Ping timeout: 480 seconds]
<jannau> using PCIe 2.0 for the sdcard reader works
<jannau> still no luck with resetting the ethernet pcie port if u-boot brings it up but skipping the setup in linux when the link is up works
kitley has quit [Quit: kitley]
kitley has joined #asahi-dev
leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
leitao has joined #asahi-dev
robinp has joined #asahi-dev
robinp has quit [Ping timeout: 480 seconds]
kesslerd has quit [Ping timeout: 480 seconds]
leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kesslerd has joined #asahi-dev
leitao has joined #asahi-dev
leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
leitao has joined #asahi-dev
leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
leitao has joined #asahi-dev
hightower2 has quit [Ping timeout: 480 seconds]
leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
axboe has quit [Remote host closed the connection]
leitao has joined #asahi-dev
leitao has quit [Remote host closed the connection]
kalrykh has joined #asahi-dev
MajorBiscuit has quit [Quit: WeeChat 3.6]
roxfan has joined #asahi-dev
robinp has joined #asahi-dev
LucasZ has quit [Remote host closed the connection]
LucasZ has joined #asahi-dev
robinp has quit [Ping timeout: 480 seconds]
tobhe has joined #asahi-dev
Leo3418 has quit [Quit: Applying updates]
Leo3418 has joined #asahi-dev
tobhe_ has quit [Ping timeout: 480 seconds]
hightower2 has joined #asahi-dev
robinp has joined #asahi-dev
robinp has quit [Ping timeout: 480 seconds]
gladiac has joined #asahi-dev
robinp has joined #asahi-dev
kesslerd has quit [Quit: Konversation terminated!]
robinp has quit [Ping timeout: 480 seconds]
robinp has joined #asahi-dev
robinp has quit [Ping timeout: 480 seconds]
kalrykh has quit [Remote host closed the connection]
bisko has joined #asahi-dev
gladiac has quit [Quit: k thx bye]
louisca has joined #asahi-dev
louisca has quit [Remote host closed the connection]
bisko has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
robinp has joined #asahi-dev
johey_ has quit [Quit: ZNC 1.8.2 - https://znc.in]
johey has joined #asahi-dev
robinp has quit [Ping timeout: 480 seconds]
robinp has joined #asahi-dev
robinp has quit [Ping timeout: 480 seconds]
LucasZ has quit [Quit: Konversation terminated!]
robinp has joined #asahi-dev
robinp has quit [Ping timeout: 480 seconds]
robinp has joined #asahi-dev
robinp has quit [Ping timeout: 480 seconds]
kesslerd has joined #asahi-dev
robinp has joined #asahi-dev
kesslerd has quit [Quit: Konversation terminated!]
robinp has quit [Ping timeout: 480 seconds]
robinp has joined #asahi-dev
robinp has quit [Ping timeout: 480 seconds]
nyilas has quit [Remote host closed the connection]
kitley has quit [Quit: kitley]
kitley has joined #asahi-dev
kesslerd has joined #asahi-dev
kesslerd has quit [Remote host closed the connection]
kesslerd has joined #asahi-dev
aomizu has joined #asahi-dev
aomizu has quit [Remote host closed the connection]
robinp has joined #asahi-dev
aomizu has joined #asahi-dev