nouveau: explicitly wait on the fence in nouveau_bo_move_m2mf
authorKarol Herbst <kherbst@redhat.com>
Fri, 19 Aug 2022 20:09:28 +0000 (22:09 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Aug 2022 15:16:48 +0000 (17:16 +0200)
commit3640cdccbe75b8922e5bfc0191dd37e3aaa24833
treea10cc38457dc5be63687518cdadc9a0554c950ee
parentb490dfcbb921cd6a2228308728370bc7f169ee31
nouveau: explicitly wait on the fence in nouveau_bo_move_m2mf

commit 6b04ce966a738ecdd9294c9593e48513c0dc90aa upstream.

It is a bit unlcear to us why that's helping, but it does and unbreaks
suspend/resume on a lot of GPUs without any known drawbacks.

Cc: stable@vger.kernel.org # v5.15+
Closes: https://gitlab.freedesktop.org/drm/nouveau/-/issues/156
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220819200928.401416-1-kherbst@redhat.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/nouveau/nouveau_bo.c