nouveau: reinstate fencing on screen destroy
authorIlia Mirkin <imirkin@alum.mit.edu>
Thu, 4 Feb 2021 17:15:43 +0000 (12:15 -0500)
committerMarge Bot <eric+marge@anholt.net>
Sat, 6 Feb 2021 23:04:35 +0000 (23:04 +0000)
commit92f12952f32ee08cd302f8591ab059ca5f167239
treea6c1ca90bf1a77b6d00100103fcbe7f02cf070c0
parent0464117ad9bd47f079175058771220e8dad4f00b
nouveau: reinstate fencing on screen destroy

As it turns out, the wait is required as the driver expects for
rendering to be quiesced on exit. This can trigger channel failures,
which in turn trigger recovery. This can fail and destroy the whole
system.

Fixes: 28a781323fb ("nouveau: change fence destruction logic on screen destroy")
References: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4223
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8867>
src/gallium/drivers/nouveau/nouveau_fence.c