#asahi-dev · 2023-04-17 19:17
marcan34 hours sleep time on t6021#asahi-dev · 2023-04-17 19:17
marcan[ 78.961958] macsmc-power macsmc-power: In 0.203W Sys 3.364W 3V8 122.997W MPMU 0.839W SPMU 1.114W CLVR 0.663W CPU 2.221W Batt -3.148W 100% Tempty 2045m#asahi-dev · 2023-04-17 17:43
marcanaaaand I just found a really dumb bug in m1n1 that may or may not be breaking some things...#asahi-dev · 2023-04-17 17:30
marcannow how do we deal with this...#asahi-dev · 2023-04-17 17:30
marcanfabric and stuff#asahi-dev · 2023-04-17 17:29
marcanI just dropped power consumption by another watt by doing that.#asahi-dev · 2023-04-17 17:29
marcanargh. it's non-CPU power states.#asahi-dev · 2023-04-17 16:40
marcan*xx#asahi-dev · 2023-04-17 16:39
marcanit's a t600x problem with the P core regulators not shutting down#asahi-dev · 2023-04-17 16:33
_jannau_didn't chadmed measure reasonable low power use for idle cpu cores? could it be something t60xx specific? I've seen more than 20h of battery life with j493 without s2idle#asahi-dev · 2023-04-17 16:24
marcanI think we must be missing something to enable actually powering down idle clusters#asahi-dev · 2023-04-17 16:23
marcanthis doesn't make any sense... going into deep sleep isn't helping at all with power consumption, but also the power usage is already high *before* even starting the secondaries.#asahi-dev · 2023-04-17 16:18
marcanhm, nah, but it's not using deep mode which doesn't seem to be saving any power#asahi-dev · 2023-04-17 15:35
marcanbut right now for me on 13.3 t416 it's instead trying to shut down a CPU, and when I made the HV not die on that, it's failing instead#asahi-dev · 2023-04-17 15:35
marcanbut it only panics if you have too much tracing and it exceeds max power limits and such#asahi-dev · 2023-04-17 15:35
marcanCLPC was always causing issues#asahi-dev · 2023-04-17 15:35
_jannau_no, macos just panics with CLPC enabled#asahi-dev · 2023-04-17 15:29
_jannau_or we noticed and started disabling CLPC#asahi-dev · 2023-04-17 15:21
marcanI think we never noticed because CLPC makes that decision and we've always been disabling that in the hypervisor lately.#asahi-dev · 2023-04-17 15:21
marcanokaaay, I think it's actually shutting down CPUs. this may have been changed recently.#asahi-dev · 2023-04-17 14:17
marcanthanks :)#asahi-dev · 2023-04-17 14:16
robhermarcan: I should also put in some sort of check/dependency. That's been on my todon't list for some time now. BTW, runs with TOT dtschema with Linus/next branches can be found here: https://gitlab.com/robherring/linux-dt/-/jobs#asahi-dev · 2023-04-17 14:10
_jannau_yes#asahi-dev · 2023-04-17 14:10
marcanI guess that's a standard prop for ethernet controllers but not wifi#asahi-dev · 2023-04-17 14:10
_jannau_yes, we always had that one. I need to follow up on the series fixing that#asahi-dev · 2023-04-17 14:09
marcanhave we always had that one? I swear I saw mention of that before...#asahi-dev · 2023-04-17 14:09
marcan/home/marcan/asahi/git/linux/arch/arm64/boot/dts/apple/t8103-j293.dtb: network@0,0: 'local-mac-address' does not match any of the regexes: 'pinctrl-[0-9]+'#asahi-dev · 2023-04-17 14:07
marcanOK, then I think we're good, I'll try to remember to poke things when I do dtschema updates#asahi-dev · 2023-04-17 14:06
marcan(and now that I have switched branches it would get updated)#asahi-dev · 2023-04-17 14:06
marcanso that would make sense#asahi-dev · 2023-04-17 14:06
marcanbecause I think I did a run, then updated dtschema#asahi-dev · 2023-04-17 14:06
marcanor that actually#asahi-dev · 2023-04-17 14:05
marcanis it possible it was caused by a make race from me using -j<n>?#asahi-dev · 2023-04-17 14:05
marcanyeah...#asahi-dev · 2023-04-17 14:05
robhermarcan: might have been a stale processed-schema.json. If dtschema changes, it doesn't get updated.#asahi-dev · 2023-04-17 14:02
marcanbut... now I can't repro it, and I'm confused#asahi-dev · 2023-04-17 14:02
marcanyes, that's what was causing it (it was saying it matched both options)#asahi-dev · 2023-04-17 14:01
robhermarcan: Do you have ea87f1eb4fd8 ("dt-bindings: arm: Allow 32-bit 'cpu-release-addr' values")? It's in 6.3-rc#asahi-dev · 2023-04-17 13:58
marcanlet me run it again#asahi-dev · 2023-04-17 13:58
marcanyes#asahi-dev · 2023-04-17 13:57
robheryou're on 2023.04?#asahi-dev · 2023-04-17 13:57
marcanno, mainline (well, my asahi-soc/dt branch which includes some new stuff, but nothing related to the warnings)#asahi-dev · 2023-04-17 13:57
robhermarcan: I don't see any new DT warnings on mainline. Is this on an asahi based DT?#asahi-dev · 2023-04-17 13:16
marcan(and this kernel build should have PAC)#asahi-dev · 2023-04-17 13:16
marcanit hasn't exploded yet without doing anything so :)#asahi-dev · 2023-04-17 13:16
kettenisbut maybe the linux kernel already saves/restores those#asahi-dev · 2023-04-17 13:15
kettenisthings like the pointer authentication keys#asahi-dev · 2023-04-17 13:15
kettenismarcan: I believe I read somewhere that "deep wfi" dropped a bit more state than the GPRs you save/restore#asahi-dev · 2023-04-17 13:06
svenhttps://github.com/apple/darwin-xnu/blob/2ff845c2e033bd0ff64b5b6aa6063a1f8f65aa32/osfmk/arm64/cpu.c#L953 There was more in an older xnu source drop I think but that does sound like system sleep#asahi-dev · 2023-04-17 13:05
sven*about some engine that brings back the cpu from that state