Page MenuHomeFreeBSD

arm64: busdma_bounce: fix BUS_DMA_ALLOCNOW + BOUNCE for non-paged aligned requests
ClosedPublic

Authored by kevans on Nov 9 2019, 4:12 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 9, 10:45 PM
Unknown Object (File)
Tue, Apr 9, 9:58 PM
Unknown Object (File)
Tue, Apr 9, 9:57 PM
Unknown Object (File)
Tue, Apr 9, 9:56 PM
Unknown Object (File)
Feb 3 2024, 8:14 AM
Unknown Object (File)
Feb 3 2024, 5:11 AM
Unknown Object (File)
Jan 17 2024, 2:51 PM
Unknown Object (File)
Jan 7 2024, 4:21 PM
Subscribers

Details

Summary

For any size that isn't page-aligned, we end up not pre-allocating enough for a single mapping because we truncate the size instead of rounding up to make sure the last bit is accounted for, leaving us one page shy of what we need.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kevans retitled this revision from arm64: busdma_bounce: fix BUS_DMA_ALLOCNOW + BOUNCE for sub-page sizes to arm64: busdma_bounce: fix BUS_DMA_ALLOCNOW + BOUNCE for non-paged aligned requests.
kevans edited the summary of this revision. (Show Details)

I add Scott long to reviewers

This revision was not accepted when it landed; it landed in state Needs Review.Nov 14 2019, 6:39 PM
This revision was automatically updated to reflect the committed changes.