git: 41236539d8dd - main - Add non-posted device memory to the arm64 mem map

From: Andrew Turner <andrew_at_FreeBSD.org>
Date: Mon, 03 Apr 2023 12:20:27 UTC
The branch main has been updated by andrew:

URL: https://cgit.FreeBSD.org/src/commit/?id=41236539d8ddd9244bd8d7c0a20f239ac7d952d2

commit 41236539d8ddd9244bd8d7c0a20f239ac7d952d2
Author:     Andrew Turner <andrew@FreeBSD.org>
AuthorDate: 2023-03-31 15:58:57 +0000
Commit:     Andrew Turner <andrew@FreeBSD.org>
CommitDate: 2023-04-03 11:59:11 +0000

    Add non-posted device memory to the arm64 mem map
    
    Add VM_MEMATTR_DEVICE_NP to the arm64 vm.pmap.kernel_maps sysctl.
    
    Reviewed by:    markj
    Sponsored by:   Arm Ltd
     Differential Revision: https://reviews.freebsd.org/D39371
---
 sys/arm64/arm64/pmap.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/sys/arm64/arm64/pmap.c b/sys/arm64/arm64/pmap.c
index b62673f999e6..2e5b2c23efd7 100644
--- a/sys/arm64/arm64/pmap.c
+++ b/sys/arm64/arm64/pmap.c
@@ -7843,6 +7843,9 @@ sysctl_kmaps_dump(struct sbuf *sb, struct pmap_kernel_map_range *range,
 
 	index = range->attrs & ATTR_S1_IDX_MASK;
 	switch (index) {
+	case ATTR_S1_IDX(VM_MEMATTR_DEVICE_NP):
+		mode = "DEV-NP";
+		break;
 	case ATTR_S1_IDX(VM_MEMATTR_DEVICE):
 		mode = "DEV";
 		break;
@@ -7863,7 +7866,7 @@ sysctl_kmaps_dump(struct sbuf *sb, struct pmap_kernel_map_range *range,
 		break;
 	}
 
-	sbuf_printf(sb, "0x%016lx-0x%016lx r%c%c%c%c %3s %d %d %d %d\n",
+	sbuf_printf(sb, "0x%016lx-0x%016lx r%c%c%c%c %6s %d %d %d %d\n",
 	    range->sva, eva,
 	    (range->attrs & ATTR_S1_AP_RW_BIT) == ATTR_S1_AP_RW ? 'w' : '-',
 	    (range->attrs & ATTR_S1_PXN) != 0 ? '-' : 'x',