#
#asahi-dev · 2023-02-18 13:30
svenit’s really just “apply N tunables” inside m1n1
#asahi-dev · 2023-02-18 13:30
svenit seems to work right now but then I found that always-on thing for the normal pcie
#asahi-dev · 2023-02-18 13:29
svenI kinda wanna do that for apciec as well because I realized yesterday how that’s actually possible
#asahi-dev · 2023-02-18 13:24
marcanapcie just has this weird split where m1n1 sets some things up that get lost
#asahi-dev · 2023-02-18 13:24
marcansven: I think it's just the phy calibration/fuses, I remember it breaking *sometimes*. if you are bringing everything up from Linux for usb4-pcie, then it's probably fine.
#asahi-dev · 2023-02-18 10:44
svenhm, i wonder if that’s just the actual pcie phy that breaks then or if something subtle that I just haven’t noticed yet also breaks for the usb4-pcie
#asahi-dev · 2023-02-18 01:36
marcanwe need save/restore or to actually move it to linux for that
#asahi-dev · 2023-02-18 01:36
marcansven: because otherwise they lose the stuff m1n1 sets up IIRC
#asahi-dev · 2023-02-18 00:42
chadmedi suspect kde and firefox already have some sort of util clamping support built in, because enabling clamping on CFS tasks brings desktop battery life up to ~8 hrs just doing random web browsing type activities
#asahi-dev · 2023-02-17 23:52
chadmedit just keeps growing, so i end up scrapping half of it as being indulgent and irrelevant
#asahi-dev · 2023-02-17 23:52
chadmedsven: ive had a blog post about audio waiting around to be finished for like 3 months :P
#asahi-dev · 2023-02-17 18:35
svenmarcan: did you ever get around to investigate why the normal pcie power domains have to be always-on?
#asahi-dev · 2023-02-17 17:10
svenehh… writing a blog post takes much more effort than venting in here ;)
#asahi-dev · 2023-02-17 17:07
as400sven: you should be blogging about your usb fight. Hehe - it's really cool reading it here :) sorry for off
#asahi-dev · 2023-02-17 16:46
svenlooks like they do :)
#asahi-dev · 2023-02-17 16:34
svenlets see if the tunables survive a disabled power domain
#asahi-dev · 2023-02-17 16:33
svenhuh, looks like I can actually bring up pciec in m1n1 as well
#asahi-dev · 2023-02-17 15:37
mazgah. running the SError-triggering EFI payload in a nested guest results in... an SError... Need to propagate the trap bits all the way down... :-/
#asahi-dev · 2023-02-17 15:20
svenugh.. looks like I actually have to figure out how to restart the usb4 nhi if I want hotplug between usb4 and „legacy“ thunderbolt to work *sigh*
#asahi-dev · 2023-02-17 13:49
povikwhere the consequences are more dire
#asahi-dev · 2023-02-17 13:49
povikand i only found out because i copied the relevant code into the sio driver
#asahi-dev · 2023-02-17 13:49
povikhuh, upstream admac has a memory leak
#asahi-dev · 2023-02-17 12:42
chadmedtldr is schedutil + uclamp has the best perf/W by a decent margin and performs decently close to the performance governor
#asahi-dev · 2023-02-17 12:41
chadmedhttps://gist.github.com/chadmed/e889ea905876db29cbebb7265039f5a8
#asahi-dev · 2023-02-17 08:15
chadmedi want to log AP and GPU power
#asahi-dev · 2023-02-17 08:14
chadmedgonna do some testing with uclamp now
#asahi-dev · 2023-02-17 08:14
chadmedcan anyone quickly get the t600x smc key for gpu power?
#asahi-dev · 2023-02-17 08:03
marcanI guess that's what we get for being the first big.LITTLE system with a decent GPU :p (Intel's mess doesn't count)
#asahi-dev · 2023-02-17 08:02
linaOtherwise we're just going to get Phoronix putting out bad benchmarks again...
#asahi-dev · 2023-02-17 08:02
linaPeople are starting to try to run glmark & friends and are really running into this, and reviewers aren't going to know to pin tasks so... Even if it's just a hack at first, I think we really should do this to avoid confusion.
#asahi-dev · 2023-02-17 07:57
marcan(for compositors you want high *priority* but don't necessarily need high *performance*)
#asahi-dev · 2023-02-17 07:56
marcanlike "we know kwin isn't a CPU hog, let it land on the e cores"
#asahi-dev · 2023-02-17 07:56
marcanalso I think mesa has a quirks list, so it could have custom settings per app
#asahi-dev · 2023-02-17 07:55
chadmedyeah
#asahi-dev · 2023-02-17 07:55
marcanif this gets implemented in mesa it probably should just detect no sync cases and go straight to that
#asahi-dev · 2023-02-17 07:54
marcanyes, apps without vsync would go to 1024 and should
#asahi-dev · 2023-02-17 07:54
marcanI wouldn't be surprised if that uclamp gives us >95% of the boost from pinning/performance on glmark, with much better power consumption
#asahi-dev · 2023-02-17 07:54
chadmedinferring fps seems like a decent route but i wonder if that wouldnt just lead to UCLAMP_MIN ending up as 1024 anyway as apps without vsync will just hog all the performance they can get out of the hardware
#asahi-dev · 2023-02-17 07:53
chadmedyeah
#asahi-dev · 2023-02-17 07:53
marcanand we have fast switching so doing it often is no big deal
#asahi-dev · 2023-02-17 07:53
marcanhere they would
#asahi-dev · 2023-02-17 07:53
marcanin particular performance right now *sucks* because the CPUs don't drop down in frequency when idle
#asahi-dev · 2023-02-17 07:52
marcanyes, but only for those apps
#asahi-dev · 2023-02-17 07:52
chadmedthat would basically be the same as using the performance governor
#asahi-dev · 2023-02-17 07:52
marcana smarter approach would be to have some serious scheme hooking into the swapbuffers stuff to measure FPS and infer what the app is trying to achieve, and raise uclamp if deadlines are not being met until they are
#asahi-dev · 2023-02-17 07:51
marcanand then we see how much that hurts power consumption and think about other approaches :p
#asahi-dev · 2023-02-17 07:51
marcanwell, for starters you could use 1024:1024. that'd basically turn it into "race to idle" mode, which isn't a bad idea anyway for desktop workloads.
#asahi-dev · 2023-02-17 07:49
chadmedyoud have to pick some performance metric and then optimise for the minimum uclamp value (0,1024) that lets $app satisfy that
#asahi-dev · 2023-02-17 07:48
chadmedid be interested to see how one would implement that
#asahi-dev · 2023-02-17 07:46
marcanI'd be all for trying that out

plus ›