#
#asahi-dev · 2023-04-19 05:46
marcan(there are several)
#asahi-dev · 2023-04-19 05:46
marcanno, those use a different set of charge controls :)
#asahi-dev · 2023-04-19 05:45
jannauor all the charge control daemons written for asahi linux. are we at 3? I lost the count
#asahi-dev · 2023-04-19 05:45
marcanI would sort of expect it's used in suspend at least
#asahi-dev · 2023-04-19 05:45
marcanI don't actually know if macOS 13 *uses* that feature, all I know is it's in the firmware
#asahi-dev · 2023-04-19 05:45
nicolas17I see now
#asahi-dev · 2023-04-19 05:45
nicolas17right, so the OS is telling the SMC "stop charging", while in macOS 13 it can say "stop charging when you reach 80%"
#asahi-dev · 2023-04-19 05:44
marcan(same one the linux kernel-side limiter does)
#asahi-dev · 2023-04-19 05:44
marcanthey use (one set of) the binary charge controls
#asahi-dev · 2023-04-19 05:44
marcanalways was
#asahi-dev · 2023-04-19 05:44
marcanyes
#asahi-dev · 2023-04-19 05:44
nicolas17ah so this is being done by macOS?
#asahi-dev · 2023-04-19 05:44
marcanfirmware-based autonomous chage limiting is only on macOS 13
#asahi-dev · 2023-04-19 05:44
nicolas17(been plugged in for days and it's at 92%)
#asahi-dev · 2023-04-19 05:43
nicolas17marcan: your fedi post said only macOS 13 has the charge limiting thing, but I'm on macOS 12.6.5 and the battery icon on the status bar says charging is suspended because I rarely use it on battery
#asahi-dev · 2023-04-19 05:43
jannauwe don't have any information on the connected display unless dcp is connected to it
#asahi-dev · 2023-04-19 05:42
jannaunot sure if polling would help us with dp-altmode but I don't think we can use it since our connectors are functionally tied to dcp
#asahi-dev · 2023-04-19 05:39
jannaua quick grep suggest though that it is universally initialized
#asahi-dev · 2023-04-19 05:38
jannauthe drm suspend splat is silly. the suspend/resume helpers disable/enable hpd polling unconditionally. our connectors are setup in a way which excludes polling so we do not init it
#asahi-dev · 2023-04-19 05:14
marcanI imagine trying to bring them back after *that* would end up in RVBAR
#asahi-dev · 2023-04-19 05:13
marcanso something else macOS does is allowing the clusters to go into deep sleep
#asahi-dev · 2023-04-19 05:13
marcanbut when I shut them down without macOS involved, they don't
#asahi-dev · 2023-04-19 05:13
marcanbecause when I shut down the cores after a guest sleep event, MMIO for the cores goes away (there's a bit for that even, which we both set)
#asahi-dev · 2023-04-19 05:12
marcanre deep sleep, I think what's happening is that on M2 full shutdown only happens with proper full cluster shutdown, and that isn't working properly when I do it (but *is* when macOS does it)
#asahi-dev · 2023-04-19 05:04
chadmed_ill do some more digging
#asahi-dev · 2023-04-19 05:04
chadmed_yeah that makes sense, but i still find it odd that the data has changed so much. my methodology is exactly the same
#asahi-dev · 2023-04-19 05:02
marcanI suspect the reason they do that is that they can guarantee sufficient vcore for those iff there is low vdroop from the other cores
#asahi-dev · 2023-04-19 05:01
marcanchadmed_: the higher pstates do not increase the voltage, so I would expect linear power on those
#asahi-dev · 2023-04-19 04:21
chadmed_issuing WFI suspend the laws of physics on TSMC N5 it seems
#asahi-dev · 2023-04-19 04:21
chadmed_ok something funky is definitely going on with the numbers now. before i was getting almost perfectly quadratic power scaling between pstates and now theres a linear zone and it tapers off at the top????
#asahi-dev · 2023-04-19 03:45
marcanthat's... interesting.
#asahi-dev · 2023-04-19 03:45
marcanso it *always* returns from wfi instead of jumping to RVBAR
#asahi-dev · 2023-04-19 03:45
marcansoo the core shutdown stuff *does* work on M1... it's just that on M2 the non-retention sleep bit seems to be gone?
#asahi-dev · 2023-04-18 17:56
marcangood night :p
#asahi-dev · 2023-04-18 17:56
marcannah, not that easy
#asahi-dev · 2023-04-18 17:51
marcanthere's at least one interesting thing I can try though
#asahi-dev · 2023-04-18 17:50
marcanI also don't have working serial right now so I can't debug whether it even tries
#asahi-dev · 2023-04-18 17:50
marcanor well, I think it puts the system to sleep (after the guest does), but it definitely doesn't come back yet
#asahi-dev · 2023-04-18 17:49
marcanpushed some sleep mode stuff that doesn't really work
#asahi-dev · 2023-04-18 17:00
marcanI expect t6001 to use more power than t6000
#asahi-dev · 2023-04-18 16:57
jannaulooks roughly like 50% more
#asahi-dev · 2023-04-18 16:56
jannaucomparing to 3.2W screen off / 1.9W s2idle from this morning on t6000 and chadmed said 3W something for t6001 with screen off
#asahi-dev · 2023-04-18 16:51
marcanjannau: that looks about right?
#asahi-dev · 2023-04-18 16:51
jannauI 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)
#asahi-dev · 2023-04-18 16:24
marcanpushed the stuff
#asahi-dev · 2023-04-18 16:23
marcanresume 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.
#asahi-dev · 2023-04-18 16:22
marcanbut at least we get to see the entire suspend cycle
#asahi-dev · 2023-04-18 16:22
marcanunfortunately there's an SMC timer or something triggered that forces a reboot a few seconds later
#asahi-dev · 2023-04-18 16:22
marcan>>>
#asahi-dev · 2023-04-18 16:22
marcanHypervisor exited. Entering shell.

plus ›