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


Groups > linux.kernel > #1672128 > unrolled thread

Re: [patch 0/7] x86/pci: Switch to lockless ECAM configuration mode

Started byThomas Gleixner <tglx@linutronix.de>
First post2017-06-22 00:30 +0200
Last post2017-06-27 23:00 +0200
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 0/7] x86/pci: Switch to lockless ECAM configuration  mode Thomas Gleixner <tglx@linutronix.de> - 2017-06-22 00:30 +0200
    Re: [patch 0/7] x86/pci: Switch to lockless ECAM configuration mode Bjorn Helgaas <helgaas@kernel.org> - 2017-06-27 23:00 +0200

#1672128 — Re: [patch 0/7] x86/pci: Switch to lockless ECAM configuration mode

FromThomas Gleixner <tglx@linutronix.de>
Date2017-06-22 00:30 +0200
SubjectRe: [patch 0/7] x86/pci: Switch to lockless ECAM configuration mode
Message-ID<tUWil-42Q-1@gated-at.bofh.it>
Andi,

On Mon, 12 Jun 2017, Andi Kleen wrote:
> On Thu, Mar 16, 2017 at 10:50:02PM +0100, Thomas Gleixner wrote:
> > Andi reported that the Intel Uncore performance monitoring suffers from the
> > global pci_lock which protects the generic PCI config space accessors.
> > 
> > This lock can be removed on X86 because all architecture specific config
> > space accessors are either serialized by a seperate lock or can be
> > converted to have their own locking. The mmconfig based access (ECAM) does
> > not require serialization at the config read/write level because the access
> > is a simple byte/word/dword read from or write to the memory mapped
> > configuration space. In that case the lock does not provide any more
> > protection than the hardware provides already.
> > 
> > The series converts the CE4100 PCI low level accessors to use the x86
> > specific pci_config_lock and implements the switch over to lockless ECAM
> > configureation space accesors when the system is capable.
> 
> What's the status of this patch series? The lock contention
> problem is still there.

Just rechecked. It still applies and boots (patch 6/7) dropped.

If Bjorn has no objections I can route it through tip tomorrow.

Thanks,

	tglx

[toc] | [next] | [standalone]


#1676174 — Re: [patch 0/7] x86/pci: Switch to lockless ECAM configuration mode

FromBjorn Helgaas <helgaas@kernel.org>
Date2017-06-27 23:00 +0200
SubjectRe: [patch 0/7] x86/pci: Switch to lockless ECAM configuration mode
Message-ID<tX5Ky-5OX-15@gated-at.bofh.it>
In reply to#1672128
[+cc linux-pci]

On Thu, Jun 22, 2017 at 12:28:09AM +0200, Thomas Gleixner wrote:
> Andi,
> 
> On Mon, 12 Jun 2017, Andi Kleen wrote:
> > On Thu, Mar 16, 2017 at 10:50:02PM +0100, Thomas Gleixner wrote:
> > > Andi reported that the Intel Uncore performance monitoring suffers from the
> > > global pci_lock which protects the generic PCI config space accessors.
> > > 
> > > This lock can be removed on X86 because all architecture specific config
> > > space accessors are either serialized by a seperate lock or can be
> > > converted to have their own locking. The mmconfig based access (ECAM) does
> > > not require serialization at the config read/write level because the access
> > > is a simple byte/word/dword read from or write to the memory mapped
> > > configuration space. In that case the lock does not provide any more
> > > protection than the hardware provides already.
> > > 
> > > The series converts the CE4100 PCI low level accessors to use the x86
> > > specific pci_config_lock and implements the switch over to lockless ECAM
> > > configureation space accesors when the system is capable.
> > 
> > What's the status of this patch series? The lock contention
> > problem is still there.
> 
> Just rechecked. It still applies and boots (patch 6/7) dropped.
> 
> If Bjorn has no objections I can route it through tip tomorrow.

Sorry for the delay.  I use patchwork as my to-do list, and it only
looks at linux-pci.  This series wasn't posted there, so I didn't see
it until now.

I have a couple trivial comments but I think it looks great overall.
Here's my ack if you want to apply it via tip:

Acked-by: Bjorn Helgaas <bhelgaas@google.com>

Bjorn

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web