Hello, I've been successfully used an experimental "work in progress" patch with the kernel version 5.10.113 since last 25 may (see https://gitlab.freedesktop.org/xorg/driver/xf86-video-nouveau/-/issues/547#note_1438950) .
I suspended and hibernated the system (Debian GNU/Linux 11.3 with the aforementioned patch) many times without any issue : # journalctl -S 2022-05-25 --no-pager | grep -e "PM: suspend entry\|hibernation: hibernation entry" May 25 08:39:48 debian kernel: PM: hibernation: hibernation entry May 26 08:05:44 debian kernel: PM: hibernation: hibernation entry May 28 12:28:50 debian kernel: PM: suspend entry (deep) May 28 12:39:52 debian kernel: PM: suspend entry (deep) May 28 13:34:55 debian kernel: PM: hibernation: hibernation entry May 28 18:17:35 debian kernel: PM: hibernation: hibernation entry May 30 08:56:31 debian kernel: PM: hibernation: hibernation entry Jun 01 22:54:45 debian kernel: PM: hibernation: hibernation entry Jun 02 17:44:35 debian kernel: PM: suspend entry (deep) Jun 02 23:49:38 debian kernel: PM: hibernation: hibernation entry Jun 04 10:54:04 debian kernel: PM: hibernation: hibernation entry Jun 05 17:34:17 debian kernel: PM: hibernation: hibernation entry Jun 06 08:18:21 debian kernel: PM: hibernation: hibernation entry Jun 06 18:11:40 debian kernel: PM: suspend entry (deep) Jun 06 19:27:39 debian kernel: PM: suspend entry (deep) Jun 06 23:02:24 debian kernel: PM: hibernation: hibernation entry Jun 08 08:53:02 debian kernel: PM: hibernation: hibernation entry Jun 08 08:58:41 debian kernel: PM: suspend entry (deep) Jun 08 08:59:32 debian kernel: PM: hibernation: hibernation entry Jun 09 01:11:56 debian kernel: PM: hibernation: hibernation entry Jun 09 21:08:22 debian kernel: PM: hibernation: hibernation entry Jun 11 09:00:25 debian kernel: PM: hibernation: hibernation entry Jun 21 23:35:30 debian kernel: PM: hibernation: hibernation entry I've successful tested the patch at least one time with upstream kernels version 5.10.117, 5.16.14 and 5.17.9, too. Using this patch, the workaround cited in previous messages is not required anymore with my hardware. $ inxi -G Graphics: Device-1: NVIDIA G96CM [GeForce 9600M GT] driver: nouveau v: kernel Display: x11 server: X.Org 1.20.11 driver: loaded: modesetting unloaded: fbdev,vesa resolution: 1280x800~60Hz OpenGL: renderer: NV96 v: 3.3 Mesa 20.3.5 The root cause of the issue is probably the cause, at least another, of other different issue (see https://gitlab.freedesktop.org/drm/nouveau/-/issues/156#note_1383820 ) It probably be useful to test the patch with different affected nvidia graphic cards. Hope that helps.
From 70271cb0aa30e4523d39c3942e84b16fe18338f5 Mon Sep 17 00:00:00 2001 From: Karol Herbst <kher...@redhat.com> Date: Mon, 16 May 2022 17:40:20 +0200 Subject: [PATCH] nouveau WIP --- drivers/gpu/drm/nouveau/nouveau_bo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/nouveau/nouveau_bo.c b/drivers/gpu/drm/nouveau/nouveau_bo.c index 05076e530e7d..b6343741eda6 100644 --- a/drivers/gpu/drm/nouveau/nouveau_bo.c +++ b/drivers/gpu/drm/nouveau/nouveau_bo.c @@ -820,6 +820,7 @@ nouveau_bo_move_m2mf(struct ttm_buffer_object *bo, int evict, if (ret == 0) { ret = nouveau_fence_new(chan, false, &fence); if (ret == 0) { + nouveau_fence_wait(fence, false, false); ret = ttm_bo_move_accel_cleanup(bo, &fence->base, evict, false, -- 2.35.3