From 62f40b6e7a9f21f389a0b52740167a1b5de60c81 Mon Sep 17 00:00:00 2001 From: David Francis Date: Tue, 30 Jan 2024 14:59:48 -0500 Subject: [PATCH] plugin/amdgpu: Don't print error for "No such process" during resume During the late stages of restore, each process being resumed gets an ioctl call to KFD_CRIU_OP_RESUME. If the process has no kfd process info, this call with fail with -ESRCH. This is normal behaviour, so we shouldn't print an error message for it. Signed-off-by: David Francis --- plugins/amdgpu/amdgpu_plugin.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/amdgpu/amdgpu_plugin.c b/plugins/amdgpu/amdgpu_plugin.c index 32ff8f9364..3675353a77 100644 --- a/plugins/amdgpu/amdgpu_plugin.c +++ b/plugins/amdgpu/amdgpu_plugin.c @@ -1999,7 +1999,10 @@ int amdgpu_plugin_resume_devices_late(int target_pid) args.op = KFD_CRIU_OP_RESUME; pr_info("Calling IOCTL to start notifiers and queues\n"); if (kmtIoctl(fd, AMDKFD_IOC_CRIU_OP, &args) == -1) { - pr_perror("restore late ioctl failed"); + if (errno == ESRCH) + pr_info("Pid %d has no kfd process info\n", target_pid); + else + pr_perror("restore late ioctl failed"); ret = -1; }