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
kesslerdupont has quit [Ping timeout: 480 seconds]
psykose_ has quit [Remote host closed the connection]
<axboe>
jannau: yep using xfce4, but seems like that should not be related here. pretty normal setup I think, debian testing. using the lid to suspend/resume, yep
<axboe>
kernel .config was posted in case there's something there, I can also try the asahi one just in case?
<axboe>
hadn't had time to further fiddle with this today :/
nsklaus has joined #asahi-dev
gabuscus has quit []
nsklaus has quit [Ping timeout: 480 seconds]
<axboe>
jannau: tested without lid, same issue
nsklaus has joined #asahi-dev
chadmed_ has joined #asahi-dev
gabuscus has joined #asahi-dev
nsklaus has quit [Ping timeout: 480 seconds]
<axboe>
marcan: tried the "default boot into osx, boot linux and trigger it"
<axboe>
didn't get anything out of osx
<axboe>
used the mem > state way to suspend, and on the third suspend, screen went dark as usual, but then rebooted
<axboe>
so definitely suspend related, not resume - unless the previous resume messed something up...
<axboe>
also enabled always-on for basically anything I saw in that trace I posted in here
ncopa has quit [Remote host closed the connection]
nsklaus has joined #asahi-dev
nsklaus has quit [Ping timeout: 480 seconds]
nsklaus has joined #asahi-dev
nsklaus has quit [Ping timeout: 480 seconds]
nsklaus has joined #asahi-dev
nsklaus has quit [Ping timeout: 480 seconds]
nsklaus has joined #asahi-dev
nsklaus has quit [Ping timeout: 480 seconds]
bluetail has joined #asahi-dev
nsklaus has joined #asahi-dev
nsklaus has quit [Ping timeout: 480 seconds]
nsklaus has joined #asahi-dev
nsklaus has quit [Ping timeout: 480 seconds]
nsklaus has joined #asahi-dev
nsklaus has quit [Ping timeout: 480 seconds]
nsklaus has joined #asahi-dev
nsklaus has quit [Ping timeout: 480 seconds]
nsklaus has joined #asahi-dev
abd has quit [Remote host closed the connection]
nsklaus has quit [Ping timeout: 480 seconds]
nsklaus has joined #asahi-dev
<jannau>
overnight suspend/resume worked as well, not surprising if the issue is triggered by suspend
nsklaus has quit [Ping timeout: 480 seconds]
<jannau>
difference is kernel config and m1n1 payload. I boot kernel and initrd directly instead of u-boot
<jannau>
I don't see how userspace would make a difference unless it arms the watchdog
nsklaus has joined #asahi-dev
<jannau>
axboe: you want to compress the u-boot payload. unrelated to the suspend issue but if you switch to the standard chainloading setup a compressed u-boot is required to allow reading appended variables
<jannau>
suspend doesn't seem to work at all with axboe's config (+ samsung serial)
nsklaus has joined #asahi-dev
<jannau>
axboe: if you want to have wlan ready at boot instead of waiting for it a couple of minutes you need to disable CONFIG_FW_LOADER_USER_HELPER
<jannau>
the ongoing wifi firmware loading appears to break suspend here
nsklaus has quit [Ping timeout: 480 seconds]
<jannau>
or at least delays entering suspend
nsklaus has joined #asahi-dev
<jannau>
I hit however a SError, unsure if it strictly is suspend + CONFIG_FW_LOADER_USER_HELPER in progress related or if it was something I did because it stopped after file system sync
<jannau>
suspend/resume is rock solid after disabling CONFIG_FW_LOADER_USER_HELPER but I'm not sure how that would explain issues after more than a few minutes of uptime
pthariensflame has joined #asahi-dev
pthariensflame has quit []
nsklaus has joined #asahi-dev
bps has joined #asahi-dev
nsklaus has quit [Ping timeout: 480 seconds]
chadmed_ has quit [Quit: Page closed]
nsklaus has joined #asahi-dev
MajorBiscuit has quit [Ping timeout: 480 seconds]
nsklaus has quit [Ping timeout: 480 seconds]
nsklaus has joined #asahi-dev
nsklaus has quit [Ping timeout: 480 seconds]
i509vcb has quit [Quit: Connection closed for inactivity]
<jannau>
not sure that is the same issue though given that axboe used ssh
nsklaus has joined #asahi-dev
nsklaus has quit [Ping timeout: 480 seconds]
nsklaus has joined #asahi-dev
nsklaus has quit [Ping timeout: 480 seconds]
nsklaus has joined #asahi-dev
kaazoo has joined #asahi-dev
nsklaus has quit [Ping timeout: 480 seconds]
nsklaus has joined #asahi-dev
nsklaus has quit [Ping timeout: 480 seconds]
MajorBiscuit has joined #asahi-dev
nsklaus has joined #asahi-dev
nsklaus has quit [Ping timeout: 480 seconds]
<kaazoo>
HI, did anybody look into MTP support with FW 13.3 on j414s / M2 Pro 14" yet? U-boot complains about not being able to reserve some fdt memory regions: https://pasteboard.co/nI0QZsaCGQzJ.jpg
<kaazoo>
dockchannel-hid gets loaded but MTP fails with 'rtkit-helper 2a9400000.mtp: error -ETIME: Failed to wake up coprocessor'
<jannau>
no, m1n1 doesn't use mtp, it needs to do the same as the linux driver. see 612cb2861e4c ("soc: apple: rtkit: Implement OSLog buffers properly")
nsklaus has joined #asahi-dev
nsklaus has quit [Ping timeout: 480 seconds]
nyilas has joined #asahi-dev
bps has quit [Ping timeout: 480 seconds]
nsklaus has joined #asahi-dev
nsklaus has quit [Ping timeout: 480 seconds]
<kaazoo>
jannau: OK, thanks. I will try to add that into u-boot.
nsklaus has joined #asahi-dev
Jamie has joined #asahi-dev
rhysmdnz has joined #asahi-dev
Jamie is now known as Guest12222
nsklaus has quit [Ping timeout: 480 seconds]
Guest12142 has quit [Ping timeout: 480 seconds]
rhysmdnz1 has quit [Ping timeout: 480 seconds]
bps has joined #asahi-dev
nsklaus has joined #asahi-dev
cylm has joined #asahi-dev
mkurz has quit [Ping timeout: 480 seconds]
gladiac has joined #asahi-dev
gladiac has quit []
gladiac has joined #asahi-dev
gladiac has quit [Quit: k thx bye]
mkurz has joined #asahi-dev
<axboe>
jannau: wlan is ready at boot as it is, but I killed LOADER_USER_HELPER but it doesn't change any wrt suspend/resume
<axboe>
suspended twice this morning before heading to the office, just 10 second ones, and it was fine
<axboe>
suspended and drove to the office, open the laptop to a rebooted state...
<axboe>
jannau: what's your .config, I could give that a whirl just in case it's some weird interaction
nyilas has quit [Remote host closed the connection]
nyilas has joined #asahi-dev
nyilas has quit [Remote host closed the connection]
nyilas has joined #asahi-dev
nyilas has quit [Remote host closed the connection]
<axboe>
yeah that's basically identical outside of adding serial
<axboe>
presumably the m2 max is going to be useful soon, so might just be worth scrapping spending any time on this if it's specific to some weirdness with my setup
<axboe>
I can just run the previous kernel until then
mkurz has quit [Ping timeout: 480 seconds]
cylm has quit [Ping timeout: 480 seconds]
mkurz has joined #asahi-dev
bps has quit [Ping timeout: 480 seconds]
c10l has quit [Quit: Bye o/]
c10l has joined #asahi-dev
stickytoffee has quit [Read error: Connection reset by peer]
stickytoffee has joined #asahi-dev
Tomdownsouth has joined #asahi-dev
Guest12222 has quit [Ping timeout: 480 seconds]
rhysmdnz has quit [Ping timeout: 480 seconds]
<maz>
oops, I may have "accidentally" ended-up with a m2 pro mini... oh well...
<j`ey>
oh no
Tomdownsouth has quit [Remote host closed the connection]
<maz>
j`ey: quite. I sense trouble...
<povik>
ok, upping both LMB_MAX_REGIONS and LMB_RESERVED_REGIONS to 64 doesn't make the SIO reservation errors go away
<povik>
it complains about the four sio-firmware-data@... reserved nodes
<povik>
which seem to be the only ones that fall within the span of the memory@80000000 node
<povik>
and i guess moving dt_set_memory in m1n1's kboot.c behind the sio setup is all one needs to do to cut out the sio reserved regions from the memory@ node...
roxfan2 is now known as roxfan
<jannau>
povik: the memory@80000000 should not cover the reserved mem
<povik>
ok, that's easy then :)
<jannau>
at least not in the setup we use
<povik>
are the semantics of the memory@ node documented somewhere?
<jannau>
but adjusting top_of_memory should take care of that
<jannau>
not sure if what I started doing for dcp is as intended/correct
<marcan>
kaazoo: FYI all the t802x bringup stuff is already merged into the regular m1n1/linux branches (except the GPU stuff lina is working on), so disregard the bringup ones
<povik>
ah, of course the devicetree spec itself discusses /memory
<povik>
though there doesn't seem to be anything that prohibits the overlap of the /memory node and the reserved regions, the devicetree spec even has an example that's overlapping, so still not sure what the u-boot error is about
<jannau>
axboe: if you're (un)lucky the suspend issue reproduces on on the m2 max. I still think it's useful to find out what causes it but can understand if you don't can/want spend time on it
<jannau>
povik: I think I tested sio with u-boot after I bumped LMB_MAX_REGIONS and didn't see any errors
<povik>
huh
<axboe>
jannau: yeah agree, would love to know what it is, just trying to proportion the time spent on this particular issue...
<povik>
jannau: i might be messing something up in the installation of a patched u-boot version (this is on a nixos install), but it's unlikely, i tried changing the font size and that took effect
<povik>
on the other hand this made the errors go away
<jannau>
makes sense, allocation for the display happens (if it happens) is at m1n1's init
<povik>
ah, i was wondering about that, right
<jannau>
I must have either overlooked the errors, didn't test it or something else
<povik>
now if only we could figure out those :/
<povik>
[ 2.335642] apple-sio 236400000.sio: error -ETIME: SIO did not boot
<povik>
i only get them on a full-fledged OS install which makes debugging hard
<povik>
jannau: do you have a .config that might be worth trying? see if i can reproduce it?
<povik>
anything that's similar to the one you were getting boot failures with, if it isn't too bloated
<povik>
i will see try flipping on SIO and see if i can reproduce
<povik>
it doesn't seem to be a power-domain thing after all, at least the failures still occur without turning off any domains, and with resets disabled
<jannau>
axboe: reproduced when booting via u-boot
<povik>
\o/
<povik>
happy about the other thing getting reproduced :)
hightower2 has quit [Ping timeout: 480 seconds]
<jannau>
povik: config with most of the non-essential drivers (including sio) as modules. so probably close to your full-fledged OS install
<jannau>
I have the feeling it is just the watchdog, armed by u-boot, feeded by linux and not disarmed on suspend
<povik>
ChaosPrincess: typically data that's shared between the application processor and the coproc will be mapped by DART, data that's for the coproc only, and the foreign mmio regions it accesses, will be mapped by DAPF
<povik>
someone can correct me on that
<povik>
depending on the coprocessor some mmio regions might be visible to it without mapping by DART nor DAPF
<povik>
but e.g. the data section of SIO's firmware is mapped by DART
<povik>
so don't take the above absolutely
<ChaosPrincess>
i guess ill just see what macos does
<povik>
macos will most likely set the DAPF according to that ADT property