Re: [PATCH v9 02/11] powerpc: prepare string/mem functions for KASAN

2019-03-03 Thread Daniel Axtens
Hi Christophe, > diff --git a/arch/powerpc/include/asm/kasan.h > b/arch/powerpc/include/asm/kasan.h > new file mode 100644 > index ..c3161b8fc017 > --- /dev/null > +++ b/arch/powerpc/include/asm/kasan.h > @@ -0,0 +1,15 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ > +#ifndef __ASM_KASAN

Re: [PATCH] powerpc: remove dead code in head_fsl_booke.S

2019-03-03 Thread Jason Yan
On 2019/2/28 21:00, Christophe Leroy wrote: Le 28/02/2019 à 09:31, Jason Yan a écrit : This code is dead. Just remove it. Signed-off-by: Jason Yan Reviewed-by: Christophe Leroy This review was easy :) Christophe Christophe, thanks. ---   arch/powerpc/kernel/head_fsl_booke.S | 7

Re: [PATCH kernel v3] KVM: PPC: Allocate guest TCEs on demand too

2019-03-03 Thread David Gibson
On Fri, Mar 01, 2019 at 03:34:36PM +1100, Alexey Kardashevskiy wrote: > We already allocate hardware TCE tables in multiple levels and skip > intermediate levels when we can, now it is a turn of the KVM TCE tables. > Thankfully these are allocated already in 2 levels. > > This moves the table's la

Re: powerpc: remote save_stack_trace_tsk_reliable export

2019-03-03 Thread Michael Ellerman
On Fri, 2019-03-01 at 19:17:21 UTC, Joe Lawrence wrote: > As tglx points out, there are no in-tree module users of > save_stack_trace_tsk_reliable() and its x86 counterpart is not exported, > so remove the powerpc symbol export. > > Suggested-by: Thomas Gleixner > Signed-off-by: Joe Lawrence > A

Re: [v2] powerpc/mm: fix "section_base" set but not used

2019-03-03 Thread Michael Ellerman
On Fri, 2019-03-01 at 14:20:40 UTC, Qian Cai wrote: > The commit 24b6d4164348 ("mm: pass the vmem_altmap to vmemmap_free") > removed a line in vmemmap_free(), > > altmap = to_vmem_altmap((unsigned long) section_base); > > but left a variable no longer used. > > arch/powerpc/mm/init_64.c: In func

Re: powerpc/64s: Fix unrelocated interrupt trampoline address test

2019-03-03 Thread Michael Ellerman
On Fri, 2019-03-01 at 12:56:36 UTC, Nicholas Piggin wrote: > The recent commit got this test wrong, it declared the assembler > symbols the wrong way, and also used the wrong symbol name > (xxx_start rather than start_xxx, see asm/head-64.h). > > Fixes: ccd477028a ("powerpc/64s: Fix HV NMI vs HV i

Re: powerpc: fix "sz" set but not used

2019-03-03 Thread Michael Ellerman
On Thu, 2019-02-28 at 02:35:05 UTC, Qian Cai wrote: > arch/powerpc/mm/hugetlbpage-hash64.c: In function '__hash_page_huge': > arch/powerpc/mm/hugetlbpage-hash64.c:29:28: warning: variable 'sz' set > but not used [-Wunused-but-set-variable] > > Signed-off-by: Qian Cai Applied to powerpc next, tha

Re: powerpc/mm: Check secondary hash page table

2019-03-03 Thread Michael Ellerman
On Tue, 2019-02-12 at 23:29:49 UTC, Rashmica Gupta wrote: > We were always calling base_hpte_find() with primary = true, > even when we wanted to check the secondary table... > > Fixes: 1515ab932156 powerpc/mm: Dump hash table > > Signed-off-by: Rashmica Gupta Applied to powerpc next, thanks.

Re: [1/2] powerpc: remove nargs from __SYSCALL

2019-03-03 Thread Michael Ellerman
On Wed, 2019-01-02 at 15:02:03 UTC, Firoz Khan wrote: > The __SYSCALL macro's arguments are system call number, > system call entry name and number of arguments for the > system call. > > Argument- nargs in __SYSCALL(nr, entry, nargs) is neither > calculated nor used anywhere. So it would be bette

Re: powerpc/32: Clear on-stack exception marker upon exception return

2019-03-03 Thread Michael Ellerman
On Wed, 2019-02-27 at 11:45:30 UTC, Christophe Leroy wrote: > Clear the on-stack STACK_FRAME_REGS_MARKER on exception exit in order > to avoid confusing stacktrace like the one below. > > Call Trace: > [c0e9dca0] [c01c42a0] print_address_description+0x64/0x2bc (unreliable) > [c0e9dcd0] [c01c4684]

linux-next: Fixes tag needs some work in the powerpc tree

2019-03-03 Thread Stephen Rothwell
Hi all, In commit bd3524feac21 ("powerpc/64s: Fix unrelocated interrupt trampoline address test") Fixes tag Fixes: ccd477028a ("powerpc/64s: Fix HV NMI vs HV interrupt recoverability test") has these problem(s): - SHA1 should be at least 12 digits long Can be fixed by setting core

Re: [PATCH] powerpc: remote save_stack_trace_tsk_reliable export

2019-03-03 Thread Singh, Balbir
On 3/1/19 11:17 AM, Joe Lawrence wrote: > As tglx points out, there are no in-tree module users of > save_stack_trace_tsk_reliable() and its x86 counterpart is not exported, > so remove the powerpc symbol export. > > Suggested-by: Thomas Gleixner > Signed-off-by: Joe Lawrence > --- > arch/po

Re: [PATCH] KVM: PPC: powerpc: Add count cache flush parameters to kvmppc_get_cpu_char()

2019-03-03 Thread Michael Ellerman
Paul Mackerras writes: > On Fri, Mar 01, 2019 at 05:52:51PM +1100, Michael Ellerman wrote: >> Suraj Jitindar Singh writes: >> >> > Add KVM_PPC_CPU_CHAR_BCCTR_FLUSH_ASSIST & >> > KVM_PPC_CPU_BEHAV_FLUSH_COUNT_CACHE to the characteristics returned from >> > the H_GET_CPU_CHARACTERISTICS H-CALL, a