Page MenuHomeFreeBSD

Add WC support for arm64 in the ENA driver
Needs ReviewPublic

Authored by mk_semihalf.com on Tue, Oct 8, 7:21 AM.

Details

Reviewers
cperciva
mw
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
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

mk_semihalf.com created this revision.Tue, Oct 8, 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