2025-09-26
00:04zumi_ has joined #asahi-dev
00:08zumi has quit [Ping timeout: 480 seconds]
00:09zumi_ is now known as zumi
00:12Ishmael has joined #asahi-dev
00:16Ishmael has quit []
00:22pb17 has quit [Ping timeout: 480 seconds]
00:26pb17 has joined #asahi-dev
01:28hamr has joined #asahi-dev
01:34john-cabaj has quit [Ping timeout: 480 seconds]
01:46Method_ has joined #asahi-dev
01:47Method has quit [Remote host closed the connection]
01:50bjoto has quit [synthon.oftc.net larich.oftc.net]
01:50weirdtreething has quit [synthon.oftc.net larich.oftc.net]
01:50isinyaaa has quit [synthon.oftc.net larich.oftc.net]
01:50swiftraccoon has quit [synthon.oftc.net larich.oftc.net]
01:50i509vcb_ has quit [synthon.oftc.net larich.oftc.net]
01:50Son_Goku has quit [synthon.oftc.net larich.oftc.net]
01:50daniels has quit [synthon.oftc.net larich.oftc.net]
01:50JTL2 has quit [synthon.oftc.net larich.oftc.net]
01:50weitcis_ has quit [synthon.oftc.net larich.oftc.net]
01:50Swiftloke has quit [synthon.oftc.net larich.oftc.net]
01:50Gaelan has quit [synthon.oftc.net larich.oftc.net]
01:50esden has quit [synthon.oftc.net larich.oftc.net]
01:50Chainsaw has quit [synthon.oftc.net larich.oftc.net]
01:50kevans91_ has quit [synthon.oftc.net larich.oftc.net]
01:50nyx_o has quit [synthon.oftc.net larich.oftc.net]
01:50annan_person has quit [synthon.oftc.net larich.oftc.net]
01:50meze_ has quit [synthon.oftc.net larich.oftc.net]
01:50NekomimiScience has quit [synthon.oftc.net larich.oftc.net]
01:50argonaut has quit [synthon.oftc.net larich.oftc.net]
01:50tellowkrinkle has quit [synthon.oftc.net larich.oftc.net]
01:50ipatch has quit [synthon.oftc.net larich.oftc.net]
01:50Leo341B has quit [synthon.oftc.net larich.oftc.net]
01:50fgcrl_ has quit [synthon.oftc.net larich.oftc.net]
01:50Manouchehri has quit [synthon.oftc.net larich.oftc.net]
01:50nathanchance has quit [synthon.oftc.net larich.oftc.net]
01:50nepeat_ has quit [synthon.oftc.net larich.oftc.net]
01:50cyrozap has quit [synthon.oftc.net larich.oftc.net]
01:50llrcombs has quit [synthon.oftc.net larich.oftc.net]
01:51Manouchehri has joined #asahi-dev
01:51bjoto has joined #asahi-dev
01:51isinyaaa has joined #asahi-dev
01:51swiftraccoon has joined #asahi-dev
01:51weirdtreething has joined #asahi-dev
01:51Son_Goku has joined #asahi-dev
01:51i509vcb_ has joined #asahi-dev
01:51JTL2 has joined #asahi-dev
01:51daniels has joined #asahi-dev
01:51esden has joined #asahi-dev
01:51Swiftloke has joined #asahi-dev
01:51weitcis_ has joined #asahi-dev
01:51Chainsaw has joined #asahi-dev
01:51Gaelan has joined #asahi-dev
01:51kevans91_ has joined #asahi-dev
01:51Leo341B has joined #asahi-dev
01:51fgcrl_ has joined #asahi-dev
01:51llrcombs has joined #asahi-dev
01:51cyrozap has joined #asahi-dev
01:51nyx_o has joined #asahi-dev
01:51ipatch has joined #asahi-dev
01:51argonaut has joined #asahi-dev
01:51meze_ has joined #asahi-dev
01:51NekomimiScience has joined #asahi-dev
01:51nathanchance has joined #asahi-dev
01:51nepeat_ has joined #asahi-dev
01:51annan_person has joined #asahi-dev
01:51tellowkrinkle has joined #asahi-dev
01:53vimproved has quit [Remote host closed the connection]
01:53vimproved has joined #asahi-dev
02:00BlueMatt_ has quit [Ping timeout: 480 seconds]
02:00BlueMatt has joined #asahi-dev
02:09tobhe has joined #asahi-dev
02:16tobhe_ has quit [Ping timeout: 480 seconds]
02:18beastd has joined #asahi-dev
02:21beastd|2 has quit [Ping timeout: 480 seconds]
02:26MohamedShalik has joined #asahi-dev
02:44MohamedShalik has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
02:47john-cabaj has joined #asahi-dev
02:56hexdump01 has joined #asahi-dev
02:57hexdump02 has quit [Ping timeout: 480 seconds]
03:17pb17 has quit [Ping timeout: 480 seconds]
03:32pb17 has joined #asahi-dev
03:33nora has joined #asahi-dev
03:35nora_ has quit [Ping timeout: 480 seconds]
04:31john-cabaj has quit [Ping timeout: 480 seconds]
05:00ciara has quit [Remote host closed the connection]
05:01ciara has joined #asahi-dev
06:05zumi_ has joined #asahi-dev
06:05opticron has quit [Read error: Connection reset by peer]
06:05opticron has joined #asahi-dev
06:09zumi has quit [Ping timeout: 480 seconds]
06:10zumi_ is now known as zumi
06:44seb_ has quit [Quit: Konversation terminated!]
07:14seb_ has joined #asahi-dev
07:51jannauchadmed: why are "AC Input Voltage / Current" in hwmon-common.dtsi? At least based on the name they make no sense on laptops
07:52auscyber_are my m4 attempts better in this chat or [#asahi](https://matrix.to/#/%23irc_irc.oftc.net_%23asahi:faggot.sh)
07:59chaos_princessi think you can get it via `u.adt['/arm-io'].ranges`
08:00chaos_princesspastebin it.
08:00chaos_princessalso the wdt ranges
08:02chaos_princessi meant regs
08:03chaos_princesswell, yes, do the thing that janne said, but i wanted to demonstrate on a specific example
08:04chaos_princessin your case, it is simple, just add 0x200000000 to everything
08:04chaos_princesswill work for almost everything
08:09seb_ has quit [Quit: Konversation terminated!]
08:11jannauu.adt["/arm-io/wdt"].get_reg(0)[0] to get the translated 1st register value from the wdt node
08:14chaos_princessdoes it crash or restart?
08:14chaos_princessso, without any extra output on the screen?
08:16jannauit looked like restarts from my BRINGUP builds. it sits there for 30 seconds or a minute and then reboots
08:17auscyber_and more annoying because ih ave to restart my shell because it keeps moving between /dev/ttyACM0 and /dev/ttyACM1
08:20auscyber_i need to do that but im on nixos and hyprland is messed up rn and i cant be bothered patching it to do a system rebuild with new udev rules
08:30auscyber_i wrote the timer to a longer time and im seeing if it makes it take longer to restart
08:33seb_ has joined #asahi-dev
08:40chaos_princessdid they break the watchdog so it can't be disarmed, only reset?
08:41minecrell03 has joined #asahi-dev
08:42chaos_princesswhat is at 0x0c, 0x1c, and 0x2c in watchdog block?
08:44minecrell0 has quit []
08:44ansg191 has quit [Read error: Connection reset by peer]
08:45ansg191 has joined #asahi-dev
08:47chaos_princessmy suspicion is that they are now arming more than one watchdog in iboot, so thats why i asked for the ones above
08:48jannauthere is also regmonitor to automatically diff reg spaces over time. that could identify if there are now more watchdogs with increemnting time
09:08chaos_princessregmonitor time i guess
09:15chaos_princesscan you also try reading at 0x802C
09:18chaos_princess0x801c 0x800c ?
09:19chaos_princesswhich one?
09:19chaos_princessno, i want 0x801c
09:20chaos_princesszero?
09:20chaos_princesswrite a zero there
09:21chaos_princesshow are you writing it
09:21chaos_princessstill show how you are writing please
09:23chaos_princessand you got the right addresses for reads, right?
09:24chaos_princessso, regmonitor time then
09:25chaos_princesssec, let me try go whip something up
09:28chaos_princessirrelevant i think
09:29chaos_princessshould work that way too
09:30chaos_princessno, this will not disarm the watchdog
09:30chaos_princessthe point is to run iomon.poll() and see what changes
09:30chaos_princessevery so often
09:31chaos_princesshow many are there
09:31chaos_princessjust dump it all to pastebin, however many you want
09:38chaos_princessnothing obvious. maybe try replacing `iomon.add(*u.adt["/arm-io/wdt"].get_reg(0))` with `iomon.add(u.adt["/arm-io/wdt"].get_reg(0)[0], 0xc000)` and trying again?
09:43chaos_princessAnd stopwatch says it is exactly 120 seconds?
09:51chaos_princessit still looks like it is the watchdog, but i just can't understand what why it triggers
09:51chaos_princesss/what//
10:14jannau.../nub-spmi0/pmu-main has many info-fault_name-* properties. that could possibly identify the reason for the reboot. I don't know how easy it'll be to access them on m4
10:27ruicon has joined #asahi-dev
10:29ruiconchadmed: u said "unfortunately we cant really decouple hwmon from dt for the reasons mentioned without abusing dt compatibles and having a giant header file full of tables which is really gross", I am not going to create a hardcoded table instead I am gonna loop over all the keys and check if the prefix is I, P, V, T add them to the respective groups (such as temp, power, etc)
10:39ruicon has quit [Remote host closed the connection]
11:48chaos_princessbtw, you are using 26.0, right?
11:48jannauit's a mode which disables most non-essential feature intended for bringup of new devices
11:49chaos_princessbut that loses usb, right?
11:50chaos_princessthen delete that specific ifdef
11:57chaos_princessyou think it is a full discharge?
11:58cylm has joined #asahi-dev
12:03cylm_ has quit [Ping timeout: 480 seconds]
12:04zumi_ has joined #asahi-dev
12:09zumi has quit [Ping timeout: 480 seconds]
12:09zumi_ is now known as zumi
12:47chadmedruicon: that seems rather unreliable. we dont know _for sure_ that the key prefixes are exclusive
12:48chadmedplus iterating over all the possible fourccs is probably going to be unacceptably expensive at runtime
13:17ruicon has joined #asahi-dev
13:23ruiconchadmed: I know that the 95% of keys are for current, volt, temp, power, see: https://github.com/acidanthera/VirtualSMC/blob/master/Docs/SMCKeys.txt
13:25ruiconchadmed: also regrading the cpu usage, I already coded the driver and tested it, it isn't THAT expensive, I think it can be upstreamed
13:27jannauchadmed: you wouldn't try all fourCCs, see macsmc_gpio_find_first_gpio_index() which does a binary search through the known key indices
13:37john-cabaj has joined #asahi-dev
13:44ruicon has quit [Remote host closed the connection]
13:59devadri has joined #asahi-dev
14:00slowlydev has joined #asahi-dev
14:01slowlydev has quit [Remote host closed the connection]
14:26svenyeah, I don’t see how it’s helpful to know that something is 40 degrees without knowing what it is
15:17chadmed has quit [Quit: Konversation terminated!]
15:17chadmed has joined #asahi-dev
15:25ruicon has joined #asahi-dev
15:34ruicon has quit [Remote host closed the connection]
15:58chadmed has quit [Quit: Konversation terminated!]
15:58chadmed has joined #asahi-dev
15:58chadmed has quit []
15:58chadmed has joined #asahi-dev
15:59chadmed has quit []
15:59chadmed has joined #asahi-dev
16:17chadmed has quit [Quit: Konversation terminated!]
16:17chadmed has joined #asahi-dev
16:18chadmed has quit []
16:19chadmed has joined #asahi-dev
16:31auroris has joined #asahi-dev
16:32auroris has quit []
17:00mripard has quit [Quit: WeeChat 4.7.1]
17:37Halian has joined #asahi-dev
17:46pb17 has quit [Ping timeout: 480 seconds]
17:53pb17 has joined #asahi-dev
17:56psykose has quit [Ping timeout: 480 seconds]
18:05zumi_ has joined #asahi-dev
18:10zumi has quit [Ping timeout: 480 seconds]
18:10zumi_ is now known as zumi
18:21chaos_princess has quit [Quit: chaos_princess]
18:21chaos_princess has joined #asahi-dev
19:06devadri has quit [Quit: gtg]
19:06devadri has joined #asahi-dev
19:24john-cabaj has quit [Ping timeout: 480 seconds]
19:39pb17 has quit [Ping timeout: 480 seconds]
19:54pb17 has joined #asahi-dev
20:07psykose has joined #asahi-dev
20:07psykose has quit [Remote host closed the connection]
20:08psykose has joined #asahi-dev
20:37john-cabaj has joined #asahi-dev
21:06chadmed_ has joined #asahi-dev
21:06chadmed has quit [Remote host closed the connection]
21:13karlskewes has joined #asahi-dev
21:47ishmaelaqsar has joined #asahi-dev
21:47ishmaelaqsar has quit []
22:03john-cabaj has quit [Ping timeout: 480 seconds]
22:26catred has joined #asahi-dev
22:59linuxgemini has quit [Read error: Connection reset by peer]
22:59linuxgemini has joined #asahi-dev
23:32rivendell has quit [Ping timeout: 480 seconds]
23:44mixi has quit [Ping timeout: 480 seconds]
23:45karlskewes has quit [Remote host closed the connection]
23:50ddxtanx has quit [Remote host closed the connection]
23:55mcint has joined #asahi-dev
23:56mixi has joined #asahi-dev