drm/radeon: wait for moving fence after pinning
authorChristian König <christian.koenig@amd.com>
Mon, 21 Jun 2021 11:43:05 +0000 (13:43 +0200)
committerSasha Levin <sashal@kernel.org>
Wed, 30 Jun 2021 12:48:56 +0000 (08:48 -0400)
commit206c3f8c6996861e645b846a3d2f3b8b34838c71
tree3150aa965585504f31bfcd956fa3e49ce7f7e29c
parent94fc53e655e465787d104ef7a4bd8970f7cd8bec
drm/radeon: wait for moving fence after pinning

commit 4b41726aae563273bb4b4a9462ba51ce4d372f78 upstream.

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

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-2-christian.koenig@amd.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/radeon/radeon_prime.c