Re: [PATCH 0/7] x86/mm/tlb: make lazy TLB mode even lazier

2018-10-23 Thread Ingo Molnar
* Rik van Riel wrote: > The big thing remaining is the reference count overhead of > the lazy TLB mm_struct, but getting rid of that is rather a > lot of code for a small performance gain. Not quite what > Linus asked for :) BTW., what would be the plan to improve scalability there, is it

Re: [PATCH 0/7] x86/mm/tlb: make lazy TLB mode even lazier

2018-10-23 Thread Ingo Molnar
* Rik van Riel wrote: > The big thing remaining is the reference count overhead of > the lazy TLB mm_struct, but getting rid of that is rather a > lot of code for a small performance gain. Not quite what > Linus asked for :) BTW., what would be the plan to improve scalability there, is it

Re: [GIT] Sparc

2018-10-23 Thread Linus Torvalds
On Wed, Oct 24, 2018 at 4:31 AM David Miller wrote: > > Mostly VDSO cleanups and optimizations. Pulled, Linus

Re: [GIT] Sparc

2018-10-23 Thread Linus Torvalds
On Wed, Oct 24, 2018 at 4:31 AM David Miller wrote: > > Mostly VDSO cleanups and optimizations. Pulled, Linus

[PATCH v3] kernel/signal: Signal-based pre-coredump notification

2018-10-23 Thread Enke Chen
For simplicity and consistency, this patch provides an implementation for signal-based fault notification prior to the coredump of a child process. A new prctl command, PR_SET_PREDUMP_SIG, is defined that can be used by an application to express its interest and to specify the signal for such a

[PATCH v3] kernel/signal: Signal-based pre-coredump notification

2018-10-23 Thread Enke Chen
For simplicity and consistency, this patch provides an implementation for signal-based fault notification prior to the coredump of a child process. A new prctl command, PR_SET_PREDUMP_SIG, is defined that can be used by an application to express its interest and to specify the signal for such a

Re: [PATCH] mm: convert totalram_pages, totalhigh_pages and managed_pages to atomic.

2018-10-23 Thread Arun KS
On 2018-10-24 01:34, Kees Cook wrote: On Mon, Oct 22, 2018 at 10:11 PM, Konstantin Khlebnikov wrote: On 23.10.2018 7:15, Joe Perches wrote:> On Mon, 2018-10-22 at 22:53 +0530, Arun KS wrote: Remove managed_page_count_lock spinlock and instead use atomic variables. Perhaps better to define

Re: [PATCH] mm: convert totalram_pages, totalhigh_pages and managed_pages to atomic.

2018-10-23 Thread Arun KS
On 2018-10-24 01:34, Kees Cook wrote: On Mon, Oct 22, 2018 at 10:11 PM, Konstantin Khlebnikov wrote: On 23.10.2018 7:15, Joe Perches wrote:> On Mon, 2018-10-22 at 22:53 +0530, Arun KS wrote: Remove managed_page_count_lock spinlock and instead use atomic variables. Perhaps better to define

Re: [PATCH] hugetlbfs: dirty pages as they are added to pagecache

2018-10-23 Thread Khalid Aziz
On Tue, 2018-10-23 at 10:30 -0700, Mike Kravetz wrote: > . snip > Here is updated patch without the drop_caches change and updated > fixes tag. > > From: Mike Kravetz > > hugetlbfs: dirty pages as they are added to pagecache > > Some test systems were experiencing negative huge page

Re: [PATCH] hugetlbfs: dirty pages as they are added to pagecache

2018-10-23 Thread Khalid Aziz
On Tue, 2018-10-23 at 10:30 -0700, Mike Kravetz wrote: > . snip > Here is updated patch without the drop_caches change and updated > fixes tag. > > From: Mike Kravetz > > hugetlbfs: dirty pages as they are added to pagecache > > Some test systems were experiencing negative huge page

[PATCH RFC v2 0/1] hugetlbfs: Use i_mmap_rwsem for pmd share and fault/trunc

2018-10-23 Thread Mike Kravetz
This patch addresses issues with page fault/truncation synchronization. The first issue was noticed as a negative hugetlb reserved page counts during DB development testing. Code inspection revealed that the most likely cause were races with truncate and page faults. In fact, I could write a not

[PATCH RFC v2 0/1] hugetlbfs: Use i_mmap_rwsem for pmd share and fault/trunc

2018-10-23 Thread Mike Kravetz
This patch addresses issues with page fault/truncation synchronization. The first issue was noticed as a negative hugetlb reserved page counts during DB development testing. Code inspection revealed that the most likely cause were races with truncate and page faults. In fact, I could write a not

Re: [PATCH v4 2/2] sched/fair: update scale invariance of PELT

2018-10-23 Thread Pavan Kondeti
Hi Vincent, Thanks for the detailed explanation. On Tue, Oct 23, 2018 at 02:15:08PM +0200, Vincent Guittot wrote: > Hi Pavan, > > On Tue, 23 Oct 2018 at 07:59, Pavan Kondeti wrote: > > > > Hi Vincent, > > > > On Fri, Oct 19, 2018 at 06:17:51PM +0200, Vincent Guittot wrote: > > > > > > /* > >

Re: [PATCH v4 2/2] sched/fair: update scale invariance of PELT

2018-10-23 Thread Pavan Kondeti
Hi Vincent, Thanks for the detailed explanation. On Tue, Oct 23, 2018 at 02:15:08PM +0200, Vincent Guittot wrote: > Hi Pavan, > > On Tue, 23 Oct 2018 at 07:59, Pavan Kondeti wrote: > > > > Hi Vincent, > > > > On Fri, Oct 19, 2018 at 06:17:51PM +0200, Vincent Guittot wrote: > > > > > > /* > >

[PATCH RFC v2 1/1] hugetlbfs: use i_mmap_rwsem for pmd sharing and truncate/fault sync

2018-10-23 Thread Mike Kravetz
hugetlbfs does not correctly handle page faults racing with truncation. In addition, shared pmds can cause additional issues. Without pmd sharing, issues can occur as follows: A huegtlbfs file is mmap(MAP_SHARED) with a size of 4 pages. At mmap time, 4 huge pages are reserved for the

[PATCH RFC v2 1/1] hugetlbfs: use i_mmap_rwsem for pmd sharing and truncate/fault sync

2018-10-23 Thread Mike Kravetz
hugetlbfs does not correctly handle page faults racing with truncation. In addition, shared pmds can cause additional issues. Without pmd sharing, issues can occur as follows: A huegtlbfs file is mmap(MAP_SHARED) with a size of 4 pages. At mmap time, 4 huge pages are reserved for the

Re: [PATCH] s390/fault: use wake_up_klogd() in bust_spinlocks()

2018-10-23 Thread Sergey Senozhatsky
On (10/24/18 13:30), Sergey Senozhatsky wrote: > - * OK, the message is on the console. Now we call printk() > - * without oops_in_progress set so that printk will give klogd > - * a poke. Hold onto your hats... > - */ > -

Re: [PATCH] s390/fault: use wake_up_klogd() in bust_spinlocks()

2018-10-23 Thread Sergey Senozhatsky
On (10/24/18 13:30), Sergey Senozhatsky wrote: > - * OK, the message is on the console. Now we call printk() > - * without oops_in_progress set so that printk will give klogd > - * a poke. Hold onto your hats... > - */ > -

[PATCH] s390/fault: use wake_up_klogd() in bust_spinlocks()

2018-10-23 Thread Sergey Senozhatsky
printk() without oops_in_progress set is potentially dangerous. it will attempt to call into console driver, so if oops happened while console driver port->lock spin_lock was locked on the same CPU (NMI oops or oops from console driver), then re-entering console driver from bust_spinlocks() will

Re: [PATCH] scsi: 3w-{sas,9xxx}: Use unsigned char for cdb

2018-10-23 Thread Martin K. Petersen
Nathan, > Clang warns a few times: > > drivers/scsi/3w-sas.c:386:11: warning: implicit conversion from 'int' to > 'char' changes value from 128 to -128 [-Wconstant-conversion] > cdb[4] = TW_ALLOCATION_LENGTH; /* allocation length */ >~ ^~~~ > > Update

[PATCH] s390/fault: use wake_up_klogd() in bust_spinlocks()

2018-10-23 Thread Sergey Senozhatsky
printk() without oops_in_progress set is potentially dangerous. it will attempt to call into console driver, so if oops happened while console driver port->lock spin_lock was locked on the same CPU (NMI oops or oops from console driver), then re-entering console driver from bust_spinlocks() will

Re: [PATCH] scsi: 3w-{sas,9xxx}: Use unsigned char for cdb

2018-10-23 Thread Martin K. Petersen
Nathan, > Clang warns a few times: > > drivers/scsi/3w-sas.c:386:11: warning: implicit conversion from 'int' to > 'char' changes value from 128 to -128 [-Wconstant-conversion] > cdb[4] = TW_ALLOCATION_LENGTH; /* allocation length */ >~ ^~~~ > > Update

Re: [PATCH V12 00/14] Krait clocks + Krait CPUfreq

2018-10-23 Thread Sricharan R
Hi Niklas, On 10/22/2018 9:00 PM, Niklas Cassel wrote: > On Mon, Oct 22, 2018 at 09:39:03AM +0530, Sricharan R wrote: >> Hi Stephen, >> >> On 10/18/2018 1:46 AM, Stephen Boyd wrote: >>> Quoting Stephen Boyd (2018-10-17 08:44:12) Quoting Sricharan R (2018-09-20 06:03:31) > > > On

Re: [PATCH V12 00/14] Krait clocks + Krait CPUfreq

2018-10-23 Thread Sricharan R
Hi Niklas, On 10/22/2018 9:00 PM, Niklas Cassel wrote: > On Mon, Oct 22, 2018 at 09:39:03AM +0530, Sricharan R wrote: >> Hi Stephen, >> >> On 10/18/2018 1:46 AM, Stephen Boyd wrote: >>> Quoting Stephen Boyd (2018-10-17 08:44:12) Quoting Sricharan R (2018-09-20 06:03:31) > > > On

[PATCH v3 3/5] Creates macro to avoid variable shadowing

2018-10-23 Thread Leonardo Bras
Creates DEF_FIELD_ADDR_VAR as a more generic version of the DEF_FIELD_ADD macro, allowing usage of a variable name other than the struct element name. Also, sets DEF_FIELD_ADDR as a specific usage of DEF_FILD_ADDR_VAR in which the var name is the same as the struct element name. Then, makes use of

[PATCH v3 5/5] Adds -Wshadow on KBUILD_HOSTCFLAGS

2018-10-23 Thread Leonardo Bras
Adds -Wshadow on KBUILD_HOSTCFLAGS to show shadow warnings on tools built for HOST. Signed-off-by: Leonardo Bras --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e8b599b4dcde..3edae5d359b5 100644 --- a/Makefile +++ b/Makefile @@ -360,7

[PATCH v3 0/5] Adds -Wshadow on KBUILD_HOSTCFLAGS and fix warnings

2018-10-23 Thread Leonardo Bras
This patchset add -Wshadow on KBUILD_HOSTCFLAGS and fixes all code that show this warning. Changes in v3: - Better Cover letter - Better commit message for patch 1/5. - Fixes what should change on patch 3/5 - Removes accent of my second name (better for searching at lkml.org) v2:

[PATCH v3 3/5] Creates macro to avoid variable shadowing

2018-10-23 Thread Leonardo Bras
Creates DEF_FIELD_ADDR_VAR as a more generic version of the DEF_FIELD_ADD macro, allowing usage of a variable name other than the struct element name. Also, sets DEF_FIELD_ADDR as a specific usage of DEF_FILD_ADDR_VAR in which the var name is the same as the struct element name. Then, makes use of

[PATCH v3 5/5] Adds -Wshadow on KBUILD_HOSTCFLAGS

2018-10-23 Thread Leonardo Bras
Adds -Wshadow on KBUILD_HOSTCFLAGS to show shadow warnings on tools built for HOST. Signed-off-by: Leonardo Bras --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e8b599b4dcde..3edae5d359b5 100644 --- a/Makefile +++ b/Makefile @@ -360,7

[PATCH v3 0/5] Adds -Wshadow on KBUILD_HOSTCFLAGS and fix warnings

2018-10-23 Thread Leonardo Bras
This patchset add -Wshadow on KBUILD_HOSTCFLAGS and fixes all code that show this warning. Changes in v3: - Better Cover letter - Better commit message for patch 1/5. - Fixes what should change on patch 3/5 - Removes accent of my second name (better for searching at lkml.org) v2:

[PATCH v3 1/5] x86/vdso: Renames variable to fix shadow warning.

2018-10-23 Thread Leonardo Bras
The go32() and go64() functions have an argument and a local variable called ‘name’. Rename both to clarify the code and to fix a warning with -Wshadow. Signed-off-by: Leonardo Bras --- arch/x86/entry/vdso/vdso2c.h | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git

[PATCH v3 4/5] modpost: Changes parameter name to avoid shadowing.

2018-10-23 Thread Leonardo Bras
Changes the parameter name to avoid shadowing a variable. Signed-off-by: Leonardo Bras --- scripts/mod/modpost.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index 0d998c54564d..368fe42340df 100644 ---

[PATCH v3 2/5] kbuild: Removes unnecessary shadowed local variable.

2018-10-23 Thread Leonardo Bras
Removes an unnecessary shadowed local variable (start). It was used only once, with the same value it was started before the if block. Signed-off-by: Leonardo Bras --- scripts/asn1_compiler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/asn1_compiler.c

[PATCH v3 1/5] x86/vdso: Renames variable to fix shadow warning.

2018-10-23 Thread Leonardo Bras
The go32() and go64() functions have an argument and a local variable called ‘name’. Rename both to clarify the code and to fix a warning with -Wshadow. Signed-off-by: Leonardo Bras --- arch/x86/entry/vdso/vdso2c.h | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git

[PATCH v3 4/5] modpost: Changes parameter name to avoid shadowing.

2018-10-23 Thread Leonardo Bras
Changes the parameter name to avoid shadowing a variable. Signed-off-by: Leonardo Bras --- scripts/mod/modpost.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index 0d998c54564d..368fe42340df 100644 ---

[PATCH v3 2/5] kbuild: Removes unnecessary shadowed local variable.

2018-10-23 Thread Leonardo Bras
Removes an unnecessary shadowed local variable (start). It was used only once, with the same value it was started before the if block. Signed-off-by: Leonardo Bras --- scripts/asn1_compiler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/asn1_compiler.c

[PATCH] rpmsg: virtio_rpmsg_bus: replace "%p" with "%pK"

2018-10-23 Thread Suman Anna
The virtio_rpmsg_bus driver uses the "%p" format-specifier for printing the vring buffer address. This prints only a hashed pointer even for previliged users. Use "%pK" instead so that the address can be printed during debug using kptr_restrict sysctl. Signed-off-by: Suman Anna ---

Re: [PATCH v4 13/17] remoteproc: create vdev subdevice with specific dma memory pool

2018-10-23 Thread Suman Anna
On 10/23/18 8:22 PM, Suman Anna wrote: > On 9/27/18 3:18 PM, Wendy Liang wrote: >> Hi Loic, >> >> >> On Thu, Sep 27, 2018 at 12:22 PM Loic PALLARDY wrote: >>> >>> Hi Wendy >>> -Original Message- From: Wendy Liang Sent: Thursday, September 27, 2018 7:17 PM To: Loic

Re: [PATCH v4 13/17] remoteproc: create vdev subdevice with specific dma memory pool

2018-10-23 Thread Suman Anna
On 10/10/18 2:17 PM, Loic PALLARDY wrote: > > >> -Original Message- >> From: Bjorn Andersson [mailto:bjorn.anders...@linaro.org] >> Sent: mercredi 10 octobre 2018 07:58 >> To: Loic PALLARDY >> Cc: o...@wizery.com; linux-remotep...@vger.kernel.org; linux- >> ker...@vger.kernel.org;

[PATCH] rpmsg: virtio_rpmsg_bus: replace "%p" with "%pK"

2018-10-23 Thread Suman Anna
The virtio_rpmsg_bus driver uses the "%p" format-specifier for printing the vring buffer address. This prints only a hashed pointer even for previliged users. Use "%pK" instead so that the address can be printed during debug using kptr_restrict sysctl. Signed-off-by: Suman Anna ---

Re: [PATCH v4 13/17] remoteproc: create vdev subdevice with specific dma memory pool

2018-10-23 Thread Suman Anna
On 10/23/18 8:22 PM, Suman Anna wrote: > On 9/27/18 3:18 PM, Wendy Liang wrote: >> Hi Loic, >> >> >> On Thu, Sep 27, 2018 at 12:22 PM Loic PALLARDY wrote: >>> >>> Hi Wendy >>> -Original Message- From: Wendy Liang Sent: Thursday, September 27, 2018 7:17 PM To: Loic

Re: [PATCH v4 13/17] remoteproc: create vdev subdevice with specific dma memory pool

2018-10-23 Thread Suman Anna
On 10/10/18 2:17 PM, Loic PALLARDY wrote: > > >> -Original Message- >> From: Bjorn Andersson [mailto:bjorn.anders...@linaro.org] >> Sent: mercredi 10 octobre 2018 07:58 >> To: Loic PALLARDY >> Cc: o...@wizery.com; linux-remotep...@vger.kernel.org; linux- >> ker...@vger.kernel.org;

Re: [v4] i2c: Add PCI and platform drivers for the AMD MP2 I2C controller

2018-10-23 Thread kbuild test robot
Hi Elie, I love your patch! Perhaps something to improve: [auto build test WARNING on wsa/i2c/for-next] [also build test WARNING on v4.19 next-20181019] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

Re: [v4] i2c: Add PCI and platform drivers for the AMD MP2 I2C controller

2018-10-23 Thread kbuild test robot
Hi Elie, I love your patch! Perhaps something to improve: [auto build test WARNING on wsa/i2c/for-next] [also build test WARNING on v4.19 next-20181019] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

Re: [PATCH v4 01/17] remoteproc: configure IOMMU only if device address requested

2018-10-23 Thread Suman Anna
On 10/23/18 2:40 PM, Loic PALLARDY wrote: > Hi Suman, > >> -Original Message- >> From: Suman Anna >> Sent: mardi 23 octobre 2018 19:26 >> To: Loic PALLARDY ; bjorn.anders...@linaro.org; >> o...@wizery.com >> Cc: linux-remotep...@vger.kernel.org; linux-kernel@vger.kernel.org; >> Arnaud

Re: [PATCH v4 01/17] remoteproc: configure IOMMU only if device address requested

2018-10-23 Thread Suman Anna
On 10/23/18 2:40 PM, Loic PALLARDY wrote: > Hi Suman, > >> -Original Message- >> From: Suman Anna >> Sent: mardi 23 octobre 2018 19:26 >> To: Loic PALLARDY ; bjorn.anders...@linaro.org; >> o...@wizery.com >> Cc: linux-remotep...@vger.kernel.org; linux-kernel@vger.kernel.org; >> Arnaud

[PATCH 1/1] nds32: Power management for nds32

2018-10-23 Thread Nickhu
There are three sleep states in nds32: suspend to idle, suspend to standby, suspend to ram In suspend to ram, we use the 'standby' instruction to emulate power management device to hang the system util wakeup source send wakeup events to break the loop. First, we push the

[PATCH 0/1] nds32: Power management

2018-10-23 Thread Nickhu
This commit is power management porting for nds32. Nickhu (1): nds32: Power management for nds32 arch/nds32/Kconfig | 10 +++ arch/nds32/include/asm/suspend.h | 11 +++ arch/nds32/kernel/Makefile | 2 +- arch/nds32/kernel/pm.c | 91 ++

[PATCH 1/1] nds32: Power management for nds32

2018-10-23 Thread Nickhu
There are three sleep states in nds32: suspend to idle, suspend to standby, suspend to ram In suspend to ram, we use the 'standby' instruction to emulate power management device to hang the system util wakeup source send wakeup events to break the loop. First, we push the

[PATCH 0/1] nds32: Power management

2018-10-23 Thread Nickhu
This commit is power management porting for nds32. Nickhu (1): nds32: Power management for nds32 arch/nds32/Kconfig | 10 +++ arch/nds32/include/asm/suspend.h | 11 +++ arch/nds32/kernel/Makefile | 2 +- arch/nds32/kernel/pm.c | 91 ++

[PATCH 14/25] afs: Commit the status on a new file/dir/symlink [ver #2]

2018-10-23 Thread David Howells
Call the function to commit the status on a new file, dir or symlink so that the access rights for the caller's key are cached for that object. Without this, the next access to the file will cause a FetchStatus operation to be emitted to retrieve the access rights. Signed-off-by: David Howells

[PATCH 24/25] afs: Fix callback handling [ver #2]

2018-10-23 Thread David Howells
In some circumstances, the callback interest pointer is NULL, so in such a case we can't dereference it when checking to see if the callback is broken. This causes an oops in some circumstances. Fix this by replacing the function that worked out the aggregate break counter with one that actually

[PATCH 14/25] afs: Commit the status on a new file/dir/symlink [ver #2]

2018-10-23 Thread David Howells
Call the function to commit the status on a new file, dir or symlink so that the access rights for the caller's key are cached for that object. Without this, the next access to the file will cause a FetchStatus operation to be emitted to retrieve the access rights. Signed-off-by: David Howells

[PATCH 24/25] afs: Fix callback handling [ver #2]

2018-10-23 Thread David Howells
In some circumstances, the callback interest pointer is NULL, so in such a case we can't dereference it when checking to see if the callback is broken. This causes an oops in some circumstances. Fix this by replacing the function that worked out the aggregate break counter with one that actually

[PATCH 19/25] afs: Get the target vnode in afs_rmdir() and get a callback on it [ver #2]

2018-10-23 Thread David Howells
Get the target vnode in afs_rmdir() and validate it before we attempt the deletion, The vnode pointer will be passed through to the delivery function in a later patch so that the delivery function can mark it deleted. Signed-off-by: David Howells --- fs/afs/dir.c | 11 ++- 1 file

[PATCH 19/25] afs: Get the target vnode in afs_rmdir() and get a callback on it [ver #2]

2018-10-23 Thread David Howells
Get the target vnode in afs_rmdir() and validate it before we attempt the deletion, The vnode pointer will be passed through to the delivery function in a later patch so that the delivery function can mark it deleted. Signed-off-by: David Howells --- fs/afs/dir.c | 11 ++- 1 file

[PATCH 22/25] afs: Allow dumping of server cursor on operation failure [ver #2]

2018-10-23 Thread David Howells
Provide an option to allow the file or volume location server cursor to be dumped if the rotation routine falls off the end without managing to contact a server. Signed-off-by: David Howells --- fs/afs/Kconfig | 12 +++ fs/afs/addr_list.c |2 ++ fs/afs/internal.h |3 +++

[PATCH 12/25] afs: Don't invoke the server to read data beyond EOF [ver #2]

2018-10-23 Thread David Howells
When writing a new page, clear space in the page rather than attempting to load it from the server if the space is beyond the EOF. Signed-off-by: David Howells --- fs/afs/write.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/fs/afs/write.c b/fs/afs/write.c index

[PATCH 08/25] afs: Implement VL server rotation [ver #2]

2018-10-23 Thread David Howells
Track VL servers as independent entities rather than lumping all their addresses together into one set and implement server-level rotation by: (1) Add the concept of a VL server list, where each server has its own separate address list. This code is similar to the FS server list. (2) Use

[PATCH 22/25] afs: Allow dumping of server cursor on operation failure [ver #2]

2018-10-23 Thread David Howells
Provide an option to allow the file or volume location server cursor to be dumped if the rotation routine falls off the end without managing to contact a server. Signed-off-by: David Howells --- fs/afs/Kconfig | 12 +++ fs/afs/addr_list.c |2 ++ fs/afs/internal.h |3 +++

[PATCH 12/25] afs: Don't invoke the server to read data beyond EOF [ver #2]

2018-10-23 Thread David Howells
When writing a new page, clear space in the page rather than attempting to load it from the server if the space is beyond the EOF. Signed-off-by: David Howells --- fs/afs/write.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/fs/afs/write.c b/fs/afs/write.c index

[PATCH 08/25] afs: Implement VL server rotation [ver #2]

2018-10-23 Thread David Howells
Track VL servers as independent entities rather than lumping all their addresses together into one set and implement server-level rotation by: (1) Add the concept of a VL server list, where each server has its own separate address list. This code is similar to the FS server list. (2) Use

[PATCH 16/25] afs: Implement the YFS cache manager service [ver #2]

2018-10-23 Thread David Howells
Implement the YFS cache manager service which gives extra capabilities on top of AFS. This is done by listening for an additional service on the same port and indicating that anyone requesting an upgrade should be upgraded to the YFS port. Signed-off-by: David Howells --- fs/afs/cmservice.c

[PATCH 23/25] afs: Eliminate the address pointer from the address list cursor [ver #2]

2018-10-23 Thread David Howells
Eliminate the address pointer from the address list cursor as it's redundant (ac->addrs[ac->index] can be used to find the same address) and address lists must be replaced rather than being rearranged, so is of limited value. Signed-off-by: David Howells --- fs/afs/addr_list.c |2 --

[PATCH 25/25] afs: Probe multiple fileservers simultaneously [ver #2]

2018-10-23 Thread David Howells
Send probes to all the unprobed fileservers in a fileserver list on all addresses simultaneously in an attempt to find out the fastest route whilst not getting stuck for 20s on any server or address that we don't get a reply from. This alleviates the problem whereby attempting to access a new

[PATCH 10/25] afs: Handle EIO from delivery function [ver #2]

2018-10-23 Thread David Howells
Fix afs_deliver_to_call() to handle -EIO being returned by the operation delivery function, indicating that the call found itself in the wrong state, by printing an error and aborting the call. Currently, an assertion failure will occur. This can happen, say, if the delivery function falls off

[PATCH 16/25] afs: Implement the YFS cache manager service [ver #2]

2018-10-23 Thread David Howells
Implement the YFS cache manager service which gives extra capabilities on top of AFS. This is done by listening for an additional service on the same port and indicating that anyone requesting an upgrade should be upgraded to the YFS port. Signed-off-by: David Howells --- fs/afs/cmservice.c

[PATCH 23/25] afs: Eliminate the address pointer from the address list cursor [ver #2]

2018-10-23 Thread David Howells
Eliminate the address pointer from the address list cursor as it's redundant (ac->addrs[ac->index] can be used to find the same address) and address lists must be replaced rather than being rearranged, so is of limited value. Signed-off-by: David Howells --- fs/afs/addr_list.c |2 --

[PATCH 25/25] afs: Probe multiple fileservers simultaneously [ver #2]

2018-10-23 Thread David Howells
Send probes to all the unprobed fileservers in a fileserver list on all addresses simultaneously in an attempt to find out the fastest route whilst not getting stuck for 20s on any server or address that we don't get a reply from. This alleviates the problem whereby attempting to access a new

[PATCH 10/25] afs: Handle EIO from delivery function [ver #2]

2018-10-23 Thread David Howells
Fix afs_deliver_to_call() to handle -EIO being returned by the operation delivery function, indicating that the call found itself in the wrong state, by printing an error and aborting the call. Currently, an assertion failure will occur. This can happen, say, if the delivery function falls off

[PATCH 07/25] afs: Improve FS server rotation error handling [ver #2]

2018-10-23 Thread David Howells
Improve the error handling in FS server rotation by: (1) Cache the latest useful error value for the fs operation as a whole in struct afs_fs_cursor separately from the error cached in the afs_addr_cursor struct. The one in the address cursor gets clobbered occasionally. Copy

Re: [PATCH] scsi/pmcraid.c: Use dma_pool_zalloc

2018-10-23 Thread Souptick Joarder
On Mon, Oct 8, 2018 at 9:58 PM Souptick Joarder wrote: > > On Tue, Oct 2, 2018 at 10:53 AM Souptick Joarder wrote: > > > > Replaced dma_pool_alloc + memset with dma_pool_zalloc. > > > > Signed-off-by: Sabyasachi Gupta > > Signed-off-by: Souptick Joarder > > Any comment on this patch ? Any

[PATCH 21/25] afs: Implement YFS support in the fs client [ver #2]

2018-10-23 Thread David Howells
Implement support for talking to YFS-variant fileservers in the cache manager and the filesystem client. These implement upgraded services on the same port as their AFS services. YFS fileservers provide expanded capabilities over AFS. Signed-off-by: David Howells --- fs/afs/Makefile

[PATCH 07/25] afs: Improve FS server rotation error handling [ver #2]

2018-10-23 Thread David Howells
Improve the error handling in FS server rotation by: (1) Cache the latest useful error value for the fs operation as a whole in struct afs_fs_cursor separately from the error cached in the afs_addr_cursor struct. The one in the address cursor gets clobbered occasionally. Copy

Re: [PATCH] scsi/pmcraid.c: Use dma_pool_zalloc

2018-10-23 Thread Souptick Joarder
On Mon, Oct 8, 2018 at 9:58 PM Souptick Joarder wrote: > > On Tue, Oct 2, 2018 at 10:53 AM Souptick Joarder wrote: > > > > Replaced dma_pool_alloc + memset with dma_pool_zalloc. > > > > Signed-off-by: Sabyasachi Gupta > > Signed-off-by: Souptick Joarder > > Any comment on this patch ? Any

[PATCH 21/25] afs: Implement YFS support in the fs client [ver #2]

2018-10-23 Thread David Howells
Implement support for talking to YFS-variant fileservers in the cache manager and the filesystem client. These implement upgraded services on the same port as their AFS services. YFS fileservers provide expanded capabilities over AFS. Signed-off-by: David Howells --- fs/afs/Makefile

[PATCH 18/25] afs: Calc callback expiry in op reply delivery [ver #2]

2018-10-23 Thread David Howells
Calculate the callback expiration time at the point of operation reply delivery, using the reply time queried from AF_RXRPC on that call as a base. Signed-off-by: David Howells --- fs/afs/afs.h |2 +- fs/afs/fsclient.c | 22 +- fs/afs/inode.c|4 ++--

[PATCH 20/25] afs: Expand data structure fields to support YFS [ver #2]

2018-10-23 Thread David Howells
Expand fields in various data structures to support the expanded information that YFS is capable of returning. Signed-off-by: David Howells --- fs/afs/afs.h | 35 ++- fs/afs/fsclient.c |9 + 2 files changed, 23 insertions(+), 21 deletions(-)

[PATCH 11/25] afs: Add a couple of tracepoints to log I/O errors [ver #2]

2018-10-23 Thread David Howells
Add a couple of tracepoints to log the production of I/O errors within the AFS filesystem. Signed-off-by: David Howells --- fs/afs/cmservice.c | 10 +++-- fs/afs/dir.c | 18 ++ fs/afs/internal.h | 11 ++ fs/afs/mntpt.c |5 ++-

[PATCH 18/25] afs: Calc callback expiry in op reply delivery [ver #2]

2018-10-23 Thread David Howells
Calculate the callback expiration time at the point of operation reply delivery, using the reply time queried from AF_RXRPC on that call as a base. Signed-off-by: David Howells --- fs/afs/afs.h |2 +- fs/afs/fsclient.c | 22 +- fs/afs/inode.c|4 ++--

[PATCH 20/25] afs: Expand data structure fields to support YFS [ver #2]

2018-10-23 Thread David Howells
Expand fields in various data structures to support the expanded information that YFS is capable of returning. Signed-off-by: David Howells --- fs/afs/afs.h | 35 ++- fs/afs/fsclient.c |9 + 2 files changed, 23 insertions(+), 21 deletions(-)

[PATCH 11/25] afs: Add a couple of tracepoints to log I/O errors [ver #2]

2018-10-23 Thread David Howells
Add a couple of tracepoints to log the production of I/O errors within the AFS filesystem. Signed-off-by: David Howells --- fs/afs/cmservice.c | 10 +++-- fs/afs/dir.c | 18 ++ fs/afs/internal.h | 11 ++ fs/afs/mntpt.c |5 ++-

[PATCH 09/25] afs: Fix TTL on VL server and address lists [ver #2]

2018-10-23 Thread David Howells
Currently the TTL on VL server and address lists isn't set in all circumstances and may be set to poor choices in others, since the TTL is derived from the SRV/AFSDB DNS record if and when available. Fix the TTL by limiting the range to a minimum and maximum from the current time. At some point

[PATCH 09/25] afs: Fix TTL on VL server and address lists [ver #2]

2018-10-23 Thread David Howells
Currently the TTL on VL server and address lists isn't set in all circumstances and may be set to poor choices in others, since the TTL is derived from the SRV/AFSDB DNS record if and when available. Fix the TTL by limiting the range to a minimum and maximum from the current time. At some point

[PATCH 17/25] afs: Fix FS.FetchStatus delivery from updating wrong vnode [ver #2]

2018-10-23 Thread David Howells
The FS.FetchStatus reply delivery function was updating inode of the directory in which a lookup had been done with the status of the looked up file. This corrupts some of the directory state. Fixes: 5cf9dd55a0ec ("afs: Prospectively look up extra files when doing a single lookup")

[PATCH 13/25] afs: Increase to 64-bit volume ID and 96-bit vnode ID for YFS [ver #2]

2018-10-23 Thread David Howells
Increase the sizes of the volume ID to 64 bits and the vnode ID (inode number equivalent) to 96 bits to allow the support of YFS. This requires the iget comparator to check the vnode->fid rather than i_ino and i_generation as i_ino is not sufficiently capacious. It also requires this data to be

[PATCH 17/25] afs: Fix FS.FetchStatus delivery from updating wrong vnode [ver #2]

2018-10-23 Thread David Howells
The FS.FetchStatus reply delivery function was updating inode of the directory in which a lookup had been done with the status of the looked up file. This corrupts some of the directory state. Fixes: 5cf9dd55a0ec ("afs: Prospectively look up extra files when doing a single lookup")

[PATCH 13/25] afs: Increase to 64-bit volume ID and 96-bit vnode ID for YFS [ver #2]

2018-10-23 Thread David Howells
Increase the sizes of the volume ID to 64 bits and the vnode ID (inode number equivalent) to 96 bits to allow the support of YFS. This requires the iget comparator to check the vnode->fid rather than i_ino and i_generation as i_ino is not sufficiently capacious. It also requires this data to be

[PATCH v3 2/4] nds32: Perf porting

2018-10-23 Thread Nickhu
This is the commit that porting the perf for nds32. 1.Raw event: The raw events start with 'r'. Usage: perf stat -e rXYZ ./app X: the index of performance counter. YZ: the index(convert to hexdecimal)

[PATCH v3 2/4] nds32: Perf porting

2018-10-23 Thread Nickhu
This is the commit that porting the perf for nds32. 1.Raw event: The raw events start with 'r'. Usage: perf stat -e rXYZ ./app X: the index of performance counter. YZ: the index(convert to hexdecimal)

[PATCH 15/25] afs: Remove callback details from afs_callback_break struct [ver #2]

2018-10-23 Thread David Howells
Remove unnecessary details of a broken callback, such as version, expiry and type, from the afs_callback_break struct as they're not actually used and make the list take more memory. Signed-off-by: David Howells --- fs/afs/afs.h |2 +- fs/afs/callback.c |8 ++--

[RFC v2 10/14] kunit: add Python libraries for handing KUnit config and kernel

2018-10-23 Thread Brendan Higgins
The ultimate goal is to create minimal isolated test binaries; in the meantime we are using UML to provide the infrastructure to run tests, so define an abstract way to configure and run tests that allow us to change the context in which tests are built without affecting the user. This also makes

[PATCH 15/25] afs: Remove callback details from afs_callback_break struct [ver #2]

2018-10-23 Thread David Howells
Remove unnecessary details of a broken callback, such as version, expiry and type, from the afs_callback_break struct as they're not actually used and make the list take more memory. Signed-off-by: David Howells --- fs/afs/afs.h |2 +- fs/afs/callback.c |8 ++--

[RFC v2 10/14] kunit: add Python libraries for handing KUnit config and kernel

2018-10-23 Thread Brendan Higgins
The ultimate goal is to create minimal isolated test binaries; in the meantime we are using UML to provide the infrastructure to run tests, so define an abstract way to configure and run tests that allow us to change the context in which tests are built without affecting the user. This also makes

[PATCH v3 4/4] nds32: Add document for NDS32 PMU.

2018-10-23 Thread Nickhu
The document for how to add NDS32 PMU in devicetree. Signed-off-by: Nickhu --- Documentation/devicetree/bindings/nds32/pmu.txt | 17 + 1 file changed, 17 insertions(+) create mode 100644 Documentation/devicetree/bindings/nds32/pmu.txt diff --git

[PATCH v3 3/4] nds32: Add perf call-graph support.

2018-10-23 Thread Nickhu
The perf call-graph option can trace the callchain between functions. This commit add the perf callchain for nds32. There are kerenl callchain and user callchain. The kerenl callchain can trace the function in kernel space. There are two type for user callchain. One for the 'optimize for size'

[PATCH v3 1/4] nds32: Fix bug in bitfield.h

2018-10-23 Thread Nickhu
There two bitfield bug for perfomance counter in bitfield.h: PFM_CTL_offSEL1 21 --> 16 PFM_CTL_offSEL2 27 --> 22 This commit fix it. Signed-off-by: Nickhu --- arch/nds32/include/asm/bitfield.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[PATCH v3 4/4] nds32: Add document for NDS32 PMU.

2018-10-23 Thread Nickhu
The document for how to add NDS32 PMU in devicetree. Signed-off-by: Nickhu --- Documentation/devicetree/bindings/nds32/pmu.txt | 17 + 1 file changed, 17 insertions(+) create mode 100644 Documentation/devicetree/bindings/nds32/pmu.txt diff --git

[PATCH v3 3/4] nds32: Add perf call-graph support.

2018-10-23 Thread Nickhu
The perf call-graph option can trace the callchain between functions. This commit add the perf callchain for nds32. There are kerenl callchain and user callchain. The kerenl callchain can trace the function in kernel space. There are two type for user callchain. One for the 'optimize for size'

[PATCH v3 1/4] nds32: Fix bug in bitfield.h

2018-10-23 Thread Nickhu
There two bitfield bug for perfomance counter in bitfield.h: PFM_CTL_offSEL1 21 --> 16 PFM_CTL_offSEL2 27 --> 22 This commit fix it. Signed-off-by: Nickhu --- arch/nds32/include/asm/bitfield.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

  1   2   3   4   5   6   7   8   9   10   >