Page MenuHomeFreeBSD

sfxge(4): add efsys macro to get memory region size
ClosedPublic

Authored by arybchik on Nov 21 2018, 11:38 AM.
Tags
None
Referenced Files
F114717136: D18170.id51197.diff
Tue, Apr 15, 9:00 PM
Unknown Object (File)
Mon, Apr 14, 11:11 AM
Unknown Object (File)
Feb 17 2025, 2:45 AM
Unknown Object (File)
Feb 1 2025, 9:49 AM
Unknown Object (File)
Jan 16 2025, 7:07 AM
Unknown Object (File)
Nov 30 2024, 3:24 AM
Unknown Object (File)
Oct 27 2024, 2:16 AM
Unknown Object (File)
Oct 4 2024, 11:36 PM
Subscribers

Details

Summary

EFSYS_MEM_SIZE() reports the DMA mapped size of an efsys_mem_t
allocated region (the allocation size may be different due to
memory allocator and DMA alignment restrictions).

This ensures that common code internals have explicit knowledge
of the usable size of DMA mapped memory regions.

Submitted by: Andy Moreton <amoreton at solarflare.com>
Sponsored by: Solarflare Communications, Inc.

Test Plan

amd64 tinderbox kernel builds tested
driver loaded/unloaded, interfaces up/down, traffic works fine

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 21028
Build 20391: arc lint + arc unit

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Nov 27 2018, 1:02 PM
This revision was automatically updated to reflect the committed changes.