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


Groups > linux.kernel > #1590489 > unrolled thread

Re: [PATCH 00/20] PCI: fix config and I/O Address space memory mappings

Started byArnd Bergmann <arnd@arndb.de>
First post2017-03-01 17:30 +0100
Last post2017-03-02 19:10 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH 00/20] PCI: fix config and I/O Address space memory mappings Arnd Bergmann <arnd@arndb.de> - 2017-03-01 17:30 +0100
    Re: [PATCH 00/20] PCI: fix config and I/O Address space memory  mappings Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> - 2017-03-02 19:10 +0100

#1590489 — Re: [PATCH 00/20] PCI: fix config and I/O Address space memory mappings

FromArnd Bergmann <arnd@arndb.de>
Date2017-03-01 17:30 +0100
SubjectRe: [PATCH 00/20] PCI: fix config and I/O Address space memory mappings
Message-ID<tgfiy-5AK-15@gated-at.bofh.it>
On Mon, Feb 27, 2017 at 4:14 PM, Lorenzo Pieralisi
<lorenzo.pieralisi@arm.com> wrote:

> This patch series[1] addresses both issues in one go:
>
> - It updates the pci_remap_iospace() function to use a page mapping
>   that guarantees non-posted write transactions for I/O space addresses
> - It adds a kernel API to remap PCI config space resources, so that
>   architecture can override it with a mapping implementation that
>   guarantees PCI specifications compliancy wrt non-posted write
>   configuration transactions
> - It updates all PCI host controller implementations (and the generic
>   ECAM layer) to use the newly introduced mapping interface
>
> Tested on Juno ECAM based interface (DT/ACPI).

This looks all good to me, nice work!

    Arnd

[toc] | [next] | [standalone]


#1591368 — Re: [PATCH 00/20] PCI: fix config and I/O Address space memory mappings

FromLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Date2017-03-02 19:10 +0100
SubjectRe: [PATCH 00/20] PCI: fix config and I/O Address space memory mappings
Message-ID<tgDkS-63W-15@gated-at.bofh.it>
In reply to#1590489
On Wed, Mar 01, 2017 at 05:18:27PM +0100, Arnd Bergmann wrote:
> On Mon, Feb 27, 2017 at 4:14 PM, Lorenzo Pieralisi
> <lorenzo.pieralisi@arm.com> wrote:
> 
> > This patch series[1] addresses both issues in one go:
> >
> > - It updates the pci_remap_iospace() function to use a page mapping
> >   that guarantees non-posted write transactions for I/O space addresses
> > - It adds a kernel API to remap PCI config space resources, so that
> >   architecture can override it with a mapping implementation that
> >   guarantees PCI specifications compliancy wrt non-posted write
> >   configuration transactions
> > - It updates all PCI host controller implementations (and the generic
> >   ECAM layer) to use the newly introduced mapping interface
> >
> > Tested on Juno ECAM based interface (DT/ACPI).
> 
> This looks all good to me, nice work!

Thanks a lot Arnd. There is a pending issue to complete the series,
that is related to asm-generic/io.h, which is not included by all
arches, therefore, on top of adding a default inline for
pci_remap_cfg_space() in asm-generic/io.h I will have to patch
all arches that do not include asm-generic/io.h (eg x86) to
make the series completely functional - ie I will have to add a

#define pci_remap_cfgspace ioremap_nocache

in every given asm/io.h that does not include <asm-generic/io.h>

Another option would consist in adding the default inline for
pci_remap_cfg_space() in asm-generic/pci_iomap.h which seems to
be included by all arches.

I think the first option, even if it requires more extensive
patching is more complete but please all let me know how
you want me to fix this niggle, I am not sure I grasp the background
policy behind asm-generic files entirely so I'd better ask.

Thanks !
Lorenzo

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web