2021-11-12
00:15egavinc__ has quit [Quit: Leaving]
00:37yuyichao has quit [Ping timeout: 480 seconds]
01:05yuyichao has joined #asahi-dev
01:27cz3 has quit []
01:37kov has joined #asahi-dev
01:42gladiac is now known as Guest5659
01:42gladiac has joined #asahi-dev
01:48Guest5659 has quit [Ping timeout: 480 seconds]
02:30riker77_ has joined #asahi-dev
02:35riker77 has quit [Ping timeout: 480 seconds]
02:35riker77_ is now known as riker77
03:04Dcow has joined #asahi-dev
03:04Dcow has quit []
03:22kov has quit [Quit: Coyote finally caught me]
03:46phiologe has joined #asahi-dev
05:38Dcow has joined #asahi-dev
05:39Dcow has quit []
05:40Dcow has joined #asahi-dev
06:40DarkShadow44 has quit [Quit: ZNC - https://znc.in]
06:43DarkShadow44 has joined #asahi-dev
06:43DarkShadow44 has quit [Remote host closed the connection]
07:03DarkShadow44 has joined #asahi-dev
07:04DarkShadow44 has quit [Read error: Connection reset by peer]
07:05DarkShadow44 has joined #asahi-dev
07:06DarkShadow44 has quit []
07:11DarkShadow44 has joined #asahi-dev
07:11DarkShadow44 has quit [Read error: Connection reset by peer]
07:12DarkShadow44 has joined #asahi-dev
07:14DarkShadow44 has quit [Remote host closed the connection]
07:14DarkShadow44 has joined #asahi-dev
07:33rkt has joined #asahi-dev
07:41jeffmiw has quit [Ping timeout: 480 seconds]
08:14Dcow has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
08:14richbridger has quit [Ping timeout: 480 seconds]
08:14aquijoule_ has joined #asahi-dev
08:34chadmed has quit [Remote host closed the connection]
08:34chadmed has joined #asahi-dev
08:37Dcow has joined #asahi-dev
09:47kov has joined #asahi-dev
09:58jeffmiw has joined #asahi-dev
10:20Dcow has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
10:27Dcow has joined #asahi-dev
10:46aquijoule_ is now known as richbridger
10:47richbridger has quit []
10:47richbridger has joined #asahi-dev
11:48cepheus has quit [Remote host closed the connection]
12:27aleasto has joined #asahi-dev
12:35suricato has quit [Ping timeout: 480 seconds]
13:15chadmed has quit [Remote host closed the connection]
13:16chadmed has joined #asahi-dev
13:37fried_dede[m] has joined #asahi-dev
14:20Dcow has quit [Quit: Textual IRC Client: www.textualapp.com]
14:40yuyichao has quit [Ping timeout: 480 seconds]
14:41Dcow has joined #asahi-dev
14:53Dcow has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
15:00yuyichao has joined #asahi-dev
15:10yuyichao_ has joined #asahi-dev
15:14yuyichao has quit [Ping timeout: 480 seconds]
15:28Dcow has joined #asahi-dev
17:07leah2 has quit [Remote host closed the connection]
17:09leah2 has joined #asahi-dev
17:20Dcow has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
18:04svenlooks like this thing has three watchdog timers. first one can also fire an interrupt N ticks before reset but then always resets to recovery mode. The other two just seem to do a “normal” reset
18:05svenand more importantly: unlike the usb pd reset these don’t seem to turn that annoying startup chime back one :D
18:06svenaccording to the ADT there’s also some GPIO involved but I haven’t been able to figure out what it does yet
18:09mazsven: yeah, still can't be bothered. I found that I end-up hacking on the M1 when I'm not next to it. another good reason to go back into the office!
18:10svenmine is next to me and I’ve actually been very close to just forcibly disconnecting that speaker
18:11mazyup. given that PD reset is what I use all the time, that's the only solution (at least as I understand it)
18:25kettenisheh, I actually find the chime useful as feedback when I'm sitting in my lazy chair and I'm resetting the mini on my desk
18:30Dcow has joined #asahi-dev
18:42Dcow has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
18:50svennot sure if it makes sense to expose the two watchdogs that don't trigger recovery mode. i mostly care about the system reset anyway
18:54svenyeah, not sure about that either. ADT claims it's version 2 and i have no idea how version 1 looks like
19:00roxfan has quit [Remote host closed the connection]
19:03roxfan has joined #asahi-dev
19:07kettenissometimes it looks as if the 2nd cell is some sort of flag instead of an interrupt number
19:08svenyeah. and i've seen nodes with AIC as a parent in the ADT that had that additional "flag" and others that don't
19:08jannaufor aic it seems to be just a list of interrupts. for gpio it is the pin number and config flags
19:12svenbut anyway, if the interface for the previous phone SoCs is similar i'll just call the base compatible "apple,wdt"
19:24kettenisthe reboot driver in the linux-sandcastle tree does effectively the same thing as the sven's new driver
19:34svenit’ll work without that enable but that’s just because our ref clock is a constant clock anyway
19:49Dcow has joined #asahi-dev
20:10svenmaybe these function-* entries in the ADT can somehow be used to switch the first one to just do a normal reboot as well
20:10aleasto has quit [Remote host closed the connection]
20:17svenwhich trace mode do you use? if it's async the usb interface might just disappear before you see the writes
20:55jannauno writes to 0x1c before reset. macos' serial log ends with "IOPlatformHaltRestartAction -> AppleT6001PMGR"
20:56X-Scale has joined #asahi-dev
20:59kettenisit isn't inconceivable that they implemented a "proper" reset path for the new machines instead of abusing the watchdog timer
21:00X-Scale` has quit [Ping timeout: 480 seconds]
21:19jannaua watchdog reset with empty battery (~5% here) is poweroff. poweroff in linux worked unexpectedly
21:50Dcow has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
22:45Dcow has joined #asahi-dev
22:58svenhah. so now we just need to find a way to quickly the drain the battery and then we also have power off without requiring SMC :P
23:00kettenismaybe you should implement a battery status reader to see how fast you can drain your battery
23:07kettenismeanwhile I can confirm that the touchpad does indeed produce the same kind of packets as those handled by the bcm5974.c linux driver when in raw mode
23:32Dcow has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]