[PATCH] arch/powerpc: use BUILD_BUG() when detect unfit {cmp}xchg, size

2016-02-23 Thread Pan Xinhui
From: pan xinhui __xchg_called_with_bad_pointer() can't tell us what codes use {cmp}xchg in incorrect way. And no error will be reported until the link stage. To fix such kinds of issues in a easy way, we use BUILD_BUG() here. Signed-off-by: pan xinhui --- arch/powerpc/include/asm/cmpxchg.h |

Re: [PATCH] arch/powerpc: use BUILD_BUG() when detect unfit {cmp}xchg, size

2016-02-23 Thread Boqun Feng
On Tue, Feb 23, 2016 at 04:45:16PM +0800, Pan Xinhui wrote: > From: pan xinhui > > __xchg_called_with_bad_pointer() can't tell us what codes use {cmp}xchg > in incorrect way. And no error will be reported until the link stage. > To fix such kinds of issues in a easy way, we use BUILD_BUG() here.

Re: [PATCH V4 03/18] powerpc/mm: add _PAGE_HASHPTE similar to 4K hash

2016-02-23 Thread Aneesh Kumar K.V
Paul Mackerras writes: > On Tue, Feb 23, 2016 at 10:18:05AM +0530, Aneesh Kumar K.V wrote: >> The difference between 64K and 4K hash fault handling is confusing >> with respect to when we set _PAGE_HASHPTE in the linux pte. >> I was trying to find out whether we miss a hpte flush in any >> scenar

Re: [PATCH V4 00/18] Book3s abstraction in preparation for new MMU model

2016-02-23 Thread Aneesh Kumar K.V
"Aneesh Kumar K.V" writes: > Hello, > > This series mostly consisting of code movement. One new thing added in this > series > is to switch book3s 64 to 4 level page table. The changes are done to > accomodate > the upcoming new memory model in future powerpc chips. The details of the new > MMU

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

2016-02-23 Thread Kirill A. Shutemov
On Fri, Feb 12, 2016 at 06:16:40PM +0100, Gerald Schaefer wrote: > On Fri, 12 Feb 2016 16:57:27 +0100 > Christian Borntraeger wrote: > > > > I'm also confused by pmd_none() is equal to !pmd_present() on s390. Hm? > > > > Don't know, Gerald or Martin? > > The implementation frequently changes de

Re: [PATCH] arch/powerpc: use BUILD_BUG() when detect unfit {cmp}xchg, size

2016-02-23 Thread Michael Ellerman
On Tue, 2016-02-23 at 17:15 +0800, Boqun Feng wrote: > On Tue, Feb 23, 2016 at 04:45:16PM +0800, Pan Xinhui wrote: > > From: pan xinhui > > > > diff --git a/arch/powerpc/include/asm/cmpxchg.h > > b/arch/powerpc/include/asm/cmpxchg.h > > index d1a8d93..20c0a30 100644 > > --- a/arch/powerpc/includ

[PATCH V2] arch/powerpc: use BUILD_BUG_ON_MSG() when detect unfit {cmp}xchg size

2016-02-23 Thread Pan Xinhui
From: pan xinhui __xchg_called_with_bad_pointer() can't tell us what codes use {cmp}xchg in incorrect way. And no error will be reported until the link stage. To fix such a kind of issues easily, we use BUILD_BUG_ON_MSG() here. Signed-off-by: pan xinhui --- change from V1: use BUILD_BU

[PATCH V2] arch/powerpc: use BUILD_BUG_ON_MSG() when detect unfit {cmp}xchg size

2016-02-23 Thread Pan Xinhui
From: pan xinhui __xchg_called_with_bad_pointer() can't tell us what codes use {cmp}xchg in incorrect way. And no error will be reported until the link stage. To fix such a kind of issues easily, we use BUILD_BUG_ON_MSG() here. Signed-off-by: pan xinhui --- change from V1: use BUILD_BU

Question on follow_page_mask

2016-02-23 Thread Anshuman Khandual
Not able to understand the first code block of follow_page_mask function. follow_huge_addr function is expected to find the page struct for the given address if it turns out to be a HugeTLB page but then when it finds the page we bug on if it had been called with FOLL_GET flag. page = foll

Re: Question on follow_page_mask

2016-02-23 Thread Kirill A. Shutemov
On Tue, Feb 23, 2016 at 06:45:05PM +0530, Anshuman Khandual wrote: > Not able to understand the first code block of follow_page_mask > function. follow_huge_addr function is expected to find the page > struct for the given address if it turns out to be a HugeTLB page > but then when it finds the pa

[PATCH v5 00/18] cxl: Add support for powerVM guest​

2016-02-23 Thread Frederic Barrat
This series adds support for a cxl card in a powerVM guest. It requires firmware FW840 and an activation code for cxl (CAPI). Note that pHyp only claims support for cxlflash, and not generic support for FPGA CAPI accelerators. cxlflash uses the (slightly modified) Nallatech card, so the memcopy AF

[PATCH v5 02/18] cxl: Move bare-metal specific code to specialized files

2016-02-23 Thread Frederic Barrat
Move a few functions around to better separate code specific to bare-metal environment from code which will be commonly used between guest and bare-metal. Code specific to bare-metal is meant to be in native.c or pci.c only. It's basically anything which touches the card p1 registers, some p2 regi

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

2016-02-23 Thread Frederic Barrat
CXL kernel API was defining the process problem state area during context initialization, making it possible to map the problem state area before attaching the context. This won't work on a powerVM guest. So force the logical behavior, like in userspace: attach first, then map the problem state are

[PATCH v5 05/18] cxl: Rename some bare-metal specific functions

2016-02-23 Thread Frederic Barrat
Rename a few functions, changing the 'cxl_' prefix to either 'cxl_pci_' or 'cxl_native_', to make clear that the implementation is bare-metal specific. Those functions will have an equivalent implementation for a guest in a later patch. Co-authored-by: Christophe Lombard Signed-off-by: Frederic

[PATCH v5 04/18] cxl: Introduce implementation-specific API

2016-02-23 Thread Frederic Barrat
The backend API (in cxl.h) lists some low-level functions whose implementation is different on bare-metal and in a guest. Each environment implements its own functions, and the common code uses them through function pointers, defined in cxl_backend_ops Co-authored-by: Christophe Lombard Signed-of

[PATCH v5 08/18] cxl: IRQ allocation for guests

2016-02-23 Thread Frederic Barrat
The PSL interrupt cannot be multiplexed in a guest, as it is not supported by the hypervisor. So an interrupt will be allocated for it for each context. It will still be the first interrupt found in the first interrupt range, but is treated almost like any other AFU interrupt when creating/deleting

[PATCH v5 06/18] cxl: Isolate a few bare-metal-specific calls

2016-02-23 Thread Frederic Barrat
A few functions are mostly common between bare-metal and guest and just need minor tuning. To avoid crowding the backend API, introduce a few 'if' based on the CPU being in HV mode. Co-authored-by: Christophe Lombard Signed-off-by: Frederic Barrat Signed-off-by: Christophe Lombard Acked-by: Ian

[PATCH v5 12/18] cxl: Add guest-specific code

2016-02-23 Thread Frederic Barrat
From: Christophe Lombard The new of.c file contains code to parse the device tree to find out about cxl adapters and AFUs. guest.c implements the guest-specific callbacks for the backend API. The process element ID is not known until the context is attached, so we have to separate the context I

[PATCH v5 07/18] cxl: Update cxl_irq() prototype

2016-02-23 Thread Frederic Barrat
The context parameter when calling cxl_irq() should be strongly typed. Co-authored-by: Christophe Lombard Signed-off-by: Frederic Barrat Signed-off-by: Christophe Lombard Acked-by: Ian Munsie --- drivers/misc/cxl/cxl.h | 2 +- drivers/misc/cxl/irq.c | 3 +-- 2 files changed, 2 insertions(+),

[PATCH v5 01/18] cxl: Move common code away from bare-metal-specific files

2016-02-23 Thread Frederic Barrat
From: Christophe Lombard Move around some functions which will be accessed from the bare-metal and guest environments. Code in native.c and pci.c is meant to be bare-metal specific. Other files contain code which may be shared with guests. Co-authored-by: Frederic Barrat Signed-off-by: Frederic

[PATCH v5 09/18] cxl: New possible return value from hcall

2016-02-23 Thread Frederic Barrat
From: Christophe Lombard The hcalls introduced for cxl use a possible new value: H_STATE (invalid state). Co-authored-by: Frederic Barrat Signed-off-by: Frederic Barrat Signed-off-by: Christophe Lombard Acked-by: Ian Munsie --- arch/powerpc/include/asm/hvcall.h | 1 + 1 file changed, 1 inse

[PATCH v5 15/18] cxl: Parse device tree and create cxl device(s) at boot

2016-02-23 Thread Frederic Barrat
Add new entry point to scan the device tree at boot in a guest, looking for cxl devices. Co-authored-by: Christophe Lombard Signed-off-by: Frederic Barrat Signed-off-by: Christophe Lombard Acked-by: Ian Munsie --- drivers/misc/cxl/base.c | 25 + 1 file changed, 25 inse

[PATCH v5 13/18] cxl: sysfs support for guests

2016-02-23 Thread Frederic Barrat
From: Christophe Lombard Filter out a few adapter parameters which don't make sense in a guest. Document the changes. Co-authored-by: Frederic Barrat Signed-off-by: Frederic Barrat Signed-off-by: Christophe Lombard --- Documentation/ABI/testing/sysfs-class-cxl | 8 +++ drivers/misc/cxl/

[PATCH v5 10/18] cxl: New hcalls to support cxl adapters

2016-02-23 Thread Frederic Barrat
From: Christophe Lombard The hypervisor calls provide an interface with a coherent platform facility and function. It matches version 0.16 of the 'PAPR changes' document. The following hcalls are supported: H_ATTACH_CA_PROCESSAttach a process element to a coherent platform

[PATCH v5 17/18] cxl: Adapter failure handling

2016-02-23 Thread Frederic Barrat
From: Christophe Lombard Check the AFU state whenever an API is called. The hypervisor may issue a reset of the adapter when it detects a fault. When it happens, it launches an error recovery which will either move the AFU to a permanent failure state, or in the disabled state. If the AFU is foun

[PATCH v5 18/18] cxl: Add tracepoints around the cxl hcall

2016-02-23 Thread Frederic Barrat
From: Christophe Lombard To ease debugging, add a few tracepoints around the cxl hcalls. Co-authored-by: Frederic Barrat Signed-off-by: Frederic Barrat Signed-off-by: Christophe Lombard Acked-by: Ian Munsie --- drivers/misc/cxl/hcalls.c | 9 +++ drivers/misc/cxl/trace.h | 193 +++

[PATCH v5 11/18] cxl: Separate bare-metal fields in adapter and AFU data structures

2016-02-23 Thread Frederic Barrat
From: Christophe Lombard Introduce sub-structures containing the bare-metal specific fields in the structures describing the adapter (struct cxl) and AFU (struct cxl_afu). Update all their references. Co-authored-by: Frederic Barrat Signed-off-by: Frederic Barrat Signed-off-by: Christophe Lomb

[PATCH v5 16/18] cxl: Support the cxl kernel API from a guest

2016-02-23 Thread Frederic Barrat
Like on bare-metal, the cxl driver creates a virtual PHB and a pci device for the AFU. The configuration space of the device is mapped to the configuration record of the AFU. Reuse the code defined in afu_cr_read8|16|32() when reading the configuration space of the AFU device. Even though the (vi

[PATCH v5 14/18] cxl: Support to flash a new image on the adapter from a guest

2016-02-23 Thread Frederic Barrat
From: Christophe Lombard The new flash.c file contains the logic to flash a new image on the adapter, through a hcall. It is an iterative process, with chunks of data of 1M at a time. There are also 2 phases: write and verify. The flash operation itself is driven from a user-land tool. Once flash

[PATCH v7] powerpc32: provide VIRT_CPU_ACCOUNTING

2016-02-23 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 v8 8/8] livepatch: Detect offset for the ftrace location during build

2016-02-23 Thread Torsten Duwe
On Wed, Feb 17, 2016 at 02:08:41PM +1100, Michael Ellerman wrote: > > That stub uses r2 to find the location of itself, but it only works if r2 > holds > the TOC for scsi_mod.ko. In this case r2 still contains ibmvscsi.ko's TOC. Here's my solution, a bit rough still. This replaces the module_64.

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

2016-02-23 Thread Linus Torvalds
On Tue, Feb 23, 2016 at 2:32 AM, Kirill A. Shutemov wrote: > > I still worry about pmd_present(). It looks wrong to me. I wounder if > patch below makes a difference. Let's hope that's it, but in the meantime I do want to start the discussion about what to do if it isn't. We're at rc5, and 4.5 is

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

2016-02-23 Thread Gerald Schaefer
On Tue, 23 Feb 2016 13:32:21 +0300 "Kirill A. Shutemov" wrote: > On Fri, Feb 12, 2016 at 06:16:40PM +0100, Gerald Schaefer wrote: > > On Fri, 12 Feb 2016 16:57:27 +0100 > > Christian Borntraeger wrote: > > > > > > I'm also confused by pmd_none() is equal to !pmd_present() on s390. Hm? > > > >

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

2016-02-23 Thread Will Deacon
[adding Steve, since he worked on THP for 32-bit ARM] On Tue, Feb 23, 2016 at 07:19:07PM +0100, Gerald Schaefer wrote: > On Tue, 23 Feb 2016 13:32:21 +0300 > "Kirill A. Shutemov" wrote: > > The theory is that the splitting bit effetely masked bogus pmd_present(): > > we had pmd_trans_splitting()

Re: [PATCH v5 01/18] cxl: Move common code away from bare-metal-specific files

2016-02-23 Thread Manoj Kumar
Reviewed-by: Manoj Kumar --- Manoj Kumar On 2/23/2016 10:21 AM, Frederic Barrat wrote: From: Christophe Lombard Move around some functions which will be accessed from the bare-metal and guest environments. Code in native.c and pci.c is meant to be bare-metal specific. Other files contain cod

Re: [PATCH v5 02/18] cxl: Move bare-metal specific code to specialized files

2016-02-23 Thread Manoj Kumar
Reviewed-by: Manoj Kumar --- Manoj Kumar On 2/23/2016 10:21 AM, Frederic Barrat wrote: Move a few functions around to better separate code specific to bare-metal environment from code which will be commonly used between guest and bare-metal. Code specific to bare-metal is meant to be in nativ

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

2016-02-23 Thread Manoj Kumar
Reviewed-by: Manoj Kumar --- Manoj Kumar On 2/23/2016 10:21 AM, Frederic Barrat wrote: CXL kernel API was defining the process problem state area during context initialization, making it possible to map the problem state area before attaching the context. This won't work on a powerVM guest. S

Re: [PATCH v5 04/18] cxl: Introduce implementation-specific API

2016-02-23 Thread Manoj Kumar
Reviewed-by: Manoj Kumar --- Manoj Kumar On 2/23/2016 10:21 AM, Frederic Barrat wrote: The backend API (in cxl.h) lists some low-level functions whose implementation is different on bare-metal and in a guest. Each environment implements its own functions, and the common code uses them through

Re: [PATCH v5 05/18] cxl: Rename some bare-metal specific functions

2016-02-23 Thread Manoj Kumar
Reviewed-by: Manoj Kumar --- Manoj Kumar On 2/23/2016 10:21 AM, Frederic Barrat wrote: Rename a few functions, changing the 'cxl_' prefix to either 'cxl_pci_' or 'cxl_native_', to make clear that the implementation is bare-metal specific. Those functions will have an equivalent implementatio

Re: [PATCH v5 06/18] cxl: Isolate a few bare-metal-specific calls

2016-02-23 Thread Manoj Kumar
Reviewed-by: Manoj Kumar --- Manoj Kumar On 2/23/2016 10:21 AM, Frederic Barrat wrote: A few functions are mostly common between bare-metal and guest and just need minor tuning. To avoid crowding the backend API, introduce a few 'if' based on the CPU being in HV mode. Co-authored-by: Christop

Re: [PATCH v5 07/18] cxl: Update cxl_irq() prototype

2016-02-23 Thread Manoj Kumar
Reviewed-by: Manoj Kumar --- Manoj Kumar On 2/23/2016 10:21 AM, Frederic Barrat wrote: The context parameter when calling cxl_irq() should be strongly typed. Co-authored-by: Christophe Lombard Signed-off-by: Frederic Barrat Signed-off-by: Christophe Lombard Acked-by: Ian Munsie --- driv

Re: [PATCH v5 08/18] cxl: IRQ allocation for guests

2016-02-23 Thread Manoj Kumar
Fred: Thanks for revising the commit message. Reviewed-by: Manoj Kumar --- Manoj Kumar On 2/23/2016 10:21 AM, Frederic Barrat wrote: The PSL interrupt cannot be multiplexed in a guest, as it is not supported by the hypervisor. So an interrupt will be allocated for it for each context. It will

Re: [PATCH v5 09/18] cxl: New possible return value from hcall

2016-02-23 Thread Manoj Kumar
Reviewed-by: Manoj Kumar --- Manoj Kumar On 2/23/2016 10:21 AM, Frederic Barrat wrote: From: Christophe Lombard The hcalls introduced for cxl use a possible new value: H_STATE (invalid state). Co-authored-by: Frederic Barrat Signed-off-by: Frederic Barrat Signed-off-by: Christophe Lombard

Re: [PATCH v5 10/18] cxl: New hcalls to support cxl adapters

2016-02-23 Thread Manoj Kumar
Fred: Thanks for correcting those spellings. Reviewed-by: Manoj Kumar --- Manoj Kumar On 2/23/2016 10:21 AM, Frederic Barrat wrote: From: Christophe Lombard The hypervisor calls provide an interface with a coherent platform facility and function. It matches version 0.16 of the 'PAPR change

Re: [PATCH v5 09/18] cxl: New possible return value from hcall

2016-02-23 Thread Michael Neuling
On Tue, 2016-02-23 at 17:21 +0100, Frederic Barrat wrote: > From: Christophe Lombard > > The hcalls introduced for cxl use a possible new value: > H_STATE (invalid state). FWIW, this patch subject be powerpc: not cxl: > Co-authored-by: Frederic Barrat > Signed-off-by: Frederic Barrat > Sign

Re: [PATCH v7] powerpc32: provide VIRT_CPU_ACCOUNTING

2016-02-23 Thread Scott Wood
On Wed, 2016-02-24 at 02:38 +0800, kbuild test robot wrote: > Hi Christophe, > > [auto build test ERROR on powerpc/next] > [also build test ERROR on v4.5-rc5 next-20160223] > [if your patch is applied to the wrong git tree, please drop us a note to > help improving the system]

Re: [PATCH v7] powerpc32: provide VIRT_CPU_ACCOUNTING

2016-02-23 Thread christophe leroy
Le 23/02/2016 20:28, Scott Wood a écrit : On Wed, 2016-02-24 at 02:38 +0800, kbuild test robot wrote: Hi Christophe, [auto build test ERROR on powerpc/next] [also build test ERROR on v4.5-rc5 next-20160223] [if your patch is applied to the wrong git tree, please drop us a note to help

Re: [PATCH v7] powerpc32: provide VIRT_CPU_ACCOUNTING

2016-02-23 Thread Scott Wood
On Tue, 2016-02-23 at 20:32 +0100, christophe leroy wrote: > > Le 23/02/2016 20:28, Scott Wood a écrit : > > On Wed, 2016-02-24 at 02:38 +0800, kbuild test robot wrote: > > > Hi Christophe, > > > > > > [auto build test ERROR on powerpc/next] > > >

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

2016-02-23 Thread Kirill A. Shutemov
On Tue, Feb 23, 2016 at 07:19:07PM +0100, Gerald Schaefer wrote: > I'll check with Martin, maybe it is actually trivial, then we can > do a quick test it to rule that one out. Oh. I found a bug in __split_huge_pmd_locked(). Although, not sure if it's _the_ bug. pmdp_invalidate() is called for the

Re: [PATCH v7] powerpc32: provide VIRT_CPU_ACCOUNTING

2016-02-23 Thread kbuild test robot
Hi Christophe, [auto build test ERROR on powerpc/next] [also build test ERROR on v4.5-rc5 next-20160223] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Christophe-Leroy/powerpc32-provide

Re: [PATCH v2 1/7] QE: Add IC, SI and SIRAM document to device tree bindings.

2016-02-23 Thread Rob Herring
On Thu, Feb 18, 2016 at 09:06:06AM +0800, Zhao Qiang wrote: > Add IC, SI and SIRAM document of QE to > Documentation/devicetree/bindings/powerpc/fsl/cpm_qe/qe.txt > > Signed-off-by: Zhao Qiang > --- > Changes for v2 > - Add interrupt-controller in Required properties > - delete addres

Re: [PATCH v2 1/7] QE: Add IC, SI and SIRAM document to device tree bindings.

2016-02-23 Thread Scott Wood
On Tue, 2016-02-23 at 14:15 -0600, Rob Herring wrote: > On Thu, Feb 18, 2016 at 09:06:06AM +0800, Zhao Qiang wrote: > > Add IC, SI and SIRAM document of QE to > > Documentation/devicetree/bindings/powerpc/fsl/cpm_qe/qe.txt > > > > Signed-off-by: Zhao Qiang > > --- > > Changes for v2 > > - Add

Re: [PATCH v2 2/7] QE: Add ucc hdlc document to bindings

2016-02-23 Thread Rob Herring
On Thu, Feb 18, 2016 at 09:06:07AM +0800, Zhao Qiang wrote: > Add ucc hdlc document to > Documentation/devicetree/bindings/powerpc/fsl/cpm_qe/network.txt Not a very useful description. > Signed-off-by: Zhao Qiang > --- > Changes for v2 > - use ucc-hdlc instead of ucc_hdlc > - add mor

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

2016-02-23 Thread Will Deacon
On Tue, Feb 23, 2016 at 10:33:45PM +0300, Kirill A. Shutemov wrote: > On Tue, Feb 23, 2016 at 07:19:07PM +0100, Gerald Schaefer wrote: > > I'll check with Martin, maybe it is actually trivial, then we can > > do a quick test it to rule that one out. > > Oh. I found a bug in __split_huge_pmd_locked

Re: [PATCH v2 3/7] QE: Add uqe_serial document to bindings

2016-02-23 Thread Rob Herring
On Thu, Feb 18, 2016 at 09:06:08AM +0800, Zhao Qiang wrote: > Add uqe_serial document to > Documentation/devicetree/bindings/powerpc/fsl/cpm_qe/uqe_serial.txt > > Signed-off-by: Zhao Qiang > --- > Changes for v2 > - modify tx/rx-clock-name specification > > .../bindings/powerpc/fsl/cpm_qe

Re: [PATCH v2 4/7] bindings: move cpm_qe binding from powerpc/fsl to soc/fsl

2016-02-23 Thread Rob Herring
On Thu, Feb 18, 2016 at 09:06:09AM +0800, Zhao Qiang wrote: > cpm_qe is supported on both powerpc and arm. > and the QE code has been moved from arch/powerpc into > drivers/soc/fsl, so move cpm_qe binding from powerpc/fsl > to soc/fsl > > Signed-off-by: Zhao Qiang > --- > Changes for v2 > -

Re: [PATCH v2 3/7] QE: Add uqe_serial document to bindings

2016-02-23 Thread Scott Wood
On Tue, 2016-02-23 at 14:23 -0600, Rob Herring wrote: > On Thu, Feb 18, 2016 at 09:06:08AM +0800, Zhao Qiang wrote: > > Add uqe_serial document to > > Documentation/devicetree/bindings/powerpc/fsl/cpm_qe/uqe_serial.txt > > > > Signed-off-by: Zhao Qiang > > --- > > Changes for v2 > > - modify

Re: Question on follow_page_mask

2016-02-23 Thread Hugh Dickins via Linuxppc-dev
On Tue, 23 Feb 2016, Kirill A. Shutemov wrote: > On Tue, Feb 23, 2016 at 06:45:05PM +0530, Anshuman Khandual wrote: > > Not able to understand the first code block of follow_page_mask > > function. follow_huge_addr function is expected to find the page > > struct for the given address if it turns o

[PATCH 1/3] powerpc/powernv: Add powernv_defconfig

2016-02-23 Thread Jeremy Kerr
This change adds a defconfig for the non-virtualised power platforms, based on pseries_defconfig, but without pseries, and little-endian, and no OF trampoline. Signed-off-by: Jeremy Kerr --- arch/powerpc/configs/powernv_defconfig | 307 + 1 file changed, 307 inser

[PATCH 3/3] powerpc/powernv: Add AST graphics driver to powernv_defconfig

2016-02-23 Thread Jeremy Kerr
Most current OpenPOWER platforms have an AST BMC, so add graphics support via the AST DRM driver. Signed-off-by: Jeremy Kerr --- arch/powerpc/configs/powernv_defconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/configs/powernv_defconfig b/arch/powerpc/c

[PATCH 2/3] powerpc/powernv: Add powernv firmware interface drivers to powernv_defconfig

2016-02-23 Thread Jeremy Kerr
There are a few firmware-provided interfaces for OpenPOWER platforms: the PRD infrastructure, IPMI support, and MTD access to the PNOR flash. This change adds these to powernv_defconfig Signed-off-by: Jeremy Kerr --- arch/powerpc/configs/powernv_defconfig | 6 ++ 1 file changed, 6 insertion

Re: [PATCH 1/3] powerpc/powernv: Add powernv_defconfig

2016-02-23 Thread Joel Stanley
On Wed, Feb 24, 2016 at 12:25 PM, Jeremy Kerr wrote: > This change adds a defconfig for the non-virtualised power platforms, > based on pseries_defconfig, but without pseries, and little-endian, > and no OF trampoline. Good idea! We could drop the parallel port and the Intel ethernet drivers, bu

Re: [PATCH 1/3] powerpc/powernv: Add powernv_defconfig

2016-02-23 Thread Vaibhav Jain
Hi Jeremy, Jeremy Kerr writes: > +CONFIG_RTC_CLASS=y > +CONFIG_RTC_DRV_GENERIC=y Would recommend using CONFIG_RTC_DRV_OPAL=y instead of using the generic RTC driver. Cheers, ~ Vaibhav ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https

Re: [PATCH v8 8/8] livepatch: Detect offset for the ftrace location during build

2016-02-23 Thread Balbir Singh
On 24/02/16 04:00, Torsten Duwe wrote: > On Wed, Feb 17, 2016 at 02:08:41PM +1100, Michael Ellerman wrote: >> That stub uses r2 to find the location of itself, but it only works if r2 >> holds >> the TOC for scsi_mod.ko. In this case r2 still contains ibmvscsi.ko's TOC. > Here's my solution, a b

Re: [PATCH v8 8/8] livepatch: Detect offset for the ftrace location during build

2016-02-23 Thread Balbir Singh
We need to remove the SQUASH_TOC_SAVE_INSNS bits as well, now that the ppc64_profile_stub_insns does not save r2 > Looks like we are getting closer to the final solution Thanks, Balbir With the SQUASH_TOC_SAVE_INSNS removed, ftrace function seems to work, but function_graph is broken. I've no

Re: [PATCH v8 8/8] livepatch: Detect offset for the ftrace location during build

2016-02-23 Thread Kamalesh Babulal
* Torsten Duwe [2016-02-23 18:00:17]: > On Wed, Feb 17, 2016 at 02:08:41PM +1100, Michael Ellerman wrote: > > > > That stub uses r2 to find the location of itself, but it only works if r2 > > holds > > the TOC for scsi_mod.ko. In this case r2 still contains ibmvscsi.ko's TOC. > > Here's my sol