drm/amdgpu: wait for moving fence after pinning
authorChristian König <christian.koenig@amd.com>
Mon, 21 Jun 2021 12:29:14 +0000 (14:29 +0200)
committerSasha Levin <sashal@kernel.org>
Wed, 30 Jun 2021 12:47:16 +0000 (08:47 -0400)
commit3d6c4f78ec6165dd89e0799dd26987b9d9c07ccd
treeb88a580190434cbcb59f27a59c66adabc8db084f
parent694bb36aa75da5fa433ab0601989d58d71cf7f10
drm/amdgpu: wait for moving fence after pinning

commit 8ddf5b9bb479570a3825d70fecfb9399bc15700c 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-3-christian.koenig@amd.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c