#
…

2022-11-09

00:06cylm_ has joined #asahi-gpu
00:10Dcow has quit [Remote host closed the connection]
00:12Dcow has joined #asahi-gpu
00:17Dcow has quit [Remote host closed the connection]
00:17Dcow has joined #asahi-gpu
00:19maximbazjannau: 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)
00:47cylm has joined #asahi-gpu
00:47cylm_ has quit [Read error: Connection reset by peer]
01:31linaalyssa: Yay!! ^^
01:33linamaximbaz: Isn't that the no-map issue? I still don't know what triggers that requirement... but try adding no-map; to the reserved-region nodes
01:42linaOhhh... I think this is a u-boot thing!
01:45linamaximbaz: Pushed a fix, I think that should work
01:58Dcow has quit [Remote host closed the connection]
02:45cylm_ has joined #asahi-gpu
02:51cylm has quit [Ping timeout: 480 seconds]
02:58cylm_ has quit [Quit: WeeChat 3.7.1]
03:04cylm has joined #asahi-gpu
03:22jole_ has joined #asahi-gpu
03:23jole has quit [Read error: Connection reset by peer]
03:24cylm has quit [Quit: WeeChat 3.7.1]
03:26cylm has joined #asahi-gpu
04:04ella-0_ has joined #asahi-gpu
04:10ella-0 has quit [Ping timeout: 480 seconds]
04:14ella-0 has joined #asahi-gpu
04:20ella-0_ has quit [Ping timeout: 480 seconds]
05:30TellowKrinkle has joined #asahi-gpu
05:38millenialhacker has joined #asahi-gpu
05:49millenialhacker has quit [Remote host closed the connection]
05:49millenialhacker has joined #asahi-gpu
06:11SSJ_GZ has joined #asahi-gpu
06:24cylm has quit [Quit: WeeChat 3.7.1]
06:32millenialhacker has quit [Ping timeout: 480 seconds]
06:51millenialhacker has joined #asahi-gpu
07:02millenialhacker has quit [Ping timeout: 480 seconds]
07:22millenialhacker has joined #asahi-gpu
07:44millenialhacker has quit [Remote host closed the connection]
07:44millenialhacker has joined #asahi-gpu
08:41millenia_ has joined #asahi-gpu
08:42millenialhacker has quit [Read error: No route to host]
08:42millenialhacker has joined #asahi-gpu
08:44millenia_ has quit [Remote host closed the connection]
08:45millenia_ has joined #asahi-gpu
08:45millenialhacker has quit [Read error: Connection reset by peer]
08:45millenialhacker has joined #asahi-gpu
08:46millenia_ has quit [Read error: Connection reset by peer]
09:04joske has joined #asahi-gpu
09:05joskelina: it does not fix this logging
09:08joskelina: also on latest gpu/rust-wip (and latest m1n1 from your branch), I can get to gdm, but when I log in (GNOME wayland) the screen turns black and I can see nothing. I can switch VT a few times and then I get back to a lock scren, and then I can switch to a text console and reboot. No desktop env works.
09:10joskeThere is no crash in journalctl, gnome-shell seems to start (but screen is black)
09:25MajorBiscuit has joined #asahi-gpu
09:27nuup has joined #asahi-gpu
09:38bluetail3 has joined #asahi-gpu
09:44joske has quit [Remote host closed the connection]
09:45bluetail has quit [Ping timeout: 480 seconds]
09:45bluetail3 is now known as bluetail
10:40kov has quit [Quit: Coyote finally caught me]
10:41kov has joined #asahi-gpu
10:51Dcow has joined #asahi-gpu
11:41millenia_ has joined #asahi-gpu
11:48millenialhacker has quit [Ping timeout: 480 seconds]
12:27MajorBiscuit has quit [Quit: WeeChat 3.6]
12:35millenia_ is now known as millenialhacker
12:35MajorBiscuit has joined #asahi-gpu
12:43cylm has joined #asahi-gpu
12:56MajorBiscuit has quit [Quit: WeeChat 3.6]
12:58MajorBiscuit has joined #asahi-gpu
14:03cylm has quit [Quit: WeeChat 3.7.1]
14:14millenialhacker has quit [Remote host closed the connection]
14:14Dcow has quit [Remote host closed the connection]
14:15Dcow has joined #asahi-gpu
14:30millenialhacker has joined #asahi-gpu
14:38millenialhacker has quit [Ping timeout: 480 seconds]
14:44gff has joined #asahi-gpu
14:48maximbazthanks 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
14:48gff_ has quit [Ping timeout: 480 seconds]
14:52alyssaI guess I'm dogfooding the GPU drivers now?
14:52alyssabecause after the uprev my computer still works but I guess everything is going through the 3D pipe instead of software rendering lol
14:52alyssaGL_VERSION: OpenGL ES 2.0 Mesa 23.0.0-devel (git-9785945ed6)
14:52alyssaGL_RENDERER: Apple M1 (G13G B0)
14:53alyssaOpenGL vendor string: Asahi
14:53alyssaOpenGL renderer string: Apple M1 (G13G B0)
14:53alyssaOpenGL version string: 2.1 Mesa 23.0.0-devel (git-9785945ed6)
15:11Gaspare has joined #asahi-gpu
15:38Gaspare has quit [Read error: Connection reset by peer]
15:43millenialhacker has joined #asahi-gpu
15:52millenialhacker has quit [Ping timeout: 480 seconds]
16:47alyssaI'm hitting the dart_map_pages WARN pretty regularly with heavy use
16:49TheLinkPlaying darts until someone gets hurt 😛
16:49millenialhacker has joined #asahi-gpu
16:55millenialhacker has quit [Remote host closed the connection]
16:55millenialhacker has joined #asahi-gpu
16:56svenall you need to do is move DCP over to the iommu api i guess :p
16:56svenand/or maybe figure out where those allocated pages actually come from
16:57svenI actually don’t think they can be 4K because you’re running a 16k kernel. but maybe they are larger pages for some weird reason
17:03alyssasven: Thank you for volunteering!
17:20svenI’m about 100km from my m1s right now and once I’m back I have a usb3 bug to fix :p
17:31millenialhacker has quit [Remote host closed the connection]
17:46MajorBiscuit has quit [Ping timeout: 480 seconds]
17:52alyssajannau: I've noticed that since swiching to Lina's kernel, I get a black picture at the TTY when hotplugging, and need to change TTYs to get text again
17:52alyssathis is a regression
17:53alyssaI believe in the original DCP prototype, I triggered -- I mean, whoever wrote that code triggered a swap after hotplug, since the linux tty won't ordinarily swap if you don't change TTYs
17:53alyssaI don't know if that was removed? or maybe it's wrong and there's some other fix we need?
18:01svenohhh… I think I hit that with dcpext as well and assumed that was yet another atcphy/dptx bug
18:01Dcow_ has joined #asahi-gpu
18:04jannaualyssa: I see that with dcpext as well, the link-status bad call is still there with the comment but I had to guard it with checks to avoid NULL ptr derefs
18:04jannauhotplug handling might have changed as well
18:06* jannaubuilds mesa right now to look at the dart warning
18:08Dcow has quit [Ping timeout: 480 seconds]
18:23jannaualyssa: asahi/rebased still works on t6002
18:25cylm has joined #asahi-gpu
18:31alyssajannau: woo!
18:32alyssatake supertuxkart for a spin? lol
18:33millenialhacker has joined #asahi-gpu
18:41millenialhacker has quit [Ping timeout: 480 seconds]
18:47jannauI see now warnings with kodi but video playback is very broken
18:48cylm_ has joined #asahi-gpu
18:52alyssayes kodi is extremely broken right now
18:52alyssahaven't debugged that yet
18:55cylm has quit [Ping timeout: 480 seconds]
18:57alyssaas in I just get a black screen, no output
18:58alyssaUhhh its X11 renderers, just wayland that's totally broken
18:58alyssaso that could be an app bug I suppose
19:00millenialhacker has joined #asahi-gpu
19:07Dcow_ has quit [Remote host closed the connection]
19:07Dcow has joined #asahi-gpu
19:08millenialhacker has quit [Ping timeout: 480 seconds]
19:11alyssajannau: `kodi --windowing=x11` works fine for me, including video playback
19:15alyssaPushed latest asahi/rebased in case there was some other fix I had that I forgot about
19:15Dcow has quit [Ping timeout: 480 seconds]
19:25digicyc has quit [Remote host closed the connection]
19:26digicyc has joined #asahi-gpu
19:26maximbazdo 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...
19:29Dcow has joined #asahi-gpu
19:30jannaumaximbaz: asahi.debug_flags=...
19:33jannau`kodi --windowing=x11` works somewhat, video playback stops after a few seconds and it hangs at exit, I have to kill -9 it
19:33jannauwithout the extra commits
19:36alyssajannau: same as me, close enough then :D
19:38Dcow has quit [Ping timeout: 480 seconds]
19:39alyssarunning `LIBGL_DRIVERS_PATH=~/lib/dri/ DISPLAY=:0 glxgears`, closing the window, and repeating piles of times seems to reproduce the
19:39alyssaDRM_IOCTL_MODE_CREATE_DUMB failed: Cannot allocate memory
19:39alyssaFailed to create scanout resource
19:39alyssanot sure if mesa or kernel leak yet
19:39alyssaI am unsure why Xwayland would be creating dumb buffers ... so I'd say we have multiple bugs here
19:44alyssaGallium is really asking for a SCANOUT buffer, uh
19:48jannaufunky, it takes ~2 seconds in weston+Xwayland until the glxgears window vanishes
19:51Dcow has joined #asahi-gpu
19:59jannaureproduced
20:00Dcow has quit [Ping timeout: 480 seconds]
20:03cylm_ has quit [Quit: WeeChat 3.5]
20:05jannauit is WARN_ON(ptep[i] & APPLE_DART_PTE_VALID) from the inlined dart_init_pte()
20:06jannaumaybe an issue with the reserved memory
20:10jannauso the leak exhaust all iova space and the iommu code tries to use the boot mappings
20:11jannauso possible just a bug in the reserved memory handling on iommu side
20:14alyssaMy memory leak is helpful after all!
20:16jannaudart-disp0 stream 0 looks full, except for some small gaps
20:24Dcow has joined #asahi-gpu
20:32jannauit tries to map something in the middle of the boot framebuffer
20:36alyssaSo there are (at least) 2 distinct bugs here then
20:37alyssa1 kernel and 1 userspace
20:51jannaukernel bug spotted. it reserves the physical address. oversight on my part when I added support for translated reserved regions
20:52Dcow has quit [Ping timeout: 480 seconds]
20:52jannauso, yes, the leak found a bug via the WARN_ON
20:55jannaubut fixing it breaks dcp since it prevents now the memmap of the rtkit shmem
21:02Dcow has joined #asahi-gpu
21:03maximbazthanks 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
21:03maximbazasahi.debug_flags=0xfffffffff, no quiet)... which makes me think somehow the freeze happens before the driver is running 🤔
21:06jannauI guess the display could also freeze because dcp takes over. it would be helpful if you can boot with m1n1's hypervisor and the virtual uart
21:10millenialhacker has joined #asahi-gpu
21:13jannauwth! dma_alloc_coherent() fails
21:13alyssajannau: having fun? :p
21:16maximbazgotcha, it's unfortunately the only device I have until weekend, I'll try to get more info then! thanks again for your answers! :)
21:24Dcow has quit [Ping timeout: 480 seconds]
21:32jannauyou could try to block dcp to see if that gives more information
21:34Dcow has joined #asahi-gpu
21:45jannaulooks like iova.c can't handle that there's reserved mem at iova 0x0
21:46maximbazI'm up for some more experiments! May I ask for a hint, how to block dcp, or where to read more about it?
21:50millenialhacker has quit [Remote host closed the connection]
22:02jannaumaximbaz: add module_blacklist=apple_dcp to the kernel commandline
22:04millenialhacker has joined #asahi-gpu
22:04Dcow has quit [Ping timeout: 480 seconds]
22:07millenialhacker has quit [Remote host closed the connection]
22:07millenialhacker has joined #asahi-gpu
22:07Axenntio has joined #asahi-gpu
22:09Axenntio has quit []
22:31Dcow has joined #asahi-gpu
22:38jannauI found an ugly workaround: exclude the low reserved iova via aperture_start
22:39Dcow has quit [Ping timeout: 480 seconds]
22:47Dcow has joined #asahi-gpu
22:52jannauI wonder if the issues with reserved low iova would go away with unmanaged iommu domains. I suspose it'll remain a problem disp0 which I'd like to keep managed though
22:55Dcow has quit [Ping timeout: 480 seconds]
23:03Dcow has joined #asahi-gpu
23:08zzywysm has quit [Quit: Textual IRC Client: www.textualapp.com]
23:11Dcow has quit [Ping timeout: 480 seconds]
23:23jannaualyssa, lina: https://github.com/jannau/linux/tree/gpu/rust-wip-dcp first patch is already in asahi-wip, fixes a dart build as module, 2nd commit prevents hitting that warning in dart_map_pages() but of course doesn't fix exhausting the iova space through memory leaks
23:27Dcow has joined #asahi-gpu
23:30SSJ_GZ has quit [Ping timeout: 480 seconds]
23:31maximbazblocking 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
23:37millenialhacker has quit [Remote host closed the connection]
23:39Dcow has quit [Ping timeout: 480 seconds]
23:44millenialhacker has joined #asahi-gpu
23:49Dcow has joined #asahi-gpu
23:53millenialhacker has quit [Ping timeout: 480 seconds]
23:58Dcow has quit [Ping timeout: 480 seconds]
…