linux/drivers/gpu/drm/amd/amdkfd
Rajneesh Bhardwaj f185381b64 drm/amdkfd: CRIU Implement KFD process_info ioctl
This IOCTL op is expected to be called as a precursor to the actual
Checkpoint operation. This does the basic discovery into the target
process seized by CRIU and relays the information to the userspace that
utilizes it to start the Checkpoint operation via another dedicated
IOCTL op.

The process_info IOCTL op determines the number of GPUs, buffer objects
that are associated with the target process, its process id in
caller's namespace since /proc/pid/mem interface maybe used to drain
the contents of the discovered buffer objects in userspace and getpid
returns the pid of CRIU dumper process. Also the pid of a process
inside a container might be different than its global pid so return
the ns pid.

Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Rajneesh Bhardwaj <rajneesh.bhardwaj@amd.com>
Signed-off-by: David Yat Sin <david.yatsin@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2022-02-07 17:59:20 -05:00
..
cik_event_interrupt.c drm/amdkfd: replace asic_family with asic_type 2021-11-17 17:10:01 -05:00
cik_int.h
cik_regs.h
cwsr_trap_handler.h
cwsr_trap_handler_gfx8.asm
cwsr_trap_handler_gfx9.asm
cwsr_trap_handler_gfx10.asm
Kconfig
kfd_chardev.c drm/amdkfd: CRIU Implement KFD process_info ioctl 2022-02-07 17:59:20 -05:00
kfd_crat.c drm/amdkfd: Check for null pointer after calling kmemdup 2022-01-11 15:44:27 -05:00
kfd_crat.h
kfd_dbgdev.c drm/amdkfd: replace kgd_dev in various kfd2kgd funcs 2021-11-17 16:58:01 -05:00
kfd_dbgdev.h
kfd_dbgmgr.c
kfd_dbgmgr.h
kfd_debugfs.c
kfd_device.c drm/amdkfd: Fix indentation on switch statement 2022-01-14 17:52:00 -05:00
kfd_device_queue_manager.c drm/amdkfd: Fix DQM asserts on Hawaii 2022-01-11 15:44:28 -05:00
kfd_device_queue_manager.h drm/amdkfd: add reset queue function for RAS poison (v2) 2021-12-28 16:02:47 -05:00
kfd_device_queue_manager_cik.c
kfd_device_queue_manager_v9.c drm/amdkfd: convert misc checks to IP version checking 2021-11-17 17:09:46 -05:00
kfd_device_queue_manager_v10.c
kfd_device_queue_manager_vi.c
kfd_doorbell.c drm/amdkfd: add kfd_device_info_init function 2021-12-01 16:15:37 -05:00
kfd_events.c drm/amdkfd: convert misc checks to IP version checking 2021-11-17 17:09:46 -05:00
kfd_events.h
kfd_flat_memory.c drm/amdkfd: replace asic_family with asic_type 2021-11-17 17:10:01 -05:00
kfd_int_process_v9.c drm/amdkfd: enable sdma ecc interrupt event can be handled by event_interrupt_wq_v9 2022-01-07 17:19:14 -05:00
kfd_interrupt.c drm/amdkfd: add kfd_device_info_init function 2021-12-01 16:15:37 -05:00
kfd_iommu.c drm/amdkfd: add kfd_device_info_init function 2021-12-01 16:15:37 -05:00
kfd_iommu.h
kfd_kernel_queue.c drm/amdkfd: add kfd_device_info_init function 2021-12-01 16:15:37 -05:00
kfd_kernel_queue.h
kfd_migrate.c drm/amdgpu: remove gart.ready flag 2022-01-19 22:32:47 -05:00
kfd_migrate.h drm/amdkfd: fix svm_migrate_fini warning 2021-09-23 16:34:57 -04:00
kfd_module.c
kfd_mqd_manager.c drm/amdkfd: add kfd_device_info_init function 2021-12-01 16:15:37 -05:00
kfd_mqd_manager.h drm/amdkfd: Add an optional argument into update queue operation(v2) 2021-10-28 14:26:13 -04:00
kfd_mqd_manager_cik.c drm/amdkfd: replace kgd_dev in hqd/mqd kfd2kgd funcs 2021-11-17 16:58:01 -05:00
kfd_mqd_manager_v9.c drm/amdkfd: replace kgd_dev in various amgpu_amdkfd funcs 2021-11-17 16:58:01 -05:00
kfd_mqd_manager_v10.c drm/amdkfd: replace kgd_dev in hqd/mqd kfd2kgd funcs 2021-11-17 16:58:01 -05:00
kfd_mqd_manager_vi.c drm/amdkfd: replace kgd_dev in hqd/mqd kfd2kgd funcs 2021-11-17 16:58:01 -05:00
kfd_packet_manager.c drm/amdkfd: replace asic_family with asic_type 2021-11-17 17:10:01 -05:00
kfd_packet_manager_v9.c
kfd_packet_manager_vi.c drm/amdkfd: fix function scopes 2021-12-13 16:32:34 -05:00
kfd_pasid.c
kfd_pm4_headers.h
kfd_pm4_headers_ai.h
kfd_pm4_headers_aldebaran.h
kfd_pm4_headers_diq.h
kfd_pm4_headers_vi.h
kfd_pm4_opcodes.h
kfd_priv.h drm/amdkfd: CRIU Introduce Checkpoint-Restore APIs 2022-02-07 17:59:03 -05:00
kfd_process.c drm/amdkfd: svm range restore work deadlock when process exit 2022-01-27 15:47:58 -05:00
kfd_process_queue_manager.c drm/amdkfd: add kfd_device_info_init function 2021-12-01 16:15:37 -05:00
kfd_queue.c
kfd_smi_events.c drm/amd/pm: do not expose implementation details to other blocks out of power 2022-01-14 17:51:14 -05:00
kfd_smi_events.h drm/amdkfd: Update SMI throttle event bitmask 2021-07-23 10:08:00 -04:00
kfd_svm.c drm/amdkfd: Fix variable set but not used warning 2022-02-02 18:26:31 -05:00
kfd_svm.h drm/amdkfd: Use prange->update_list head for remove_list 2022-01-11 15:44:27 -05:00
kfd_topology.c drm/amdkfd: add kfd_device_info_init function 2021-12-01 16:15:37 -05:00
kfd_topology.h drm/amdkfd: Add sysfs bitfields and enums to uAPI 2021-11-17 16:58:03 -05:00
Makefile
soc15_int.h drm/amdkfd: add sdma poison consumption handling 2021-06-07 14:57:24 -04:00