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
hdbngr has joined #asahi-dev
hdbngr has quit [Ping timeout: 480 seconds]
mariogrip430 has quit [Quit: The Lounge - https://thelounge.chat]
mariogrip430 has joined #asahi-dev
chadmed has quit [Quit: Konversation terminated!]
chadmed has joined #asahi-dev
yuyichao_ has joined #asahi-dev
mischa85 has joined #asahi-dev
pb17 has quit [Ping timeout: 480 seconds]
kraem has joined #asahi-dev
pb17 has joined #asahi-dev
Method has joined #asahi-dev
tobhe has joined #asahi-dev
Method_ has quit [Ping timeout: 480 seconds]
tobhe_ has quit [Ping timeout: 480 seconds]
JayBeeFOSS has quit [Ping timeout: 480 seconds]
JayBeeFOSS has joined #asahi-dev
hdbngr has joined #asahi-dev
Method has quit [Read error: Connection reset by peer]
Method has joined #asahi-dev
mcint has quit [Quit: WeeChat 3.0]
hdbngr has quit [Ping timeout: 480 seconds]
hdbngr has joined #asahi-dev
mischa85 has quit [Ping timeout: 480 seconds]
hdbngr has quit [Ping timeout: 480 seconds]
pb17 has quit [Ping timeout: 480 seconds]
kraem has quit [Ping timeout: 480 seconds]
pb17 has joined #asahi-dev
hdbngr has joined #asahi-dev
hdbngr has quit [Ping timeout: 480 seconds]
nora has joined #asahi-dev
nora_ has quit [Ping timeout: 480 seconds]
gnuiyl has quit [Remote host closed the connection]
mischa85 has joined #asahi-dev
eluks has quit [Remote host closed the connection]
eluks has joined #asahi-dev
mischa85 has quit [Ping timeout: 480 seconds]
mischa85 has joined #asahi-dev
mischa85 has quit [Ping timeout: 480 seconds]
hdbngr has joined #asahi-dev
mattia013 has quit [Remote host closed the connection]
gnuiyl has joined #asahi-dev
hdbngr has quit [Ping timeout: 480 seconds]
pb17 has quit [Ping timeout: 480 seconds]
mischa85 has joined #asahi-dev
mattia013 has joined #asahi-dev
mischa85 has quit [Ping timeout: 480 seconds]
mischa85 has joined #asahi-dev
hdbngr has joined #asahi-dev
mischa85 has quit [Ping timeout: 480 seconds]
pb17 has joined #asahi-dev
hdbngr has quit [Ping timeout: 480 seconds]
mischa85 has joined #asahi-dev
mischa85 has quit [Ping timeout: 480 seconds]
ravikant_ has joined #asahi-dev
kraem has joined #asahi-dev
Larwive has quit [Ping timeout: 480 seconds]
hdbngr has joined #asahi-dev
gnuiyl has quit [Remote host closed the connection]
gnuiyl has joined #asahi-dev
mischa85 has joined #asahi-dev
hdbngr has quit [Ping timeout: 480 seconds]
mischa85 has quit [Ping timeout: 480 seconds]
ravikant__ has joined #asahi-dev
hdbngr has joined #asahi-dev
yuyichao_ has quit [Ping timeout: 480 seconds]
hdbngr has quit [Ping timeout: 480 seconds]
hdbngr has joined #asahi-dev
pb17 has quit [Ping timeout: 480 seconds]
kraem has quit [Remote host closed the connection]
hdbngr has quit [Ping timeout: 480 seconds]
hdbngr has joined #asahi-dev
mischa85 has joined #asahi-dev
hdbngr has quit [Ping timeout: 480 seconds]
pb17 has joined #asahi-dev
hdbngr has joined #asahi-dev
kevans91 has quit [Ping timeout: 480 seconds]
mischa85 has quit [Ping timeout: 480 seconds]
<nickchan> have anyone tried 4k paging in el2 on m4?
pb17 has quit [Ping timeout: 480 seconds]
<nickchan> some people say it may be broken
<nickchan> m1n1 has a 4k paging code path too though it's not used on m4
kraem has joined #asahi-dev
pb17 has joined #asahi-dev
kraem has quit [Ping timeout: 480 seconds]
ciara has quit [Remote host closed the connection]
ciara has joined #asahi-dev
hdbngr has quit [Ping timeout: 480 seconds]
hdbngr has joined #asahi-dev
andymandias_ has joined #asahi-dev
andymandias has quit [Ping timeout: 480 seconds]
andymandias_ is now known as andymandias
hdbngr has quit [Ping timeout: 480 seconds]
bjoto has quit [Remote host closed the connection]
hdbngr has joined #asahi-dev
mischa85 has joined #asahi-dev
hdbngr has quit [Ping timeout: 480 seconds]
mischa85 has quit [Ping timeout: 480 seconds]
hdbngr has joined #asahi-dev
mischa85 has joined #asahi-dev
mischa85 has quit [Ping timeout: 480 seconds]
hdbngr has quit [Ping timeout: 480 seconds]
ravikant_ has quit [Ping timeout: 480 seconds]
ravikant__ 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]
hdbngr has joined #asahi-dev
calebccff has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
kcxt has joined #asahi-dev
pb17 has joined #asahi-dev
ravikant_ has joined #asahi-dev
ravikant__ has joined #asahi-dev
kcxt has quit []
kcxt has joined #asahi-dev
bjoto has joined #asahi-dev
mripard has joined #asahi-dev
ravikant_ has quit []
mischa85 has joined #asahi-dev
mischa85 has quit [Ping timeout: 480 seconds]
zumi has quit [Ping timeout: 480 seconds]
kevans91 has joined #asahi-dev
mripard has quit [Quit: WeeChat 4.6.0]
mripard has joined #asahi-dev
pb17 has quit [Ping timeout: 480 seconds]
pb17 has joined #asahi-dev
mripard has quit [Read error: Connection reset by peer]
mripard has joined #asahi-dev
jprx has joined #asahi-dev
jprx has quit []
mischa85 has joined #asahi-dev
mischa85 has quit [Ping timeout: 480 seconds]
Larwive has joined #asahi-dev
Guest13544 has quit [Ping timeout: 480 seconds]
rhysmdnz has quit [Ping timeout: 480 seconds]
hdbngr has quit [Ping timeout: 480 seconds]
hdbngr has joined #asahi-dev
mischa85 has joined #asahi-dev
<nickchan> nevermind
<sven> https://lore.kernel.org/asahi/20250415-pasemi-fixes-v2-0-c543bf53151a@svenpeter.dev/ pasemi fixes v2, time to get back to smc now (or get nerd sniped by that weird m1n1 bug again...)
hdbngr has quit [Ping timeout: 480 seconds]
mischa85 has quit [Ping timeout: 480 seconds]
hdbngr has joined #asahi-dev
pb17 has quit [Ping timeout: 480 seconds]
mischa85 has joined #asahi-dev
<nickchan> sven: what weird bug?
enick_872 has joined #asahi-dev
rhysmdnz has joined #asahi-dev
hdbngr has quit [Ping timeout: 480 seconds]
<sven> see logs from a few days ago, _something_ corrupts LR I think in the smp_call4 -> [other core] -> smp_secondary_entry -> mmu_secondary_setup path
<sven> couldn't bisect it to a specific commit and no one else seems to have run into that
<sven> but when i shared my m1n1.bin with jannau it also crashed for him
ravikant__ has quit []
Larwive has quit [Ping timeout: 480 seconds]
<sven> i first thought i broke something with https://github.com/AsahiLinux/m1n1/pull/460 but this happens with the current m1n1 main for me
<sven> but it still works fine for my very outdated stage1 m1n1
mischa85 has quit [Ping timeout: 480 seconds]
hdbngr has joined #asahi-dev
<chaos_princess> Any specific reason to keep simple-mfd-spmi driver around? It only ever gets used together with spmi-mfd-nvmem, and i do not see that much value in delineating specific nvmem ranges
mischa85 has joined #asahi-dev
pb17 has joined #asahi-dev
hdbngr has quit [Ping timeout: 480 seconds]
<nickchan> chaos_princess: I could reuse it for other purposes I suppose
<chaos_princess> like?
<chaos_princess> i am asking since i am considering dropping it
mischa85 has quit [Ping timeout: 480 seconds]
<nickchan> chaos_princess: I have verified the existence of an rtc in a11's spmi dialog da2422 pmic and is able to read time from it
<nickchan> a rtc that can count 194 of time and then a 32-bit value in the pmic nvmem to store the rest of the time
<nickchan> 194 days of time
jcat has joined #asahi-dev
hdbngr has joined #asahi-dev
<chaos_princess> so i should keep the mfd then
<chaos_princess> ?
<nickchan> you should keep it
<nickchan> and the reason i have not implemented that rtc just yet that iOS *will* overwrite the time every boot
<nickchan> can even reproduce by just setting the time in an iOS ramdisk
<nickchan> it's doing that because the 194 days counter cannot be reset and time becoming wrong just because iOS is not running when that counter overflow is not great
<nickchan> more specifically, overwrite the rest of the time stored in the pmic nvmem
<chaos_princess> do you not have the smc clock there?
<nickchan> all things considered it probably does exist there
<nickchan> for t2 and a11
<chaos_princess> could you please check if the clock you are talking about is not actually just this thing https://github.com/AsahiLinux/linux/blob/3416d14cd345b3311b6020714a3bfad7f3dc8b58/drivers/rtc/rtc-macsmc.c
<nickchan> the clock on a11 is still susceptible to year 2038 at least
<nickchan> but it looked really similar i need to check
hdbngr has quit [Ping timeout: 480 seconds]
hdbngr has joined #asahi-dev
ece314378925355451680698427415 has quit [Ping timeout: 480 seconds]
Larwive has joined #asahi-dev
<jannau> sven: did you already try different compiler (versions / options)?
<sven> not yet, i was going to try a linux host next
hdbngr has quit [Ping timeout: 480 seconds]
<sven> but at least the assembly code for smp_secondary_entry and mmu_secondary_setup looked okay to me
<sven> but i think it has to be some issue in exception or irq handling or something like that because it doesn't always happen
<sven> and adding e.g. debug prints or too many lol = __line__; hacks makes it go away
<nickchan> okay rtc_offset is the same thing as a11 except there are two extra bits
<nickchan> bytes i mean
<nickchan> so m1 doesn't have year 2038
<chaos_princess> what about smc?
<nickchan> the iop interface is not compatible
<chaos_princess> not sure i understand, you mean you can't access smc yet?
<nickchan> chaos_princess: smc is in suspend when iboot boots kernel also the actual interface is also different
<chaos_princess> would it be possible to read the values on jailbroken ios?
hdbngr has joined #asahi-dev
jcat has quit [Ping timeout: 480 seconds]
mischa85 has joined #asahi-dev
hdbngr has quit [Ping timeout: 480 seconds]
mischa85 has quit [Ping timeout: 480 seconds]
hdbngr has joined #asahi-dev
okb has joined #asahi-dev
hdbngr has quit [Ping timeout: 480 seconds]
<nickchan> chaos_princess: Ok i can say with confidence that CLKM does not exist
<nickchan> and i have a mass key dump
hdbngr has joined #asahi-dev
<chaos_princess> What does it have?
hdbngr has quit [Ping timeout: 480 seconds]
<chaos_princess> Doesn't look like it has anything clock related
<nickchan> #KEY reads: 603 so this is every single key
hdbngr has joined #asahi-dev
pb17 has quit [Ping timeout: 480 seconds]
hdbngr has quit [Ping timeout: 480 seconds]
___nick___ has joined #asahi-dev
pb17 has joined #asahi-dev
hdbngr has joined #asahi-dev
<jannau> the broken resume seems to lock related. CPUs seems to soft lockup after resume
<sven> broken resume?
<jannau> in 6.14.2, not reliebly broken
<sven> ah
<jannau> let's hope lockdep finds ssomething
<jannau> no compliants :(
hdbngr has quit [Ping timeout: 480 seconds]
<jannau> generating irqs seem to help. after pressing nothing happens except for the smc button press log lines but pressing keys repeated brings the display back on
<jannau> system is half broken though. touchpad input does not work continously
<jannau> as if irqs to some CPU cores are not arriving (due to the soft lockup). this is m2 so irqs are distributed by aic on the cores
hdbngr has joined #asahi-dev
hdbngr has quit [Ping timeout: 480 seconds]
okb_ has joined #asahi-dev
hdbngr has joined #asahi-dev
okb has quit [Ping timeout: 480 seconds]
<jannau> apaprently an adp interrupt storm, so macbook pro 13-inch specific
hdbngr has quit [Ping timeout: 480 seconds]
___nick___ has quit []
<sven> https://github.com/AsahiLinux/linux/commits/sven/smc-v4/ current smc code, especially the power part is untested because that has a bunch of dependencies
<sven> power also still needs dt bindings i guess
<chaos_princess> jannau: is it just 6.14? or 6.13 too?
<jannau> I've seen only complaints about asahi-6.14.2-1 with explicit mentions that 6.13.8 was ok
<chaos_princess> was 6.13 using upstream adp or old one?
johey has joined #asahi-dev
<jannau> old one, I updated to upstream in 6.14
___nick___ has joined #asahi-dev
<jannau> still running without fixed tiny-dfr so that might be factor as well
<chaos_princess> it probably shouldnt matter?
<jannau> I don't think so just wanted to mention it. there was an user report that still occurs with working tiny-dfr
hdbngr has joined #asahi-dev
<chaos_princess> it is possible that since i've split the mipi and core into two separate driver that there is some weirdness with coming out of sleep
<chaos_princess> is it always or random?
<jannau> it did not reproduce reliably for me but from what I gather from the user reports it's always (or almost always)
mischa85 has joined #asahi-dev
<jannau> and for the last 5-10 boots with uart and no_console_suspend it reproduced in all attempts
hdbngr has quit [Ping timeout: 480 seconds]
kraem has joined #asahi-dev
<chaos_princess> i remember there being some issues with suspend on an early version of the series, so maybe what i did just masked it instead of fixing
mischa85 has quit [Ping timeout: 480 seconds]
<jannau> still broken. I commented the whole pm_ops
hdbngr has joined #asahi-dev
hdbngr has quit [Ping timeout: 480 seconds]
mischa85 has joined #asahi-dev
hdbngr has joined #asahi-dev
pb17 has quit [Ping timeout: 480 seconds]
mischa85 has quit [Ping timeout: 480 seconds]
pb17 has joined #asahi-dev
Larwive has quit [Remote host closed the connection]
Larwive has joined #asahi-dev
kraem has quit [Ping timeout: 480 seconds]
___nick___ has quit [Remote host closed the connection]
<sven> jannau: ugh.. looks like building with gcc on either a macos or a linux host doesn't run into the same issue
Pokemod97 has joined #asahi-dev
Pokemod970 has quit [Read error: Connection reset by peer]
<sven> assembly looks very different so this might also just be similar to adding printfs somewhere