2023-04-18
00:22baozich1 has joined #asahi-dev
00:22baozich has quit [Read error: Connection reset by peer]
00:22baozich1 is now known as baozich
00:26nsklaus has quit [Quit: ZZZzzz…]
00:26nsklaus has joined #asahi-dev
00:42nsklaus has quit [Ping timeout: 480 seconds]
01:15maria285474 is now known as maria
01:15user982492 has joined #asahi-dev
02:00gabuscus has quit []
02:13gabuscus has joined #asahi-dev
02:15salimterryli has quit [Remote host closed the connection]
02:35nicolas17 has quit [Quit: Konversation terminated!]
02:47pg12 has joined #asahi-dev
02:48pg12_ has quit [Ping timeout: 480 seconds]
03:05user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
03:38user982492 has joined #asahi-dev
03:49salimterryli has joined #asahi-dev
03:51marcanchadmed: now that it's fully charged, I'm getting 22 hours screen off idle (with no peripherals connected) on t6000, so something is wrong if you only get 11h
03:53marcanthe MCC stuff should be at the *lower* level right now, if anything what macOS does is boost it when some cores are fast, but I never saw a difference in benchmarks so I didn't bother
04:05chadmed_marcan: at work but did some sneaky ssh, battery currently at 60% with ~11 hr left in it
04:09chadmed_might be fun to do some desktop use type testing to see what difference that makes with cpuidle
04:11chadmed_https://github.com/chadmed/linux/tree/eas-v2 only needs the latest commit on top of 6.2 because that silly regulator stuff got fixed
04:11chadmed_those values should be accurate now, all that interactivity hitching goes away with menu governor and cpuidle
04:11marcanheh, now that we have cpuidle we're going to need microwatt numbers for the higher pstates too ;)
04:12chadmed_should they Just Work(tm) now with the #if 0 removed or is there more work to get htem to actually hit
04:14marcanmight want to play games with core pinning to make sure all but one core in a cluster really are idle, for benchmarking purposes
04:15marcanif cur_freq says it's hitting them then it's hitting them (that comes from feedback from the hardware)
04:19marcanchadmed_: also the power/exit latency numbers in the cpuidle stuff are BS, I should actually measure that
04:20marcanmacOS doesn't actually do any cpuidle handling, it just uses auto mode and lets the CPU decide with its own heuristic :)
04:21chadmed_if we can somehow reduce the number of interrupts fired by the touchpad the pcores would barely ever wake up at the desktop
04:32user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
04:49abd has joined #asahi-dev
05:43cylm_ has joined #asahi-dev
05:44cylm has quit [Ping timeout: 480 seconds]
05:49jannauand why is my hw uart broken? usb-pd reset works, looks like the device is not sending any data
06:03kedde2 has joined #asahi-dev
06:04drubrkletern has quit [Remote host closed the connection]
06:10kedde3 has joined #asahi-dev
06:11raveling has joined #asahi-dev
06:12kedde2 has quit [Ping timeout: 480 seconds]
06:14abd has quit [Ping timeout: 480 seconds]
06:32chadmed_ has quit [Quit: Page closed]
06:57raveling has quit [Ping timeout: 480 seconds]
07:07jannauswitching from sddm to a vt with power logging reduces the sys power use from ~10.5W to ~8.5W
07:08CoolStar has quit [Ping timeout: 480 seconds]
07:09CoolStar has joined #asahi-dev
07:20bps has joined #asahi-dev
07:23marcanthe system pstate stuff I did might be breaking things on t6001, it was a bit dodgy (that's why there's that min pstate thing, lower hangs for me)
07:24marcantry disabling that driver and seeing if that helps, or removing either of the named reg entries (which will disable that side)
07:25marcanapple only touches DCS on t6001, not fabric, I completely guessed that one based on t602x (and I think they only do it when going into real suspend)
07:31bps has quit [Read error: Connection reset by peer]
07:31bps has joined #asahi-dev
07:33raveling has joined #asahi-dev
07:41bps2 has joined #asahi-dev
07:41bps has quit [Ping timeout: 480 seconds]
07:55bps has joined #asahi-dev
07:55bps2 has quit [Read error: Connection reset by peer]
08:03jannaumarcan: I'm seeing following smc splat on boot with APPLE_SMC and various MACSMC options built-in: https://gist.github.com/jannau/953f3c37056dab2ce935543e42f32ed7
08:16marcanjannau: is it the cpuidle thing breaking wakeup? I don't think we changed anything else :/
08:25nyilas has joined #asahi-dev
08:27jannauI do not use s2idle so the lat time I tested was before the mailbox rewrite. strange though that it works in the HV
08:36kaazoo has left #asahi-dev [#asahi-dev]
08:37nsklaus has joined #asahi-dev
09:00marcanmaybe we can do something like test the configured limits, and if they're lower or equal to that, just engage that mode in suspend
09:02marcanmaybe charge_type = "long life" would sort of map to that, but it's intended to mean lower current charging, not outright limits :/
09:04marcanthough drivers are allowed to round charge_control_end_threshold etc, so maybe we should just ditch the kernel handling entirely and just only allow setting 80 or 100 for that.
09:35c10l has quit [Quit: Bye o/]
09:44kedde4 has joined #asahi-dev
09:45kedde3 has quit [Ping timeout: 480 seconds]
09:52marcanand the firmware I'm reverse engineering is some early 13.0 beta (last one I have a key for on t8103)
09:56chadmed has quit [Remote host closed the connection]
09:58chadmed has joined #asahi-dev
10:01Galileo-dev has joined #asahi-dev
10:01hightower4 has joined #asahi-dev
10:01chadmedoh wow idle power is closer to 8 W now, im assuming EAS doesnt like pstates without opp-microwatt
10:03kedde has joined #asahi-dev
10:03marcanI expect the boost states to be woefully power-inefficient, so it really shouldn't switch to them until it really knows it needs to
10:05kedde4 has quit [Ping timeout: 480 seconds]
10:07hightower3 has quit [Ping timeout: 480 seconds]
10:09marcanalso, have we confirmed that the "extra" pstates on t802x are only for j416c? if so we need to adjust the DTs to that end.
10:10chadmed has quit [Remote host closed the connection]
10:25_jannau_macos high performance mode is 16" M{1,2} Max only https://support.apple.com/en-us/HT212852
10:29galileo has joined #asahi-dev
10:51nyilas has quit [Remote host closed the connection]
10:53bcrumb has joined #asahi-dev
10:57Galileo-dev has quit [Quit: Konversation terminated!]
10:57galileo is now known as Galileo-dev
11:17chadmed has joined #asahi-dev
11:22bcrumb has quit [Quit: WeeChat 3.8]
11:44baozich has quit [Quit: baozich]
11:44baozich has joined #asahi-dev
11:45TexasOct has joined #asahi-dev
11:47marcanwe were clearing all bits of the pstate registers because I wrote & FOO instead of & ~FOO
11:47marcanneeds a m1n1 stage1 update to fix "properly" but I can probably just restore the bits in stage2 as a one-off
11:51baozich has quit [Quit: baozich]
11:52baozich has joined #asahi-dev
11:57c10l has joined #asahi-dev
11:57c10l has quit []
11:58c10l has joined #asahi-dev
12:03baozich1 has joined #asahi-dev
12:03baozich has quit [Remote host closed the connection]
12:03baozich1 is now known as baozich
12:03jannaususpend (or wakeup) seems to break with no_console_suspend and macsmc_power.log_power=1. wakeup works without no_console_suspend
12:07jannauis the max pstate visible in ioreg? that's probably the fastest way to get results from j41{4,6}{s,c}
12:16chadmedmight be the sus eas numbers, but im getting ~3700 by default whereas last time i did the testing i barely got 2300 with the performance governor and pinning glmark2 to the pcores
12:16baozich has quit [Quit: baozich]
12:16baozich has joined #asahi-dev
12:20baozich has quit []
12:20baozich has joined #asahi-dev
12:23landscape15 has joined #asahi-dev
12:25landscape15_ has joined #asahi-dev
12:25jannauwas the last test already with lina's sync UAPI? results are not fully resolution independent. 800x600 is faster than 4k. nowhere near 17 times faster of course but maybe 2 times
12:29landscape15_ has quit []
12:32landscape15 has quit [Ping timeout: 480 seconds]
12:34baozich has quit [Ping timeout: 480 seconds]
12:34chadmed has quit [Read error: Connection reset by peer]
12:38chadmed has joined #asahi-dev
12:58raveling has quit [Ping timeout: 480 seconds]
13:06c10l has quit [Ping timeout: 480 seconds]
13:10hightower4 has quit [Ping timeout: 480 seconds]
13:15baozich has joined #asahi-dev
13:21raveling has joined #asahi-dev
13:23baozich has quit [Ping timeout: 480 seconds]
13:29raveling has quit [Ping timeout: 480 seconds]
13:31baozich has joined #asahi-dev
13:31raveling has joined #asahi-dev
13:33Galileo-dev has quit [Remote host closed the connection]
13:39baozich has quit [Ping timeout: 480 seconds]
13:43baozich has joined #asahi-dev
13:46raveling has quit [Ping timeout: 480 seconds]
13:54raveling has joined #asahi-dev
13:57Guest11450 has joined #asahi-dev
14:02raveling has quit [Ping timeout: 480 seconds]
14:28baozich1 has joined #asahi-dev
14:35baozich has quit [Ping timeout: 480 seconds]
14:35baozich1 is now known as baozich
14:46raveling has joined #asahi-dev
14:53baozich has quit [Ping timeout: 480 seconds]
14:54raveling has quit [Ping timeout: 480 seconds]
14:55ChaosPrincessso, how to deal with mipi? Macos just stashes whatever was configured by iboot and reapplies the configs if it comes out of sleep mode. I could make a separate driver, but dw-mipi-dsi kinda looks similar-ish, but the way it is right now, i can't really cause it to do the same series of register writes as macos does.
14:57ChaosPrincessits save/restore, and i would copy/paste the mipi send/mipi recv functinos
14:58ChaosPrincessalso might need to put the stash part in m1n1 so i could drop always-on
15:05_jannau_you can clear the always-on after you saved the initial config. did we drop that with runtime-pm?
15:12bps has quit [Ping timeout: 480 seconds]
15:16marcanand yes you can do what DCP used to do and drop it in the driver (it's a hack but it works), though eventually that won't be necessary
15:17ChaosPrincessi can just not bother with trying to survive a reset for now and not disable the mipi link on suspend
15:17ChaosPrincessthat would make it much easier
15:28roxfan has quit [Ping timeout: 480 seconds]
15:48nela6 has joined #asahi-dev
15:48hightower2 has joined #asahi-dev
15:51nela has quit [Ping timeout: 480 seconds]
15:51nela6 is now known as nela
16:06abd has joined #asahi-dev
16:07nela3 has joined #asahi-dev
16:11abd has quit []
16:11abd has joined #asahi-dev
16:12marcanweird, so clpc or something is shutting down the Pcore clusters on this t602x and then they never come back, processes just stay stuck on the ecores
16:13nela has quit [Ping timeout: 480 seconds]
16:13nela3 is now known as nela
16:13raveling has joined #asahi-dev
16:22marcanunfortunately there's an SMC timer or something triggered that forces a reboot a few seconds later
16:23marcanresume would be... more interesting to implement. I think we'd have to *actually* suspend the CPUs and m1n1 and go through the whole thing for real.
16:48nela has quit [Ping timeout: 480 seconds]
16:51jannauI still can't reproduce the power numbers on t6001/j314. kde lock screen with display turned off: ~5W (CPU takes ~3.3W). s2idle: 2.9W (2.2W CPU)
16:56jannaucomparing to 3.2W screen off / 1.9W s2idle from this morning on t6000 and chadmed said 3W something for t6001 with screen off
17:38hightower2 has quit [Ping timeout: 480 seconds]
17:40roxfan has joined #asahi-dev
17:50marcanor well, I think it puts the system to sleep (after the guest does), but it definitely doesn't come back yet
17:57cylm_ has quit [Read error: Connection reset by peer]
18:01cylm_ has joined #asahi-dev
18:05Cyrinux9 has quit []
18:08Cyrinux9 has joined #asahi-dev
18:10cylm has joined #asahi-dev
18:14nela has joined #asahi-dev
18:16cylm_ has quit [Ping timeout: 480 seconds]
18:24djorz has quit [Ping timeout: 480 seconds]
18:49pthariensflame has joined #asahi-dev
18:50nicolas17 has joined #asahi-dev
18:51abd has quit [Ping timeout: 480 seconds]
18:52pthariensflame has quit []
18:58abd has joined #asahi-dev
19:05pthariensflame has joined #asahi-dev
19:06abd has quit [Ping timeout: 480 seconds]
19:10pthariensflame has quit []
19:11djorz has joined #asahi-dev
19:14hightower2 has joined #asahi-dev
19:33raveling has quit [Ping timeout: 480 seconds]
19:55raveling has joined #asahi-dev
20:03raveling has quit [Ping timeout: 480 seconds]
20:08SalimTer- has joined #asahi-dev
20:13abd has joined #asahi-dev
20:13salimterryli has quit [Ping timeout: 480 seconds]
20:15raveling has joined #asahi-dev
20:23raveling has quit [Ping timeout: 480 seconds]
20:32raveling has joined #asahi-dev
20:40raveling has quit [Ping timeout: 480 seconds]
20:49raveling has joined #asahi-dev
20:53raveling has quit [Remote host closed the connection]
21:42abd has quit [Ping timeout: 480 seconds]
22:00SalimTer- has quit [Ping timeout: 480 seconds]
22:03salimterryli has joined #asahi-dev
22:07pharonix71 has quit [Read error: No route to host]
22:08kedde1 has joined #asahi-dev
22:15kedde has quit [Ping timeout: 480 seconds]
22:26bps has joined #asahi-dev
22:27kedde1 has quit [Ping timeout: 480 seconds]
22:32abd has joined #asahi-dev
22:46abd has quit [Read error: Connection reset by peer]
22:55nsklaus has quit [Quit: ZZZzzz…]
23:04bps has quit [Ping timeout: 480 seconds]