Revert "drm/prime: Unexport helpers for fd/handle conversion"
authorFelix Kuehling <Felix.Kuehling@amd.com>
Fri, 17 Nov 2023 21:44:17 +0000 (16:44 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Jan 2024 10:51:39 +0000 (11:51 +0100)
commit379af079c42738fa3f33de5912931a7865887c62
tree0a793396376255b6339f02926db008117a1933c1
parent5ca518149d46475e508b8cf81225dc48b0d41ddd
Revert "drm/prime: Unexport helpers for fd/handle conversion"

[ Upstream commit 0514f63cfff38a0dcb7ba9c5f245827edc0c5107 ]

This reverts commit 71a7974ac7019afeec105a54447ae1dc7216cbb3.

These helper functions are needed for KFD to export and import DMABufs
the right way without duplicating the tracking of DMABufs associated with
GEM objects while ensuring that move notifier callbacks are working as
intended.

CC: Christian König <christian.koenig@amd.com>
CC: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Daniel Vetter <daniel@ffwll.ch>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/drm_prime.c
include/drm/drm_prime.h