Page MenuHomeFreeBSD

LinuxKPI: SKBuff: remove DMA32/36 workaround tunable
Needs ReviewPublic

Authored by bz on Thu, Apr 24, 12:02 AM.
Tags
None
Referenced Files
F115611665: D49990.id154193.diff
Fri, Apr 25, 11:48 PM
Unknown Object (File)
Fri, Apr 25, 11:20 AM
Unknown Object (File)
Thu, Apr 24, 10:34 PM
Unknown Object (File)
Thu, Apr 24, 1:16 AM
Unknown Object (File)
Thu, Apr 24, 1:16 AM

Details

Reviewers
jhb
Summary

Theory has it that with the LinuxKPI alloc code now providing
physically contiguous memory we should be fine so we can remove
the entire compat code.

For this to happen busdma bounce needs to be able to bounce multiple
contiguous pages with nseg=1. Removing this code the LinuxKPI debug
counter about failed mappings raises quickly. See the discussion in
D45813 for some more info.

Older Intel cards do have a 36bit DMA limit, rtw88 seems to still have
a 32bit limit despite PCIe.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

Diff Detail

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

Event Timeline

bz requested review of this revision.Thu, Apr 24, 12:02 AM
adrian added a subscriber: adrian.

yeah lots of pcie wifi hardware has a 36 bit dma limit; it saves on gates :-P

This revision is now accepted and ready to land.Thu, Apr 24, 12:46 AM
This revision now requires review to proceed.Thu, Apr 24, 7:38 AM