]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/amdkfd: allow compute partition mode switch with cgroup exclusions
authorJonathan Kim <jonathan.kim@amd.com>
Wed, 14 May 2025 21:00:46 +0000 (17:00 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 18 Jun 2025 16:19:17 +0000 (12:19 -0400)
commit96f75f9594466f92b10873cc3a49267cfe15ee49
tree04bd9640511e34cda0a8bb997c159877f44bf26d
parentdc8ffb28790eeab7e0f92d041e88c82c1f3667c5
drm/amdkfd: allow compute partition mode switch with cgroup exclusions

The KFD currently bars a compute partition mode switch while a KFD
process exists.

Since cgroup excluded devices remain excluded for the lifetime of a KFD
process and user space is able to mode switch single devices, allow
users to mode switch a device with any running process that has been
cgroup excluded from this device.

Signed-off-by: Jonathan Kim <jonathan.kim@amd.com>
Reviewed-by: Harish Kasiviswanathan <harish.kasiviswanathan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h
drivers/gpu/drm/amd/amdkfd/kfd_device.c
drivers/gpu/drm/amd/amdkfd/kfd_priv.h
drivers/gpu/drm/amd/amdkfd/kfd_process.c