RE: [RFC 5/5] powerpc/fsl: Add supported-irq-ranges for P2020

2018-08-09 Thread Bharat Bhushan
> -Original Message- > From: Scott Wood [mailto:o...@buserror.net] > Sent: Thursday, August 9, 2018 11:42 AM > To: Bharat Bhushan ; > b...@kernel.crashing.org; pau...@samba.org; m...@ellerman.id.au; > ga...@kernel.crashing.org; mark.rutl...@arm.com; > kstew...@linuxfoundation.org; gre...@

Re: [PATCH v7 8/9] powerpc/mce: Add sysctl control for recovery action on MCE.

2018-08-09 Thread Nicholas Piggin
On Thu, 09 Aug 2018 16:34:07 +1000 Michael Ellerman wrote: > "Aneesh Kumar K.V" writes: > > On 08/08/2018 08:26 PM, Michael Ellerman wrote: > >> Mahesh J Salgaonkar writes: > >>> From: Mahesh Salgaonkar > >>> > >>> Introduce recovery action for recovered memory errors (MCEs). There are > >

Re: [PATCH v7 8/9] powerpc/mce: Add sysctl control for recovery action on MCE.

2018-08-09 Thread Ananth N Mavinakayanahalli
On Thu, Aug 09, 2018 at 06:02:53PM +1000, Nicholas Piggin wrote: > On Thu, 09 Aug 2018 16:34:07 +1000 > Michael Ellerman wrote: > > > "Aneesh Kumar K.V" writes: > > > On 08/08/2018 08:26 PM, Michael Ellerman wrote: > > >> Mahesh J Salgaonkar writes: > > >>> From: Mahesh Salgaonkar > > >>>

[PATCH] powerpc/lib: Use patch_site to patch copy_32 functions once cache is enabled

2018-08-09 Thread Christophe Leroy
The symbol memcpy_nocache_branch defined in order to allow patching of memset function once cache is enabled leads to confusing reports by perf tool. Using the new patch_site functionality solves this issue. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/asm-prototypes.h | 1 + ar

Re: [PATCH v7 8/9] powerpc/mce: Add sysctl control for recovery action on MCE.

2018-08-09 Thread Nicholas Piggin
On Thu, 9 Aug 2018 13:39:45 +0530 Ananth N Mavinakayanahalli wrote: > On Thu, Aug 09, 2018 at 06:02:53PM +1000, Nicholas Piggin wrote: > > On Thu, 09 Aug 2018 16:34:07 +1000 > > Michael Ellerman wrote: > > > > > "Aneesh Kumar K.V" writes: > > > > On 08/08/2018 08:26 PM, Michael Ellerman wr

Re: [PATCH] lib/test_hexdump: fix failure on big endian cpu

2018-08-09 Thread Andy Shevchenko
On Thu, 2018-08-09 at 16:18 +1000, Michael Ellerman wrote: > rashmica writes: > > On 08/08/18 17:25, Michael Ellerman wrote: > > > Christophe Leroy writes: > > > > > > mpe I sent a patch doing that awhile ago and you obviously didn't > > like > > it because you never merged it :P Hmm... I (as a

Re: [PATCH 1/5] powerpc/asm: Add a patch_site macro & helpers for patching instructions

2018-08-09 Thread Michael Ellerman
Christophe LEROY writes: > Le 08/08/2018 à 18:30, Christophe LEROY a écrit : >> Le 23/07/2018 à 17:07, Michael Ellerman a écrit : ... >>> diff --git a/arch/powerpc/include/asm/code-patching.h >>> b/arch/powerpc/include/asm/code-patching.h >>> index 812535f40124..b2051234ada8 100644 >>> --- a/arch

Re: [PATCH v7 8/9] powerpc/mce: Add sysctl control for recovery action on MCE.

2018-08-09 Thread Michal Suchánek
On Thu, 9 Aug 2018 18:33:33 +1000 Nicholas Piggin wrote: > On Thu, 9 Aug 2018 13:39:45 +0530 > Ananth N Mavinakayanahalli wrote: > > > On Thu, Aug 09, 2018 at 06:02:53PM +1000, Nicholas Piggin wrote: > > > On Thu, 09 Aug 2018 16:34:07 +1000 > > > Michael Ellerman wrote: > > > > > > > "A

Re: [PATCH] lib/test_hexdump: fix failure on big endian cpu

2018-08-09 Thread Michael Ellerman
Andy Shevchenko writes: > On Thu, 2018-08-09 at 16:18 +1000, Michael Ellerman wrote: >> rashmica writes: >> > On 08/08/18 17:25, Michael Ellerman wrote: >> > > Christophe Leroy writes: >> > > > >> > mpe I sent a patch doing that awhile ago and you obviously didn't >> > like >> > it because you

Re: [PATCH v6 2/2] powerpc: Use cpu_smallcore_sibling_mask at SMT level on bigcores

2018-08-09 Thread Srikar Dronamraju
* Gautham R. Shenoy [2018-08-09 11:02:08]: > > 3) ppc64_cpu --smt=2 >SMT domain ceases to exist as each domain consists of just one >group. > When seen in isolation, the above looks as if ppc64_cpu --smt=2 o/p says " SMT domain ceases to exist" > @@ -999,7 +1012,17 @@ static void

Re: [PATCH v6 1/2] powerpc: Detect the presence of big-cores via "ibm,thread-groups"

2018-08-09 Thread Srikar Dronamraju
* Gautham R. Shenoy [2018-08-09 11:02:07]: > > int threads_per_core, threads_per_subcore, threads_shift; > +bool has_big_cores; > cpumask_t threads_core_mask; > EXPORT_SYMBOL_GPL(threads_per_core); > EXPORT_SYMBOL_GPL(threads_per_subcore); > EXPORT_SYMBOL_GPL(threads_shift); > +EXPORT_SYMBO

[PATCH] powerpc/mm/hash: Remove unnecessary do { }while(0) loop

2018-08-09 Thread Aneesh Kumar K.V
Avoid coverity false warnings like *** CID 187347: Control flow issues (UNREACHABLE) /arch/powerpc/mm/hash_native_64.c: 819 in native_flush_hash_range() 813slot += hidx & _PTEIDX_GROUP_IX; 814hptep = htab_address + slot; 815want_v = hpte_encode_avpn(vpn, psize, ssize); 81

[PATCH] powerpc/mm/tlbflush: update the mmu_gather page size while iterating address range

2018-08-09 Thread Aneesh Kumar K.V
This patch makes sure we update the mmu_gather page size even if we are requesting for a fullmm flush. This avoids triggering VM_WARN_ON in code paths like __tlb_remove_page_size that explicitly check for removing range page size to be same as mmu gather page size. Signed-off-by: Aneesh Kumar K.V

[PATCH] powerpc/powernv/idle: Fix build error

2018-08-09 Thread Aneesh Kumar K.V
Fix the below build error using strlcpy instead of strncpy In function 'pnv_parse_cpuidle_dt', inlined from 'pnv_init_idle_states' at arch/powerpc/platforms/powernv/idle.c:840:7, inlined from '__machine_initcall_powernv_pnv_init_idle_states' at arch/powerpc/platforms/powernv/idle.c:870:1

Re: [RFC PATCH kernel 0/5] powerpc/P9/vfio: Pass through NVIDIA Tesla V100

2018-08-09 Thread Alex Williamson
On Thu, 9 Aug 2018 14:21:29 +1000 Alexey Kardashevskiy wrote: > On 08/08/2018 18:39, Alexey Kardashevskiy wrote: > > > > > > On 02/08/2018 02:16, Alex Williamson wrote: > >> On Wed, 1 Aug 2018 18:37:35 +1000 > >> Alexey Kardashevskiy wrote: > >> > >>> On 01/08/2018 00:29, Alex Williamson w

Re: [PATCH 2/2] powerpc/64s: reimplement book3s idle code in C

2018-08-09 Thread Gautham R Shenoy
Hello Nicholas, On Fri, Aug 03, 2018 at 02:13:50PM +1000, Nicholas Piggin wrote: > Reimplement Book3S idle code in C, moving POWER7/8/9 implementation > speific HV idle code to the powernv platform code. Generic book3s > assembly stubs are kept in common code and used only to save and > restore the

Re: [PATCH v3 2/2] powerpc/pseries: Wait for completion of hotplug events during PRRN handling

2018-08-09 Thread Nathan Fontenot
On 08/08/2018 10:29 AM, John Allen wrote: > While handling PRRN events, the time to handle the actual hotplug events > dwarfs the time it takes to perform the device tree updates and queue the > hotplug events. In the case that PRRN events are being queued continuously, > hotplug events have been o

Re: ssb: Remove SSB_WARN_ON, SSB_BUG_ON and SSB_DEBUG

2018-08-09 Thread Kalle Valo
Michael Büsch writes: > Use the standard WARN_ON instead. > If a small kernel is desired, WARN_ON can be disabled globally. > > Also remove SSB_DEBUG. Besides WARN_ON it only adds a tiny debug check. > Include this check unconditionally. > > Signed-off-by: Michael Buesch Applied manually: 209b

Re: [PATCH 2/2] powerpc/64s: reimplement book3s idle code in C

2018-08-09 Thread Nicholas Piggin
On Thu, 9 Aug 2018 20:15:04 +0530 Gautham R Shenoy wrote: > Hello Nicholas, > On Fri, Aug 03, 2018 at 02:13:50PM +1000, Nicholas Piggin wrote: > > Reimplement Book3S idle code in C, moving POWER7/8/9 implementation > > speific HV idle code to the powernv platform code. Generic book3s > > assembly

Re: [PATCH] powerpc/mm/tlbflush: update the mmu_gather page size while iterating address range

2018-08-09 Thread Nicholas Piggin
On Thu, 9 Aug 2018 19:06:59 +0530 "Aneesh Kumar K.V" wrote: > This patch makes sure we update the mmu_gather page size even if we are > requesting for a fullmm flush. This avoids triggering VM_WARN_ON in code > paths like __tlb_remove_page_size that explicitly check for removing range > page >

Re: [PATCH v02] powerpc/mobility: Fix node detach/rename problem

2018-08-09 Thread Michael Ellerman
Michael Bringmann writes: > On 08/08/2018 09:02 AM, Michael Ellerman wrote: >> Michael Bringmann writes: >>> diff --git a/arch/powerpc/platforms/pseries/mobility.c >>> b/arch/powerpc/platforms/pseries/mobility.c >>> index e245a88..efc9442 100644 >>> --- a/arch/powerpc/platforms/pseries/mobility.

[PATCH v2 1/2] powerpc/64s: move machine check SLB flushing to mm/slb.c

2018-08-09 Thread Nicholas Piggin
The machine check code that flushes and restores bolted segments in real mode belongs in mm/slb.c. This will also be used by pseries machine check and idle code in future changes. Signed-off-by: Nicholas Piggin Since v1: - Restore the test for slb_shadow (mpe) --- arch/powerpc/include/asm/book3

[PATCH v2 2/2] powerpc/64s: reimplement book3s idle code in C

2018-08-09 Thread Nicholas Piggin
Reimplement Book3S idle code in C, moving POWER7/8/9 implementation speific HV idle code to the powernv platform code. Book3S assembly stubs are kept in common code and used only to save the stack frame and non-volatile GPRs before executing architected idle instructions, and restoring the stack a

[PATCH v3] powerpc/topology: Check at boot for topology updates

2018-08-09 Thread Srikar Dronamraju
On a shared lpar, Phyp will not update the cpu associativity at boot time. Just after the boot system does recognize itself as a shared lpar and trigger a request for correct cpu associativity. But by then the scheduler would have already created/destroyed its sched domains. This causes - Broken l