Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1602871

Re: [PATCH v1] x86/mm, asm-generic: Add IOMMU ioremap_uc() variant default

From "Luis R. Rodriguez" <mcgrof@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH v1] x86/mm, asm-generic: Add IOMMU ioremap_uc() variant default
Date 2017-03-16 23:10 +0100
Message-ID <tlLKO-4LF-15@gated-at.bofh.it> (permalink)
References <pKuwa-7eX-13@gated-at.bofh.it> <tlKvn-3HE-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, Mar 16, 2017 at 03:46:51PM -0500, Bjorn Helgaas wrote:
> On Thu, Jul 9, 2015 at 7:28 PM, Luis R. Rodriguez
> <mcgrof@do-not-panic.com> wrote:
> 
> > +/**
> > + * DOC: ioremap() and ioremap_*() variants
> > + *
> > + * If you have an IOMMU your architecture is expected to have both ioremap()
> > + * and iounmap() implemented otherwise the asm-generic helpers will provide a
> > + * direct mapping.
> > + *
> > + * There are ioremap_*() call variants, if you have no IOMMU we naturally will
> > + * default to direct mapping for all of them, you can override these defaults.
> > + * If you have an IOMMU you are highly encouraged to provide your own
> > + * ioremap variant implementation as there currently is no safe architecture
> > + * agnostic default. To avoid possible improper behaviour default asm-generic
> > + * ioremap_*() variants all return NULL when an IOMMU is available. If you've
> > + * defined your own ioremap_*() variant you must then declare your own
> > + * ioremap_*() variant as defined to itself to avoid the default NULL return.
> 
> Are the references above to "IOMMU" typos?  Should they say "MMU"
> instead, so they match the #ifdef below?

Yes. Patch welcomed.

  Luis

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: [PATCH v1] x86/mm, asm-generic: Add IOMMU ioremap_uc() variant default Bjorn Helgaas <bjorn.helgaas@gmail.com> - 2017-03-16 21:50 +0100
  Re: [PATCH v1] x86/mm, asm-generic: Add IOMMU ioremap_uc() variant  default "Luis R. Rodriguez" <mcgrof@kernel.org> - 2017-03-16 23:10 +0100

csiph-web