Re: [RFC v6 26/62] powerpc: Program HPTE key protection bits

2017-07-20 Thread Aneesh Kumar K.V
Ram Pai writes: > Map the PTE protection key bits to the HPTE key protection bits, > while creating HPTE entries. > Reviewed-by: Aneesh Kumar K.V > Signed-off-by: Ram Pai > --- >

Re: [PATCH 1/4] fs/dcache: Limit numbers of negative dentries

2017-07-20 Thread Miklos Szeredi
On Wed, Jul 19, 2017 at 10:42 PM, Waiman Long wrote: > On 07/19/2017 04:24 PM, Miklos Szeredi wrote: >> On Mon, Jul 17, 2017 at 3:39 PM, Waiman Long wrote: >>> The number of positive dentries is limited by the number of files >>> in the filesystems. The

Re: [RFC v6 27/62] powerpc: helper to validate key-access permissions of a pte

2017-07-20 Thread Aneesh Kumar K.V
Ram Pai writes: > helper function that checks if the read/write/execute is allowed > on the pte. > > Signed-off-by: Ram Pai > --- > arch/powerpc/include/asm/book3s/64/pgtable.h |4 +++ > arch/powerpc/include/asm/pkeys.h | 12 +

Re: [PATCH v3 3/5] dax: use common 4k zero page for dax mmap reads

2017-07-20 Thread Jan Kara
On Wed 19-07-17 10:26:45, Ross Zwisler wrote: > On Wed, Jul 19, 2017 at 05:33:14PM +0200, Jan Kara wrote: > > On Wed 28-06-17 16:01:50, Ross Zwisler wrote: > > > Another major change is that we remove dax_pfn_mkwrite() from our fault > > > flow, and instead rely on the page fault itself to make

Re: [PATCH v3 1/6] Documentation: perf: hisi: Documentation for HiSilicon SoC PMU driver

2017-07-20 Thread Zhangshaokun
Hi Jonathan, Thanks for your comments firstly. On 2017/7/19 17:17, Jonathan Cameron wrote: > On Tue, 18 Jul 2017 15:59:54 +0800 > Shaokun Zhang wrote: > >> This patch adds documentation for the uncore PMUs on HiSilicon SoC. >> >> Signed-off-by: Shaokun Zhang

Re: [PATCH v3 2/6] perf: hisi: Add support for HiSilicon SoC uncore PMU driver

2017-07-20 Thread Zhangshaokun
Hi Jonathan On 2017/7/19 17:19, Jonathan Cameron wrote: > On Tue, 18 Jul 2017 15:59:55 +0800 > Shaokun Zhang wrote: > >> This patch adds support HiSilicon SoC uncore PMU driver framework and >> interfaces. >> >> Signed-off-by: Shaokun Zhang

Re: [PATCH v3 3/6] perf: hisi: Add support for HiSilicon SoC L3C PMU driver

2017-07-20 Thread Zhangshaokun
Hi Jonathan, On 2017/7/19 17:28, Jonathan Cameron wrote: > On Tue, 18 Jul 2017 15:59:56 +0800 > Shaokun Zhang wrote: > >> This patch adds support for L3C PMU driver in HiSilicon SoC chip, Each >> L3C has own control, counter and interrupt registers and is an separate

Re: [PATCH v3 2/6] perf: hisi: Add support for HiSilicon SoC uncore PMU driver

2017-07-20 Thread Zhangshaokun
Hi Jonathan On 2017/7/20 21:49, Jonathan Cameron wrote: > On Thu, 20 Jul 2017 21:03:19 +0800 > Zhangshaokun wrote: > >> Hi Jonathan >> >> On 2017/7/19 17:19, Jonathan Cameron wrote: >>> On Tue, 18 Jul 2017 15:59:55 +0800 >>> Shaokun Zhang

Re: [PATCH 1/4] fs/dcache: Limit numbers of negative dentries

2017-07-20 Thread Waiman Long
On 07/20/2017 03:20 AM, Miklos Szeredi wrote: > On Wed, Jul 19, 2017 at 10:42 PM, Waiman Long wrote: >> @@ -603,7 +698,13 @@ static struct dentry *dentry_kill(struct dentry *dentry) if (!IS_ROOT(dentry)) { parent =

Re: [PATCH] documentation: Fix two-CPU control-dependency example

2017-07-20 Thread Paul E. McKenney
On Thu, Jul 20, 2017 at 02:14:34PM +0800, Boqun Feng wrote: > On Wed, Jul 19, 2017 at 10:47:04PM -0700, Paul E. McKenney wrote: > [...] > > > Hi Paul, > > > > > > I know the compiler could optimize atomics in very interesting ways, but > > > this case is about volatile, so I guess our case is

Re: [PATCH v3 2/6] perf: hisi: Add support for HiSilicon SoC uncore PMU driver

2017-07-20 Thread Jonathan Cameron
On Thu, 20 Jul 2017 21:03:19 +0800 Zhangshaokun wrote: > Hi Jonathan > > On 2017/7/19 17:19, Jonathan Cameron wrote: > > On Tue, 18 Jul 2017 15:59:55 +0800 > > Shaokun Zhang wrote: > > > >> This patch adds support HiSilicon SoC uncore

Re: [RFC v6 11/62] powerpc: initial pkey plumbing

2017-07-20 Thread Aneesh Kumar K.V
Ram Pai writes: > basic setup to initialize the pkey system. Only 64K kernel in HPT > mode, enables the pkey system. > > Signed-off-by: Ram Pai > --- > arch/powerpc/Kconfig | 16 ++ > arch/powerpc/include/asm/mmu_context.h |

Re: [PATCH] documentation: Fix two-CPU control-dependency example

2017-07-20 Thread Boqun Feng
On Wed, Jul 19, 2017 at 10:47:04PM -0700, Paul E. McKenney wrote: [...] > > Hi Paul, > > > > I know the compiler could optimize atomics in very interesting ways, but > > this case is about volatile, so I guess our case is still fine? ;-) > > Hello, Boqun, > > When I asked that question, the

Re: [PATCH 101/102] Documentation: devres: add explicit exclusive/shared reset control request calls

2017-07-20 Thread Lee Jones
On Wed, 19 Jul 2017, Philipp Zabel wrote: > Commit a53e35db70d1 ("reset: Ensure drivers are explicit when requesting > reset lines") started to transition the reset control request API calls > to explicitly state whether the driver needs exclusive or shared reset > control behavior. Add the

Re: [PATCH v3 1/6] Documentation: perf: hisi: Documentation for HiSilicon SoC PMU driver

2017-07-20 Thread Will Deacon
On Thu, Jul 20, 2017 at 08:54:36PM +0800, Zhangshaokun wrote: > On 2017/7/19 17:17, Jonathan Cameron wrote: > >> +Super CPU cluster (SCCL) and is made up of 6 CCLs. Each SCCL has two HHAs > >> +(0 - 1) and four DDRCs (0 - 3), respectively. > >> + > >> +HiSilicon SoC uncore PMU driver > >>

Re: [PATCH v3 3/5] dax: use common 4k zero page for dax mmap reads

2017-07-20 Thread Ross Zwisler
On Thu, Jul 20, 2017 at 12:27:23PM +0200, Jan Kara wrote: > On Wed 19-07-17 10:26:45, Ross Zwisler wrote: > > On Wed, Jul 19, 2017 at 05:33:14PM +0200, Jan Kara wrote: > > > On Wed 28-06-17 16:01:50, Ross Zwisler wrote: > > > > Another major change is that we remove dax_pfn_mkwrite() from our

Re: [PATCH] documentation: Fix two-CPU control-dependency example

2017-07-20 Thread Akira Yokosawa
On 2017/07/20 14:47, Paul E. McKenney wrote: > On Thu, Jul 20, 2017 at 09:31:41AM +0800, Boqun Feng wrote: >> On Wed, Jul 19, 2017 at 02:56:02PM -0700, Paul E. McKenney wrote: >>> On Thu, Jul 20, 2017 at 06:33:26AM +0900, Akira Yokosawa wrote: On 2017/07/20 2:43, Paul E. McKenney wrote: >

Re: [PATCH v3 1/6] Documentation: perf: hisi: Documentation for HiSilicon SoC PMU driver

2017-07-20 Thread Will Deacon
On Thu, Jul 20, 2017 at 02:08:47PM +0100, Will Deacon wrote: > On Thu, Jul 20, 2017 at 08:54:36PM +0800, Zhangshaokun wrote: > > On 2017/7/19 17:17, Jonathan Cameron wrote: > > >> +Super CPU cluster (SCCL) and is made up of 6 CCLs. Each SCCL has two > > >> HHAs > > >> +(0 - 1) and four DDRCs (0 -

Re: [PATCH 1/4] fs/dcache: Limit numbers of negative dentries

2017-07-20 Thread Miklos Szeredi
On Thu, Jul 20, 2017 at 4:21 PM, Waiman Long wrote: > On 07/20/2017 03:20 AM, Miklos Szeredi wrote: >> On Wed, Jul 19, 2017 at 10:42 PM, Waiman Long wrote: >>> > @@ -603,7 +698,13 @@ static struct dentry *dentry_kill(struct dentry > *dentry) >

Re: [PATCH 1/4] fs/dcache: Limit numbers of negative dentries

2017-07-20 Thread Waiman Long
On 07/20/2017 11:08 AM, Miklos Szeredi wrote: > On Thu, Jul 20, 2017 at 4:21 PM, Waiman Long wrote: >> On 07/20/2017 03:20 AM, Miklos Szeredi wrote: >>> On Wed, Jul 19, 2017 at 10:42 PM, Waiman Long wrote: >> @@ -603,7 +698,13 @@ static struct dentry

Re: [PATCH] documentation: Fix two-CPU control-dependency example

2017-07-20 Thread Paul E. McKenney
On Thu, Jul 20, 2017 at 09:55:31PM +0900, Akira Yokosawa wrote: > On 2017/07/20 14:47, Paul E. McKenney wrote: > > On Thu, Jul 20, 2017 at 09:31:41AM +0800, Boqun Feng wrote: > >> On Wed, Jul 19, 2017 at 02:56:02PM -0700, Paul E. McKenney wrote: > >>> On Thu, Jul 20, 2017 at 06:33:26AM +0900,

Re: [PATCH v3 1/5] mm: add vm_insert_mixed_mkwrite()

2017-07-20 Thread Ross Zwisler
On Thu, Jul 20, 2017 at 11:26:16AM -0400, Vivek Goyal wrote: > On Wed, Jun 28, 2017 at 04:01:48PM -0600, Ross Zwisler wrote: > > To be able to use the common 4k zero page in DAX we need to have our PTE > > fault path look more like our PMD fault path where a PTE entry can be > > marked as dirty

Re: [PATCH v3 1/5] mm: add vm_insert_mixed_mkwrite()

2017-07-20 Thread Vivek Goyal
On Wed, Jun 28, 2017 at 04:01:48PM -0600, Ross Zwisler wrote: > To be able to use the common 4k zero page in DAX we need to have our PTE > fault path look more like our PMD fault path where a PTE entry can be > marked as dirty and writeable as it is first inserted, rather than waiting > for a

Re: [PATCH] documentation: Fix two-CPU control-dependency example

2017-07-20 Thread Akira Yokosawa
On 2017/07/20 14:42:34 -0700, Paul E. McKenney wrote: > On Fri, Jul 21, 2017 at 06:12:56AM +0900, Akira Yokosawa wrote: >> On 2017/07/20 09:11:52AM -0700, Paul E. McKenney wrote: >>> On Thu, Jul 20, 2017 at 09:55:31PM +0900, Akira Yokosawa wrote: On 2017/07/20 14:47, Paul E. McKenney wrote:

[PATCH] docs: submitting-patches - change non-ascii character to ascii

2017-07-20 Thread frowand . list
From: Frank Rowand Documentation/process/submitting-patches.rst contains a non-ascii character. Change it to the ascii equivalent. Signed-off-by: Frank Rowand --- Documentation/process/submitting-patches.rst | 2 +- 1 file changed, 1

Re: [RFC v6 11/62] powerpc: initial pkey plumbing

2017-07-20 Thread Ram Pai
On Thu, Jul 20, 2017 at 11:34:10AM +0530, Aneesh Kumar K.V wrote: > Ram Pai writes: > > > basic setup to initialize the pkey system. Only 64K kernel in HPT > > mode, enables the pkey system. > > > > Signed-off-by: Ram Pai > > --- > >

Re: [PATCH] documentation: Fix two-CPU control-dependency example

2017-07-20 Thread Paul E. McKenney
On Fri, Jul 21, 2017 at 07:52:03AM +0900, Akira Yokosawa wrote: > On 2017/07/20 14:42:34 -0700, Paul E. McKenney wrote: > > On Fri, Jul 21, 2017 at 06:12:56AM +0900, Akira Yokosawa wrote: > >> On 2017/07/20 09:11:52AM -0700, Paul E. McKenney wrote: > >>> On Thu, Jul 20, 2017 at 09:55:31PM +0900,

Re: [RFC v6 27/62] powerpc: helper to validate key-access permissions of a pte

2017-07-20 Thread Ram Pai
On Thu, Jul 20, 2017 at 12:12:47PM +0530, Aneesh Kumar K.V wrote: > Ram Pai writes: > > > helper function that checks if the read/write/execute is allowed > > on the pte. > > > > Signed-off-by: Ram Pai > > --- > >

Re: [PATCH] documentation: Fix two-CPU control-dependency example

2017-07-20 Thread Boqun Feng
On Thu, Jul 20, 2017 at 04:07:14PM -0700, Paul E. McKenney wrote: [...] > > > > So if I respin the patch with the extern, would you still feel reluctant? > > Yes, because I am not seeing how this change helps. What is this telling > the reader that the original did not, and how does it help the

Re: [PATCH] documentation: Fix two-CPU control-dependency example

2017-07-20 Thread Akira Yokosawa
On 2017/07/20 09:11:52AM -0700, Paul E. McKenney wrote: > On Thu, Jul 20, 2017 at 09:55:31PM +0900, Akira Yokosawa wrote: >> On 2017/07/20 14:47, Paul E. McKenney wrote: >>> On Thu, Jul 20, 2017 at 09:31:41AM +0800, Boqun Feng wrote: On Wed, Jul 19, 2017 at 02:56:02PM -0700, Paul E. McKenney

Re: [PATCH] documentation: Fix two-CPU control-dependency example

2017-07-20 Thread Paul E. McKenney
On Fri, Jul 21, 2017 at 06:12:56AM +0900, Akira Yokosawa wrote: > On 2017/07/20 09:11:52AM -0700, Paul E. McKenney wrote: > > On Thu, Jul 20, 2017 at 09:55:31PM +0900, Akira Yokosawa wrote: > >> On 2017/07/20 14:47, Paul E. McKenney wrote: > >>> On Thu, Jul 20, 2017 at 09:31:41AM +0800, Boqun Feng

Re: [RFC v6 01/62] powerpc: Free up four 64K PTE bits in 4K backed HPTE pages

2017-07-20 Thread Ram Pai
On Thu, Jul 20, 2017 at 11:21:51AM +0530, Aneesh Kumar K.V wrote: > > . > > > /* > > @@ -116,8 +104,8 @@ int __hash_page_4K(unsigned long ea, unsigned long > > access, unsigned long vsid, > > * On hash insert failure we use old pte value and we don't > > * want