[PATCH v2 1/1] powerpc/86xx: Consolidate common platform code

2016-02-11 Thread Alessio Igor Bogani
Signed-off-by: Alessio Igor Bogani --- v1 -> v2 Use appropriate [PATCH] prefix arch/powerpc/platforms/86xx/Makefile | 2 +- arch/powerpc/platforms/86xx/common.c | 42 ++ arch/powerpc/platforms/86xx/gef_ppc9a.c| 32

Re: [PATCH v2 1/1] powerpc/86xx: Consolidate common platform code

2016-02-11 Thread Denis Kirjanov
On 2/11/16, Alessio Igor Bogani wrote: > Signed-off-by: Alessio Igor Bogani > --- > v1 -> v2 > Use appropriate [PATCH] prefix > > arch/powerpc/platforms/86xx/Makefile | 2 +- > arch/powerpc/platforms/86xx/common.c | 42 >

Re: [PATCH v2 5/7] ibmvscsi: Remove unsupported host config MAD

2016-02-11 Thread Johannes Thumshirn
On Wed, Feb 10, 2016 at 07:32:26PM -0600, Tyrel Datwyler wrote: > A VIOSRP_HOST_CONFIG_TYPE management datagram (MAD) has existed in > the code for some time. From what information I've gathered from > Brian King this was likely implemented on the host side in a SLES 9 > based VIOS, which is no

Re: [PATCH v8 6/8] Implement kernel live patching for ppc64le (ABIv2)

2016-02-11 Thread Miroslav Benes
On Wed, 10 Feb 2016, Torsten Duwe wrote: > diff --git a/arch/powerpc/include/asm/livepatch.h > b/arch/powerpc/include/asm/livepatch.h > new file mode 100644 > index 000..44e8a2d > --- /dev/null > +++ b/arch/powerpc/include/asm/livepatch.h > @@ -0,0 +1,45 @@ > +/* > + * livepatch.h -

Re: [PATCH v8 4/8] ppc64 ftrace_with_regs configuration variables

2016-02-11 Thread Torsten Duwe
On Thu, Feb 11, 2016 at 06:48:17PM +1100, Balbir Singh wrote: > On Wed, 2016-02-10 at 17:25 +0100, Torsten Duwe wrote: > > + > > +echo "int func() { return 0; }" | \ > > +$* -S -x c -O2 -p -mprofile-kernel - -o - 2> /dev/null | \ > > +sed -n -e '/func:/,/bl _mcount/p' | grep -q TOC > > + >

Re: [PATCH v2 7/7] ibmvscsi: use H_CLOSED instead of magic number

2016-02-11 Thread Johannes Thumshirn
On Wed, Feb 10, 2016 at 07:32:28PM -0600, Tyrel Datwyler wrote: > In a couple places the magic value of 2 is used to check the return > code of hypercalls. This translates to H_CLOSED. > > Signed-off-by: Tyrel Datwyler Reviewed-by: Johannes Thumshirn

Re: [PATCH v8 4/8] ppc64 ftrace_with_regs configuration variables

2016-02-11 Thread Balbir Singh
On Thu, 2016-02-11 at 14:09 +0530, Kamalesh Babulal wrote: > * Balbir Singh [2016-02-11 18:48:17]: > > > On Wed, 2016-02-10 at 17:25 +0100, Torsten Duwe wrote: > > > > snip > > > > > diff --git a/arch/powerpc/gcc-mprofile-kernel-notrace.sh > > >

Re: [PATCH v8 4/8] ppc64 ftrace_with_regs configuration variables

2016-02-11 Thread Kamalesh Babulal
* Balbir Singh [2016-02-11 18:48:17]: > On Wed, 2016-02-10 at 17:25 +0100, Torsten Duwe wrote: > > snip > > > diff --git a/arch/powerpc/gcc-mprofile-kernel-notrace.sh > > b/arch/powerpc/gcc-mprofile-kernel-notrace.sh > > new file mode 100755 > > index 000..68d6482 >

Re: [PATCH v8 4/8] ppc64 ftrace_with_regs configuration variables

2016-02-11 Thread Balbir Singh
On Thu, 2016-02-11 at 09:42 +0100, Torsten Duwe wrote: > On Thu, Feb 11, 2016 at 06:48:17PM +1100, Balbir Singh wrote: > > On Wed, 2016-02-10 at 17:25 +0100, Torsten Duwe wrote: > > > + > > > +echo "int func() { return 0; }" | \ > > > +$* -S -x c -O2 -p -mprofile-kernel - -o - 2> /dev/null | \

Re: [PATCH v2 2/7] ibmvscsi: Add and use enums for valid CRQ header values

2016-02-11 Thread Johannes Thumshirn
On Wed, Feb 10, 2016 at 07:32:23PM -0600, Tyrel Datwyler wrote: > The PAPR defines four valid header values for the first byte of a > CRQ message. Namely, an unused/empty message (0x00), a valid > command/response entry (0x80), a valid initialization entry (0xC0), > and a valid transport event

Re: [PATCH v2 2/4] powerpc/powernv: Fix stale PE primary bus

2016-02-11 Thread Andrew Donnellan
On 09/02/16 15:50, Gavin Shan wrote: When PCI bus is unplugged during full hotplug for EEH recovery, the platform PE instance (struct pnv_ioda_pe) isn't released and it dereferences the stale PCI bus that has been released. It leads to kernel crash when referring to the stale PCI bus. This

Re: [PATCH kernel v2 6/6] KVM: PPC: Add support for multiple-TCE hcalls

2016-02-11 Thread Paul Mackerras
On Fri, Feb 12, 2016 at 03:54:18PM +1100, Alexey Kardashevskiy wrote: > On 02/11/2016 04:32 PM, Paul Mackerras wrote: > >On Thu, Jan 21, 2016 at 06:39:37PM +1100, Alexey Kardashevskiy wrote: > >>+ rmap = (void *) vmalloc_to_phys(rmap); > >>+ > >>+ lock_rmap(rmap); > > > >A comment here

Re: [PATCH v2 2/4] powerpc/powernv: Fix stale PE primary bus

2016-02-11 Thread Gavin Shan
On Fri, Feb 12, 2016 at 05:02:46PM +1100, Andrew Donnellan wrote: >On 09/02/16 15:50, Gavin Shan wrote: >>When PCI bus is unplugged during full hotplug for EEH recovery, >>the platform PE instance (struct pnv_ioda_pe) isn't released and >>it dereferences the stale PCI bus that has been released.

Re: [PATCH v8 0/8] ftrace with regs + live patching for ppc64 LE (ABI v2)

2016-02-11 Thread Torsten Duwe
On Thu, Feb 11, 2016 at 05:18:23PM +1100, Balbir Singh wrote: > > Quick question - I presume these apply on top of 4.5.0-rc2? Yes. Torsten ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org

[PATCH v3 1/1] powerpc/86xx: Consolidate common platform code

2016-02-11 Thread Alessio Igor Bogani
Signed-off-by: Alessio Igor Bogani --- v2 -> v3 Use isync() as suggested by Denis Kirjanov v1 -> v2 Use appropriate [PATCH] prefix arch/powerpc/platforms/86xx/Makefile | 2 +- arch/powerpc/platforms/86xx/common.c | 43

Re: [PATCH v3 03/18] cxl: Define process problem state area at attach time only

2016-02-11 Thread Frederic Barrat
Le 10/02/2016 07:32, Ian Munsie a écrit : It might be a reasonable idea to make cxl_psa_map fail outright if it is called on a context that has not been attached yet like we do in the user api, but I trust kernel devs to get this right more than userspace so I'm not too worried :) The net

[PATCH] powerpc/fsl_rio: update for port-write interface change

2016-02-11 Thread Alexandre Bounine
Platform-specific update following changes in port-write handler interface. This is a follow-up patch for [PATCH 22/30] rapidio: add global inbound port write interfaces Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Benjamin

Re: [PATCH v10 3/8] dt, numa: adding numa dt binding implementation.

2016-02-11 Thread Rob Herring
On Tue, Feb 2, 2016 at 4:09 AM, Ganapatrao Kulkarni wrote: > dt node parsing for numa topology is done using device property > numa-node-id and device node distance-map. How is it that powerpc doesn't need flat DT parsing for NUMA? Both arches are memblock based and

Re: [BUG] random kernel crashes after THP rework on s390 (maybe also on PowerPC and ARM)

2016-02-11 Thread Gerald Schaefer
On Thu, 11 Feb 2016 21:09:42 +0200 "Kirill A. Shutemov" wrote: > On Thu, Feb 11, 2016 at 07:22:23PM +0100, Gerald Schaefer wrote: > > Hi, > > > > Sebastian Ott reported random kernel crashes beginning with v4.5-rc1 and > > he also bisected this to commit 61f5d698 "mm:

Re: [BUG] random kernel crashes after THP rework on s390 (maybe also on PowerPC and ARM)

2016-02-11 Thread Kirill A. Shutemov
On Thu, Feb 11, 2016 at 09:09:42PM +0200, Kirill A. Shutemov wrote: > On Thu, Feb 11, 2016 at 07:22:23PM +0100, Gerald Schaefer wrote: > > Hi, > > > > Sebastian Ott reported random kernel crashes beginning with v4.5-rc1 and > > he also bisected this to commit 61f5d698 "mm: re-enable THP". Further

Re: [BUG] random kernel crashes after THP rework on s390 (maybe also on PowerPC and ARM)

2016-02-11 Thread Kirill A. Shutemov
On Thu, Feb 11, 2016 at 07:22:23PM +0100, Gerald Schaefer wrote: > Hi, > > Sebastian Ott reported random kernel crashes beginning with v4.5-rc1 and > he also bisected this to commit 61f5d698 "mm: re-enable THP". Further > review of the THP rework patches, which cannot be bisected, revealed >

Re: [PATCH v8 4/8] ppc64 ftrace_with_regs configuration variables

2016-02-11 Thread Murali Sampath
Original Message From: Balbir Singh Sent: Thursday, February 11, 2016 4:37 AM To: Kamalesh Babulal Cc: Petr Mladek; Jessica Yu; linux-ker...@vger.kernel.org; Steven Rostedt; Torsten Duwe; Jiri Kosina; live-patch...@vger.kernel.org; Miroslav Benes; linuxppc-dev@lists.ozlabs.org Subject: Re:

Re: [PATCH v8 4/8] ppc64 ftrace_with_regs configuration variables

2016-02-11 Thread Murali Sampath
‎ t Original Message From: Balbir Singh Sent: Thursday, February 11, 2016 4:37 AM To: Kamalesh Babulal Cc: Petr Mladek; Jessica Yu; linux-ker...@vger.kernel.org; Steven Rostedt; Torsten Duwe; Jiri Kosina; live-patch...@vger.kernel.org; Miroslav Benes; linuxppc-dev@lists.ozlabs.org Subject:

Re: [PATCH v2 1/1] powerpc/86xx: Consolidate common platform code

2016-02-11 Thread Murali Sampath
Original Message From: Denis Kirjanov Sent: Thursday, February 11, 2016 4:22 AM To: Alessio Igor Bogani Cc: Scott Wood; linuxppc-dev@lists.ozlabs.org; linux-ker...@vger.kernel.org Subject: Re: [PATCH v2 1/1] powerpc/86xx: Consolidate common platform code On 2/11/16, Alessio Igor Bogani

Re: [PATCH V2 2/2] powerpc/xmon: add command to dump OPAL msglog

2016-02-11 Thread Denis Kirjanov
On 2/9/16, Andrew Donnellan wrote: > Add the 'do' command to dump the OPAL msglog in xmon. > > Signed-off-by: Andrew Donnellan I think it would be better to create system-specific files under powerpc/xmon/ directory, in this case

Re: [PATCH v10 3/8] dt, numa: adding numa dt binding implementation.

2016-02-11 Thread Robert Richter
On 11.02.16 08:50:41, Rob Herring wrote: > On Tue, Feb 2, 2016 at 4:09 AM, Ganapatrao Kulkarni > wrote: > > dt node parsing for numa topology is done using device property > > numa-node-id and device node distance-map. > > How is it that powerpc doesn't need flat DT

Re: [PATCH v10 3/8] dt, numa: adding numa dt binding implementation.

2016-02-11 Thread Ganapatrao Kulkarni
Hi Rob, On Thu, Feb 11, 2016 at 9:02 PM, Robert Richter wrote: > On 11.02.16 08:50:41, Rob Herring wrote: >> On Tue, Feb 2, 2016 at 4:09 AM, Ganapatrao Kulkarni >> wrote: >> > dt node parsing for numa topology is done using device

[PATCH v5] powerpc32: provide VIRT_CPU_ACCOUNTING

2016-02-11 Thread Christophe Leroy
This patch provides VIRT_CPU_ACCOUTING to PPC32 architecture. PPC32 doesn't have the PACA structure, so we use the task_info structure to store the accounting data. In order to reuse on PPC32 the PPC64 functions, all u64 data has been replaced by 'unsigned long' so that it is u32 on PPC32 and u64

Re: [PATCH v2 1/1] powerpc/86xx: Consolidate common platform code

2016-02-11 Thread Scott Wood
On Thu, 2016-02-11 at 12:21 +0300, Denis Kirjanov wrote: > On 2/11/16, Alessio Igor Bogani wrote: > > Signed-off-by: Alessio Igor Bogani > > --- > > v1 -> v2 > > Use appropriate [PATCH] prefix > > > >

Re: [PATCH v2 0/4] powerpc/ps3: gelic_udbg: drop local versions of network data structs

2016-02-11 Thread Geoff Levand
On Mon, 2016-02-08 at 22:27 +, Luis Henriques wrote:> Luis Henriques (4):>   powerpc/ps3: gelic_udbg: use struct ethhdr from >   powerpc/ps3: gelic_udbg: use struct vlan_hdr from >   powerpc/ps3: gelic_udbg: use struct iphdr from >   powerpc/ps3: gelic_udbg: use struct udphdr from These all

Re: [PATCH V3 1/2] powerpc/powernv: new function to access OPAL msglog

2016-02-11 Thread Joel Stanley
On Thu, Feb 11, 2016 at 6:06 PM, Andrew Donnellan wrote: > Currently, the OPAL msglog/console buffer is exposed as a sysfs file, with > the sysfs read handler responsible for retrieving the log from the OPAL > buffer. We'd like to be able to use it in xmon as well. >

[PATCH] ibmvfc: byteswap scsi_id, wwpn, and node_name prior to logging

2016-02-11 Thread Tyrel Datwyler
When logging async events the scsi_id, wwpn, and node_name values are used directly from the CRQ struct which are of type __be64. This can be confusing to someone looking through the log on a LE system. Instead byteswap these values to host endian prior to logging. Signed-off-by: Tyrel Datwyler

Re: [BUG] random kernel crashes after THP rework on s390 (maybe also on PowerPC and ARM)

2016-02-11 Thread Aneesh Kumar K.V
Gerald Schaefer writes: > On Thu, 11 Feb 2016 21:09:42 +0200 > "Kirill A. Shutemov" wrote: > >> On Thu, Feb 11, 2016 at 07:22:23PM +0100, Gerald Schaefer wrote: >> > Hi, >> > >> > Sebastian Ott reported random kernel crashes beginning with

Re: [PATCH V2 00/29] Book3s abstraction in preparation for new MMU model

2016-02-11 Thread Paul Mackerras
On Mon, Feb 08, 2016 at 02:50:12PM +0530, Aneesh Kumar K.V wrote: > Hello, > > This is a large series, mostly consisting of code movement. No new features > are done in this series. The changes are done to accomodate the upcoming new > memory > model in future powerpc chips. The details of the

Re: [PATCH V2 01/29] powerpc/mm: add _PAGE_HASHPTE similar to 4K hash

2016-02-11 Thread Paul Mackerras
On Mon, Feb 08, 2016 at 02:50:13PM +0530, Aneesh Kumar K.V wrote: > Not really needed. But this brings it back to as it was before If it's not really needed, what's the motivation for putting this patch in? You need to explain where you are heading with this patch. > Check this >

Re: [PATCH V2 02/29] powerpc/mm: Split pgtable types to separate header

2016-02-11 Thread Paul Mackerras
On Mon, Feb 08, 2016 at 02:50:14PM +0530, Aneesh Kumar K.V wrote: > We remove real_pte_t out of STRICT_MM_TYPESCHECK. We will later add > a radix variant that is big endian > > Signed-off-by: Aneesh Kumar K.V It looks like most of what this patch does is move a

Re: [PATCH V2 05/29] powerpc/mm: Copy pgalloc (part 2)

2016-02-11 Thread Paul Mackerras
On Mon, Feb 08, 2016 at 02:50:17PM +0530, Aneesh Kumar K.V wrote: > Signed-off-by: Aneesh Kumar K.V This needs a proper patch description. Paul. ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org

Re: [PATCH kernel v2 6/6] KVM: PPC: Add support for multiple-TCE hcalls

2016-02-11 Thread Alexey Kardashevskiy
On 02/11/2016 04:32 PM, Paul Mackerras wrote: On Thu, Jan 21, 2016 at 06:39:37PM +1100, Alexey Kardashevskiy wrote: This adds real and virtual mode handlers for the H_PUT_TCE_INDIRECT and H_STUFF_TCE hypercalls for user space emulated devices such as IBMVIO devices or emulated PCI. These calls

[PATCH] powerpc/eeh: Fix partial hotplug criterion

2016-02-11 Thread Gavin Shan
During error recovery, the device could be removed as part of the partial hotplug. The criterion used to come with partial hotplug is: if the device driver provides error_detected(), slot_reset() and resume() callbacks, it's immune from hotplug. Otherwise, it's going to experience partial hotplug

[BUG] random kernel crashes after THP rework on s390 (maybe also on PowerPC and ARM)

2016-02-11 Thread Gerald Schaefer
Hi, Sebastian Ott reported random kernel crashes beginning with v4.5-rc1 and he also bisected this to commit 61f5d698 "mm: re-enable THP". Further review of the THP rework patches, which cannot be bisected, revealed commit fecffad "s390, thp: remove infrastructure for handling splitting PMDs"