From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751678AbdF1Uui (ORCPT ); Wed, 28 Jun 2017 16:50:38 -0400 Received: from terminus.zytor.com ([65.50.211.136]:33787 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751537AbdF1Uub (ORCPT ); Wed, 28 Jun 2017 16:50:31 -0400 Date: Wed, 28 Jun 2017 13:45:54 -0700 From: tip-bot for Thomas Gleixner Message-ID: Cc: bp@alien8.de, helgaas@kernel.org, tglx@linutronix.de, eranian@google.com, peterz@infradead.org, mingo@kernel.org, ak@linux.intel.com, hpa@zytor.com, linux-kernel@vger.kernel.org Reply-To: ak@linux.intel.com, linux-kernel@vger.kernel.org, hpa@zytor.com, tglx@linutronix.de, eranian@google.com, helgaas@kernel.org, bp@alien8.de, mingo@kernel.org, peterz@infradead.org In-Reply-To: <20170316215057.295079391@linutronix.de> References: <20170316215057.295079391@linutronix.de> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/platform] x86/PCI: Select CONFIG_PCI_LOCKLESS_CONFIG Git-Commit-ID: df65c1bcd9b7b639177a5a15da1b8dc3bee4f5fa X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: df65c1bcd9b7b639177a5a15da1b8dc3bee4f5fa Gitweb: http://git.kernel.org/tip/df65c1bcd9b7b639177a5a15da1b8dc3bee4f5fa Author: Thomas Gleixner AuthorDate: Thu, 16 Mar 2017 22:50:07 +0100 Committer: Thomas Gleixner CommitDate: Wed, 28 Jun 2017 22:32:56 +0200 x86/PCI: Select CONFIG_PCI_LOCKLESS_CONFIG All x86 PCI configuration space accessors have either their own serialization or can operate completely lockless (ECAM). Disable the global lock in the generic PCI configuration space accessors. Signed-off-by: Thomas Gleixner Acked-by: Bjorn Helgaas Cc: Andi Kleen Cc: Peter Zijlstra Cc: Stephane Eranian Cc: Borislav Petkov Cc: linux-pci@vger.kernel.org Link: http://lkml.kernel.org/r/20170316215057.295079391@linutronix.de Signed-off-by: Thomas Gleixner --- arch/x86/Kconfig | 1 + arch/x86/pci/common.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 0efb4c9..0652c9f 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -166,6 +166,7 @@ config X86 select HAVE_UNSTABLE_SCHED_CLOCK select HAVE_USER_RETURN_NOTIFIER select IRQ_FORCED_THREADING + select PCI_LOCKLESS_CONFIG select PERF_EVENTS select RTC_LIB select RTC_MC146818_LIB diff --git a/arch/x86/pci/common.c b/arch/x86/pci/common.c index 190e718..cfd1a89 100644 --- a/arch/x86/pci/common.c +++ b/arch/x86/pci/common.c @@ -75,8 +75,8 @@ struct pci_ops pci_root_ops = { }; /* - * This interrupt-safe spinlock protects all accesses to PCI - * configuration space. + * This interrupt-safe spinlock protects all accesses to PCI configuration + * space, except for the mmconfig (ECAM) based operations. */ DEFINE_RAW_SPINLOCK(pci_config_lock);