]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/nouveau: wait for moving fence after pinning v2
authorChristian König <christian.koenig@amd.com>
Mon, 21 Jun 2021 11:36:35 +0000 (13:36 +0200)
committerSasha Levin <sashal@kernel.org>
Wed, 30 Jun 2021 12:48:28 +0000 (08:48 -0400)
commit4b4ce5cbef3a30820a21008a62327f55e8a24094
tree15d5c91afac8dee78d22eed6a81fe783d07b51ee
parentff660863628fb144badcb3395cde7821c82c13a6
drm/nouveau: wait for moving fence after pinning v2

commit 17b11f71795abdce46f62a808f906857e525cea8 upstream.

We actually need to wait for the moving fence after pinning
the BO to make sure that the pin is completed.

v2: grab the lock while waiting

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
References: https://lore.kernel.org/dri-devel/20210621151758.2347474-1-daniel.vetter@ffwll.ch/
CC: stable@kernel.org
Link: https://patchwork.freedesktop.org/patch/msgid/20210622114506.106349-1-christian.koenig@amd.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/nouveau/nouveau_prime.c