Page MenuHomeFreeBSD

busdma: tidy bus_dma_run_filter() functions
ClosedPublic

Authored by mhorne on Dec 4 2023, 3:20 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 1, 8:09 AM
Unknown Object (File)
Fri, Sep 25, 9:40 AM
Unknown Object (File)
Sun, Sep 20, 10:29 PM
Unknown Object (File)
Sep 7 2026, 7:18 PM
Unknown Object (File)
Sep 6 2026, 10:16 PM
Unknown Object (File)
Sep 6 2026, 8:06 AM
Unknown Object (File)
Sep 2 2026, 11:11 PM
Unknown Object (File)
Aug 28 2026, 1:08 PM

Details

Summary

After removing filter functionality, the naming doesn't clearly
represent what the function does, so try to address this. Include some
code clarity and style improvements.

Create a common version in subr_busdma_bounce.c, used by most
implementations. powerpc still needs its own version of the function,
due to its dmat->iommu == NULL check.

No functional change intended.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 54768
Build 51657: arc lint + arc unit

Event Timeline

sys/arm64/arm64/busdma_bounce.c
228–234

Here it seems like the logic is changed, but it is not. In practice BF_COULD_BOUNCE is set whenever the tag's alignment requirement is > 1.

This revision is now accepted and ready to land.Dec 6 2023, 4:13 PM
This revision was automatically updated to reflect the committed changes.