#
…

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:53jannaueither here or in #asahi-re
07:54auscyber_ranges property where?
07:55jannau/arm-io/ranges
07:57auscyber_im not seeing it in my adt
07:59chaos_princessi think you can get it via `u.adt['/arm-io'].ranges`
07:59auscyber_wait no found it
07:59auscyber_which one do i use
08:00auscyber_cause obviously like a lot of theme
08:00chaos_princessalso the wdt ranges
08:02auscyber_wdt doesn't have any ranges on it
08:03jannauif the value is in [bus_addr, bus_addr + size] add parent_addr
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:06jannaualso the adt python and c (rust) code does this if you use get_reg()
08:08auscyber_im in the shell theres no get_reg
08:09auscyber_wait i see u.adt.get_reg
08:09seb_ has quit [Quit: Konversation terminated!]
08:09auscyber_what do i pass in to that?
08:11jannauu.adt["/arm-io/wdt"].get_reg(0)[0] to get the translated 1st register value from the wdt node
08:13auscyber_thats what i was reading from before
08:13auscyber_nope oops i lie that did work
08:14auscyber_okay my wdt is disabled but it still keeps restarting
08:14chaos_princessdoes it crash or restart?
08:14chaos_princessso, without any extra output on the screen?
08:14auscyber_im pretty sure
08:15auscyber_im time lapsing it to make sure
08:16auscyber_yup no output on screen
08:16jannauit looked like restarts from my BRINGUP builds. it sits there for 30 seconds or a minute and then reboots
08:16auscyber_it just suddenly goes black and restarts
08:17auscyber_and more annoying because ih ave to restart my shell because it keeps moving between /dev/ttyACM0 and /dev/ttyACM1
08:18jannausee `udev/80-m1n1.rules`. with that you get "/dev/m1n1"
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:23auscyber_what can i do to fix these restarts?
08:30auscyber_i wrote the timer to a longer time and im seeing if it makes it take longer to restart
08:30auscyber_but it does say disabled as in 0x1c is 0
08:32auscyber_+0x14 is currently 0xd693a400
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:42auscyber_whats that oh
08:42chaos_princesswhat is at 0x0c, 0x1c, and 0x2c in watchdog block?
08:42auscyber_like the values?
08:42auscyber_if i read feom them
08:42auscyber_lemme check
08:44minecrell0 has quit []
08:44ansg191 has quit [Read error: Connection reset by peer]
08:45jannaudoews it still reboot if you write 0 to 0x00, 0x10, 0x20 every 5 seconds
08:45ansg191 has joined #asahi-dev
08:46jannaua dump of the first the watchdog block might be helpful
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:47auscyber_no all good, i just accidentally borked my linux, gimme a sec
08:48jannauthere is also regmonitor to automatically diff reg spaces over time. that could identify if there are now more watchdogs with increemnting time
08:49jannausame, that's why I asked to reset CUR_TIME for all 3 know watchdogs
08:58auscyber_gimme a sec
09:06auscyber_0x0c 0x1c and 0x2c are all zero
09:07auscyber_writing zero seems to help
09:08auscyber_nope it does not
09:08chaos_princessregmonitor time i guess
09:10auscyber_okay i'm writing a lot into those registers and doesnt seem to help
09:10auscyber_like i literally just wrote into them, and still restarted
09:15chaos_princesscan you also try reading at 0x802C
09:18chaos_princess0x801c 0x800c ?
09:19auscyber_0x170ac8ee
09:19auscyber_and 0x00c is zero
09:19chaos_princessno, i want 0x801c
09:19auscyber_wait also zero
09:19auscyber_801c is that yes
09:20auscyber_no 0x170ac8ee
09:20chaos_princesswrite a zero there
09:20auscyber_and 0x800c is zero
09:21auscyber_sync error
09:21auscyber_wait mightve put in wrong address gimme a sec
09:21chaos_princesshow are you writing it
09:21auscyber_no put in wrong address
09:21chaos_princessstill show how you are writing please
09:22auscyber_write32(0x3882b0000+0x801C,0)
09:22auscyber_i've written into there
09:22auscyber_lets see if it still restarts
09:23chaos_princessand you got the right addresses for reads, right?
09:24auscyber_u.adt["/arm-io/wdt"].get_reg(0)[0] is the base adress equal to 0x3882b0000
09:24auscyber_okay it still restarted
09:24chaos_princessso, regmonitor time then
09:25auscyber_and that entails?
09:25chaos_princesssec, let me try go whip something up
09:27auscyber_also keep in mind TTY> cpufreq: Chip 0x8132 is unsupported
09:28auscyber_idk how relevant that is
09:28chaos_princessirrelevant i think
09:29auscyber_where should i put this, just in the shell?
09:29chaos_princessshould work that way too
09:29auscyber_im doing that
09:30auscyber_i've setup a stopwatch to see if it reaches the 2 minutes
09:30auscyber_and every now and again running iomon.poll()
09:30chaos_princessno, this will not disarm the watchdog
09:30chaos_princessthe point is to run iomon.poll() and see what changes
09:30auscyber_how frequently?
09:30chaos_princessevery so often
09:30auscyber_how many outputs do u want i mean
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:40jannaumy mac mini m2 pro with tahoe beta does not seem to reboot. Using a m1n1 bringup build
09:43chaos_princessAnd stopwatch says it is exactly 120 seconds?
09:44auscyber_i will check that
09:46auscyber_yup exactly 2 mins
09:47auscyber_mightve started it slightly late so it was 1:58 seconds
09:47auscyber_but its defs 120 seconds
09:51chaos_princessit still looks like it is the watchdog, but i just can't understand what why it triggers
09:51auscyber_i know, bizarre
09:52auscyber_maybe it cant be disabled
10:10jannaudo you have a iomon.poll output close (single digit seconds) to the reboot?
10:10auscyber_ill give that a try
10:13auscyber_wait actually no
10:13auscyber_it says invalid syntax
10:13auscyber_iomon.readmem = readmem_phys
10:14auscyber_the poll might not actually have worked
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:16auscyber_i can see the faultname things in the adt
10:17auscyber_could be this info-fault_name-43 = timeout,wdog_fw_timeout
10:18auscyber_or info-fault_name-28 = timeout,watchdog_timeout
10:18auscyber_info-fault_name-20 = wdog,reset_in_1
10:18auscyber_ info-fault_name-66 = cp_wdog_expiry
10:18auscyber_these could be useful
10:21auscyber_chaos_princess: this seemed to fail iomon.readmem = readmem_phys
10:21auscyber_saying invalid syntax
10:26auscyber_oops needed a bigger space
10:27ruicon has joined #asahi-dev
10:29auscyber_okay fixed ur code and it errors out with sync
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:25auscyber_ugh idk what to try
11:42jannauBRINGUP build on base M4 mac mini (26.0) does not reboot
11:44auscyber_what what difference is bringup?
11:45auscyber_what are you doing?
11:45auscyber_all i'm doing is compiling the .bin from master
11:45auscyber_with CHAINLOADING=1
11:45auscyber_jannau: tell me your secrests
11:48jannaugit grep BRINGUP
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:49auscyber_okay okay lets see on mine then
11:49chaos_princessbut that loses usb, right?
11:49jannauusb is not essential
11:49auscyber_for me it is, i dont have the stuff ready yet for serial
11:50chaos_princessthen delete that specific ifdef
11:50jannauno reboots with with a normal build with working usb after more than 3 minutes though
11:51jannauare you now using a apple silicon device with linux?
11:52auscyber_im debugging on linux
11:52auscyber_but it is not running linux tho obv
11:52auscyber_like my apple silicon isnt
11:54jannauwhich device are you trying to get running?
11:54auscyber_my m4 macbook pro
11:55jannaudo you have the magsafe charging cable connected?
11:56jannauI don't think the reboots are caused by the watchdog
11:56auscyber_seriously?
11:57jannaucan you try with power over magsafe connected
11:57chaos_princessyou think it is a full discharge?
11:57auscyber_full discharge? the battery is full
11:58auscyber_i rebuilt with bringup now its not even booting
11:58jannauno, I suspect smc reboots because due to charging issues
11:58cylm has joined #asahi-dev
11:58jannauauscyber_: you have to define TARGET to T8132 for BRINGUP
11:58auscyber_AHH FUCK OKAY
12:03cylm_ has quit [Ping timeout: 480 seconds]
12:04auscyber_i did define target but we still at only apple logo
12:04zumi_ has joined #asahi-dev
12:05auscyber_endless apple logo
12:06auscyber_i might just turn off bringup tbh
12:06jannaunot 100% sure if the framebuffer is used. wait 2 minutes to see whether it reboots
12:06auscyber_i also disabled disabling usb and im not getting anything in usb
12:07auscyber_oh i think it mightve rebooted
12:09zumi has quit [Ping timeout: 480 seconds]
12:09zumi_ is now known as zumi
12:10auscyber_it should be using framebuffer but it's not
12:21auscyber_okay i am turning bringup off just to see
12:28auscyber_okay plugged into magsafe, still restarts not on bringup
12:42auscyber_okay removed the disabling of usb and im not getting anything in my serial
12:42auscyber_s/serial/tty/
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
12:48chadmedi would nack such an approach tbh
12:50chadmedjannau: the "ac" input keys are used on the laptops for charger input
12:56jannauthe DC charger input?
12:57chadmedyeah, maybe they need renaming
12:57chadmedbut they are used to meter the input power from chargers
12:57auscyber_jannau: still resets after 2 minutes
12:58auscyber_and i dont even have the privilege of usb proxy and i enabled it in the build
12:58auscyber_when using bringup
12:58auscyber_its simply just apple logo for two mins
12:58auscyber_then restart
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:28jannauI don't see much sense in reporting values without knowing what they measure
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
14:29mazwell, you know it's way too warm to be there! :)
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
…