git: 8fdaa1b16367 - main - busdma_bounce: Allocate bounce buffers as unprotected
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 18 Jun 2026 16:05:04 UTC
The branch main has been updated by andrew:
URL: https://cgit.FreeBSD.org/src/commit/?id=8fdaa1b16367d809bca8d4d3ac5e08443353eac1
commit 8fdaa1b16367d809bca8d4d3ac5e08443353eac1
Author: Sarah Walker <sarah.walker2@arm.com>
AuthorDate: 2026-06-18 15:34:14 +0000
Commit: Andrew Turner <andrew@FreeBSD.org>
CommitDate: 2026-06-18 16:04:23 +0000
busdma_bounce: Allocate bounce buffers as unprotected
Reviewed by: andrew
Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D56519
---
sys/kern/subr_busdma_bounce.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/sys/kern/subr_busdma_bounce.c b/sys/kern/subr_busdma_bounce.c
index 2774128a1ae5..bf9524c6eee5 100644
--- a/sys/kern/subr_busdma_bounce.c
+++ b/sys/kern/subr_busdma_bounce.c
@@ -283,11 +283,11 @@ alloc_bounce_pages(bus_dma_tag_t dmat, u_int numpages)
break;
#ifdef dmat_domain
bpage->vaddr = contigmalloc_domainset(PAGE_SIZE,
- M_BOUNCE, DOMAINSET_PREF(bz->domain), M_NOWAIT,
- 0ul, bz->lowaddr, PAGE_SIZE, 0);
+ M_BOUNCE, DOMAINSET_PREF(bz->domain),
+ M_NOWAIT | M_UNPROTECTED, 0ul, bz->lowaddr, PAGE_SIZE, 0);
#else
bpage->vaddr = contigmalloc(PAGE_SIZE, M_BOUNCE,
- M_NOWAIT, 0ul, bz->lowaddr, PAGE_SIZE, 0);
+ M_NOWAIT | M_UNPROTECTED, 0ul, bz->lowaddr, PAGE_SIZE, 0);
#endif
if (bpage->vaddr == NULL) {
free(bpage, M_BUSDMA);