git: b60c5233770c - main - arm64: busdma_bounce: Only use bufzone if it can meet requested alignment
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 09 Sep 2026 14:23:15 UTC
The branch main has been updated by andrew:
URL: https://cgit.FreeBSD.org/src/commit/?id=b60c5233770cdbec77596c81e031cf874267efd4
commit b60c5233770cdbec77596c81e031cf874267efd4
Author: Sarah Walker <sarah.walker2@arm.com>
AuthorDate: 2026-09-08 03:06:18 +0000
Commit: Andrew Turner <andrew@FreeBSD.org>
CommitDate: 2026-09-08 03:06:18 +0000
arm64: busdma_bounce: Only use bufzone if it can meet requested alignment
Reported by: alc
Tested by: alc
Reviewed by: andrew
Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D59476
---
sys/arm64/arm64/busdma_bounce.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/arm64/arm64/busdma_bounce.c b/sys/arm64/arm64/busdma_bounce.c
index db7e108812aa..7cf62061d56a 100644
--- a/sys/arm64/arm64/busdma_bounce.c
+++ b/sys/arm64/arm64/busdma_bounce.c
@@ -589,7 +589,7 @@ bounce_bus_dmamem_alloc(bus_dma_tag_t dmat, void** vaddr, int flags,
if (bufzone &&
dmat->alloc_size <= PAGE_SIZE &&
- dmat->alloc_alignment <= PAGE_SIZE &&
+ dmat->alloc_alignment <= bufzone->size &&
dmat->common.lowaddr >= ptoa((vm_paddr_t)Maxmem) &&
attr == VM_MEMATTR_DEFAULT) {
*vaddr = uma_zalloc(bufzone->umazone, mflags);