2022-12-07
01:55beeblebrox has quit [Quit: Konversation terminated!]
02:15benzmac16v has joined #asahi-alt
02:30benzmac16v has quit [Ping timeout: 480 seconds]
03:10xcpy0 has quit [Ping timeout: 480 seconds]
03:33jacksonchen666_ has joined #asahi-alt
03:41jamespmo_ has joined #asahi-alt
03:42jacksonchen666 has quit [Ping timeout: 480 seconds]
03:43jacksonchen666_ is now known as jacksonchen666
03:47jamespmorgan has quit [Ping timeout: 480 seconds]
04:25xcpy0 has joined #asahi-alt
05:18Chainfire has quit [Remote host closed the connection]
06:12benzmac16v has joined #asahi-alt
06:26benzmac16v has quit [Remote host closed the connection]
06:30benzmac16v has joined #asahi-alt
06:32benzmac16v has quit [Remote host closed the connection]
06:48chadmed_ has joined #asahi-alt
06:53chadmed_@gentoo users: the overlay now has the asahi mesa fork and the kernel sources with lina's work merged in
07:23tobhe_ has joined #asahi-alt
07:25chadmed_ has quit [Remote host closed the connection]
07:26chadmed_ has joined #asahi-alt
07:28tobhe has quit [Ping timeout: 480 seconds]
08:21cy8aerhm, with this: https://rosenzweig.io/blog/asahi-gpu-part-7.html it may be time to think about how to get the mesa-patches from Alyssa into the debian distro...
08:51chadmed_ has quit [Ping timeout: 480 seconds]
08:51chadmed_ has joined #asahi-alt
09:17cy8aerGlanzmann: Sorry - I am not good at packaging high level deps - I can only do the testing and eventually looking into the package when it is build - so no progress from me. I will then do some documentation in my debian crypto document. I look forward to seeing a video you make (they are awesome)
09:17Ry_Darcy has joined #asahi-alt
09:20ahdeb[m]fwiw In my experience Andreas Boll (debian mesa maintainer) is very responsive and if you just file a bug report about enabling something in mesa he'll come back at you asking: For which architectures (amd64) and is there a libdrm counterpart that should also be enabled?
09:20cy8aerGlanzmann: How old is "very old" because I just updated the stub via the new asahi installer script menu (my machine was installed at about april...)
09:20ahdeb[m]I saw that current version of mesa atleast has asahi bits in the source..... not sure how much diff there is between the released state and the desired-for-asahi state.
09:21chadmed_ has quit [Ping timeout: 480 seconds]
09:25_jannau_it's not as simple as that. the bits to speak with the kernel driver are not in the main mesa repository. you have to package https://gitlab.freedesktop.org/asahi/mesa
09:26_jannau_I don't think this is at the current state and rate of changes something the main debian package should track
09:27ahdeb[m]I guess the reason for not merging it into mesa mainline is because the kernel ABI is not yet set in stone?!
09:38Glanzmanncy8aer: You'll be fine. It might be that stubs which were installed __before__ the alpha installer, have issues.
09:39Glanzmanncy8aer: Keep in mind that the asahi updater only updates m1n1 stage1 but not the stub.
09:40Glanzmannahdeb[m]: The problem is that it is not only about enabling an option but to pull in new code which is not even upstream in mesa. So there is no way to get into debian stable ...
09:41ahdeb[m]I agree if it's code for an unstable ABI it should not be even cherry-picked in as patches.
09:41Glanzmannahdeb[m]: But maybe I'll ask Andreas Boll how to build the package if I don't figure it out by myself but most of the time it boils down to get the sources, update the tree and run debian/rules binary
09:41cy8aerGlanzmann: is it really only the stage1? I am now on stub 12.3 and am really sure that it was 12.1 (two devices)
09:45Glanzmanncy8aer: Maybe m a r c a n implemented it and for me it was not doing it because I already had the right stub version, but I think that is not the case.
09:51GlanzmannAlso m a r c a n publically stated that he is not going to support system which were installed before the alpha installer.
09:51GlanzmannAnyway, I'll make the video. And while I'm at it I'll also cover the topics how to recover from a broken stage2 and kernel.
10:01GlanzmannWhat I'm really excited is if xfreerdp will work without display artefacts with the new driver and if I can watch a video in mpv under xorg without tiering.
11:56chadmed_ has joined #asahi-alt
13:52opticrondoes that mean that the Debian asahi-gpu package will be tracking the asahi-edge config or will it be *only* the GPU enabled without all the other asahi-edge stuff?
13:56benzmac16v has joined #asahi-alt
13:56Glanzmannopticron: For the time being I'll use the same config as m a r c a n. If people complain about missing features, I'll add them.
13:57benzmac16v has quit [Remote host closed the connection]
13:58Glanzmannopticron: However it will be easy to create your own kernel once the userland is working.
13:59beeblebrox has joined #asahi-alt
14:11chadmed_ has quit [Remote host closed the connection]
14:12Dcow_ has joined #asahi-alt
14:14Dcow has quit [Ping timeout: 480 seconds]
14:41jacksonchen666chadmed: can i switch between non-edge and edge configurations with your gentoo asahi repo?
14:57Ry_Darcy_ has joined #asahi-alt
15:38benzmac16v has joined #asahi-alt
15:48benzmac16v has quit [Ping timeout: 480 seconds]
15:58pjakobsson has joined #asahi-alt
16:07Ry_Darcy_ has quit [Remote host closed the connection]
16:19robher has joined #asahi-alt
16:39Glanzmannjannau: I tried to build a gpu kernel with the asahi edge config and tree and try to boot it, the result is: https://tg.st/u/2022-12-07_17-35-58_yuv420p.mp4
16:39Glanzmannjannau: I assume that is still the issue with the module order and I have to build all the modules into the kernel?
16:46_jannau_Glanzmann: no this looks like it is something else. it appears to be a rust panic in the gpu driver
16:54_jannau_no reason to expect other results if the 2nd stage m1n1 are up to date and the stub is mac os 12.3
17:56beeblebrox has quit [Remote host closed the connection]
18:04lawrence has quit [Quit: The Lounge - https://thelounge.chat]
18:07lawrence has joined #asahi-alt
18:21GlanzmannAny idea what I'm doing wrong. When I use /dev/dri/card0 I get no screens found when I use /dev/dri/card1 I get 'no unwind info found'. Output: https://pbot.rmdir.de/vFvyOVjQBvdvgPnqScJZkg
18:22GlanzmannAlso this seems to be an issue: UABI mismatch: Kernel 3, Mesa 2\n Xorg: ../src/asahi/lib/agx_device.c:482: agx_open_device: Assertion `0' failed.
18:27GlanzmannBut maybe I forgot to build two packages: https://pbot.rmdir.de/aoadr6XoQtjrBi6l2Dpu5g
18:32Dcow has joined #asahi-alt
18:36jannauGlanzmann: looks like the pkgbuild isn't true anymore, use the tip of https://gitlab.freedesktop.org/asahi/mesa/-/tree/main
18:38Dcow_ has quit [Ping timeout: 480 seconds]
18:46jannauerr, no I'm mistaken, the commit should be fine. no idea how you ended up with uapi version 2 in mesa
18:52yukaIs anyone else seeing issues with the gpu driver, where a lot of things crash when the dcp is also loaded?
19:07Glanzmannjannau: I assume my problem is that '__APPLE__' is not defined while building mesa but I have not yet figured out what I need to do to set it.
19:11Glanzmannsven: I used the version from the pkg builds and copied the 'debian/rules' (build script) from the original mesa package over. Than I modified tha parameters and build the whole thing. It was complaining about some additional APIs, so I added them, a include file is not there, so I remvoed it and than I installed the resulting packages.
19:11Glanzmannj`ey: That might be true. But I think that I'm hitting 'assert(0) in agc_open_device in src/asahi/lib/agx_device.c
19:14jannauhttps://gitlab.freedesktop.org/asahi/mesa/-/blob/af7db4903008b012bca13558261d552ed0828b7d/include/drm-uapi/asahi_drm.h#L19
19:16Glanzmannjannau: Yes it is, I checked my local copy also as UABI 3. So maybe I need to build another package.
19:36phire has quit [Remote host closed the connection]
19:37phire has joined #asahi-alt
19:42GlanzmannWhen I open a new x application there is visable lag, is that to be expected? When I run mpv with '-vo gpu' it is slower than with '-vo x11' is that to be expected?
19:45pjakobsson_ has joined #asahi-alt
19:46janrinze has quit [Remote host closed the connection]
19:49GlanzmannHere is a video of the issues: Everything was faster with simpledrm: https://tg.st/u/VID_20221207_204614508.mp4
19:49pjakobsson has quit [Ping timeout: 480 seconds]
20:03Glanzmannmps: How is the gpu/mesa stuff performing for you. Are you seeing the same issues, I'm seeing or is it working better?
20:04jannauGlanzmann: please try video playback without audio, see those "Audio device underrun detected" messages
20:08GlanzmannBtw. if I run the same video in firefox it is much better, but still lagging and burning a lot of cpu, but that is probably be expected.
20:12jannaucan you test lower resolution/framerate videos? how fast is `ffmpeg -i $VIDEO -f null -` on that video?
20:17GlanzmannLast status: frame= 3016 fps=198 q=-0.0 Lsize=N/A time=00:00:50.32 bitrate=N/A speed=3.31x
20:23jannauwhat is a lot? I see here ~50% load on the efficiency cores (taskset -c 0-3) while decoding/displaying 1280x720
20:24Glanzmannjannau: I wait until I finished compiling the kernel and than I'll make a screenshot of htop with both videos.
20:26GlanzmannI'll also install the official asahi distribution and see how things perform there to get an idea.
20:27beeblebrox has joined #asahi-alt
20:32mpsGlanzmann: sorry for late answer, I don't have any problem, everything I tested works fine and fast, except mpv with gpu gives high cpu load (mpv --vo=gpu filename)
20:35Glanzmannmps: Thank you. vo xv and x11 is also fast for me but tiering. But that is to be expected.
20:36GlanzmannDebian users, if you want to try the gpu stuff: https://thomas.glanzmann.de/asahi/2022-12-07/README.txt
20:38mpsGlanzmann: I don't see any difference in played video with xv or gpu, to my (maybe uneducated) eyes result is same
20:40Glanzmannmps: Btw. the original asahi config results for me in panicing kernel. Your config worked. :-)
20:42Glanzmannmps: I see, no issue. with simpledrm xfreerdp was very fast but sometimes did not draw areas of the screen especially when using teamviewer. With the x11/gpu it is very slow that I can't work with it.
20:44mpsit is released? I missed that (I've got cold and have high temperature last few days so I missed a lot)
20:46Glanzmannmps: Get well soon. Yes it was released last night or this morning. I saw it after chadmed posted this morning about reading a blog post and than I searched for it.
20:49Glanzmannjannau: Yes, I did. I took the 'PKGBUILDs/linux-asahi/config' and merged 'config.edge' into it.
20:53cy8aerGlanzmann: Looks (!) like it works. But my hid_apple settings done in "/etc/modprobe.d" did not work anymore. Set it directly with echo did work.
20:55Glanzmannjannau: I tried the gpu stuff on the mac book air and the same video is much smoother on the air.
20:56Glanzmanncy8aer and Debian users: If you want to build kernel/mesa yourself run 'gpu.sh' and 'mesa.sh'
20:58scardracs has quit []
21:03cy8aerGlanzmann: (just playing with the command key in and out... with gnome). Pulled again but will not compile today anymore.
21:04Glanzmanncy8aer: I see. I also have not figured out how to crosscompile a kernel and mesa. So for now I'm building on the mini ...
21:05Glanzmannj`ey, sven, jannau, mps: Thank you for your help to get the gpu running. And marcan and alyssa: \o/
21:10cy8aerin german we say "Schmuck am Baum" - "Ornaments on the tree" so "would be a nice to have" and LIBGL_ALWAYS_SOFTWARE=1 will do for me
21:10GlanzmannAnd normally I have a lot of cpu load on the m1 systems when I only open htop and an xterm and now with the gpu driver it is 0.
21:11mpsGlanzmann: yes, from previous week when I started to use asahi kernel with gpu load is mostly at zero
21:13j`eyhmm https://github.com/kchibisov/alacritty/commit/d5b6d3019bf3f013935ab7d15e81c9fba7a35120 seems like there should be a gles2 fallback
21:16cy8aerJust don't pay attention to me. Everything is fine and the keyboard settings may be some glitch when building the initramfs
21:22Glanzmannj`ey: You don't need it, you can use external speakers: https://tg.st/u/IMG_20221207_222157881.jpg
21:31Glanzmannjannau: When my macbook air m1 display feels asleep and I wake it up again it wakes up with a very low brightness. Is that intended. I always end up doing echo ... to be able to see something on the screen again.
21:32Glanzmannjannau: Btw. I just noticed, I installed all Debian updates on my m1 air and now the man over board video is slow with the gpu.
21:32GlanzmannAnd when you look at the previous video it was not able to load a certain lib. maybe that is the culprit.
21:33jannauif you enable the display earlier brightness should be still restored 3 minutes after the display was turned off
21:34cy8aerI only have one special problem since I play around with the dcp kernel and with the gpu one too: Sometimes - e.g. after a reboot - the keyboard does not work in the ramdisk boot part. Unfortunately I have an encrypted file system and cannot enter my passphrase then.
21:35Glanzmannjannau: So in the previous video mpv was complaining about not being able to load libcuda.so.1 and was fast. Now it is slow again. No complaint from mpv but also no libcuda on my system.
21:37Glanzmanncy8aer: For me the keyboard always works. Strange. But of course I don't need it during the early bootup process. Maybe compile the keyboard drivers into the kernel instead of loading them as a module?
21:39cy8aerGlanzmann: it hangs only from time to time. After switching off and starting after some minutes it works fine. But entering keys in Grub is also not very responsive.
21:40Glanzmanncy8aer: However I have the issue with u-boot and the mini. If it detects a usb device I have to hit shift a lot so that it quickly loads grub, laods the kernel and the initrd.
21:47jannauit looks like it is a video for which mpv doesn't use multithreading and it's too slow to decode and display in a single thread
21:50Glanzmannffplay lags for me but is much faster than mpv. ffplay also burns a lot of cpu. vlc is smooth.
21:57ashi has joined #asahi-alt
21:58ashiSince I am running released gpu code now, I would like to report a bug. But since I use self-compiled code on debian, I dont think I should use the github issue tracker for the official asahi distribution...
21:59GlanzmannI also found another issue, don't know if it is known. If I play a video with mpv -vo xv and move the mouse the recentagle around the mouse does not get updated.
22:00Glanzmannashi: Just write it in IRC. I think there will be a lot of issues popping up since people are start using it.
22:01ashiok. In Firefox http://webglsamples.org/aquarium/aquarium.html, click on 10000 fish, instant crash
22:01ashi has quit [Remote host closed the connection]
22:01ashi has joined #asahi-alt
22:10jannaudoesn't crash here but doesn't work either, might be related to the firefox + quakejs issue lina worked on stream
22:10jannaudo you have https://gitlab.freedesktop.org/asahi/mesa/-/commit/b6723aca3db43ac18d8fd7269ba9527edcdc2e67 ?
22:18ashi has quit [Remote host closed the connection]
22:21jacksonchen667 has joined #asahi-alt
22:22ashi has joined #asahi-alt
22:25jacksonchen667 has quit []
22:37ashi has quit [Quit: Leaving]