]> git.baikalelectronics.ru Git - kernel.git/commit
device_cgroup: Export devcgroup_check_permission
authorHarish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
Thu, 16 May 2019 15:37:16 +0000 (11:37 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 7 Oct 2019 20:11:38 +0000 (15:11 -0500)
commit383062105917bdfda28cc3f56d13188152e49d88
treeb485d348084855efa543562edf5f157a36e7f3f8
parent7e5f24f2586aea88270676f842b623c67f2f0cb4
device_cgroup: Export devcgroup_check_permission

For AMD compute (amdkfd) driver.

All AMD compute devices are exported via single device node /dev/kfd. As
a result devices cannot be controlled individually using device cgroup.

AMD compute devices will rely on its graphics counterpart that exposes
/dev/dri/renderN node for each device. For each task (based on its
cgroup), KFD driver will check if /dev/dri/renderN node is accessible
before exposing it.

Signed-off-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
Acked-by: Tejun Heo <tj@kernel.org>
Acked-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Roman Gushchin <guro@fb.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
include/linux/device_cgroup.h
security/device_cgroup.c