Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Oct 2019 17:04:49 -0700
From:      John Baldwin <jhb@FreeBSD.org>
To:        Marcin Wojtas <mw@FreeBSD.org>, src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r354218 - head/sys/dev/ena
Message-ID:  <2fc49b6e-0294-cb5f-bbca-8a53f6aba036@FreeBSD.org>
In-Reply-To: <201910311538.x9VFcHPE053035@repo.freebsd.org>
References:  <201910311538.x9VFcHPE053035@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2fc49b6e-0294-cb5f-bbca-8a53f6aba036>