Re: [PATCH SLOF 3/5] disk-label: introduce helper to check fat filesystem

2015-06-22 Thread Nikunj A Dadhania
Hi Segher, Segher Boessenkool writes: > On Mon, Jun 22, 2015 at 01:29:45PM +0530, Nikunj A Dadhania wrote: >> +: has-fat-filesystem ( block -- true | false ) >> + \ block 0 byte 0-2 is a jump instruction in all FAT >> + \ filesystems. > > "block" there is not a block number, just a host addr

[PATCH v2 1/2] powerpc32: checksum_wrappers_64 becomes checksum_wrappers

2015-06-22 Thread Christophe Leroy
The powerpc64 checksum wrapper functions adds the csum_and_copy_to_user() which otherwise is implemented in include/net/checksum.h by using csum_partial() then copy_to_user() Those two wrapper fonctions are also applicable to powerpc32 as it is based on the use of csum_partial_copy_generic() which

[PATCH v2 2/2] powerpc32: rewrite of csum_partial_copy_generic based of copy_tofrom_user

2015-06-22 Thread Christophe Leroy
csum_partial_copy_generic() does the same as copy_tofrom_user and also calculates the checksum during the copy. Unlike copy_tofrom_user(), the existing version of csum_partial_copy_generic() doesn't take benefit of the cache This patch is a rewrite of csum_partial_copy_generic() based on copy_tofr

[PATCH v2 0/2] powerpc32: optimisation of csum_partial_copy_generic()

2015-06-22 Thread Christophe Leroy
This patch optimises csum_partial_copy_generic() by making use of cache instructions (dcbt/dcbz) just like copy_tofrom_user() does On a TCP benchmark using socklib on the loopback interface on which checksum offload and scatter/gather have been deactivated, we get about 20% performance increase.

Re: [PATCH 1/2] Move the pt_regs_offset struct definition from arch to common include file

2015-06-22 Thread Michael Ellerman
On Fri, 2015-06-19 at 10:12 -0400, David Long wrote: > On 06/19/15 00:19, Michael Ellerman wrote: > > On Mon, 2015-06-15 at 12:42 -0400, David Long wrote: > >> From: "David A. Long" > >> > >> The pt_regs_offset structure is used for HAVE_REGS_AND_STACK_ACCESS_API > >> feature and has identical d

Re: [PATCH v2 6/7]powerpc/powernv: generic nest pmu event functions

2015-06-22 Thread Sukadev Bhattiprolu
Madhavan Srinivasan [ma...@linux.vnet.ibm.com] wrote: | From: Madhavan Srinivasan | Subject: [PATCH v2 6/7]powerpc/powernv: generic nest pmu event functions | | Add generic format attribute and set of generic nest pmu related | event functions to be used by each nest pmu. Add code to register nes

Re: [RFC PATCH] powerpc/numa: initialize distance lookup table from drconf path

2015-06-22 Thread Anton Blanchard
Hi Nikunj, > From: Nikunj A Dadhania > > powerpc/numa: initialize distance lookup table from drconf path > > In some situations, a NUMA guest that supports > ibm,dynamic-memory-reconfiguration node will end up having flat NUMA > distances between nodes. This is because of two problems in the >

Re: [PATCH 1/2] powerpc32: checksum_wrappers_64 becomes checksum_wrappers

2015-06-22 Thread Scott Wood
On Mon, 2015-06-22 at 19:01 +0200, Christophe Leroy wrote: > The powerpc64 checksum wrapper functions adds the > csum_and_copy_to_user() which > otherwise is implemented in include/net/checksum.h by using > csum_partial() then > copy_to_user() > > Those two wrapper fonctions are also applicable

[PATCH] powerpc: remove unneeded check in spu_gang_remove_ctx

2015-06-22 Thread Yury Norov
In discussion to patch "selinux: reduce locking overhead in inode_free_security()" it was figured out that list_del_init() is safe to be called multiple times on the same entry. In that case, it was useful to move a check out of spinlock to decrease lock contention. Here we can remove '!list_empty(

[PATCH 6/6] pseries: Enable kernel CPU dlpar from sysfs

2015-06-22 Thread Nathan Fontenot
Enable new kernel cpu hotplug functionality by allowing cpu dlpar requests to be initiated from sysfs. Signed-off-by: Nathan Fontenot --- arch/powerpc/platforms/pseries/dlpar.c |6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/powerpc/platforms/pseries/dlpar.c b/arch/powerpc/pla

[PATCH 5/6] pseries: Add CPU dlpar add functionality

2015-06-22 Thread Nathan Fontenot
Add the ability to hotplug add cpus via rtas hotplug events by either specifying the drc index of the CPU to add, or providing a count of the number of CPUs to add. Signed-off-by: Nathan Fontenot --- arch/powerpc/platforms/pseries/hotplug-cpu.c | 76 ++ 1 file changed,

[PATCH 4/6] pseries: Add CPU dlpar remove functionality

2015-06-22 Thread Nathan Fontenot
Add the ability to dlpar remove CPUs via hotplug rtas events, either by specifying the drc-index of the CPU to remove or providing a count of cpus to remove. To accomplish we create a list of possible dr cpus and their drc indexes so we can easily traverse the list looking for candidates to remov

[PATCH 3/6] pseries: Update CPU hotplug error recovery

2015-06-22 Thread Nathan Fontenot
Update the cpu dlpar add/remove paths to do better error recovery when a failure occurs during the add/remove operation. This includes adding some pr_info and pr_debug statements. Signed-off-by: Nathan Fontenot --- arch/powerpc/platforms/pseries/hotplug-cpu.c | 34 +++---

[PATCH 2/6] pseries: Factor out common cpu hotplug code

2015-06-22 Thread Nathan Fontenot
Re-factor the cpu hotplug code to support cpu hotplug completely in the kernel and using the existing sysfs probe/release interface. Move pieces of the existing cpu hotplug code that will be common to both interfaces into common routines. This patch does not introduce any functional changes. S

[PATCH 1/6] pseries: Consolidate CPU hotplug code to hotplug-cpu.c

2015-06-22 Thread Nathan Fontenot
No functional changes, this patch is simply a move of the cpu hotplug code from pseries/dlpar.c to pseries/hotplug-cpu.c. This is in an effort to consolidate all of the cpu hotplug code in a common place. Signed-off-by: Nathan Fontenot --- arch/powerpc/platforms/pseries/dlpar.c | 189

[PATCH 0/6] pseries: Move CPU dlpar into the kernel

2015-06-22 Thread Nathan Fontenot
To better support CPU hotplug in PowerKVM and PowerVM environments, the handling of CPU dlpar should be done entirely in the kernel. This will allow a common entry point for PowerVM and PowerKVM CPU dlpar requests. For both environments, the entry point is the same one introduced in a previous patc

Re: [PATCH SLOF 3/5] disk-label: introduce helper to check fat filesystem

2015-06-22 Thread Segher Boessenkool
On Mon, Jun 22, 2015 at 01:29:45PM +0530, Nikunj A Dadhania wrote: > +: has-fat-filesystem ( block -- true | false ) > + \ block 0 byte 0-2 is a jump instruction in all FAT > + \ filesystems. "block" there is not a block number, just a host address. So it's not a good name. Maybe do a better

[PATCH 2/2] powerpc32: rewrite of csum_partial_copy_generic based of copy_tofrom_user

2015-06-22 Thread Christophe Leroy
csum_partial_copy_generic() does the same as copy_tofrom_user and also calculates the checksum during the copy. Unlike copy_tofrom_user(), the existing version of csum_partial_copy_generic() doesn't take benefit of the cache This patch is a rewrite of csum_partial_copy_generic() based on copy_tofr

[PATCH 1/2] powerpc32: checksum_wrappers_64 becomes checksum_wrappers

2015-06-22 Thread Christophe Leroy
The powerpc64 checksum wrapper functions adds the csum_and_copy_to_user() which otherwise is implemented in include/net/checksum.h by using csum_partial() then copy_to_user() Those two wrapper fonctions are also applicable to powerpc32 as it is based on the use of csum_partial_copy_generic() which

[PATCH 0/2] powerpc32: optimisation of csum_partial_copy_generic()

2015-06-22 Thread Christophe Leroy
This patch optimises csum_partial_copy_generic() by making use of cache instructions (dcbt/dcbz) just like copy_tofrom_user() does On a TCP benchmark using socklib on the loopback interface on which checksum offload and scatter/gather have been deactivated, we get about 20% performance increase.

Re: [RESEND PATCH V2 1/3] Add mmap flag to request pages are locked after page fault

2015-06-22 Thread Eric B Munson
On Mon, 22 Jun 2015, Michal Hocko wrote: > On Fri 19-06-15 12:43:33, Eric B Munson wrote: > > On Fri, 19 Jun 2015, Michal Hocko wrote: > > > > > On Thu 18-06-15 16:30:48, Eric B Munson wrote: > > > > On Thu, 18 Jun 2015, Michal Hocko wrote: > > > [...] > > > > > Wouldn't it be much more reasonabl

Re: [PATCH V2] cxl: Set up and enable PSL Timebase

2015-06-22 Thread Philippe Bergheaud
Philippe Bergheaud wrote: This patch configures the PSL Timebase function and enables it, after the CAPP has been initialized by OPAL. V2: - Clear CXL_PSL_ErrIVTE_tberror bit - Define the sync count unit - Wait 1ms before each test - Use negative error code - Do not ignore errors - Except

Re: [RESEND PATCH V2 1/3] Add mmap flag to request pages are locked after page fault

2015-06-22 Thread Michal Hocko
On Fri 19-06-15 12:43:33, Eric B Munson wrote: > On Fri, 19 Jun 2015, Michal Hocko wrote: > > > On Thu 18-06-15 16:30:48, Eric B Munson wrote: > > > On Thu, 18 Jun 2015, Michal Hocko wrote: > > [...] > > > > Wouldn't it be much more reasonable and straightforward to have > > > > MAP_FAULTPOPULATE

Re: [PATCH v2 7/7]powerpc/powernv: nest pmu cpumask and cpu hotplug support

2015-06-22 Thread Madhavan Srinivasan
On Tuesday 16 June 2015 11:58 AM, Preeti U Murthy wrote: > On 06/11/2015 10:47 AM, Madhavan Srinivasan wrote: >> Adds cpumask attribute to be used by each nest pmu since nest >> units are per-chip. Only one cpu (first online cpu) from each node/chip >> is designated to read counters. >> >> On cpu

Re: [PATCH v4 0/3] LED interface for PowerNV platform

2015-06-22 Thread Jacek Anaszewski
On 06/11/2015 08:33 AM, Vasant Hegde wrote: On 04/28/2015 03:39 PM, Vasant Hegde wrote: The following series implements LED driver for PowerNV platform. Ben, Michael, Can you please review/ACK this patchset? Yeah, we are waiting for ppc maintainer's ack, also to clarify DT related issues. B

[PATCH SLOF 5/5] disk-label: make gpt detection code more robust

2015-06-22 Thread Nikunj A Dadhania
* Check for Protective MBR Magic * Check for valid GPT Signature * Boundary check for allocated block size before reading into the buffer Signed-off-by: Nikunj A Dadhania --- slof/fs/packages/disk-label.fs | 21 + 1 file changed, 17 insertions(+), 4 deletions(-) diff --git

[PATCH SLOF 3/5] disk-label: introduce helper to check fat filesystem

2015-06-22 Thread Nikunj A Dadhania
Signed-off-by: Nikunj A Dadhania --- slof/fs/packages/disk-label.fs | 22 +- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/slof/fs/packages/disk-label.fs b/slof/fs/packages/disk-label.fs index 2cf1b85..e317e93 100644 --- a/slof/fs/packages/disk-label.fs +++ b/

[PATCH SLOF 0/5] GPT fixes/cleanup and LVM support with FAT

2015-06-22 Thread Nikunj A Dadhania
Following patchset implements some improvements and cleanup for the GPT booting code: patch 1: Simplify the gpt detection code with lesser scopes and add comments. patch 2: Introduce 8byte LE helpers: x@-le and x!-le patch 3: As we need to detect FAT partition, implement a helper that

[PATCH SLOF 1/5] disk-label: simplify gpt-prep-partition? routine

2015-06-22 Thread Nikunj A Dadhania
Signed-off-by: Nikunj A Dadhania --- slof/fs/packages/disk-label.fs | 36 +--- 1 file changed, 13 insertions(+), 23 deletions(-) diff --git a/slof/fs/packages/disk-label.fs b/slof/fs/packages/disk-label.fs index fe1c25e..2305eee 100644 --- a/slof/fs/packages/disk-

[PATCH SLOF 4/5] disk-label: add support for booting from GPT FAT partition

2015-06-22 Thread Nikunj A Dadhania
For a GPT+LVM combination disk, older bootloader that does not support LVM, cannot load kernel from LVM. The patch add support to read from BASIC_DATA UUID partition. Installer has installed CHRP-BOOT config on a FAT file system. Signed-off-by: Nikunj A Dadhania --- slof/fs/packages/disk-label.

[PATCH SLOF 2/5] introduce 8-byte LE helpers

2015-06-22 Thread Nikunj A Dadhania
Signed-off-by: Nikunj A Dadhania --- slof/fs/little-endian.fs | 6 ++ slof/fs/packages/disk-label.fs | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/slof/fs/little-endian.fs b/slof/fs/little-endian.fs index f2e4e8d..6b4779e 100644 --- a/slof/fs/little-endian.fs