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)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 27 Mar 2024 12:49:29 +0000 (08:49 -0400)
commit9d7993a7ab9651afd5fb295a4992e511b2b727aa
treee96d72b1eca1e97ddbeb1b85146a675cd81f5f53
parent075ec164740172ec7f1fc80c2cb79f7ec1c9451a
drm/amdkfd: Check cgroup when returning DMABuf info

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>
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c