#
✕ nick:jannau
#asahi-gpu · 2023-03-28 09:13
jannaubest bet for that is dcpep_cb_allocate_buffer/dcpep_cb_release_mem_desc but strange that I never saw it before 6.2.
#asahi-gpu · 2023-03-28 09:11
jannauit has 3 objects of 60817408 bytes, which is a tad excessive for framebuffers on j314. most common size is 2523136 bytes
#asahi-gpu · 2023-03-28 09:06
jannaulina: looks like dcp might something according to /sys/kernel/debug/dma_buf/bufinfo (currently "Total 73 objects, 497156096 bytes", was fewer objects yesterday) but I have no idea what. Judging by the size it's not framebuffers
#asahi-gpu · 2023-03-27 14:23
jannauthe kms plane has an "IN_FENCE_FD" property for explictic fences from userspace: https://www.kernel.org/doc/html/v4.15/gpu/drm-kms.html#explicit-fencing-properties
#asahi-gpu · 2023-03-26 15:46
jannauthere was roughly 2 1/2 days of use before the GEM_BIND failures so it could be an issue that manifest only over time/use
#asahi-gpu · 2023-03-26 15:44
jannauI haven't seen any fb with explicit fence, most fbs from kwin get implicit fences
#asahi-gpu · 2023-03-26 14:51
jannausecond kwin_wayland segfault in apple_dri after failed DRM_IOCTL_ASAHI_GEM_BIND, unfortuantely without mesa debug symbols, mesa already recompiled
#asahi-gpu · 2023-03-26 13:05
jannauis it expected that the fb has no explicit fence?
#asahi-gpu · 2023-03-26 13:04
jannaulina: the pink boxes could be a fencing error. I see drm_gem_plane_helper_prepare_fb end up sometimes without fence
#asahi-gpu · 2023-03-25 16:32
jannauI think the preferred place is still https://github.com/AsahiLinux/linux/issues/72
#asahi-gpu · 2023-03-22 18:34
jannaulina: found the commit with a useful commit message. it fails with dcp runtime pm
#asahi-gpu · 2023-03-22 18:30
jannaulina: ah, at some point it looked like agx needs pmp as well, I don't think it was a probing issue
#asahi-gpu · 2023-03-22 18:28
jannau`make {old,menu}config O=$DIR` works as well
#asahi-gpu · 2023-03-22 18:28
jannaualyssa: the .config lives in the new output dir
#asahi-gpu · 2023-03-22 18:24
jannau`make mrproper` copy your .config first
#asahi-gpu · 2023-03-22 18:24
jannausource tree
#asahi-gpu · 2023-03-22 18:23
jannauthe source needs to be clean for that
#asahi-gpu · 2023-03-22 18:23
jannaualyssa: it does with O=$DIR
#asahi-gpu · 2023-03-22 18:23
jannaulina: re pmp power domain, I suspect agx has like dcp a hidden dependency on pmp on M1
#asahi-gpu · 2023-03-20 20:37
jannaui509vcb: https://github.com/AsahiLinux/linux/issues/72
#asahi-gpu · 2023-03-20 17:44
jannauthat is afaik intentional. also the "vendor" of the opengl driver is mesa and not apple
#asahi-gpu · 2023-03-19 23:31
jannaueric_engestrom: I suppose the idea was to make it optional and easy to revert to the upstream version in the case we screw up
#asahi-gpu · 2023-03-14 12:02
jannaulina: timely kwin update: https://zamundaaa.github.io/wayland/2023/03/10/porting-away-from-gbm-surface.html contains a high level description of what kwin currently does (and how kwin tries to break gpu drivers in the future ;))
#asahi-gpu · 2023-03-14 06:20
jannaulina: not really helpful reproducer for the pink boxes: plasma/wayland login on my macbook pro 13" (m2). reproduces somewhat relieably over self-built kernel/mesa and asahi and fedora packages
#asahi-gpu · 2023-03-11 23:48
jannaulina: similar oops reported by blazra in #asahi https://gist.github.com/blazra/d6e12a942b1a6ef90c28616c75831c9c
#asahi-gpu · 2023-03-11 14:58
jannaunot easily reproducible, third run underway without issues
#asahi-gpu · 2023-03-11 14:50
jannauone of the function or loop scenes
#asahi-gpu · 2023-03-11 14:48
jannauhappened after running for a while at one of the spinning square scenes
#asahi-gpu · 2023-03-11 14:43
jannaukernel/mesa from asahi-dev
#asahi-gpu · 2023-03-11 14:43
jannauhttps://www.jannau.net/asahi/2023-03-11_asahi-dev-gpu_glmark2-wayland_4k_oops.txt
#asahi-gpu · 2023-03-11 14:43
jannaulina: glmark2-wayland (4k) oops with kernel/mesa on j375d:
#asahi-gpu · 2023-03-10 10:04
jannauyes, but kwin doesn't crash. I see no indication of it crashing and it still has the same PID as it was started with
#asahi-gpu · 2023-03-10 09:50
jannauI've just reproduced the issue with simpledrm
#asahi-gpu · 2023-03-10 09:47
jannaudo you see how EBADF on the wayland socket could be gpu related while kwin survives?
#asahi-gpu · 2023-03-10 09:08
jannauit doesn't crash but terminates itself after "The Wayland connection experienced a fatal error: Bad file descriptor". I don't see how that can be directly caused by the gpu driver
#asahi-gpu · 2023-03-10 08:50
jannauI'd say probably not gpu related
#asahi-gpu · 2023-03-10 08:50
jannaulooks like a race during startup, not reproducible with executing plasmashell manualy in the same session
#asahi-gpu · 2023-03-10 08:44
jannaulina: the black plasma/wayland desktop is not a kwin crash. plasmashell itself crashes
#asahi-gpu · 2023-03-10 06:02
jannauI'll look into the kwin crashes later
#asahi-gpu · 2023-03-10 06:01
jannauI see the pinkl boxes only on m2 with the same kernel and mesa
#asahi-gpu · 2023-03-10 05:59
jannauyes, no need to worry about 13.2 for now. users are not able to run that yet and dcp on 13.2 needs testing as well
#asahi-gpu · 2023-03-09 19:22
jannauso far no crashes on 12.3 and no pink boxes on G13C
#asahi-gpu · 2023-03-09 19:13
jannaureproduce, insofar an application bug as the black screen is the result of a missing plasmashell, not sure why. nothing suspicious in dmesg
#asahi-gpu · 2023-03-09 19:05
jannaumoving to top left corner displayed still the overview effect and pressing on the power button showed the logout screen
#asahi-gpu · 2023-03-09 19:04
jannauno crashes with 12.3 so far, but I ended 2 times with a black desktop. it was flickering 2 or 3 times to black and stayed black then. Could easily be a application bug. desktop and panel were black but mouse pointer was still present and moving
#asahi-gpu · 2023-03-09 18:53
jannauI was trying to reproduce the pink boxes during plasma startup so it didn't crash with 12.3 FW on j493 and j375
#asahi-gpu · 2023-03-09 18:44
jannauthis is on the 13.2 firmware so it might not be a regression
#asahi-gpu · 2023-03-09 18:43
jannaulina: rtkit crash dump: https://www.jannau.net/asahi/gpu_crash_agx_release_2023-03-9.log
#asahi-gpu · 2023-03-09 18:41
jannauj314c (m1 max), firmware 13.2, kernel https://github.com/jannau/linux/tree/asahi-6.2-1_star_dcp_v13_2 (roughly gpu/explicit-sync + dcp 13.2) and alyssa's agx/release
#asahi-gpu · 2023-03-09 18:38
jannaulina: I managed to crash the GPU (rtkit crash) with quick sddm - plasma/wayland login/logoff cycles

plus ›