drm/amdkfd: Output migrate end event if migrate failed
authorPhilip Yang <Philip.Yang@amd.com>
Fri, 16 Feb 2024 16:41:16 +0000 (11:41 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 7 Oct 2024 18:09:02 +0000 (14:09 -0400)
commitdad6c45cbd40b57db95c9d46e01ff6d302e86042
treef677d722941dc2e5a9bf1b1fc2cc555bdf3f8dd5
parent8fc279e5e348f99d6faab47a7bd020e66d79dca8
drm/amdkfd: Output migrate end event if migrate failed

If page migration failed, also output migrate end event to match with
migrate start event, with failure error_code added to the end of the
migrate message macro. This will not break uAPI because application uses
old message macro sscanf drop and ignore the error_code.

Output GPU page fault restore end event if migration failed.

Signed-off-by: Philip Yang <Philip.Yang@amd.com>
Reviewed-by: James Zhu <James.Zhu@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_smi_events.c
drivers/gpu/drm/amd/amdkfd/kfd_smi_events.h
drivers/gpu/drm/amd/amdkfd/kfd_svm.c
include/uapi/linux/kfd_ioctl.h