Re: Build regressions/improvements in v4.5-rc1

2016-01-25 Thread Geert Uytterhoeven
On Mon, Jan 25, 2016 at 9:18 AM, Geert Uytterhoeven wrote: > Below is the list of build error/warning regressions/improvements in > v4.5-rc1[1] compared to v4.4[2]. > > Summarized: > - build errors: +15/-23 > [1] http://kisskb.ellerman.id.au/kisskb/head/9841/ (all 261 configs) > [2] http://kiss

[PATCH] powerpc/perf: Remove PPMU_HAS_SSLOT flag for Power8

2016-01-25 Thread Madhavan Srinivasan
Commit: 7a7868326d77 introduced PPMU_HAS_SSLOT flag to remove assumption of MMCRA[SLOT] with respect to PPMU_ALT_SIPR flag. Commit 7a7868326d77's message also specifies that Power8 does not support MMCRA[SLOT]. But still PPMU_HAS_SSLOT flag managed to get into Power8 code. Patch to remove the

Re: [PATCH v3 2/2] KVM: PPC: Exit guest upon MCE when FWNMI capability is enabled

2016-01-25 Thread Aravinda Prasad
On Sunday 24 January 2016 02:54 AM, Paul Mackerras wrote: > On Sat, Jan 23, 2016 at 06:23:35PM +0530, Aravinda Prasad wrote: >> >> >> On Saturday 23 January 2016 03:58 PM, Paul Mackerras wrote: >>> On Wed, Jan 13, 2016 at 12:38:09PM +0530, Aravinda Prasad wrote: Enhance KVM to cause a guest

Re: [PATCH] powerpc/perf: Remove PPMU_HAS_SSLOT flag for Power8

2016-01-25 Thread Anshuman Khandual
On 01/25/2016 02:03 PM, Madhavan Srinivasan wrote: > Commit: 7a7868326d77 introduced PPMU_HAS_SSLOT flag to > remove assumption of MMCRA[SLOT] with respect to > PPMU_ALT_SIPR flag. Commit 7a7868326d77's message also > specifies that Power8 does not support MMCRA[SLOT]. > But still PPMU_HAS_SSL

Re: [kernel] powerpc: Make vmalloc_to_phys() public

2016-01-25 Thread Paul Mackerras
On Mon, Jan 25, 2016 at 04:46:03PM +1100, Michael Ellerman wrote: > On Thu, 2016-21-01 at 07:35:08 UTC, Alexey Kardashevskiy wrote: > > This makes vmalloc_to_phys() public as there will be another user > > (in-kernel VFIO acceleration) for it soon. > > > > As a part of future little optimization,

Re: [PATCH V2] selfttest/powerpc: Add memory page migration tests

2016-01-25 Thread Anshuman Khandual
On 11/24/2015 01:42 PM, Denis Kirjanov wrote: > On 11/24/15, Anshuman Khandual wrote: >> This adds two tests for memory page migration. One for normal page >> migration which works for both 4K or 64K base page size kernel and >> the other one is for 16MB huge page migration which will work both >>

86xx

2016-01-25 Thread Alessio Igor Bogani
Hi All, Sorry for my very bad English! I'm looking for who takes care of the 86xx subtree (arch/powerpc/platform/86xx) but I haven't found any entry into MAINTEINARS file. Ciao, Alessio ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https:

[PATCH v4 0/3] kallsyms base relative series

2016-01-25 Thread Ard Biesheuvel
This v4 of my kallsyms base relative implementation is now a 3 piece series, since it caused some problems due to the way absolute symbols are handled by the absolute per cpu code. As it turns out, that code was probably wrong in the sense that it caused non-relocated symbol addresses to be emitted

[PATCH v4 2/3] kallsyms: don't overload absolute symbol type for percpu symbols

2016-01-25 Thread Ard Biesheuvel
Commit c6bda7c988a5 ("kallsyms: fix percpu vars on x86-64 with relocation") overloaded the 'A' (absolute) symbol type to signify that a symbol is not subject to dynamic relocation. However, the original A type does not imply that at all, and depending on the version of the toolchain, many A type sy

[PATCH v4 3/3] kallsyms: add support for relative offsets in kallsyms address table

2016-01-25 Thread Ard Biesheuvel
Similar to how relative extables are implemented, it is possible to emit the kallsyms table in such a way that it contains offsets relative to some anchor point in the kernel image rather than absolute addresses. On 64-bit architectures, it cuts the size of the kallsyms address table in half, sinc

[RFC PATCH] PPC32: Fix build failure caused by missing dirty pte handlers

2016-01-25 Thread Pranith Kumar
In 4.5-rc1, I am getting a build failure as follows: mm/memory.c: In function ‘do_swap_page’: mm/memory.c:2573:9: error: implicit declaration of function ‘pte_mksoft_dirty’ [-Werror=implicit-function-declaration] pte = pte_mksoft_dirty(pte); The soft dirty pte handlers are declared only for PP

[PATCH v4 1/3] x86: kallsyms: disable absolute percpu symbols on !SMP

2016-01-25 Thread Ard Biesheuvel
scripts/kallsyms.c has a special --absolute-percpu command line option which deals with the zero based per cpu offsets that are used when building for SMP on x86_64. This means that the option should only be passed in that case, so add a check for CONFIG_SMP. Otherwise, per cpu variables are record

Re: [v3,11/41] mips: reuse asm-generic/barrier.h

2016-01-25 Thread Will Deacon
On Fri, Jan 15, 2016 at 11:28:45AM -0800, Paul E. McKenney wrote: > On Fri, Jan 15, 2016 at 09:54:01AM -0800, Paul E. McKenney wrote: > > On Fri, Jan 15, 2016 at 10:24:32AM +, Will Deacon wrote: > > > See my earlier reply [1] (but also, your WRC Linux example looks more > > > like a variant on

Re: [v3,11/41] mips: reuse asm-generic/barrier.h

2016-01-25 Thread Will Deacon
On Fri, Jan 15, 2016 at 01:58:53PM -0800, Paul E. McKenney wrote: > On Fri, Jan 15, 2016 at 10:27:14PM +0100, Peter Zijlstra wrote: > > On Fri, Jan 15, 2016 at 09:46:12AM -0800, Paul E. McKenney wrote: > > > On Fri, Jan 15, 2016 at 10:13:48AM +0100, Peter Zijlstra wrote: > > > > > > And the stuff

[PATCH v6 0/9] ftrace with regs + live patching for ppc64 LE (ABI v2)

2016-01-25 Thread Torsten Duwe
Changes since v5: * extra "std r0,LRSAVE(r1)" for gcc-6 This makes the code compiler-agnostic. * Follow Petr Mladek's suggestion to avoid redefinition of HAVE_LIVEPATCH Changes since v4: * change comment style in entry_64.S to C89 (nobody is using assembler syntax comments there)

[PATCH v6 1/9] ppc64 (le): prepare for -mprofile-kernel

2016-01-25 Thread Torsten Duwe
The gcc switch -mprofile-kernel, available for ppc64 on gcc > 4.8.5, allows to call _mcount very early in the function, which low-level ASM code and code patching functions need to consider. Especially the link register and the parameter registers are still alive and not yet saved into a new stack

[PATCH v6 2/9] ppc64le FTRACE_WITH_REGS implementation

2016-01-25 Thread Torsten Duwe
Implement FTRACE_WITH_REGS for powerpc64, on ELF ABI v2. Initial work started by Vojtech Pavlik, used with permission. * arch/powerpc/kernel/entry_64.S: - Implement an effective ftrace_caller that works from within the kernel binary as well as from modules. * arch/powerpc/kernel/ftra

[PATCH v6 3/9] ppc use ftrace_modify_all_code default

2016-01-25 Thread Torsten Duwe
Convert ppc's arch_ftrace_update_code from its own function copy to use the generic default functionality (without stop_machine -- our instructions are properly aligned and the replacements atomic ;) With this we gain error checking and the much-needed function_trace_op handling. Signed-off-by: T

[PATCH v6 4/9] ppc64 ftrace_with_regs configuration variables

2016-01-25 Thread Torsten Duwe
* Makefile: - globally use -mprofile-kernel in case it's configured and available. * arch/powerpc/Kconfig / kernel/trace/Kconfig: - declare that ppc64le HAVE_MPROFILE_KERNEL and HAVE_DYNAMIC_FTRACE_WITH_REGS, and use it. Signed-off-by: Torsten Duwe --- arch/powerpc/Kconfi

[PATCH v6 7/9] ppc64 ftrace: disable profiling for some files

2016-01-25 Thread Torsten Duwe
This patch complements the "notrace" attribute for selected functions. It adds -mprofile-kernel to the cc flags to be stripped from the command line for code-patching.o and feature-fixups.o, in addition to "-pg" Signed-off-by: Torsten Duwe --- arch/powerpc/lib/Makefile | 4 ++-- 1 file changed,

[PATCH v6 8/9] Implement kernel live patching for ppc64le (ABIv2)

2016-01-25 Thread Torsten Duwe
* create the appropriate files+functions arch/powerpc/include/asm/livepatch.h klp_check_compiler_support, klp_arch_set_pc arch/powerpc/kernel/livepatch.c with a stub for klp_write_module_reloc This is architecture-independent work in progress. * introduce a f

[PATCH v6 9/9] Enable LIVEPATCH to be configured on ppc64le and add livepatch.o if it is selected.

2016-01-25 Thread Torsten Duwe
Signed-off-by: Torsten Duwe --- arch/powerpc/Kconfig |3 +++ arch/powerpc/kernel/Makefile |1 + 2 files changed, 4 insertions(+) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 89b1a2a..62a3f54 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -162,6

[PATCH v6 5/9] ppc64 ftrace_with_regs: spare early boot and low level

2016-01-25 Thread Torsten Duwe
Using -mprofile-kernel on early boot code not only confuses the checker but is also useless, as the infrastructure is not yet in place. Proceed like with -pg (remove it from CFLAGS), equally with time.o and ftrace itself. * arch/powerpc/kernel/Makefile: - remove -mprofile-kernel from low lev

[PATCH v6 6/9] ppc64 ftrace: disable profiling for some functions

2016-01-25 Thread Torsten Duwe
At least POWER7/8 have MMUs that don't completely autoload; a normal, recoverable memory fault might pass through these functions. If a dynamic tracer function causes such a fault, any of these functions being traced with -mprofile-kernel may cause an endless recursion. Signed-off-by: Torsten Duwe

Re: [v3,11/41] mips: reuse asm-generic/barrier.h

2016-01-25 Thread Will Deacon
Hi Paul, On Fri, Jan 15, 2016 at 09:39:12AM -0800, Paul E. McKenney wrote: > On Fri, Jan 15, 2016 at 09:55:54AM +0100, Peter Zijlstra wrote: > > On Thu, Jan 14, 2016 at 01:29:13PM -0800, Paul E. McKenney wrote: > > > So smp_mb() provides transitivity, as do pairs of smp_store_release() > > > and s

Re: [PATCH v4 0/3] kallsyms base relative series

2016-01-25 Thread Guenter Roeck
On 01/25/2016 06:19 AM, Ard Biesheuvel wrote: This v4 of my kallsyms base relative implementation is now a 3 piece series, since it caused some problems due to the way absolute symbols are handled by the absolute per cpu code. As it turns out, that code was probably wrong in the sense that it cau

Re: [PATCH] powerpc/mm: Allow user space to map rtas_rmo_buf

2016-01-25 Thread Nathan Fontenot
On 01/22/2016 02:35 AM, Michael Ellerman wrote: > On Fri, 2016-01-22 at 11:58 +0530, Vasant Hegde wrote: >> On 01/22/2016 10:59 AM, Michael Ellerman wrote: >>> On Thu, 2016-01-21 at 21:45 +0530, Vasant Hegde wrote: >>> With commit 90a545e9 (restrict /dev/mem to idle io memory ranges) mapping >

Re: [PATCH] powerpc/mm: Allow user space to map rtas_rmo_buf

2016-01-25 Thread Nathan Fontenot
On 01/22/2016 04:41 AM, Denis Kirjanov wrote: > On 1/22/16, Michael Ellerman wrote: >> On Fri, 2016-01-22 at 11:58 +0530, Vasant Hegde wrote: >>> On 01/22/2016 10:59 AM, Michael Ellerman wrote: On Thu, 2016-01-21 at 21:45 +0530, Vasant Hegde wrote: > With commit 90a545e9 (restrict /d

Re: [PATCH] 82xx: FCC: Fixing a bug causing to FCC port lock-up (second try)

2016-01-25 Thread David Miller
From: Martin Roth Date: Sun, 24 Jan 2016 00:56:19 +0200 > This is an additional patch to the one already submitted recently. > The previous patch was not complete, and the FCC port lock-up scenario > has been reproduced in lab. > I had an opportunity to check the current patch in lab and the FCC

Re: [PATCH v4 0/3] kallsyms base relative series

2016-01-25 Thread Kees Cook
On Mon, Jan 25, 2016 at 6:19 AM, Ard Biesheuvel wrote: > This v4 of my kallsyms base relative implementation is now a 3 piece series, > since it caused some problems due to the way absolute symbols are handled > by the absolute per cpu code. As it turns out, that code was probably wrong > in the s

Re: 86xx

2016-01-25 Thread christophe leroy
Le 25/01/2016 12:15, Alessio Igor Bogani a écrit : Hi All, Sorry for my very bad English! I'm looking for who takes care of the 86xx subtree (arch/powerpc/platform/86xx) but I haven't found any entry into MAINTEINARS file. Ciao, Alessio Looks like Kumar Gala is the commiter for many fi

[PATCH 3/3] tty: hvc_xen: hide xen_console_remove when unused

2016-01-25 Thread Arnd Bergmann
xencons_disconnect_backend() is only called from xen_console_remove(), which is conditionally compiled, so we get a harmless warning when CONFIG_HVC_XEN_FRONTEND is unset: hvc/hvc_xen.c:350:12: error: 'xen_console_remove' defined but not used [-Werror=unused-function] This moves the function dow

Re: [PATCH 3/3] tty: hvc_xen: hide xen_console_remove when unused

2016-01-25 Thread Boris Ostrovsky
On 01/25/2016 04:54 PM, Arnd Bergmann wrote: xencons_disconnect_backend() is only called from xen_console_remove(), and also from xencons_probe()/xencons_resume(). But those two are also under the same ifdef. -boris which is conditionally compiled, so we get a harmless warning when CONFIG_

Re: [PATCH] QE: Use GFP_ATOMIC while spin_lock_irqsave is held

2016-01-25 Thread Scott Wood
On Sun, 2016-01-24 at 12:24 +0530, Saurabh Sengar wrote: > cpm_muram_alloc_common is called twice and both the times > spin_lock_irqsave is held. > Using GFP_KERNEL can sleep in spin_lock_irqsave context and cause > deadlock > > Signed-off-by: Saurabh Sengar > --- > Let me know if there is any ot

Re: cxl: Fix struct pid leak when attaching a process through user API

2016-01-25 Thread Michael Ellerman
On Tue, 2015-03-11 at 12:13:52 UTC, Frederic Barrat wrote: > When the cxl driver creates a context, it stores the pid of the > calling task, and mistakenly increments the reference count of the > struct pid twice, once through get_task_pid(), once through > get_pid(). The reference count is only de

Re: [RFC PATCH] PPC32: Fix build failure caused by missing dirty pte handlers

2016-01-25 Thread Michael Ellerman
On Mon, 2016-01-25 at 09:22 -0500, Pranith Kumar wrote: > In 4.5-rc1, I am getting a build failure as follows: > > mm/memory.c: In function ‘do_swap_page’: > mm/memory.c:2573:9: error: implicit declaration of function ‘pte_mksoft_dirty’ > [-Werror=implicit-function-declaration] >pte = pte_mks

Re: [RFC PATCH] PPC32: Fix build failure caused by missing dirty pte handlers

2016-01-25 Thread Pranith Kumar
On Mon, Jan 25, 2016 at 10:13 PM, Michael Ellerman wrote: > On Mon, 2016-01-25 at 09:22 -0500, Pranith Kumar wrote: > >> In 4.5-rc1, I am getting a build failure as follows: >> >> mm/memory.c: In function ‘do_swap_page’: >> mm/memory.c:2573:9: error: implicit declaration of function >> ‘pte_mksof

Re: [v3,11/41] mips: reuse asm-generic/barrier.h

2016-01-25 Thread Paul E. McKenney
On Mon, Jan 25, 2016 at 02:41:34PM +, Will Deacon wrote: > On Fri, Jan 15, 2016 at 11:28:45AM -0800, Paul E. McKenney wrote: > > On Fri, Jan 15, 2016 at 09:54:01AM -0800, Paul E. McKenney wrote: > > > On Fri, Jan 15, 2016 at 10:24:32AM +, Will Deacon wrote: > > > > See my earlier reply [1]

Re: [v3,11/41] mips: reuse asm-generic/barrier.h

2016-01-25 Thread Paul E. McKenney
On Mon, Jan 25, 2016 at 04:42:43PM +, Will Deacon wrote: > On Fri, Jan 15, 2016 at 01:58:53PM -0800, Paul E. McKenney wrote: > > On Fri, Jan 15, 2016 at 10:27:14PM +0100, Peter Zijlstra wrote: > > > On Fri, Jan 15, 2016 at 09:46:12AM -0800, Paul E. McKenney wrote: > > > > On Fri, Jan 15, 2016 a

Re: [v3,11/41] mips: reuse asm-generic/barrier.h

2016-01-25 Thread Paul E. McKenney
On Mon, Jan 25, 2016 at 06:02:34PM +, Will Deacon wrote: > Hi Paul, > > On Fri, Jan 15, 2016 at 09:39:12AM -0800, Paul E. McKenney wrote: > > On Fri, Jan 15, 2016 at 09:55:54AM +0100, Peter Zijlstra wrote: > > > On Thu, Jan 14, 2016 at 01:29:13PM -0800, Paul E. McKenney wrote: > > > > So smp_m