#
#asahi-dev · 2023-04-24 16:36
ChaosPrincessdid you try to build distro kernel or sth
#asahi-dev · 2023-04-24 16:36
marcanum... that doesn't sound right
#asahi-dev · 2023-04-24 16:36
KnedlikI'm building for what, an hour now?
#asahi-dev · 2023-04-24 16:35
KnedlikGuys if I ever decide to rebuild the kernel from scratch on my M1 macbook.... stop me
#asahi-dev · 2023-04-24 16:35
marcanit's basically the feature we want, just by a different name
#asahi-dev · 2023-04-24 16:35
marcan_jannau_: GENPD_FLAG_ACTIVE_WAKEUP and device->power.wakeup_path seems slightly less ugly
#asahi-dev · 2023-04-24 16:35
_jannau_I'll look at redoing the runtime-pm change. I hope it will be simpler if I ignore the component stuff and handle bind()/unbind() as p[robe()/release()
#asahi-dev · 2023-04-24 16:32
marcanbut in practice it will work
#asahi-dev · 2023-04-24 16:32
marcanthe problem logically is it's not a counter so if you have multiple devices doing that it will be a bit dodgy
#asahi-dev · 2023-04-24 16:32
_jannau_I was thinking of serial
#asahi-dev · 2023-04-24 16:31
marcanI was about to do that lol
#asahi-dev · 2023-04-24 16:31
_jannau_I saw. I wonder what happends if we set GENPD_FLAG_ALWAYS_ON from suspend()
#asahi-dev · 2023-04-24 16:31
marcansiiiigh
#asahi-dev · 2023-04-24 16:31
marcanjannau: lol, now the problem is suspend breaks DCP for the same reason (because we got rid of RPM and now genpd is still powering it down on suspend without the right things happening first)
#asahi-dev · 2023-04-24 16:18
marcanChaosPrincess: found the bug
#asahi-dev · 2023-04-24 16:14
marcanin the meantime, I guess just use the hypervisor to debug suspend stuff or just don't use no_console_suspend or if you actually have a serial console just make the PD always-on as a one-off hack
#asahi-dev · 2023-04-24 16:14
marcansorry, not dealing with that particular yak right now, someone else can pick up the fight of how to add a driver->genpd hook to disable genpd shutdown on suspend selectively :p
#asahi-dev · 2023-04-24 16:13
marcanjannau: lol answer to the serial console thing from #armlinux: other platforms have one-off hacks for this in the genpd driver
#asahi-dev · 2023-04-24 15:39
marcanuntested but that should work
#asahi-dev · 2023-04-24 15:39
marcanKnedlik: https://github.com/AsahiLinux/PKGBUILDs/commit/9de1c21b5c8dc8da60d16deecc8e4365e01f899b
#asahi-dev · 2023-04-24 15:28
_jannau_yes
#asahi-dev · 2023-04-24 15:28
KnedlikAh, the file I assume will be somewhere in the build dir?
#asahi-dev · 2023-04-24 15:27
_jannau_no, you have to manually install it with `sudo pacman -U $file`
#asahi-dev · 2023-04-24 15:26
KnedlikIf I use the PKGBUILD, it should automatically install that stuff, right?
#asahi-dev · 2023-04-24 15:25
KnedlikAh, I'll try it in a sec, thanks a lot
#asahi-dev · 2023-04-24 15:25
_jannau_Knedlik: try to build the kernel first in a git checkout. if it builds there you can use your changes as additional patches in the PKGBUILD
#asahi-dev · 2023-04-24 15:24
j`eyKnedlik: rust/Makefile
#asahi-dev · 2023-04-24 15:23
KnedlikDo you by any chance have an idea where the makefile could be? I believe you can do than on the terminal?
#asahi-dev · 2023-04-24 15:18
marcanKnedlik: just drop that flag from whatever Makefile it's in
#asahi-dev · 2023-04-24 15:13
psykoseclassic new bindgen
#asahi-dev · 2023-04-24 15:05
KnedlikI'm guessing no one noticed my last msg... I'm getting an "unexpected argument" of "--size_t-is-usize" when trying to build the pkgbuild with the touchbar PRs
#asahi-dev · 2023-04-24 14:08
povik:D
#asahi-dev · 2023-04-24 13:58
marcanand there's no way for devices to stop that?
#asahi-dev · 2023-04-24 13:58
marcanas far as I can tell the genpd core just unconditionally powers domains off in the suspend path? what?
#asahi-dev · 2023-04-24 13:56
marcan... lol, I don't even know if I can fix it
#asahi-dev · 2023-04-24 13:42
marcanI'll fix it
#asahi-dev · 2023-04-24 13:42
marcanok, then it was almost certainly this
#asahi-dev · 2023-04-24 13:42
_jannau_yes
#asahi-dev · 2023-04-24 13:41
marcan_jannau_: was that with no_console_suspend?
#asahi-dev · 2023-04-24 13:38
_jannau_yes, resume failed outside of HV
#asahi-dev · 2023-04-24 13:37
marcanthat's a UART driver bug, it needs special handling for this
#asahi-dev · 2023-04-24 13:36
marcan(and you have serial)
#asahi-dev · 2023-04-24 13:36
marcanthat would go very badly if the console remains active
#asahi-dev · 2023-04-24 13:36
marcanjannau: this might be why you were failing to resume... was that outside the HV by any chance?
#asahi-dev · 2023-04-24 13:35
marcan[ 37.030192] apple-pmgr-pwrstate 28e580000.power-management:power-controller@230: PS uart_p: pwrstate = 0x0: 0xf0
#asahi-dev · 2023-04-24 13:35
marcan[ 37.019637] apple-pmgr-pwrstate 28e580000.power-management:power-controller@240: PS uart0: pwrstate = 0x0: 0xf0
#asahi-dev · 2023-04-24 12:24
chadmedim sure youll figure it out tho
#asahi-dev · 2023-04-24 12:24
chadmedignore the todo list in the readme too, it wasnt updated after the last bunch of work
#asahi-dev · 2023-04-24 12:23
chadmedi added a bunch of bindings that got merged but theres been no release since
#asahi-dev · 2023-04-24 12:23
chadmedyou will likely need to extend that local fork of alsa-lib since the maintainer is a bit slow on the draw

plus ›