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]
yuyichao_ has quit [Ping timeout: 480 seconds]
hdbngr has joined #asahi-dev
pb17 has quit [Ping timeout: 480 seconds]
chrisl has joined #asahi-dev
hdbngr has quit [Ping timeout: 480 seconds]
pb17 has joined #asahi-dev
chrisl has quit [Ping timeout: 480 seconds]
hdbngr has joined #asahi-dev
hdbngr has quit [Ping timeout: 480 seconds]
chrisl has joined #asahi-dev
lukeleppan___ has joined #asahi-dev
lukeleppan___ has quit []
chrisl has quit [Ping timeout: 480 seconds]
tobhe_ has joined #asahi-dev
hexdump0815 has joined #asahi-dev
hexdump01 has quit [Ping timeout: 480 seconds]
tobhe has quit [Ping timeout: 480 seconds]
chrisl has joined #asahi-dev
chrisl has quit [Ping timeout: 480 seconds]
nora has joined #asahi-dev
nora_ has quit [Ping timeout: 480 seconds]
Larwive has joined #asahi-dev
chrisl has joined #asahi-dev
chrisl has quit [Ping timeout: 480 seconds]
eluks has quit [Remote host closed the connection]
ddxtanx_ has quit [Remote host closed the connection]
hdbngr has joined #asahi-dev
ddxtanx has joined #asahi-dev
hdbngr has quit [Ping timeout: 480 seconds]
chrisl has joined #asahi-dev
vimproved has quit [Remote host closed the connection]
vimproved has joined #asahi-dev
nimprod3l has joined #asahi-dev
pb17 has quit [Ping timeout: 480 seconds]
hdbngr has joined #asahi-dev
hdbngr has quit [Ping timeout: 480 seconds]
chrisl has quit [Ping timeout: 480 seconds]
pb17 has joined #asahi-dev
tobhe_ is now known as tobhe
vimproved 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]
chrisl has joined #asahi-dev
pb17 has joined #asahi-dev
hdbngr has joined #asahi-dev
hdbngr has quit [Ping timeout: 480 seconds]
<chadmed>
jannau: will SIO help with the spi hid irq storm issue at all if we wire it up?
<chadmed>
do we need to RE how all that works still?
hdbngr has joined #asahi-dev
hdbngr has quit [Ping timeout: 480 seconds]
<sven>
iirc povik wrote some SIO driver and tracer but I'm not sure if he bothered to figure out how it's connected to the SPI controller
chrisl has quit [Ping timeout: 480 seconds]
hdbngr has joined #asahi-dev
<chadmed>
yeah i thought janne ended up finishing it
<chadmed>
ive been using my 14" again and was reminded as the machine got hot just typing a document :p
<sven>
lol
nimprod3l has quit [Quit: Leaving]
hdbngr has quit [Ping timeout: 480 seconds]
hdbngr has joined #asahi-dev
hdbngr has quit [Ping timeout: 480 seconds]
<flokli>
jannau: max_hw_heartbeat_ms was right. Patch sent out, should be in your inboxes. Was a bit unsure which lists to cc, MAINTAINERS says you'd pick it into your tree and then eventually it'll be part of a request to pull for to a subsystem maintainer, yet lists are CCed even before so they can provide feedback?
<flokli>
(that's what I did, as that's what kernel contribution guidelines say)
<jannau>
I've not fully reversed it. just to the point that I could read the messages (hv/trace_keyboard.py iirc). not sure that using sio is going to change something regarding the irq storms. it would reduce the amount of work per irq though
<jannau>
I'm wondering whether the threaded irq handler isn't the problem and spi_hid should keep irqs disabled during spi transfers
pb17 has quit [Ping timeout: 480 seconds]
<chadmed>
it would measurably improve battery life on machines with spi hid if we dont need them
<jannau>
flokli: patch looks good and recipients are as expected. thanks
<flokli>
It's also running here and tested ofc, so when pulling, feel free to add a Tested-By from me
<flokli>
Systemd doesn't complain anymore about not being able to set the 10min timeout
pb17 has joined #asahi-dev
chrisl has joined #asahi-dev
hdbngr has joined #asahi-dev
<jannau>
flokli: "Tested-by:" trailers from the patch author are implicit. I'll pick the change for the next downstream tag. for upstream it will be handled by Guenter (watchdog maintainer)
<jannau>
did you test whether it triggers?
chrisl has quit [Ping timeout: 480 seconds]
hdbngr has quit [Ping timeout: 480 seconds]
hdbngr has joined #asahi-dev
<flokli>
Hmmh, I wrote a small piece of code, arming it for 4mins, sleeping a sec, sending a heartbeat, then just sleeping inducethe process without sending heartbeats. But it did reboot after 60 seconds already for some reason
hdbngr has quit [Ping timeout: 480 seconds]
<flokli>
I guess I can retry with something like 90secs and without my patch. maybe some of the math, or reading the clk rate is already broken.
<jannau>
maybe disable the watchdog first: `echo V > /dev/watchdog0`
<jannau>
60 seconds is the default value
<flokli>
without the kernel patch and setting a timeout of 90secs it does survive up to 70s (before I ctrl-c'ed it)
<flokli>
so there's something fishy with this patch
hdbngr has joined #asahi-dev
hdbngr has quit [Ping timeout: 480 seconds]
hdbngr has joined #asahi-dev
<flokli>
yeah, looks like we need to use min(timeout_secs, max_hw_timeout_secs), which I didn't do. Will test with that patch and roll a v2.
<jannau>
in apple_wdt_set_timeout()? that looks like something watchdog-core should take care of
hdbngr has quit [Ping timeout: 480 seconds]
hdbngr has joined #asahi-dev
chrisl has joined #asahi-dev
chrisl has quit [Ping timeout: 480 seconds]
hdbngr has quit [Ping timeout: 480 seconds]
hdbngr has joined #asahi-dev
<jannau>
looks like it won't work anyway (for systemd reboot) because something in userspace stops the watchdog during reboot
hdbngr has quit [Ping timeout: 480 seconds]
<flokli>
I agree on watchdog-core, but watchdog-kernel-api.rst, L197 says otherwise
<flokli>
and implementing the behaviour seems to work, at least it didn't get rebooted yet
<flokli>
Yup, and here is the watchdog firing at 240s. So that was the fix.
<jannau>
flokli: ack, when it's explicitly documented. I'm looking into the systemd issue
hdbngr has joined #asahi-dev
nimprod3l has joined #asahi-dev
<jannau>
testing with f40/systemd-255. code has clearly changed so let me at least update to f41
<flokli>
I think it's logged twice because we use the shutdown ramfs thing
<flokli>
didn't set RuntimeWatchdogSec= or any of the other ones
<jannau>
it doesn't work correctly during restart. watchdog triggered 177 seconds after the last ping. the watchdog worker thread isn't running anymore at that point.
<flokli>
I don't have the setup for that. The only thing I could think of is that something during handover between normal system and systemd-shutdown retriggers a ping, or resets a timeout
Larwive has joined #asahi-dev
hdbngr has joined #asahi-dev
hdbngr has quit [Ping timeout: 480 seconds]
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
Larwive has quit [Ping timeout: 480 seconds]
hdbngr has quit [Ping timeout: 480 seconds]
Larwive has joined #asahi-dev
hdbngr has joined #asahi-dev
Larwive has quit [Ping timeout: 480 seconds]
hdbngr has quit [Ping timeout: 480 seconds]
pb17 has quit [Ping timeout: 480 seconds]
Larwive has joined #asahi-dev
chrisl has joined #asahi-dev
Larwive has quit [Ping timeout: 480 seconds]
pb17 has joined #asahi-dev
chrisl has quit [Ping timeout: 480 seconds]
Larwive has joined #asahi-dev
Larwive has quit [Ping timeout: 480 seconds]
Larwive has joined #asahi-dev
hdbngr has joined #asahi-dev
hdbngr has quit [Ping timeout: 480 seconds]
JayBeeFOSS has quit [Ping timeout: 480 seconds]
JayBeeFOSS has joined #asahi-dev
chrisl has joined #asahi-dev
chrisl has quit [Ping timeout: 480 seconds]
okb has joined #asahi-dev
nimprod3l has quit [Ping timeout: 480 seconds]
nimprod3l has joined #asahi-dev
hdbngr has joined #asahi-dev
cyrinux9490 has quit []
cyrinux9490 has joined #asahi-dev
hdbngr has quit [Ping timeout: 480 seconds]
pb17 has quit [Ping timeout: 480 seconds]
vimproved has quit [Remote host closed the connection]
vimproved has joined #asahi-dev
pb17 has joined #asahi-dev
chrisl has joined #asahi-dev
chrisl has quit [Ping timeout: 480 seconds]
wyes has quit [Remote host closed the connection]
hdbngr has joined #asahi-dev
hdbngr has quit [Ping timeout: 480 seconds]
hdbngr has joined #asahi-dev
riker77 has quit [Quit: Quitting IRC - gone for good...]
hdbngr has quit [Ping timeout: 480 seconds]
alberttc has joined #asahi-dev
alberttc has quit [Quit: Konversation terminated!]
hdbngr has joined #asahi-dev
chrisl has joined #asahi-dev
hdbngr has quit [Ping timeout: 480 seconds]
wyes has joined #asahi-dev
chrisl has quit [Ping timeout: 480 seconds]
hdbngr has joined #asahi-dev
hdbngr has quit [Ping timeout: 480 seconds]
WindowPain has quit [Read error: Connection reset by peer]
WindowPain has joined #asahi-dev
ddxtanx has quit [Remote host closed the connection]
hdbngr has joined #asahi-dev
hdbngr has quit [Ping timeout: 480 seconds]
chrisl has joined #asahi-dev
ddxtanx has joined #asahi-dev
ids1024 has quit [Ping timeout: 480 seconds]
nimprod3l has quit [Remote host closed the connection]
chrisl has quit [Ping timeout: 480 seconds]
Larwive has quit [Ping timeout: 480 seconds]
hdbngr has joined #asahi-dev
hdbngr has quit [Ping timeout: 480 seconds]
roxfan2 has joined #asahi-dev
chrisl has joined #asahi-dev
roxfan has quit [Ping timeout: 480 seconds]
chrisl has quit [Ping timeout: 480 seconds]
hdbngr has joined #asahi-dev
okb has quit [Read error: Connection reset by peer]