#
#asahi-dev · 2023-04-22 04:29
chadmedthe reason i bought the t6020 machine is to test a hypothesis that having more than two ecores would give CFS/EAS a better opportunity to keep the pcores asleep
#asahi-dev · 2023-04-22 04:28
chadmedtheyd help with interactivity but not necessarily power use
#asahi-dev · 2023-04-22 04:28
nicolas17yeah I was wondering how much such hints would actually help
#asahi-dev · 2023-04-22 04:26
chadmedbut linux userspace is just gonna have to get with the times
#asahi-dev · 2023-04-22 04:26
chadmedone way we could work around this, for graphics tasks at least, is have asahi take in perf metrics from the gpu and feed that back into UCLAMP values to force whatever its linked to onto pcores at high pstates
#asahi-dev · 2023-04-22 04:22
chadmedpush interactive stuff there too*
#asahi-dev · 2023-04-22 04:22
chadmedthen the util overflows so it shoves stuff over to a firestorm cluster
#asahi-dev · 2023-04-22 04:22
chadmedour problem is instead that EAS without hints tries to push stuff there too
#asahi-dev · 2023-04-22 04:21
chadmedwith EAS we already get most background stuff being shunted over to icestorm
#asahi-dev · 2023-04-22 04:21
chadmedEAS helps with this too as threads which tell CFS that they dont need much utilisation can all be dispatched onto an icestorm core
#asahi-dev · 2023-04-22 04:20
chadmedCFS will then put them in buckets with similar processes and dispatch cpu time to them accordingly
#asahi-dev · 2023-04-22 04:20
chadmeduserspace processes can hint to the scheduler how much core utilisation they will need ahead of time by clamping their util values
#asahi-dev · 2023-04-22 04:19
chadmedyeah, UCLAMP is a rough facsimile of that
#asahi-dev · 2023-04-22 04:19
nicolas17XNU has some "CPU QoS" thing beyond scheduling priorities, which likely also affects preference for p-cores vs e-cores
#asahi-dev · 2023-04-22 04:19
chadmedwe have UCLAMP_MIN and UCLAMP_MAX for userspace to tell CFS how much performance it _actually_ needs
#asahi-dev · 2023-04-22 04:18
nicolas17does Linux have anything for individual userspace threads to change the performance-power tradeoff?
#asahi-dev · 2023-04-22 04:18
chadmedPHPC stays at idle levels
#asahi-dev · 2023-04-22 04:18
chadmedfor example sometimes PSTR will just jump to 8-12 W with seemingly nothing else going on
#asahi-dev · 2023-04-22 04:17
chadmedother SIP blocks sucking down more juice than they should
#asahi-dev · 2023-04-22 04:17
chadmedthe divergence between system draw and ap draw at idle tells me that theres other things we need to do to bring down idle power use
#asahi-dev · 2023-04-22 04:16
chadmedi think realistically we're at the limit of what we can achieve by clock gating
#asahi-dev · 2023-04-22 04:16
chadmedthere are probably superfluous wakeups being caused by other stuff, because i managed to ssh into a partially failed boot before and idle was 2.2 W
#asahi-dev · 2023-04-22 04:15
chadmedidle power doesnt really change if i kill plasma and go to a tty
#asahi-dev · 2023-04-22 04:14
nicolas17but that may have been an old version or otherwise different environment
#asahi-dev · 2023-04-22 04:14
nicolas17is userspace behaving well? I have seen powertop report that plasma was causing >60 wakeups a second despite nothing visually changing on screen
#asahi-dev · 2023-04-22 04:10
chadmedTEO parks them in the lowest pstate but it also isnt great for interactivity so theres our tradeoff
#asahi-dev · 2023-04-22 04:09
chadmedthe menu governor parks firestorm in the 6th pstate to idle them, which is going to cause idle power to be higher through leakage or watever
#asahi-dev · 2023-04-22 04:08
chadmedi think the next "free" bit of desktop use power draw is definitely going to be doing something about the touchpad interrupts on non-mtp machines
#asahi-dev · 2023-04-22 04:07
chadmednot too bad but theres probably more we can do
#asahi-dev · 2023-04-22 04:07
chadmedok we're down to 2.55 W total AP idle and about 5 W system with the screen at the minimum brightness
#asahi-dev · 2023-04-22 03:56
tsujpmarcan: I see there are yaks in need of shaving for 'keyboard layout cleanup' and you're the contact for this, I'll volunteer but I'll need a bit of a bootstrap since I haven't done this kind of thing before (first time for everything though)
#asahi-dev · 2023-04-22 02:28
chadmedat least now that i know we're still getting perfectly polynomial power scaling on the cores outside of turbo mode i can do some stuff to compensate for the noise in the readings at low power
#asahi-dev · 2023-04-22 02:26
chadmednot sure coremark is really hammering the core as much as it could
#asahi-dev · 2023-04-22 02:26
chadmedstill, 3 W dynamic for a firestorm core at full flog seems very low
#asahi-dev · 2023-04-22 02:26
chadmedif i take the turbo states out of the dataset then the numbers line up perfectly with what youd expect
#asahi-dev · 2023-04-22 02:25
chadmedless dynamic power coming from idle cores
#asahi-dev · 2023-04-22 02:25
chadmedoh yeah it does ok thats why the numbers are different
#asahi-dev · 2023-04-22 02:24
chadmedWFI halts the clocks on CPUs where it is issued until theyre woken by an interrupt right
#asahi-dev · 2023-04-22 01:43
nicolas17disabling FindMy "separationMonitoring" so I guess they're desktops
#asahi-dev · 2023-04-22 01:42
nicolas17I just spotted "Mac14,8", "Mac14,13" and "Mac14,14" on a server-side config file
#asahi-dev · 2023-04-22 00:00
chadmedso again, something that we can probably beat macos at
#asahi-dev · 2023-04-21 23:59
chadmedone funny thing about macos's implementation is that it ends up saturated at max volume and spills out
#asahi-dev · 2023-04-21 23:57
chadmedbut theres still a risk of overexcursion that would just go away completely if we could cut out the "real" bass
#asahi-dev · 2023-04-21 23:57
chadmedi think ive changed my mind on its absolute necessity though, ive done some tricks to get the bass to sound good without it
#asahi-dev · 2023-04-21 23:56
chadmedi think you should be able to do this with a funky chain of biquads if you want to have a go at it
#asahi-dev · 2023-04-21 23:55
chadmedas the yaks page explains, basically what we do is split off some range of bass frequencies with a bandpass filter, amplify the harmonics, then mix those back into our signal
#asahi-dev · 2023-04-21 23:54
chadmedKnedlik: psychoacoustic bass extension is kind of esoteric so no biggie that youre unfamiliar
#asahi-dev · 2023-04-21 23:14
nicolas17https://cdn.discordapp.com/attachments/286612533757083648/1097858457706709103/7ikisr.png (by Retr0id)
#asahi-dev · 2023-04-21 23:08
marcanpretty sure lina doesn't want that to be possible
#asahi-dev · 2023-04-21 23:08
marcan_rudi: that would be a CVE

plus ›