Page MenuHomeFreeBSD

Add WC support for arm64 in the ENA driver
ClosedPublic

Authored by mk_semihalf.com on Oct 8 2019, 7:21 AM.
Referenced Files
Unknown Object (File)
Tue, Nov 5, 11:17 PM
Unknown Object (File)
Tue, Oct 29, 3:31 PM
Unknown Object (File)
Oct 7 2024, 8:26 PM
Unknown Object (File)
Oct 4 2024, 8:18 PM
Unknown Object (File)
Oct 4 2024, 5:56 PM
Unknown Object (File)
Oct 2 2024, 7:03 AM
Unknown Object (File)
Oct 2 2024, 4:36 AM
Unknown Object (File)
Oct 2 2024, 12:15 AM

Details

Summary

As the pmamp_change_attr() is public on arm64 since D20787, it can be
used on the arm64 to map memory range as with the write combined
attribute.

It requires the driver to use generic VM_MEMATTR_WRITE_COMBINING flag
instead of the x86 specific PAT_WRITE_COMBINING.

Submitted by: Michal Krawczyk <mk@semihalf.com>
Obtained from: Semihalf
Sponsored by: Amazon, Inc.

Diff Detail

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

Event Timeline

The pmap_change_attr() API is private on arm64

It hasn't been private since D20787 landed! (Was required for GPU drivers.)

mk_semihalf.com edited the summary of this revision. (Show Details)

Due to pmap_change_attr() being public on arm64, the patch was reworked to use it instead

This revision was not accepted when it landed; it landed in state Needs Review.Oct 31 2019, 3:38 PM
This revision was automatically updated to reflect the committed changes.