Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1536598
| From | Pan Xinhui <xinhui@linux.vnet.ibm.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v8 2/6] powerpc: pSeries/Kconfig: Add qspinlock build config |
| Date | 2016-12-06 03:20 +0100 |
| Message-ID | <sLdwl-4gv-1@gated-at.bofh.it> (permalink) |
| References | <sKYGZ-3jJ-7@gated-at.bofh.it> <sL0fM-4nY-31@gated-at.bofh.it> <sLcgV-3kv-11@gated-at.bofh.it> <sLcJX-3IJ-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
在 2016/12/6 09:24, Pan Xinhui 写道: > > > 在 2016/12/6 08:58, Boqun Feng 写道: >> On Mon, Dec 05, 2016 at 10:19:22AM -0500, Pan Xinhui wrote: >>> pSeries/powerNV will use qspinlock from now on. >>> >>> Signed-off-by: Pan Xinhui <xinhui.pan@linux.vnet.ibm.com> >>> --- >>> arch/powerpc/platforms/pseries/Kconfig | 8 ++++++++ >>> 1 file changed, 8 insertions(+) >>> >>> diff --git a/arch/powerpc/platforms/pseries/Kconfig b/arch/powerpc/platforms/pseries/Kconfig >>> index bec90fb..8a87d06 100644 >>> --- a/arch/powerpc/platforms/pseries/Kconfig >>> +++ b/arch/powerpc/platforms/pseries/Kconfig >> >> Why here? Not arch/powerpc/platforms/Kconfig? >> >>> @@ -23,6 +23,14 @@ config PPC_PSERIES >>> select PPC_DOORBELL >>> default y >>> >>> +config ARCH_USE_QUEUED_SPINLOCKS >>> + default y >>> + bool "Enable qspinlock" >> >> I think you just enable qspinlock by default for all PPC platforms. I >> guess you need to put >> >> depends on PPC_PSERIES || PPC_POWERNV >> >> here to achieve what you mean in you commit message. >> oh, yes, need depends on PPC_PSERIES || PPC_POWERNV. > yes, another good way. > I prefer to put it in pseries/Kconfig as same as pv-qspinlocks config. > when we build nv, it still include pSeries's config anyway. > > thanks > xinhui > >> Regards, >> Boqun >> >>> + help >>> + Enabling this option will let kernel use qspinlock which is a kind of >>> + fairlock. It has shown a good performance improvement on x86 and also ppc >>> + especially in high contention cases. >>> + >>> config PPC_SPLPAR >>> depends on PPC_PSERIES >>> bool "Support for shared-processor logical partitions" >>> -- >>> 2.4.11 >>>
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v8 0/6] Implement qspinlock/pv-qspinlock on ppc Pan Xinhui <xinhui.pan@linux.vnet.ibm.com> - 2016-12-05 11:30 +0100
[PATCH v8 4/6] powerpc/pv-qspinlock: powerpc support pv-qspinlock Pan Xinhui <xinhui.pan@linux.vnet.ibm.com> - 2016-12-05 12:10 +0100
[PATCH v8 2/6] powerpc: pSeries/Kconfig: Add qspinlock build config Pan Xinhui <xinhui.pan@linux.vnet.ibm.com> - 2016-12-05 13:10 +0100
Re: [PATCH v8 2/6] powerpc: pSeries/Kconfig: Add qspinlock build config Boqun Feng <boqun.feng@gmail.com> - 2016-12-06 02:00 +0100
Re: [PATCH v8 2/6] powerpc: pSeries/Kconfig: Add qspinlock build config Pan Xinhui <xinhui@linux.vnet.ibm.com> - 2016-12-06 02:30 +0100
Re: [PATCH v8 2/6] powerpc: pSeries/Kconfig: Add qspinlock build config Pan Xinhui <xinhui@linux.vnet.ibm.com> - 2016-12-06 03:20 +0100
[PATCH v8 1/6] powerpc/qspinlock: powerpc support qspinlock Pan Xinhui <xinhui.pan@linux.vnet.ibm.com> - 2016-12-05 15:00 +0100
Re: [PATCH v8 1/6] powerpc/qspinlock: powerpc support qspinlock Boqun Feng <boqun.feng@gmail.com> - 2016-12-06 01:50 +0100
Re: [PATCH v8 1/6] powerpc/qspinlock: powerpc support qspinlock Pan Xinhui <xinhui@linux.vnet.ibm.com> - 2016-12-06 02:20 +0100
csiph-web