OSDN Git Service

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)
committerChristian König <christian.koenig@amd.com>
Tue, 22 Jun 2021 13:29:03 +0000 (15:29 +0200)
commit17b11f71795abdce46f62a808f906857e525cea8
treea149a8332643a93cb5d2fb43eb8b7096d5376615
parentf54b3ca7ea1e5e02f481cf4ca54568e57bd66086
drm/nouveau: wait for moving fence after pinning v2

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
drivers/gpu/drm/nouveau/nouveau_prime.c