]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: Enable per process SMI event
authorPhilip Yang <Philip.Yang@amd.com>
Thu, 13 Jan 2022 23:59:02 +0000 (18:59 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Jun 2022 19:30:47 +0000 (15:30 -0400)
commitf0b48a6c808756c363beb8daceec27bac406db4a
tree9954e2d99702a5bb7c4a6d5933ab09f1dc3dfba1
parent5a5a05934926c04229ed344536717a1d0c269c65
drm/amdkfd: Enable per process SMI event

Process receive event from same process by default. Add a flag to be
able to receive event from all processes, this requires super user
permission.

Event using pid 0 to send the event to all processes, to keep the
default behavior of existing SMI events.

Signed-off-by: Philip Yang <Philip.Yang@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_smi_events.c