Page MenuHomeFreeBSD

Add WC support for arm64 in the ENA driver
ClosedPublic

Authored by mk_semihalf.com on Oct 8 2019, 7:21 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
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

mk_semihalf.com created this revision.Oct 8 2019, 7:21 AM

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.