From 3473f283228401ba585044ac6dea8c8eb27237a5 Mon Sep 17 00:00:00 2001 From: Andrew Turner Date: Thu, 16 Mar 2023 15:36:06 +0000 Subject: [PATCH] Switch the arm64 VM_MEMATTR_DEVICE to nGnRE Move device memory to a weaker type. The new device memory type allows the system to acknowledge a write to a device before the write has completed. This is inline with VM_MEMATTR_DEVICE on armv6/armv7. Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D38945 --- sys/arm64/include/vm.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/sys/arm64/include/vm.h b/sys/arm64/include/vm.h index e479aab52e26..a8c1ea97b513 100644 --- a/sys/arm64/include/vm.h +++ b/sys/arm64/include/vm.h @@ -36,11 +36,7 @@ #define VM_MEMATTR_WRITE_THROUGH 3 #define VM_MEMATTR_DEVICE_nGnRE 4 -/* - * VM_MEMATTR_DEVICE can be changed to VM_MEMATTR_DEVICE_nGnRE when - * the PCI drivers use VM_MEMATTR_DEVICE_NP for their config space. - */ -#define VM_MEMATTR_DEVICE VM_MEMATTR_DEVICE_nGnRnE +#define VM_MEMATTR_DEVICE VM_MEMATTR_DEVICE_nGnRE #define VM_MEMATTR_DEVICE_NP VM_MEMATTR_DEVICE_nGnRnE #ifdef _KERNEL