#
✕ nick:maximbaz
#asahi-gpu · 2022-11-29 18:12
maximbazvery interesting read, thanks so much for sharing!
#asahi-gpu · 2022-11-14 00:11
maximbazweird), and when I close lid with DPMS on (which turns off the screen) _and wait some time_, after opening lid the screen would remain turned off / black (which I can workaround again with a keyboard shortcut to exit sway). Hope this helps, and if nothing else, gives you all reassurance that you are doing an amazing work! :)
#asahi-gpu · 2022-11-14 00:11
maximbazin mpv with "video-sync=display-resample" option (not sure if it's relevant for this project, discovered because I had this option in the past), after boot the screen is always turned off / fully black, can be worked around by blindly starting and exiting sway which somehow turns the screen on (maybe just my own setup issue? but still surprisingly
#asahi-gpu · 2022-11-14 00:11
maximbazCan confirm for M1 pro after a full day of using my normal setup under sway, no major issues, watching smooth 4k videos fullscreen is simply impressive! My entire list of findings is: occasional "GPU timeout nya~!!!!!" in dmesg (can't find consistent repro steps so far), a couple of apps that require GL3 (yep, we all know it's not ready), stutter
#asahi-gpu · 2022-11-12 22:54
maximbazthat's an impressive project, interesting and complex, I hope you don't lose motivation alyssa, despite the big road ahead :) seeing even current results with my own eyes makes me appreciate contributions of all of you guys on a whole new level, it's super awesome!
#asahi-gpu · 2022-11-12 21:38
maximbazinteresting, makes sense!
#asahi-gpu · 2022-11-12 21:07
maximbazthat's all I wanted haha :D
#asahi-gpu · 2022-11-12 20:29
maximbazalso the display output is taking "more of the screen real estate", in other words the notch is suddenly covering a bit of a panel, haha :)
#asahi-gpu · 2022-11-12 20:26
maximbaz2: https://paste.maximbaz.com/?b9f50955b1251ebe#8ZHnKobE4Y664Mkv5gdixUTc58kQ7rz6q3KP2L5h62wx
#asahi-gpu · 2022-11-12 20:26
maximbaz1: https://paste.levis.name/?d076ce404fcc9230#DCq9oQY6PQNhsdsJ7NkihPatwXW8Jtf6LT4TC5FiL3Xd
#asahi-gpu · 2022-11-12 20:26
maximbazso if you are curious, sway works, supertuxkart is very smooth and plays in full screen, mpv is smoother than before (we see some constant GPU timeouts [1]), kitty terminal doesn't start with some other error [2], but otherwise things seem quite good and interesting to further experiment with :)
#asahi-gpu · 2022-11-12 20:21
maximbazthanks jannau, we managed to get it to work! 🎉 it's a bit weird, screen goes dark once tty is shown, but if we enable auto-login, autostart sway, and then exit sway, this somehow brings screen back to life, and then we can start sway again and enjoy GPU acceleration :) will try next the cherry-pick above!
#asahi-gpu · 2022-11-12 18:51
maximbazhuh, no, I only added CONFIG_DRM_ASAHI=y, I can try with CONFIG_DRM_APPLE! Here's full diff compared to config from asahilinux/pkgbuilds/linux-asahi package, do the rest of the flag seem reasonable to you? https://paste.maximbaz.com/?e1405b1c277502f0#BokHTxeeETo3aJLMSb4Kv6tiWSFkv8HdSWEpwGxWJH6K
#asahi-gpu · 2022-11-12 18:41
maximbaz1: https://paste.maximbaz.com/?8b8942668d9bf2f8#BaVmyYAwnHLhQ3PBXmA35ooyANTi7Wvgohm1D7c5tE7Y
#asahi-gpu · 2022-11-12 18:41
maximbazDo you have any ideas what I could be missing?
#asahi-gpu · 2022-11-12 18:41
maximbazto test next steps, I compiled MESA from alyssa/asahi/rebased, using PKGBUILD from archlinuxarm as a base, and adding "asahi" to -Dgallium-drivers. I have /usr/lib/dri/asahi_dri.so, sway starts, but I am struggling to get gnome, supertuxkart or even glxgears to start [1], I think it boils down to "libEGL warning: egl: failed to create dri2 screen".
#asahi-gpu · 2022-11-12 18:41
maximbazjannau: thanks for the tip, my M1 Pro is able to boot as a m1n1 hypervisor guest with virtual UART, and in dmesg [1] I see some successful debug from the GPU driver (and much more with asahi.debug_flags)! It would be interesting to figure out why booting the kernel directly is getting stuck...
#asahi-gpu · 2022-11-09 23:31
maximbazblocking dcp unfortunately didn't give any extra information - however thank you for your helpful attitude, it's awesome to learn something new here, and I'll try to collect some more useful info when I get my hands on another device
#asahi-gpu · 2022-11-09 21:46
maximbazI'm up for some more experiments! May I ask for a hint, how to block dcp, or where to read more about it?
#asahi-gpu · 2022-11-09 21:16
maximbazgotcha, it's unfortunately the only device I have until weekend, I'll try to get more info then! thanks again for your answers! :)
#asahi-gpu · 2022-11-09 21:03
maximbazasahi.debug_flags=0xfffffffff, no quiet)... which makes me think somehow the freeze happens before the driver is running 🤔
#asahi-gpu · 2022-11-09 21:03
maximbazthanks jannau, I realized that dev_info!(dev, "MMU: Initializing...\n") - which I see in dmesg on HEAD~1 of linux/gpu/rust-wip just before driver crashes - is not conditional on asahi.debug_flags anyway, and on HEAD I don't see that line on screen after selecting a grub entry before everything freezes (with loglevel=7 and
#asahi-gpu · 2022-11-09 19:26
maximbazhttps://github.com/AsahiLinux/linux/commit/9825e5fdcfde7fe1d535dac18255da9cf9ccc9fa
#asahi-gpu · 2022-11-09 19:26
maximbazdo I understand correctly that I should be able to pass kernel param "debug_flags=0xffffffffff" (along with say "log_level=7 debug earlycon") in grub, to activate all the extra logging from this commit? I'm getting no logs before freeze, and I feel like I'm doing something silly...
#asahi-gpu · 2022-11-09 14:48
maximbazthanks lina! yeah I get something similar now, after grub everything freezes on "loading initial ramdisk" / "EFI stub: Exiting boot services", I thought it's just display stops working, but seems not the case... I'll try to get back with more useful information
#asahi-gpu · 2022-11-09 00:20
maximbaz1: https://paste.maximbaz.com/?6eca67e0bfac7b6c#7AbKmiBBcFBfBUvndo8uo4EmPy6EAcSveHcwP3xxJADQ
#asahi-gpu · 2022-11-09 00:19
maximbazjannau: yes 32GB RAM, there are two warnings, one on the second line in the paste above (WARNING: CPU: 1 PID: 85 at kernel/iomem.c:107 memremap+0x1d4/0x21c), and one more earlier [1] (WARNING: CPU: 0 PID: 1 at arch/arm64/kernel/efi.c:28 efi_create_mapping+0x7c/0x168)
#asahi-gpu · 2022-11-08 22:59
maximbaz3: https://paste.maximbaz.com/?d207a583635665e9#8HaQpAWu9L1V1ye2HGo6vwFAv7kDwHTRoxciV7L6aMW4
#asahi-gpu · 2022-11-08 22:59
maximbaz2: https://github.com/AsahiLinux/linux/blob/02c552f47af01c0ed22d516bb05d8f230401f581/drivers/gpu/drm/asahi/mmu.rs#L886-L891
#asahi-gpu · 2022-11-08 22:59
maximbaz1: https://github.com/AsahiLinux/linux/blob/02c552f47af01c0ed22d516bb05d8f230401f581/drivers/gpu/drm/asahi/mmu.rs#L964-L967
#asahi-gpu · 2022-11-08 22:59
maximbazHello, I tried to test the driver on M1 Pro / T6000, which gets only to initializing MMU [1], at which step it crashes on memremap [2] with "Failed to remap handoff region", as per dmesg output [3]. I wonder if I could be doing something wrong, could anyone give me a hint? :)