#asahi-dev · 2023-01-01 13:16
kettenisbut obviously at the point I call the SMC code the primary CPU (an e-core) is running, so no longer into that deep state#asahi-dev · 2023-01-01 13:16
kettenismy current OpenBSD hack puts all cores in this "deep WFI" state#asahi-dev · 2023-01-01 13:14
jannauyes, from a m1 max. is suspend with both p clusters in deep WFI?#asahi-dev · 2023-01-01 13:12
kettenisguess your 5W is from m1 max?#asahi-dev · 2023-01-01 13:11
kettenismachine idle, with the display on#asahi-dev · 2023-01-01 13:10
kettenisSYS 14909630, CPU 3311439#asahi-dev · 2023-01-01 13:10
kettenisbefore suspend this was#asahi-dev · 2023-01-01 13:10
kettenisSYS=PSTR, CPU=PHCP#asahi-dev · 2023-01-01 13:10
kettenisCPU 2501957#asahi-dev · 2023-01-01 13:10
kettenisSYS 5405363#asahi-dev · 2023-01-01 13:03
ketteniscan try this code on m1 pro#asahi-dev · 2023-01-01 13:03
kettenisPSTR reports ~1.9W#asahi-dev · 2023-01-01 13:02
kettenisPHCP reports something like 0.77W when I come out of "suspend" with one e-core running code#asahi-dev · 2023-01-01 13:01
kettenisthis is on M2#asahi-dev · 2023-01-01 12:58
jannaudid you test that on m1 pro / max as well? those have currently an unreasonable idle power use of ~5W, m2 is more reasonable with less than 1W assuming PHPC measures more or less the same things#asahi-dev · 2023-01-01 12:46
kettenisbut yes, we really want to power down the cluster completely for suspend#asahi-dev · 2023-01-01 12:45
ketteniss/write/wrote/#asahi-dev · 2023-01-01 12:45
kettenis(I write code similar to what you wrote for m1n1 when you were experimenting with the turbo states)#asahi-dev · 2023-01-01 12:44
kettenis"deep WFI" is the state where it loses the GPRs but otherwise stays alive#asahi-dev · 2023-01-01 12:43
marcanI'm pretty sure deep WFI should actually power down the cluster#asahi-dev · 2023-01-01 12:43
marcanand also dynamic power on the uncore areas#asahi-dev · 2023-01-01 12:42
marcanwe are currently burning power on static leakage in the CPU clusters#asahi-dev · 2023-01-01 12:42
marcankettenis: putting the p-cluster in deep WFI should save quite a lot more than 0.1 W#asahi-dev · 2023-01-01 12:32
kettenisputting the p-Cluster in the "deep WFI" state also saves a bit more than 0.1 W#asahi-dev · 2023-01-01 12:21
kettenis_looks like powering off the wifi chip (through the SMC gpio) saves a bit over 0.1 W in power#asahi-dev · 2023-01-01 10:44
marcanjannau: confirmed, it's a premultiplied flag#asahi-dev · 2023-01-01 10:20
jannaumarcan: possibly although it appears little strange that it is required for overlaying YUV formats. I put it on my todo list for testing. I think it's also worth checking if there's a global alpha field in the surface struct#asahi-dev · 2023-01-01 09:10
marcanI think there is a color component thing that might let us implement a color swizzle?#asahi-dev · 2023-01-01 09:10
marcanbut we need to find another way of implementing XRGB formats#asahi-dev · 2023-01-01 09:10
marcanwe should still clear surface[0] of course, since even if we make [1] opaque that still wastes power#asahi-dev · 2023-01-01 09:09
marcanonly for argb formats of course, with a=0, since opaque formats like 10-bit would implicitly have a=1#asahi-dev · 2023-01-01 09:08
marcanbut it would show through the Apple logo-shaped remnant of surface[0] as an additive blend when alpha=0 (which I think is what happens in SDDM) for a surface[1] above it#asahi-dev · 2023-01-01 09:07
marcanthat would mean that for a black background, alpha is effectively irrelevant#asahi-dev · 2023-01-01 09:06
marcanjannau: is it possible "opaque" actually means "premultiplied alpha"?#asahi-dev · 2023-01-01 08:42
lumenthank you#asahi-dev · 2023-01-01 08:41
lumenyeah that was one approach i wanted to take - use the system extensively till something breaks, then go and fix it, etc.#asahi-dev · 2023-01-01 08:40
apxmachithmm idk then. Usually for me I have something in mind I want to do, and I build the learning and the experience around that to keep me motivated. Like if I wanted to get into asahi I would probably download it and use it as much as possible, get involved with issues and bugs, and find something to jump in on. Try to have some sort of goal. But yeah those resources look good so do what is best for you#asahi-dev · 2023-01-01 08:35
lumeni don't have something specific in mind at the moment, just looking for a challenge and a learning experience#asahi-dev · 2023-01-01 08:32
apxmachitim not part of asahi development but i find that way of thinking usually doesn't work for me. What specifically are you trying to contribute to Asahi?#asahi-dev · 2023-01-01 08:28
lumenwas also thinking of reading some of "Linux Kernel in a Nutshell" by Greg Kroah + "Linux Kernel Development" by Robert Love.#asahi-dev · 2023-01-01 08:28
lumenany other suggestions?#asahi-dev · 2023-01-01 08:26
lumenwould something like this be unnecessarily detailed to get into kernel development? https://github.com/0xAX/linux-insides/blob/master/SUMMARY.md i assume chapter "Initialization" and onwards would be the most useful. apologies for the cross-post between channels, asked here as well so i don't clutter the other channel.#asahi-dev · 2023-01-01 04:35
eilnengine aic irq wants to go to dart for whatever reason #asahi-dev · 2023-01-01 04:35
eiln"tethered" bc needs to reboot after every run #asahi-dev · 2023-01-01 04:35
eiln4200 is half precision for 3 btw ;))#asahi-dev · 2023-01-01 04:35
eiln"tethered" 1+2 on the ane https://bashify.io/images/n1Xz3i #asahi-dev · 2023-01-01 04:34
eilnnvm figured it out was a platform resource issue (why does this always happen right after..)#asahi-dev · 2022-12-31 15:16
bcrumb🥳#asahi-dev · 2022-12-31 15:14
eiln새해복 많이 받으세요~#asahi-dev · 2022-12-31 15:11
Tramtristあけましておめでとう