#asahi-dev · 2023-06-02 13:24
chadmedof course you can still use PA but you wont get any of the DSP required to make the speakers work properly and this will probably result in the safety daemon kneecapping your volume semi-frequently#asahi-dev · 2023-06-02 13:23
chadmedsid-linux: re pulse bear in mind that once speakers support is ready to go we will only be officially supporting pipewire going forward #asahi-dev · 2023-06-02 12:32
sid-linux(recording of any program tree by rr happens from inception to death. never an arbitrary point.)#asahi-dev · 2023-06-02 12:28
sid-linuxAnd the same cleanup will be replayed#asahi-dev · 2023-06-02 12:28
sid-linuxsorry my bad. It is possible to clean up. The tricky thing is that the clean also is recorded !#asahi-dev · 2023-06-02 12:27
sid-linuxbecause it will go through the same steps#asahi-dev · 2023-06-02 12:27
sid-linuxin the record phase of the rr debugger, we simply close all the fds to create a clean environement. During replay the same thing we will be OK#asahi-dev · 2023-06-02 12:26
sid-linuxhmm... I take that back. We can#asahi-dev · 2023-06-02 12:26
marcanif it's a CI issue I'm sure you can wrap the CI scripts in an fd cleaner ;)#asahi-dev · 2023-06-02 12:26
sid-linuxsorry we "can't"#asahi-dev · 2023-06-02 12:26
sid-linuxin rr's case we can do that#asahi-dev · 2023-06-02 12:25
marcanfd leaks are nothing new#asahi-dev · 2023-06-02 12:25
marcanexpecting a clean fd environment without explicitly cleaning up seems fragile to me, tbh#asahi-dev · 2023-06-02 12:25
sid-linux(while dup-ing fd 49 -- which should have given fd 50)#asahi-dev · 2023-06-02 12:24
sid-linuxwhich is what caused me to look at the /proc/<pid>/fd while doing a gdb of the test. To my shock when I saw all the un-CLOEXCed fds there :-) !#asahi-dev · 2023-06-02 12:23
marcannot sure who owns the inotify one#asahi-dev · 2023-06-02 12:23
sid-linuxj`ey: actually a correction -- i remember that an fd leak did cause a problem -- which I forgot. A CI test in the rr-debugger was failing. It was assuming a pristine environment of stdin/stdout/sderr. It was expecting fd 50 or something to exist but that was taken up by konsole #asahi-dev · 2023-06-02 12:22
marcanso *shrug*#asahi-dev · 2023-06-02 12:22
marcanthere hasn't been a pulse release since then though#asahi-dev · 2023-06-02 12:20
marcanseems the PA one is already fixed#asahi-dev · 2023-06-02 12:20
marcanhttps://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/751#asahi-dev · 2023-06-02 12:18
sid-linuxmarcan: SHGTFM (Should have Googled that for Myself)#asahi-dev · 2023-06-02 12:17
sid-linuxmarcan: oh and thanks for the kde bug link. reassuring#asahi-dev · 2023-06-02 12:16
sid-linuxI wonder if I have the desire to go down hunting for fds in the kde codebase. I'm feeling more inclined to just ignore the problem or use gnome if I can figure out the 80/75% thing from the command line#asahi-dev · 2023-06-02 12:15
sid-linuxmarcan: true. The itch I scratched recently was the PMU not working while investigating why rr was not working -- thanks to maz's (who did the real work) that is now fixed#asahi-dev · 2023-06-02 12:14
sid-linuxgood to hear the dmabuf is fixed#asahi-dev · 2023-06-02 12:14
marcanif you're so concerned feel free to track it down and fix it ;)#asahi-dev · 2023-06-02 12:14
sid-linuxprobably harmless but everything is harmless until it becomes a problem#asahi-dev · 2023-06-02 12:13
marcanthe pulseaudio leak is probably the pulseaudio lib's fault#asahi-dev · 2023-06-02 12:13
sid-linuxj`ey: It feels wrong for every program derived from plasma shell to have the ability to write to pulse audio, dma buff, some kind of pipes, memfds#asahi-dev · 2023-06-02 12:13
marcanhttps://bugs.kde.org/show_bug.cgi?id=440990#asahi-dev · 2023-06-02 12:12
marcanthe dmabuf leaks are fixed and could cause a memory leak. the pulseaudio/inotify leaks are probably harmless.#asahi-dev · 2023-06-02 12:11
j`eysid-linux: is the leaked fds actually causing you issues?#asahi-dev · 2023-06-02 12:07
sid-linuxThe alternative is to use gnome of course which does not leak any fds. How would I set the battery 80/75% from the command line manually? Any link I could refer to so that you don't have to explain it to me...?#asahi-dev · 2023-06-02 12:05
sid-linux(different topic)#asahi-dev · 2023-06-02 12:05
sid-linuxim a bit concerned about the whole dmabuf / pulseaudio / various pipes etc leaking into all programs derived from plasma shell. Sounds like its something unrelated to 6.3 and the problem has always existed?#asahi-dev · 2023-06-02 12:05
jannauI'd set it in general on at least one core and then look if other cores get stuck in cpuidle#asahi-dev · 2023-06-02 12:04
sid-linuxthanks#asahi-dev · 2023-06-02 12:04
sid-linuxcool#asahi-dev · 2023-06-02 12:04
marcanyes#asahi-dev · 2023-06-02 12:04
sid-linuxsorry -- maybe I missed the earlier part of is /sys/devices/... discussion -- setting this in advance of running the cpu intensive compile?#asahi-dev · 2023-06-02 12:03
marcanI'll have to take a deeper look at this later, too tired to do to go hunting for it#asahi-dev · 2023-06-02 12:02
marcanif you just want it to work#asahi-dev · 2023-06-02 12:02
marcanI bet writing 1 to that on some/all CPUs will fix it#asahi-dev · 2023-06-02 12:02
marcananyway, I recommend playing with /sys/devices/system/cpu/cpu?/cpuidle/state1/disable#asahi-dev · 2023-06-02 12:02
marcanI should also just try it under newer firmware, because it's entirely possible this is an iBoot bug. we're running the first version M2 shipped with after all.#asahi-dev · 2023-06-02 12:01
marcanmaybe I should go back to macos and see if there are any magic pokes we missed...#asahi-dev · 2023-06-02 12:00
marcanon both clusters#asahi-dev · 2023-06-02 12:00
marcanit's like a bunch of CPUs are just dead#asahi-dev · 2023-06-02 12:00
marcanI managed to get a debug shell in the broken state, but I don't know what's up