]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: Add migration SMI event
authorPhilip Yang <Philip.Yang@amd.com>
Fri, 14 Jan 2022 00:28:13 +0000 (19:28 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Jun 2022 19:31:04 +0000 (15:31 -0400)
commit43f73b203bf3e2d16209f580e17df8f04cf1c254
tree2bc1c90aeb750cde47492b508425fbf68c41344a
parente94eb0052df9cac3647d6b9912016f77c84e6d8a
drm/amdkfd: Add migration SMI event

For migration start and end event, output timestamp when migration
starts, ends, svm range address and size, GPU id of migration source and
destination and svm range attributes,

Migration trigger could be prefetch, CPU or GPU page fault and TTM
eviction.

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_migrate.c
drivers/gpu/drm/amd/amdkfd/kfd_migrate.h
drivers/gpu/drm/amd/amdkfd/kfd_smi_events.c
drivers/gpu/drm/amd/amdkfd/kfd_smi_events.h
drivers/gpu/drm/amd/amdkfd/kfd_svm.c