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>
Fri, 22 Mar 2024 19:47:56 +0000 (15:47 -0400)
commite2680ee222d705597c4ff42c46e86b4bd3860d8e
tree26267d9b432b6beeb0cf052251e95e281110d764
parent6619168fe1828e55d5de2a26262101ee2a508d73
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