Re: [PATCH] MIPS: Change definition of cpu_relax() for Loongson-3

2018-07-23 Thread Paul Burton
Hi Huacai, On Sat, Jul 21, 2018 at 09:35:59AM +0800, 陈华才 wrote: > SFB can improve the memory bandwidth as much as 30%, and we are > planning to enable SFB by default. So, we want to control cpu_relax() > under CONFIG_CPU_LOONGSON3, not under CONFIG_LOONGSON3_ENHANCEMENT. OK, applied to mips-next

Re: [PATCH] MIPS: Change definition of cpu_relax() for Loongson-3

2018-07-23 Thread Paul Burton
Hi Huacai, On Sat, Jul 21, 2018 at 09:35:59AM +0800, 陈华才 wrote: > SFB can improve the memory bandwidth as much as 30%, and we are > planning to enable SFB by default. So, we want to control cpu_relax() > under CONFIG_CPU_LOONGSON3, not under CONFIG_LOONGSON3_ENHANCEMENT. OK, applied to mips-next

Re: [PATCH] MIPS: Change definition of cpu_relax() for Loongson-3

2018-07-20 Thread 陈华才
"Peter Zijlstra"; "Boqun Feng"; "Nicholas Piggin"; "David Howells"; "Jade Alglave"; "Luc Maranget"; "Paul E. McKenney"; "Akira Yokosawa"; "LKML"; Subject: Re: [PATCH] MIPS: Change definition of cpu_rel

Re: [PATCH] MIPS: Change definition of cpu_relax() for Loongson-3

2018-07-20 Thread 陈华才
"Peter Zijlstra"; "Boqun Feng"; "Nicholas Piggin"; "David Howells"; "Jade Alglave"; "Luc Maranget"; "Paul E. McKenney"; "Akira Yokosawa"; "LKML"; Subject: Re: [PATCH] MIPS: Change definition of cpu_rel

Re: [PATCH] MIPS: Change definition of cpu_relax() for Loongson-3

2018-07-19 Thread Paul Burton
Hi Huacai, On Wed, Jul 18, 2018 at 09:15:46AM +0800, Huacai Chen wrote: > >> diff --git a/arch/mips/include/asm/processor.h > >> b/arch/mips/include/asm/processor.h > >> index af34afb..a8c4a3a 100644 > >> --- a/arch/mips/include/asm/processor.h > >> +++ b/arch/mips/include/asm/processor.h > >>

Re: [PATCH] MIPS: Change definition of cpu_relax() for Loongson-3

2018-07-19 Thread Paul Burton
Hi Huacai, On Wed, Jul 18, 2018 at 09:15:46AM +0800, Huacai Chen wrote: > >> diff --git a/arch/mips/include/asm/processor.h > >> b/arch/mips/include/asm/processor.h > >> index af34afb..a8c4a3a 100644 > >> --- a/arch/mips/include/asm/processor.h > >> +++ b/arch/mips/include/asm/processor.h > >>

Re: [PATCH] MIPS: Change definition of cpu_relax() for Loongson-3

2018-07-17 Thread Huacai Chen
On Wed, Jul 18, 2018 at 1:52 AM, Paul Burton wrote: > Hi Huacai, > > On Fri, Jul 13, 2018 at 03:37:57PM +0800, Huacai Chen wrote: >> Linux expects that if a CPU modifies a memory location, then that >> modification will eventually become visible to other CPUs in the system. >> >> On Loongson-3

Re: [PATCH] MIPS: Change definition of cpu_relax() for Loongson-3

2018-07-17 Thread Huacai Chen
On Wed, Jul 18, 2018 at 1:52 AM, Paul Burton wrote: > Hi Huacai, > > On Fri, Jul 13, 2018 at 03:37:57PM +0800, Huacai Chen wrote: >> Linux expects that if a CPU modifies a memory location, then that >> modification will eventually become visible to other CPUs in the system. >> >> On Loongson-3

Re: [PATCH] MIPS: Change definition of cpu_relax() for Loongson-3

2018-07-17 Thread Peter Zijlstra
On Tue, Jul 17, 2018 at 10:52:32AM -0700, Paul Burton wrote: > On Fri, Jul 13, 2018 at 03:37:57PM +0800, Huacai Chen wrote: > > Linux expects that if a CPU modifies a memory location, then that > > modification will eventually become visible to other CPUs in the system. > > > > On Loongson-3

Re: [PATCH] MIPS: Change definition of cpu_relax() for Loongson-3

2018-07-17 Thread Peter Zijlstra
On Tue, Jul 17, 2018 at 10:52:32AM -0700, Paul Burton wrote: > On Fri, Jul 13, 2018 at 03:37:57PM +0800, Huacai Chen wrote: > > Linux expects that if a CPU modifies a memory location, then that > > modification will eventually become visible to other CPUs in the system. > > > > On Loongson-3

Re: [PATCH] MIPS: Change definition of cpu_relax() for Loongson-3

2018-07-17 Thread Paul E. McKenney
On Tue, Jul 17, 2018 at 10:52:32AM -0700, Paul Burton wrote: > Hi Huacai, > > On Fri, Jul 13, 2018 at 03:37:57PM +0800, Huacai Chen wrote: > > Linux expects that if a CPU modifies a memory location, then that > > modification will eventually become visible to other CPUs in the system. > > > > On

Re: [PATCH] MIPS: Change definition of cpu_relax() for Loongson-3

2018-07-17 Thread Paul E. McKenney
On Tue, Jul 17, 2018 at 10:52:32AM -0700, Paul Burton wrote: > Hi Huacai, > > On Fri, Jul 13, 2018 at 03:37:57PM +0800, Huacai Chen wrote: > > Linux expects that if a CPU modifies a memory location, then that > > modification will eventually become visible to other CPUs in the system. > > > > On

Re: [PATCH] MIPS: Change definition of cpu_relax() for Loongson-3

2018-07-17 Thread Paul Burton
Hi Huacai, On Fri, Jul 13, 2018 at 03:37:57PM +0800, Huacai Chen wrote: > Linux expects that if a CPU modifies a memory location, then that > modification will eventually become visible to other CPUs in the system. > > On Loongson-3 processor with SFB (Store Fill Buffer), loads may be >

Re: [PATCH] MIPS: Change definition of cpu_relax() for Loongson-3

2018-07-17 Thread Paul Burton
Hi Huacai, On Fri, Jul 13, 2018 at 03:37:57PM +0800, Huacai Chen wrote: > Linux expects that if a CPU modifies a memory location, then that > modification will eventually become visible to other CPUs in the system. > > On Loongson-3 processor with SFB (Store Fill Buffer), loads may be >