]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: Add thermal throttling SMI event
authorMukul Joshi <mukul.joshi@amd.com>
Fri, 24 Jul 2020 03:09:57 +0000 (23:09 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Jul 2020 20:21:50 +0000 (16:21 -0400)
commit5e2dc53405c5deeb5fb177b1b776e62f79966215
tree31c941f641c19bfe6e0459bfc73732fb3255228e
parenteb85c36dcbc6ef8eadd50680d556f3b6a4956269
drm/amdkfd: Add thermal throttling SMI event

Add support for reporting thermal throttling events through SMI.
Also, add a counter to count the number of throttling interrupts
observed and report the count in the SMI event message.

Signed-off-by: Mukul Joshi <mukul.joshi@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@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_smi_events.c
drivers/gpu/drm/amd/amdkfd/kfd_smi_events.h
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
drivers/gpu/drm/amd/powerplay/arcturus_ppt.c
drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h
drivers/gpu/drm/amd/powerplay/smu_v11_0.c
include/uapi/linux/kfd_ioctl.h