#
#asahi-dev · 2023-04-18 08:27
jannauI do not use s2idle so the lat time I tested was before the mailbox rewrite. strange though that it works in the HV
#asahi-dev · 2023-04-18 08:25
jannauwakeup still broken with APPLE_CPUIDLE disabled
#asahi-dev · 2023-04-18 08:22
chadmedalmost 12 hours off charge and only 60% of the battery gone
#asahi-dev · 2023-04-18 08:17
marcanunless it's just another pmgr borkage
#asahi-dev · 2023-04-18 08:16
marcanjannau: is it the cpuidle thing breaking wakeup? I don't think we changed anything else :/
#asahi-dev · 2023-04-18 08:16
marcanjannau: pushed fix for the smc thing (only build tested)
#asahi-dev · 2023-04-18 08:14
jannaupower button works before suspend
#asahi-dev · 2023-04-18 08:11
marcanokay, that's weird
#asahi-dev · 2023-04-18 08:11
jannauwakeup is even broken without APPLE_PMGR_MISC
#asahi-dev · 2023-04-18 08:08
marcanokay
#asahi-dev · 2023-04-18 08:08
marcanohh wait yes obvious race
#asahi-dev · 2023-04-18 08:07
marcanactually wait, if the hid stuff is already probed there's no way that is the race
#asahi-dev · 2023-04-18 08:07
marcanjannau: can you print the rtkit message?
#asahi-dev · 2023-04-18 08:06
marcanso something is dodgy
#asahi-dev · 2023-04-18 08:06
marcanhowever, we only enable notifications *after* the init
#asahi-dev · 2023-04-18 08:06
marcanjannau: obvious race
#asahi-dev · 2023-04-18 08:03
jannaumarcan: I'm seeing following smc splat on boot with APPLE_SMC and various MACSMC options built-in: https://gist.github.com/jannau/953f3c37056dab2ce935543e42f32ed7
#asahi-dev · 2023-04-18 07:25
marcanapple 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)
#asahi-dev · 2023-04-18 07:24
marcantry disabling that driver and seeing if that helps, or removing either of the named reg entries (which will disable that side)
#asahi-dev · 2023-04-18 07:24
marcanthat's why I do that in noirq, when everything else should be shut down
#asahi-dev · 2023-04-18 07:24
marcanit also breaks DCP if left enabled (not enough bandwidth for the display presumably)
#asahi-dev · 2023-04-18 07:23
marcanthe 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)
#asahi-dev · 2023-04-18 07:21
marcanjannau: dynamic backlight. VTs are dark.
#asahi-dev · 2023-04-18 07:07
jannauswitching from sddm to a vt with power logging reduces the sys power use from ~10.5W to ~8.5W
#asahi-dev · 2023-04-18 06:57
jannaubut I'm seeing now 6.3W power use with screen off
#asahi-dev · 2023-04-18 06:56
jannaulooking at the idle stats it looks like linux keeps one performance core not idle
#asahi-dev · 2023-04-18 06:55
jannauany volunteers for teaching powertop to handle clusters correctly?
#asahi-dev · 2023-04-18 06:04
jannauunfortunately no hints why wakeup is broken on the serial
#asahi-dev · 2023-04-18 06:03
jannauserial works if I let m1n1 boot and connect the usb-c afterwards
#asahi-dev · 2023-04-18 05:54
jannauand the studio is again in the state where the aqantia pcie link doesn't come up
#asahi-dev · 2023-04-18 05:49
jannauand why is my hw uart broken? usb-pd reset works, looks like the device is not sending any data
#asahi-dev · 2023-04-18 05:27
jannauwakeup of course works in this config
#asahi-dev · 2023-04-18 05:25
jannau4.2W in s2idle with HV and no_console_suspend
#asahi-dev · 2023-04-18 05:03
jannaudoesn't wake up from suspend
#asahi-dev · 2023-04-18 04:54
jannau11h idle time from 85% charge state
#asahi-dev · 2023-04-18 04:50
jannauI'm seeing 4.8W here on t6001, screen off, nothing connected, logged in via ssh
#asahi-dev · 2023-04-18 04:22
marcansince the FIFO is huge enough to whole whole packets, no need for IRQs
#asahi-dev · 2023-04-18 04:22
marcanactually no, that wouldn't reduce IRQs, just MMIO traffic
#asahi-dev · 2023-04-18 04:21
marcan(which we don't right now)
#asahi-dev · 2023-04-18 04:21
marcanbut we can reduce that one even further by supporting memory buffers
#asahi-dev · 2023-04-18 04:21
marcanshould be better on t602x already with MTP though
#asahi-dev · 2023-04-18 04:21
marcanyeah, I need to look into that again
#asahi-dev · 2023-04-18 04:21
chadmed_if we can somehow reduce the number of interrupts fired by the touchpad the pcores would barely ever wake up at the desktop
#asahi-dev · 2023-04-18 04:20
marcanbut I assume linux cpuidle can do better (if given appropriate data)
#asahi-dev · 2023-04-18 04:20
marcanmacOS doesn't actually do any cpuidle handling, it just uses auto mode and lets the CPU decide with its own heuristic :)
#asahi-dev · 2023-04-18 04:19
marcanchadmed_: also the power/exit latency numbers in the cpuidle stuff are BS, I should actually measure that
#asahi-dev · 2023-04-18 04:15
marcanif cur_freq says it's hitting them then it's hitting them (that comes from feedback from the hardware)
#asahi-dev · 2023-04-18 04:14
marcan(otherwise boost won't engage)
#asahi-dev · 2023-04-18 04:14
marcanmight want to play games with core pinning to make sure all but one core in a cluster really are idle, for benchmarking purposes
#asahi-dev · 2023-04-18 04:13
marcanyou might need to explicitly enable boost/turbo in sysfs

plus ›