]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amdkfd: Check cgroup when returning DMABuf info
authorMukul Joshi <mukul.joshi@amd.com>
Mon, 12 Feb 2024 15:40:55 +0000 (10:40 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 May 2024 10:14:39 +0000 (12:14 +0200)
commit77c76b8c1261739526392a666bb358454ab1b831
tree445e4188cde8bc04f7a4804e7ab293827db3cdfe
parent06ff58bdcfa998b3f0cf478ef542c1bd6fbfbf48
drm/amdkfd: Check cgroup when returning DMABuf info

[ Upstream commit 9d7993a7ab9651afd5fb295a4992e511b2b727aa ]

Check cgroup permissions when returning DMA-buf info and
based on cgroup info return the GPU id of the GPU that have
access to the BO.

Signed-off-by: Mukul Joshi <mukul.joshi@amd.com>
Reviewed-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/amd/amdkfd/kfd_chardev.c