summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/kfd_ioctl.h
diff options
context:
space:
mode:
authorshaoyunl2018-07-12 04:32:50 +0200
committerOded Gabbay2018-07-12 04:32:50 +0200
commit2640c3facbd6e21e63c95f19588cc24913a263cd (patch)
tree83f2a6b4c5dad57c915747af31466d6fdc759956 /include/uapi/linux/kfd_ioctl.h
parentdrm/amdgpu: save vm fault information for amdkfd (diff)
downloadkernel-qcow2-linux-2640c3facbd6e21e63c95f19588cc24913a263cd.tar.gz
kernel-qcow2-linux-2640c3facbd6e21e63c95f19588cc24913a263cd.tar.xz
kernel-qcow2-linux-2640c3facbd6e21e63c95f19588cc24913a263cd.zip
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 Signed-off-by: shaoyun liu <shaoyun.liu@amd.com> Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com> Acked-by: Christian König <christian.koenig@amd.com> Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Diffstat (limited to 'include/uapi/linux/kfd_ioctl.h')
-rw-r--r--include/uapi/linux/kfd_ioctl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/uapi/linux/kfd_ioctl.h b/include/uapi/linux/kfd_ioctl.h
index b4f5073dbac2..46a54ab1e728 100644
--- a/include/uapi/linux/kfd_ioctl.h
+++ b/include/uapi/linux/kfd_ioctl.h
@@ -219,7 +219,7 @@ struct kfd_memory_exception_failure {
__u32 NotPresent; /* Page not present or supervisor privilege */
__u32 ReadOnly; /* Write access to a read-only page */
__u32 NoExecute; /* Execute access to a page marked NX */
- __u32 pad;
+ __u32 imprecise; /* Can't determine the exact fault address */
};
/* memory exception data*/