]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/v3d: Fix prime imports of buffers from other drivers.
authorEric Anholt <eric@anholt.net>
Wed, 28 Nov 2018 23:09:27 +0000 (15:09 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Feb 2019 19:02:13 +0000 (20:02 +0100)
commit12eea1384f4d60c398dd2677afb262b70f40d925
tree7e4cbb6613a2bc9ae59ac8a5a254155ae254689e
parent09f4b5aa261513490bf0361460f7fd30d1b2ce0f
drm/v3d: Fix prime imports of buffers from other drivers.

[ Upstream commit 62d1a752874962f072de8a779e960fcd2ab4847b ]

v3d_bo_get_pages() checks this to decide to map the imported buffer
instead of the backing shmem file.  The caller was about to set this
value anyway, and there's no error path in between.  Ideally we
wouldn't even allocate the shmem file for our imports, but that's a
more invasive fix.

Signed-off-by: Eric Anholt <eric@anholt.net>
Fixes: 57692c94dcbe ("drm/v3d: Introduce a new DRM driver for Broadcom V3D V3.x+")
Link: https://patchwork.freedesktop.org/patch/msgid/20181128230927.10951-3-eric@anholt.net
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Dave Emett <david.emett@broadcom.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/v3d/v3d_bo.c