]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
amdkfd: process debug trap ioctl only on a primary context
authorZhu Lingshan <lingshan.zhu@amd.com>
Mon, 13 Oct 2025 07:58:31 +0000 (15:58 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 8 Dec 2025 19:19:30 +0000 (14:19 -0500)
commite3491fa3f3c94d47e7b82604ca7b9925987f1683
tree1d8d89e37facd0cca03b51757c5433c40dd6334a
parent3ec1a42f5f4ba877374a22a8da45d219772ac968
amdkfd: process debug trap ioctl only on a primary context

Set_debug_trap ioctl should work on a specific kfd_process
even when multiple contexts feature is implemented.

For consistency, this commit allow set_debug_trap ioctl only work on the
primary kfd process of a user space program

Signed-off-by: Zhu Lingshan <lingshan.zhu@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