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
chrisl has quit [Ping timeout: 480 seconds]
Luke_ has quit [Quit: Igloo: https://igloo.app]
lukeleppan has joined #asahi-dev
chrisl has joined #asahi-dev
lukeleppan has quit [Ping timeout: 480 seconds]
chrisl has quit [Ping timeout: 480 seconds]
chrisl has joined #asahi-dev
chrisl has quit [Ping timeout: 480 seconds]
chrisl has joined #asahi-dev
chrisl has quit [Ping timeout: 480 seconds]
hexdump0815 has joined #asahi-dev
hexdump01 has quit [Ping timeout: 480 seconds]
chrisl has joined #asahi-dev
chrisl has quit [Ping timeout: 480 seconds]
hdbngr has joined #asahi-dev
hdbngr has quit [Ping timeout: 480 seconds]
tobhe_ has joined #asahi-dev
tobhe has quit [Ping timeout: 480 seconds]
nora_ has joined #asahi-dev
nora has quit [Ping timeout: 480 seconds]
pb17 has quit [Ping timeout: 480 seconds]
<nickchan> ans2 booted to ready on t8015, but there's some differences in the actual nvme layer (?) that m1n1 does not like
<nickchan> and also need to support protocol version 10 and older to support older OS versions
<nickchan> fortunately new ANS2 fw also has the old protocol so it can sitll be tested on new fw
<nickchan> still
catred2 has joined #asahi-dev
<nickchan> also got sep_get_random to work :) the thing that trips BPR
<nickchan> coprocoessor other than ANS2 and SEP is 32-bit i think and that change things so those are for later
Leandro[mds] has quit []
<nickchan> as well as coprocessor on any older SoCs
catred has quit [Ping timeout: 480 seconds]
<nickchan> going to make 8015 work first
<nickchan> i have a full iboot mmiotrace to look at but i need to study how nvme works in general first
pb17 has joined #asahi-dev
ceuasyyyl^ has quit [Ping timeout: 480 seconds]
ceuasyyyl^ has joined #asahi-dev
chrisl has joined #asahi-dev
hdbngr has joined #asahi-dev
chrisl has quit [Ping timeout: 480 seconds]
hdbngr has quit [Ping timeout: 480 seconds]
hdbngr has joined #asahi-dev
hdbngr has quit [Ping timeout: 480 seconds]
hdbngr has joined #asahi-dev
hdbngr has quit [Ping timeout: 480 seconds]
<nickchan> i think nvmmu just... doesn't exist or is different on a11?
<nickchan> none of that range is accessed by iboot and attempting to access is SError
chrisl has joined #asahi-dev
chrisl has quit [Ping timeout: 480 seconds]
hdbngr has joined #asahi-dev
pb17 has quit [Ping timeout: 480 seconds]
hdbngr has quit [Ping timeout: 480 seconds]
lukeleppan has joined #asahi-dev
lukeleppan has quit [Ping timeout: 480 seconds]
CME has quit [Ping timeout: 480 seconds]
pb17 has joined #asahi-dev
greguu_ has quit [Ping timeout: 480 seconds]
yuyichao_ has quit [Ping timeout: 480 seconds]
greguu has joined #asahi-dev
chrisl has joined #asahi-dev
hdbngr has joined #asahi-dev
chrisl has quit [Ping timeout: 480 seconds]
chadmed has quit [Quit: Konversation terminated!]
chadmed has joined #asahi-dev
hdbngr has quit [Ping timeout: 480 seconds]
lukeleppan has joined #asahi-dev
hdbngr has joined #asahi-dev
hdbngr has quit [Ping timeout: 480 seconds]
hdbngr has joined #asahi-dev
chrisl has joined #asahi-dev
mattia013 has joined #asahi-dev
hdbngr has quit [Ping timeout: 480 seconds]
chrisl has quit [Ping timeout: 480 seconds]
CME has joined #asahi-dev
hdbngr has joined #asahi-dev
hdbngr has quit [Ping timeout: 480 seconds]
yuyichao_ has joined #asahi-dev
chrisl has joined #asahi-dev
lukeleppan has quit [Remote host closed the connection]
lukeleppan has joined #asahi-dev
lukeleppan has quit [Remote host closed the connection]
lukeleppan has joined #asahi-dev
chrisl has quit [Ping timeout: 480 seconds]
mattia013 has quit [Ping timeout: 480 seconds]
greguu has quit [Quit: WeeChat 4.4.2]
al3xtjames has quit [Read error: Connection reset by peer]
al3xtjames2 has joined #asahi-dev
pb17 has quit [Ping timeout: 480 seconds]
riker77 has quit [Quit: Quitting IRC - gone for good...]
riker77 has joined #asahi-dev
pb17 has joined #asahi-dev
<sven> does anyone else see "[ 13.012798] macsmc-reboot macsmc-reboot: Failed to issue MBSE = offw (0x6f666677) (reboot_prepare)" when running shutdown? (probably needs to be running under hv since this is one of the very last messages before power off)
chrisl has joined #asahi-dev
<sven> seems like i can't even write that key from m1n1 here
<jannau> does that result in shutdown not working? I can't remember seeing this or broken shutdown under HV
<sven> no, shutdown works just fine even without that
<sven> " * 'offw' - shutdown warning"
hdbngr has joined #asahi-dev
<sven> let me update the firmware on this m1n1, it's still running whatever was current when i bought this one a few years ago, lol
<sven> er, *on this mac mini
<jannau> I see "macsmc-reboot macsmc-reboot: Preparing for reboot (offw (0x6f666677))" and "macsmc-reboot macsmc-reboot: Issuing power off (off1)" but no failures
chrisl has quit [Ping timeout: 480 seconds]
<jannau> so probably on 12.3 (assuming you ever did a an install with asahi-installer)
<sven> nope, all manual
<jannau> so probably older than 12.3
hdbngr has quit [Ping timeout: 480 seconds]
<flokli> I see a "Failed to set watchdog hardware timeout to 10min: Invalid argument" (using 'Apple SoC Watchdog'), but everything else is obviously not logged anymore
<flokli> and this boot is happily spamming about power_supply macsmc-ac: driver failed to report `voltage_now' property: -132 (and `input_current_limit`)
<jannau> the maximal watchdog period is slightly below 3 minutes
<flokli> so systemd setting 10min here is a stupid default?
<chaos_princess> did they remove the voltage key since macos wasn't using it?
<sven> [cpu7] [SMCTracer@/arm-io/smc] [smceptracer] [2] >W: <MBSE> = (0) <-- well, that looks wrong :D
hdbngr has joined #asahi-dev
hdbngr has quit [Ping timeout: 480 seconds]
<sven> lol, okay, dumb bug because the smc protocol is a bit dumb
<sven> works now
<sven> no idea why it failed from m1n1 as well though, I probably just messed up there
<sven> https://github.com/AsahiLinux/linux/tree/sven/smc-v4 need to fix that one commit description/etc. and write a cover letter but this should be mostly ready for submission otherwise
<sven> oh, and add the reboot nodes for t600x and t8112
<flokli> ugh, after reading the kernel driver, there's no way for userspace to know limitations for the watchdog, like max timeout you can configure?
pb17 has quit [Ping timeout: 480 seconds]
<sven> i don't see any get max timeout function in the uapi either
<sven> though maybe we return the wrong errno and we're supposed to just set the timeout to the max value and userspace can directly query it again afterwards?
<sven> jannau: can you run the current smc driver with trace_smc.py (just a regular boot is fine) and paste the results? i wanna compare if everything looks the same
<sven> (current == the one we ship)
<jannau> sven: boot and shutdown?
<sven> yes, that would be great
<flokli> sven: yeah, this sounds more reasonable.
<sven> thanks
<sven> okay, looks similar with smc-v4
hdbngr has joined #asahi-dev
pb17 has joined #asahi-dev
hdbngr has quit [Ping timeout: 480 seconds]
<nickchan> sven: have you documented m1 nvme somewhere?
<sven> there are some comments in the linux driver iirc
<nickchan> https://asahilinux.org/docs/hw/soc/smc/#smc-keys this format is unreadable
chrisl has joined #asahi-dev
chrisl has quit [Ping timeout: 480 seconds]
hdbngr has joined #asahi-dev
<nickchan> and about how the actual storage will be handled on a11 probably linux-apfs-rw on a fixed size volume with a single file on it that is used as loopback
<nickchan> cause repartitioning the disk doesn't seem viable and using linux-apfs-rw full tilt seems too dangerous
<nickchan> resize container needs data volume unlocked
hdbngr has quit [Ping timeout: 480 seconds]
hdbngr has joined #asahi-dev
hdbngr has quit [Ping timeout: 480 seconds]
chrisl has joined #asahi-dev
pb17 has quit [Ping timeout: 480 seconds]
hdbngr has joined #asahi-dev
chrisl has quit [Ping timeout: 480 seconds]
hdbngr has quit [Ping timeout: 480 seconds]
ceuasyyyl^ has quit [Ping timeout: 480 seconds]
hdbngr has joined #asahi-dev
ceuasyyyl^ has joined #asahi-dev
hdbngr has quit [Ping timeout: 480 seconds]
pb17 has joined #asahi-dev
m42uko_ has joined #asahi-dev
m42uko has quit [Ping timeout: 480 seconds]
kcxt has left #asahi-dev [>,<]
chrisl has joined #asahi-dev
<sven> https://github.com/AsahiLinux/linux/tree/sven/smc-v4 okay, happy with this now I think. will send this out on sunday probably
<sven> (minus that one commit description ofc)
chrisl has quit [Ping timeout: 480 seconds]
<nickchan> sven: so only reboot and gpio for now
<sven> yes, the rest can be added later
<sven> if gpio wasn't already reviewed, etc. i would've only sent reboot even
hdbngr has joined #asahi-dev
hdbngr has quit [Ping timeout: 480 seconds]
hdbngr has joined #asahi-dev
hdbngr has quit [Ping timeout: 480 seconds]
chrisl has joined #asahi-dev
chrisl has quit [Ping timeout: 480 seconds]
tobhe has joined #asahi-dev
tobhe_ has quit [Ping timeout: 480 seconds]
pb17 has quit [Ping timeout: 480 seconds]
hdbngr has joined #asahi-dev
hdbngr has quit [Ping timeout: 480 seconds]
pb17 has joined #asahi-dev
chrisl has joined #asahi-dev
chrisl has quit [Ping timeout: 480 seconds]
hdbngr has joined #asahi-dev
lukeleppan has quit [Ping timeout: 480 seconds]
hdbngr has quit [Ping timeout: 480 seconds]
hdbngr has joined #asahi-dev
hdbngr has quit [Ping timeout: 480 seconds]
opticron has quit [Remote host closed the connection]
opticron has joined #asahi-dev
psykose has quit [Remote host closed the connection]
lukeleppan has joined #asahi-dev
psykose has joined #asahi-dev
chrisl has joined #asahi-dev
lukeleppan has quit [Ping timeout: 480 seconds]
pb17 has quit [Ping timeout: 480 seconds]
chrisl has quit [Ping timeout: 480 seconds]
hdbngr has joined #asahi-dev
hdbngr has quit [Ping timeout: 480 seconds]
pb17 has joined #asahi-dev
hdbngr has joined #asahi-dev
hdbngr has quit [Ping timeout: 480 seconds]
chrisl has joined #asahi-dev
chrisl has quit [Ping timeout: 480 seconds]
chrisl has joined #asahi-dev
chrisl has quit [Ping timeout: 480 seconds]
___nick___ has joined #asahi-dev
___nick___ has quit []
___nick___ has joined #asahi-dev
hdbngr has joined #asahi-dev
hdbngr has quit [Remote host closed the connection]
hdbngr has joined #asahi-dev
hdbngr has quit [Ping timeout: 480 seconds]
chrisl has joined #asahi-dev
chrisl has quit [Ping timeout: 480 seconds]
__nick__ has joined #asahi-dev
___nick___ has quit [Ping timeout: 480 seconds]
hdbngr has joined #asahi-dev
lukeleppan has joined #asahi-dev
lukeleppan has quit [Ping timeout: 480 seconds]
chrisl has joined #asahi-dev
hdbngr has quit [Ping timeout: 480 seconds]
chrisl has quit [Ping timeout: 480 seconds]
hdbngr has joined #asahi-dev
chrisl has joined #asahi-dev
iaguis has quit [Remote host closed the connection]
lukeleppan has joined #asahi-dev
chrisl has quit [Ping timeout: 480 seconds]
iaguis has joined #asahi-dev
__nick__ has quit [Remote host closed the connection]
hdbngr has quit [Ping timeout: 480 seconds]
lukeleppan has quit [Ping timeout: 480 seconds]
lukeleppan has joined #asahi-dev
lukeleppan has quit [Ping timeout: 480 seconds]
hdbngr has joined #asahi-dev
hdbngr has quit [Ping timeout: 480 seconds]
pb17 has quit [Ping timeout: 480 seconds]
lukeleppan has joined #asahi-dev
pb17 has joined #asahi-dev
chrisl has joined #asahi-dev
lukeleppan has quit [Ping timeout: 480 seconds]
chrisl has quit [Ping timeout: 480 seconds]
hdbngr has joined #asahi-dev
hdbngr has quit [Ping timeout: 480 seconds]
chrisl has joined #asahi-dev
chrisl has quit [Ping timeout: 480 seconds]
pb17 has quit [Ping timeout: 480 seconds]
pb17 has joined #asahi-dev
chrisl has joined #asahi-dev
chrisl has quit [Ping timeout: 480 seconds]
hdbngr has joined #asahi-dev