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
nsklaus has quit [Ping timeout: 480 seconds]
brolin has joined #asahi-dev
brolin has quit [Ping timeout: 480 seconds]
kesslerdupont has quit [Quit: Lost terminal]
<marcan> jannau: let's aim for 13.5
<marcan> gives us a bit more time to look into the desktop display issues anyway
<marcan> and I have a bunch of integration to do anyway, I can start that now and we can upgrade to 13.5 when it's out and make that official
* alyssa stares longingly into vim
<alyssa> unironically using the word "alas"
gabuscus has quit []
<lethalbit> alas is a good word
<alyssa> alas, people think i'm pretentious when i say it
gabuscus has joined #asahi-dev
<lethalbit> if it was a word like "obsequiously" then I /kinda/ get it, but fooey, alas is not a pretentious word
<lethalbit> *cough* anywho
<alyssa> marcan: oh ugh we never got supertuxkart fixed
<alyssa> users are going to hit that
<alyssa> ufff
<alyssa> I hate it but should probably merge to asahi/main and ship that >_>
<marcan> do we have any other blockers? if not, I'll push the new packages to the stable repo tonight
<marcan> cc jannau, kettenis, povik, sven
Z750 has quit [Quit: Ping timeout (120 seconds)]
Z750 has joined #asahi-dev
pthariensflame has joined #asahi-dev
pthariensflame has quit []
<jannau> marcan: asmedia pcie xhci is broken without FW prepared for u-boot. still broken with FW present and detected in u-boot though
<marcan> huh
<marcan> I thought only one of the two cases was
<marcan> OK
<marcan> jannau: works without u-boot though, so strictly an issue with whatever u-boot does I guess
<jannau> I assumed u-boot with firmware would be ok. it was in my previous tests. trying to bring it without firmware resulted always in a broken device
<marcan> I hate this asmedia stuff... we need to figure out how to properly full reset it and reliably reload firmware, for one
<jannau> yes, the issue is that we don't know how to reset the pcie port or the device reset via the smc pwr-enable gpio doesn't reset the device completely
<jannau> fails with "pci@3,0 link didn't come up" but the link should be up. usb devices work in u-boot with firmware
nicolas17 has quit [Remote host closed the connection]
<marcan> jannau: right, so u-boot leaves the device up but then Linux tries to reset it unconditionally and it never comes back
<marcan> that's when the link drops and never comes back up
<jannau> did we change that in the linux pcie driver? the link up check was supposed to skip the reset
<marcan> wait huh
<marcan> no, it's something else, you're right
<marcan> when linux boots somehow the link goes down
<marcan> jannau: duh. we're unconditionally clearing PWREN on boot.
<jannau> in the pcie driver or elsewhere?
<marcan> in the pcie driver
<marcan> when we request the GPIO, we use LOW
<marcan> we need ASIS
<marcan> that should fix the handoff (though it still doesn't explain why it fails to come back up, you'd *think* that would work, but these chips are cursed so who knows)
<marcan> this might also explain other badness, e.g. if iBoot does some power sequencing and we break it
<marcan> could explain the asmedia issues
<marcan> er, the aquantia issues
<jannau> I suspect we miss some reset magic in the pcie controller to restart link training
<marcan> there is some stuff m1n1 does which might need to be redone
<marcan> meanwhile lol broadcom oops now
<jannau> with pwr-en fixed asmedia probably works in linux without firmware in u-boot. u-boot should leave the device alone if the firmware is missing
<marcan> I think I know what this is, some stupid race
<jannau> meanwhile I found another USB u-boot BUG. usb keyboard with integrated usb 3.0 hub, lots of "Resetting EP 2...", then "XHCI timeout on event type 0... cannot recover.", "BUG atdrivers/usb/host/xhci-ring.c:519/xhci_wait_for_event()!"
<jannau> I'll look tonight at it
<marcan> oof
<marcan> jannau: I have a different variant of that when I deliberately break asmedia, removing that codepath
<marcan> there's an underlying problem there but it shouldn't be panicking
<marcan> and rejoice!
<marcan> jannau: if I make u-boot break the asmedia (not load firmware), linux can still successfully laod it now
<marcan> I made some improvements to the asmedia code based on https://github.com/cyrozap/asmedia-xhc-re
<marcan> ok, going to spin another kernel merge & builds
roxfan2 has joined #asahi-dev
<chadmed> "but I read somewhere that if you follow the right steps on a MacBook M1 Pro 14 inch, it now was safe to use because of a safety deamon" aaaaaaaaaaaaaaaaaaaaaaaaaa
roxfan has quit [Ping timeout: 480 seconds]
<chadmed> im just going to break my repo so that trying to load the dsp config crashes pipewire
<marcan> please do
<marcan> chadmed: where is that from?
<marcan> ugh
<kettenis> marcan: glad the PCIe issue was found
<marcan> kettenis: pushed some more fixes to asahi-releng btw
<marcan> and you might want to backport the improved asmedia loading code from linux :)
<marcan> (there's a fixup commit in the bits branch)
<kettenis> hah
<marcan> was sort of blindly based on that xhc-re repo, but it already seems to be more reliable
<kettenis> not had it fail yet on the m2 pro mini
<marcan> I've seen it rarely fail on the iMac with the old code, but haven't tested itin quite a while
<marcan> but more importantly I think this might be more reliable if the controller is in a bad state
<marcan> so now I just need to add the firmware copying to the extractor
<marcan> and we're pretty much done
<kettenis> I looked at it a bit, but the lack of rustup support for OpenBSD makes it a bit hard for me to work on the installer
<kettenis> (yes I should actually set up a Linux machine)
xanderle has joined #asahi-dev
mkurz has quit [Remote host closed the connection]
thevar1able_ has quit [Remote host closed the connection]
thevar1able_ has joined #asahi-dev
<marcan> ok, scripts/fw packages should be in order now
<marcan> I think I'm going to make new install images since it's been forever
<marcan> let's see how badly calamares is broken first
<jannau> asmedia works in linux after booting with u-boot with and without firmware
<jannau> USB BUG is fixed, was triggered when the keyboard was connected to a usb-c port
bps3 has joined #asahi-dev
bps2 has joined #asahi-dev
bps3 has quit [Ping timeout: 480 seconds]
<marcan> looks like the updated release images work
duhanebel has joined #asahi-dev
<alyssa> ok fully awake
<alyssa> time to see what crap I typed out in my blog last night
<alyssa> marcan: lmk if you want to read my wip slop
<marcan> alyssa: I do
<marcan> just wrote up the "other stuff" post
<alyssa> k, draft coming your way
<marcan> I'm also just going to push the packages now, in case there are any explosions. Should be ready.
zachole has quit [Quit: Leaving...]
milek7 has quit [Remote host closed the connection]
milek7 has joined #asahi-dev
ar has joined #asahi-dev
<ar> alyssa: sorry to ping you here, but you're not in other #asahi* channels I'm in; produces → produce? > Rather than configure blending hardware, the driver must produces variants
<ar> (also, what's your stance on typos? are you ok with people pointing them out?)
<alyssa> ar: please point out typos
<alyssa> ^ for the recent post
<alyssa> anything older than a few days, whatever encased in amber
ellyq has quit [Quit: io_wait]
cylm has quit [Ping timeout: 480 seconds]
mkurz has joined #asahi-dev
ellyq has joined #asahi-dev
mkurz has quit []
mkurz has joined #asahi-dev
maria has quit [Ping timeout: 480 seconds]
sid-linux has joined #asahi-dev
iaguis has joined #asahi-dev
maria has joined #asahi-dev
iaguis has quit [Ping timeout: 480 seconds]
nsklaus has joined #asahi-dev
iaguis has joined #asahi-dev
bps2 has quit [Ping timeout: 480 seconds]
roxfan has joined #asahi-dev
roxfan2 has quit [Ping timeout: 480 seconds]
<axboe> newest kernel doesn't resume wifi :/
<axboe> rmmod && modprobe of driver does work though
<axboe> I can try and revert the single brcm change
<j`ey> someone on #asahi is also having issues with wifi resume, slightly different error messages though
<axboe> ah yes see it now
<axboe> I'll try and revert the brcmfmac/pcie.c change
<jannau> axboe: does it suspend properly? I see here on j493. 'brcmfmac 0000:01:00.0: brcmf_pcie_pm_enter_D3: Timeout on response for entering D3 substate'
<axboe> jannau: hmm yep, fails suspend too
roxfan has quit [Ping timeout: 480 seconds]
sid-linux has quit [Ping timeout: 480 seconds]
mkurz has quit [Ping timeout: 480 seconds]
billak has joined #asahi-dev
billak has quit []
duhanebel has quit [Ping timeout: 480 seconds]
mkurz has joined #asahi-dev
c10l48 has quit [Ping timeout: 480 seconds]
mkurz_ has joined #asahi-dev
<Cyrinux9> Hi, here mine logs about the suspend issue / wifi on m2 air: https://pastebin.com/h5XqDnAY, also some times, after restart, I stay in this state at boot, and I have to restart again https://ibb.co/dcT1xr1
mkurz has quit [Ping timeout: 480 seconds]
SalimTer- has joined #asahi-dev
mkurz_ is now known as mkurz
brolin has joined #asahi-dev
salimterryli has quit [Ping timeout: 480 seconds]
gabuscus_ has joined #asahi-dev
gabuscus has quit [Ping timeout: 480 seconds]
sid-linux has joined #asahi-dev
<sid-linux> having wifi not working after sleep issues here too
<sid-linux> m2 air
<sid-linux> (using the latest kernel. the issue wasn't there before)
iaguis has quit [Quit: leaving]
sid-linux has quit [Ping timeout: 480 seconds]
aafeke_ has joined #asahi-dev
<alyssa> love broadcom
brolin has quit [Ping timeout: 480 seconds]
roxfan has joined #asahi-dev
roxfan2 has joined #asahi-dev
roxfan has quit [Ping timeout: 480 seconds]
roxfan has joined #asahi-dev
roxfan2 has quit [Ping timeout: 480 seconds]
hightower2 has joined #asahi-dev
kaazoo has joined #asahi-dev
<kaazoo> Hi, did anybody look into the reserved memory ranges (uat handoff, pagetables, ttbs) for M2 Pro/Max yet?: https://github.com/AsahiLinux/linux/blob/asahi-wip/arch/arm64/boot/dts/apple/t6021.dtsi#L36
<kaazoo> I tried to take over existing values from https://github.com/AsahiLinux/linux/blob/asahi-wip/arch/arm64/boot/dts/apple/t8112.dtsi#L433 but that didn't work. Would have been too easy. u-boot and kernel were failing to allocate memory
aafeke_ has quit [Quit: aafeke_]
c10l48 has joined #asahi-dev
c10l48 has quit []
c10l48 has joined #asahi-dev
kaazoo has quit [Remote host closed the connection]
lewurm`` has quit [Ping timeout: 480 seconds]
lewurm`` has joined #asahi-dev
baozich has joined #asahi-dev
lewurm`` has quit [Ping timeout: 480 seconds]
brolin has joined #asahi-dev
nsklaus has quit [Remote host closed the connection]
baozich has quit [Ping timeout: 480 seconds]