]> 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)
commitef8b31faec1bb40478e60c617bc54f467020f6f5
tree2bc1c90aeb750cde47492b508425fbf68c41344a
parent074feac5da6163172889de5a6aafdfdb78ccece7
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