summaryrefslogtreecommitdiff
path: root/include/uapi/linux/kfd_ioctl.h
diff options
context:
space:
mode:
authorEric Huang <jinhuieric.huang@amd.com>2022-06-24 18:03:37 +0300
committerAlex Deucher <alexander.deucher@amd.com>2022-07-07 22:52:30 +0300
commitfce7bf30d3309ea325a7ec452456f8f7c079f622 (patch)
tree9edf9ba26d30fd44f2d403c39062d8b29896cfd3 /include/uapi/linux/kfd_ioctl.h
parentfc25fd602b1e101a45650475a8d2f00d7bb8e971 (diff)
downloadlinux-fce7bf30d3309ea325a7ec452456f8f7c079f622.tar.xz
drm/amdkfd: add new flag for svm
It is to add new option for always keeping gpu mapping. Signed-off-by: Eric Huang <jinhuieric.huang@amd.com> Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'include/uapi/linux/kfd_ioctl.h')
-rw-r--r--include/uapi/linux/kfd_ioctl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/kfd_ioctl.h b/include/uapi/linux/kfd_ioctl.h
index d993a0d50994..d6bda40fbcf7 100644
--- a/include/uapi/linux/kfd_ioctl.h
+++ b/include/uapi/linux/kfd_ioctl.h
@@ -613,6 +613,8 @@ enum kfd_mmio_remap {
#define KFD_IOCTL_SVM_FLAG_GPU_EXEC 0x00000010
/* GPUs mostly read, may allow similar optimizations as RO, but writes fault */
#define KFD_IOCTL_SVM_FLAG_GPU_READ_MOSTLY 0x00000020
+/* Keep GPU memory mapping always valid as if XNACK is disable */
+#define KFD_IOCTL_SVM_FLAG_GPU_ALWAYS_MAPPED 0x00000040
/**
* kfd_ioctl_svm_op - SVM ioctl operations