aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg V <greg@unrelenting.technology>2021-06-09 23:09:16 +0000
committerEd Maste <emaste@FreeBSD.org>2021-06-16 16:48:49 +0000
commit97f3e018fa2f4af8fec23a4ac391d55b29da3978 (patch)
treecb7b9e0ebd0f9a7e511b882d679d257b51410eea
parent617e33a19aaf88956be722f286d590f5d4c4683a (diff)
downloadsrc-97f3e018fa2f4af8fec23a4ac391d55b29da3978.tar.gz
src-97f3e018fa2f4af8fec23a4ac391d55b29da3978.zip
LinuxKPI: add fault_flag_allow_retry_first
Used by drm 5.7. Reviewed by: bz, hselasky, nc MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D30673 (cherry picked from commit 597cc550e7b98294617cdd41800e9f132b6bcad9)
-rw-r--r--sys/compat/linuxkpi/common/include/linux/mm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/mm.h b/sys/compat/linuxkpi/common/include/linux/mm.h
index 7710b9d61812..ecc63b85d5b9 100644
--- a/sys/compat/linuxkpi/common/include/linux/mm.h
+++ b/sys/compat/linuxkpi/common/include/linux/mm.h
@@ -91,6 +91,9 @@ CTASSERT((VM_PROT_ALL & -(1 << 8)) == 0);
#define FAULT_FLAG_REMOTE (1 << 7)
#define FAULT_FLAG_INSTRUCTION (1 << 8)
+#define fault_flag_allow_retry_first(flags) \
+ (((flags) & (FAULT_FLAG_ALLOW_RETRY | FAULT_FLAG_TRIED)) == FAULT_FLAG_ALLOW_RETRY)
+
typedef int (*pte_fn_t)(linux_pte_t *, pgtable_t, unsigned long addr, void *data);
struct vm_area_struct {