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
kraem has joined #asahi-dev
raxyte has quit [Quit: raxyte]
pb17 has quit [Ping timeout: 480 seconds]
mischa85 has joined #asahi-dev
hdbngr has quit [Remote host closed the connection]
hdbngr has joined #asahi-dev
pthariensflame has joined #asahi-dev
pb17 has joined #asahi-dev
hdbngr has quit [Remote host closed the connection]
hdbngr has joined #asahi-dev
pthariensflame has quit [Read error: Connection reset by peer]
pthariensflame_ has joined #asahi-dev
kraem has quit [Ping timeout: 480 seconds]
pthariensflame_ has quit []
ngdangdat has joined #asahi-dev
ngdangdat has quit []
hdbngr has quit [Remote host closed the connection]
hdbngr has joined #asahi-dev
yuyichao_ has joined #asahi-dev
hdbngr has quit [Remote host closed the connection]
hdbngr has joined #asahi-dev
CME has quit [Ping timeout: 480 seconds]
hdbngr has quit [Remote host closed the connection]
hdbngr has joined #asahi-dev
pb17 has quit [Ping timeout: 480 seconds]
hdbngr has quit [Remote host closed the connection]
hdbngr has joined #asahi-dev
tobhe_ has joined #asahi-dev
tobhe has quit [Ping timeout: 480 seconds]
pb17 has joined #asahi-dev
hdbngr has quit [Remote host closed the connection]
hdbngr has joined #asahi-dev
phire_ has joined #asahi-dev
phire is now known as Guest13752
phire_ is now known as phire
Guest13752 has quit [Ping timeout: 480 seconds]
hdbngr has quit [Remote host closed the connection]
hdbngr has joined #asahi-dev
ece314378925355451680698427415 has joined #asahi-dev
pb17 has quit [Ping timeout: 480 seconds]
nora_ has joined #asahi-dev
nora has quit [Ping timeout: 480 seconds]
pb17 has joined #asahi-dev
yuyichao_ has quit [Ping timeout: 480 seconds]
mattia013 has quit [Remote host closed the connection]
mattia013 has joined #asahi-dev
mattia013 has quit [Ping timeout: 480 seconds]
JayBeeFOSS has quit [Ping timeout: 480 seconds]
JayBeeFOSS has joined #asahi-dev
pb17 has quit [Ping timeout: 480 seconds]
pb17 has joined #asahi-dev
hdbngr has quit [Ping timeout: 480 seconds]
kraem has joined #asahi-dev
Larwive has quit [Ping timeout: 480 seconds]
<sven>
I’m not sure this is a compiler issue tbh, but I can try an older clang this evening
<jannau>
I suspect a code issue which manifests only with specific compilers / optimisations
kraem has quit [Ping timeout: 480 seconds]
<sven>
yeah, same
<sven>
which is why I’d really like to track this down
<sven>
It’s probably not bad for end users since m1n1 either boots Linux or fails but this could get really annoying with the hv
<sven>
and right now I can kinda reproduce it rather easily
ravikant_ has joined #asahi-dev
ravikant_ has quit [Ping timeout: 480 seconds]
yuka has quit [Remote host closed the connection]
roxfan2 is now known as roxfan
yuka has joined #asahi-dev
pb17 has quit [Ping timeout: 480 seconds]
ece314378925355451680698427415 has quit [Ping timeout: 480 seconds]
ravikant_ has joined #asahi-dev
pb17 has joined #asahi-dev
chrisl has quit [Ping timeout: 480 seconds]
CME has joined #asahi-dev
kraem has joined #asahi-dev
<jannau>
chaos_princess: have you seen the adp fe irq firing with ADP_INT_STATUS being consistently 0?
<chaos_princess>
no, haven't seen that one
<chaos_princess>
the entire reg is 0?
<jannau>
yes
<jannau>
ADP_CTRL is 0x0412 at that point and writing 0 to it does't change anything
<chaos_princess>
i think that means it is in "free-run" mode
<chaos_princess>
maybe? i do not remember exactly
<chaos_princess>
but yes, there is a free run mode where it constantly scans out whatever is in the buffer, and writing ADP_CTRL_FIFO_ON turns it off and makes it only scan out once you write ADBE_FIFO_SYNC to the fifo
kraem is now known as Guest13766
kraem has joined #asahi-dev
<jannau>
any idea what ADP_CTRL 0x2a13 is? tracing now and see that on some reads
<chaos_princess>
iirc "scanout in progress"
Guest13766 has quit [Ping timeout: 480 seconds]
oosh has joined #asahi-dev
<jannau>
saving and restoring ADP_CTRL in adp_suspend/adp_resume prevents the irq storm but adp is broken after resume
<chaos_princess>
are we by any chance powering the ip block down
<chaos_princess>
because we can't do that with current driver
<jannau>
ADBE_BLEND_* seems to be messed up after resume as well but saving + restoring them doesn't help
<chaos_princess>
no
<chaos_princess>
there is a _ton_ of stuff that needs to be saved and restored for it to survive a power down
<chaos_princess>
like, a kb+ worth of registers
<jannau>
let me try with always-on on its power-domains
<jannau>
but yes, it looks to me like we're powering it down
<chaos_princess>
yea, can't do that
<jannau>
works with always on. I guess it's now powering the domains down because I added pm callbacks
<chaos_princess>
where?
<jannau>
in adp_drv. just locally for debugging
<chaos_princess>
i am not sure i follow, so what is the issue then?
kraem has quit [Ping timeout: 480 seconds]
<jannau>
the issue is the irq storm, probably caused by powering adp down
pb17 has quit [Ping timeout: 480 seconds]
<chaos_princess>
no, what is not clear is that you said that you added the pm callbacks locally, but how did other people get the irq storm then?
<jannau>
I'm getting the irq storm even without it and dispdfr_be and dispdfr_fe are powered of even without pm callbacks
<chaos_princess>
ok, got it now
<jannau>
I was wondering whether they were powered down due to the added pm callbacks sinc eI don't understand why this wasn't an issue in 6.13
<chadmed>
dumb question, can we not just use regcache/regmap to save/restore all registers during pm calls
<chaos_princess>
we can, just need to make a list of all the stuff that need to be preserved
<chaos_princess>
but that will only allow powering down be/fe, mipi is more complicated
pb17 has joined #asahi-dev
oosh has quit [Ping timeout: 480 seconds]
<jannau>
mipi seems to keep it's as long as ps_dispdfr_be/fe are powered on
<chaos_princess>
id say just add always-on on those and it should be fine
<jannau>
yes, I have that patch. marking the domains as always on for j293/j493
kraem has joined #asahi-dev
ravikant_ has quit [Ping timeout: 480 seconds]
<jannau>
pushed as asahi-6.14.2-2 to github
kraem is now known as Guest13767
kraem has joined #asahi-dev
ravikant_ has joined #asahi-dev
Guest13767 has quit [Ping timeout: 480 seconds]
<chaos_princess>
Would it make sense to upstream? Do we have always-on support in upstream pmgr?
dextaa6 has quit [Ping timeout: 480 seconds]
ravikant_ has quit [Ping timeout: 480 seconds]
pb17 has quit [Ping timeout: 480 seconds]
ravikant_ has joined #asahi-dev
kraem has quit [Ping timeout: 480 seconds]
pb17 has joined #asahi-dev
dextaa6 has joined #asahi-dev
<nickchan>
chaos_princess: there are always on support in upstream pmgr, it has to be there otherwise the kernel will explode hard on things like the ps_dcs1 (lpddr interfaces)
<chaos_princess>
ok
kraem has joined #asahi-dev
Stardust has quit [Read error: Connection reset by peer]
Stardust has joined #asahi-dev
pb17 has quit [Ping timeout: 480 seconds]
kraem has quit [Ping timeout: 480 seconds]
pb17 has joined #asahi-dev
malfunction54 has quit [Remote host closed the connection]
malfunction54 has joined #asahi-dev
Larwive has joined #asahi-dev
ravikant_ has quit []
Larwive has quit [Ping timeout: 480 seconds]
Larwive has joined #asahi-dev
chrisl has joined #asahi-dev
kraem has joined #asahi-dev
hdbngr has joined #asahi-dev
okb has joined #asahi-dev
kraem has quit [Ping timeout: 480 seconds]
hdbngr has quit [Ping timeout: 480 seconds]
hdbngr has joined #asahi-dev
mischa85 has quit [Ping timeout: 480 seconds]
pb17 has quit [Ping timeout: 480 seconds]
hdbngr has quit [Remote host closed the connection]
hdbngr has joined #asahi-dev
pb17 has joined #asahi-dev
mischa85 has joined #asahi-dev
mischa85 has quit [Ping timeout: 480 seconds]
hdbngr has quit [Remote host closed the connection]
hdbngr has joined #asahi-dev
Larwive has quit [Quit: Larwive]
Larwive has joined #asahi-dev
hdbngr has quit [Remote host closed the connection]
hdbngr has joined #asahi-dev
___nick___ has joined #asahi-dev
pb17 has quit [Ping timeout: 480 seconds]
pb17 has joined #asahi-dev
roxfan has quit [Read error: Connection reset by peer]
___nick___ has quit [Remote host closed the connection]
iaguis_ has joined #asahi-dev
john-cabaj has joined #asahi-dev
iaguis has quit [Ping timeout: 480 seconds]
john-cabaj has quit [Ping timeout: 480 seconds]
mattia013 has joined #asahi-dev
oosh has joined #asahi-dev
pb17 has quit [Ping timeout: 480 seconds]
oosh has left #asahi-dev [#asahi-dev]
mattia013 has quit [Ping timeout: 480 seconds]
pb17 has joined #asahi-dev
chadmed has quit [Quit: Konversation terminated!]
chadmed has joined #asahi-dev
chadmed has quit []
chadmed has joined #asahi-dev
elvishjerricco has quit [Remote host closed the connection]
elvishjerricco has joined #asahi-dev
CME has quit [Ping timeout: 480 seconds]
pb17 has quit [Ping timeout: 480 seconds]
hdbngr has quit [Remote host closed the connection]
hdbngr has joined #asahi-dev
ddxtanx_ has joined #asahi-dev
pb17 has joined #asahi-dev
ddxtanx has quit [Ping timeout: 480 seconds]
ddxtanx has joined #asahi-dev
ddxtanx_ has quit [Read error: Connection reset by peer]
ethantwardy has quit [Ping timeout: 480 seconds]
hdbngr has quit [Remote host closed the connection]