drm/amdkfd: add smi events for process start and end
authorEric Huang <jinhuieric.huang@amd.com>
Mon, 7 Apr 2025 19:32:33 +0000 (15:32 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 11 Apr 2025 21:01:25 +0000 (17:01 -0400)
commit4172b556fd5bdfdf9b2d1e42da39df6ce99ee989
tree8f9daad4e1791552837bfda91982d13ac02acb09
parent1d9bff4cf8c53d33ee2ff1b11574e5da739ce61c
drm/amdkfd: add smi events for process start and end

rocm-smi will be able to show the events for KFD process
start/end, it is the implementation of this feature.

Signed-off-by: Eric Huang <jinhuieric.huang@amd.com>
Reviewed-by: Kent Russell <kent.russell@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_process.c
drivers/gpu/drm/amd/amdkfd/kfd_smi_events.c
drivers/gpu/drm/amd/amdkfd/kfd_smi_events.h
include/uapi/linux/kfd_ioctl.h