svn commit: r354218 - head/sys/dev/ena
John Baldwin
jhb at FreeBSD.org
Fri Nov 1 00:04:55 UTC 2019
On 10/31/19 8:38 AM, Marcin Wojtas wrote:
> Author: mw
> Date: Thu Oct 31 15:38:17 2019
> New Revision: 354218
> URL: https://svnweb.freebsd.org/changeset/base/354218
>
> Log:
> Add WC support for arm64 in the ENA driver
>
> As the pmamp_change_attr() is public on arm64 since r351131, 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.
>
> Differential Revision: https://reviews.freebsd.org/D21931
> Submitted by: Michal Krawczyk <mk at semihalf.com>
> Obtained from: Semihalf
> Sponsored by: Amazon, Inc.
This isn't the right API for this, but the right API isn't ready yet on
arm64. I have a patch to add bus_map_resource support on all platforms
that I'm working on testing, and that will be the right way to request
this in the future once it lands.
--
--
John Baldwin
More information about the svn-src-all
mailing list