History

drm/amdkfd: Handle VM faults in KFD

1. Pre-GFX9 the amdgpu ISR saves the vm-fault status and address per per-vmid. amdkfd needs to get the information from amdgpu through the new get_vm_fault_info interface. On GFX9 and later, all the required information is in the IH ring 2. amdkfd unmaps all queues from the faulting process and create new run-list without the guilty process 3. amdkfd notifies the runtime of the vm fault trap via EVENT_TYPE_MEMORY

shaoyunl committed 8 years ago

Commit 2640c3f1 parent b97dfa27 files · +98 −7Browse files

Showing the changes to include/uapi/linux (1 of 7 files). Show all

Unified · Split

include/uapi/linux/kfd_ioctl.h+1−1
@@ -219,7 +219,7 @@ struct kfd_memory_exception_failure { · 218 unmodified lines
219219 __u32 NotPresent; /* Page not present or supervisor privilege */
220220 __u32 ReadOnly; /* Write access to a read-only page */
221221 __u32 NoExecute; /* Execute access to a page marked NX */
222− __u32 pad;
222+ __u32 imprecise; /* Can't determine the exact fault address */
223223 };
224224
225225 /* memory exception data*/