From: Mark Rutland <mark.rutland@arm.com>
To: Greg KH <gregkh@linuxfoundation.org>
Cc: Jeremy Linton <jeremy.linton@arm.com>,
linux-usb@vger.kernel.org, stern@rowland.harvard.edu,
git@thegavinli.com, jarkko.sakkinen@linux.intel.com,
linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH] usb: usbfs: correct kernel->user page attribute mismatch
Date: Fri, 1 May 2020 11:37:12 +0100 [thread overview]
Message-ID: <20200501103712.GA51954@C02TD0UTHF1T.local> (raw)
In-Reply-To: <20200501070500.GA887524@kroah.com>
On Fri, May 01, 2020 at 09:05:00AM +0200, Greg KH wrote:
> On Thu, Apr 30, 2020 at 04:19:22PM -0500, Jeremy Linton wrote:
> > On arm64, and possibly other architectures, requesting
> > IO coherent memory may return Normal-NC if the underlying
> > hardware isn't coherent. If these pages are then
> > remapped into userspace as Normal, that defeats the
> > purpose of getting Normal-NC, as well as resulting in
> > mappings with differing cache attributes.
>
> What is "Normal-NC"?
Arm terminology for "Normal Non-Cacheable"; it might be better to say
something like:
On some architectures (e.g. arm64) an IO coherent mapping may use
non-cachable attributes if the relevant device is cache coherent.
If userspace mappings are cacheable, these may not be coherent with
non-cacheable mappings. On arm64 this is the case for Normal-NC and
Normal (cacheable) mappings.
Thanks,
Mark.
next prev parent reply other threads:[~2020-05-01 10:37 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-30 21:19 Jeremy Linton
2020-05-01 7:05 ` Greg KH
2020-05-01 10:37 ` Mark Rutland [this message]
2020-05-01 10:54 ` Marc Zyngier
2020-05-01 10:55 ` Greg KH
2020-05-01 15:36 ` Robin Murphy
2020-05-01 15:47 ` Jeremy Linton
2020-05-04 7:13 ` Greg KH
2020-05-04 13:21 ` Jeremy Linton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200501103712.GA51954@C02TD0UTHF1T.local \
--to=mark.rutland@arm.com \
--cc=git@thegavinli.com \
--cc=gregkh@linuxfoundation.org \
--cc=jarkko.sakkinen@linux.intel.com \
--cc=jeremy.linton@arm.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=stern@rowland.harvard.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®