[PATCH] powerpc/traps: Avoid rate limit messages from show unhandled signals

2018-08-16 Thread Michael Ellerman
In the recent commit to add an explicit ratelimit state when showing unhandled signals, commit 35a52a10c3ac ("powerpc/traps: Use an explicit ratelimit state for show_signal_msg()"), I put the check of show_unhandled_signals and the ratelimit state before the call to unhandled_signal() so as to avoi

[PATCH] powerpc/memtrace: Remove memory in chunks

2018-08-16 Thread Rashmica Gupta
When hot-removing memory release_mem_region_adjustable() splits iomem resources if they are not the exact size of the memory being hot-deleted. Adding this memory back to the kernel adds a new resource. Eg a node has memory 0x0 - 0xf. Hot-removing 1GB from 0xf4000 results in the single

[GIT PULL] Please pull powerpc/linux.git powerpc-4.19-1 tag

2018-08-16 Thread Michael Ellerman
Hi Linus, Please pull powerpc updates for 4.19. There's a trivial conflict in Documentation/admin-guide/kernel-parameters.txt between our addition of nospectre_v1 and the x86 documentation for nosmt. There's another in arch/m68k/mac/misc.c, which was coordinated with Geert but unfortunately we s

Re: [PATCH v2 3/4] powerpc/mm: fix a warning when a cache is common to PGD and hugepages

2018-08-16 Thread Aneesh Kumar K.V
On 08/14/2018 08:24 PM, Christophe Leroy wrote: While implementing TLB miss HW assistance on the 8xx, the following warning was encountered: [ 423.732965] WARNING: CPU: 0 PID: 345 at mm/slub.c:2412 ___slab_alloc.constprop.30+0x26c/0x46c [ 423.733033] CPU: 0 PID: 345 Comm: mmap Not tainted 4.

Re: [PATCH v2 1/4] powerpc/tm: Remove msr_tm_active()

2018-08-16 Thread Michael Ellerman
Michael Neuling writes: > On Mon, 2018-06-18 at 19:59 -0300, Breno Leitao wrote: >> Currently msr_tm_active() is a wrapper around MSR_TM_ACTIVE() if >> CONFIG_PPC_TRANSACTIONAL_MEM is set, or it is just a function that >> returns false if CONFIG_PPC_TRANSACTIONAL_MEM is not set. >> >> This funct

[PATCH] powerpc/powernv/pci: Work around races in PCI bridge enabling

2018-08-16 Thread Benjamin Herrenschmidt
The generic code is race when multiple children of a PCI bridge try to enable it simultaneously. This leads to drivers trying to access a device through a not-yet-enabled bridge, and this EEH errors under various circumstances when using parallel driver probing. There is work going on to fix that

Re: [PATCH 3/3] powerpc/pseries/mm: call H_BLOCK_REMOVE

2018-08-16 Thread Laurent Dufour
On 30/07/2018 16:22, Aneesh Kumar K.V wrote: > Michael Ellerman writes: > >> Hi Laurent, >> >> Just one comment below. >> >> Laurent Dufour writes: >>> diff --git a/arch/powerpc/platforms/pseries/lpar.c >>> b/arch/powerpc/platforms/pseries/lpar.c >>> index 96b8cd8a802d..41ed03245eb4 100644 >>>

[PATCH v3] powerpc/tm: Remove msr_tm_active()

2018-08-16 Thread Breno Leitao
Currently msr_tm_active() is a wrapper around MSR_TM_ACTIVE() if CONFIG_PPC_TRANSACTIONAL_MEM is set, or it is just a function that returns false if CONFIG_PPC_TRANSACTIONAL_MEM is not set. This function is not necessary, since MSR_TM_ACTIVE() just do the same and could be used, removing the duali

Re: [PATCH v7 4/9] powerpc/pseries: Define MCE error event section.

2018-08-16 Thread Segher Boessenkool
Hi! On Thu, Aug 16, 2018 at 02:14:39PM +1000, Michael Ellerman wrote: > Mahesh Jagannath Salgaonkar writes: > > On 08/08/2018 08:12 PM, Michael Ellerman wrote: > >>> + uint8_t reserved_1[6]; > >>> + __be64 effective_address; > >>> + __be64 logical

Re: [PATCH v2 4/4] powerpc/tm: Do not recheckpoint non-tm task

2018-08-16 Thread Breno Leitao
Hey Mikey, Thanks for the review. On 08/15/2018 08:50 PM, Michael Neuling wrote: > On Mon, 2018-06-18 at 19:59 -0300, Breno Leitao wrote: >> If __switch_to() tries to context switch from task A to task B, and task A >> had task->thread->regs->msr[TM] enabled, then __switch_to_tm() will call >> t

Re: [PATCH v2 2/4] powerpc/tm: Fix HTM documentation

2018-08-16 Thread Michael Neuling
On Mon, 2018-06-18 at 19:59 -0300, Breno Leitao wrote: > This patch simply fix part of the documentation on the HTM code. > > This fixes reference to old fields that were renamed in commit > 000ec280e3dd ("powerpc: tm: Rename transct_(*) to ck(\1)_state") > > It also documents better the flow aft

Re: [PATCH v2 4/4] powerpc/tm: Do not recheckpoint non-tm task

2018-08-16 Thread Michael Neuling
On Mon, 2018-06-18 at 19:59 -0300, Breno Leitao wrote: > If __switch_to() tries to context switch from task A to task B, and task A > had task->thread->regs->msr[TM] enabled, then __switch_to_tm() will call > tm_recheckpoint_new_task(), which will call trecheckpoint, for task B, which > is clearl

Re: [PATCH v2 3/4] powerpc/tm: Adjust tm_reclaim_thread() parameters

2018-08-16 Thread Michael Neuling
On Mon, 2018-06-18 at 19:59 -0300, Breno Leitao wrote: > From: Cyril Bur > > tm_reclaim_thread() doesn't use the parameter anymore, both callers have > to bother getting it as they have no need for a struct thread_info > either. > > It was previously used but became unused in commit > dc3106690b

Re: [PATCH v2 1/4] powerpc/tm: Remove msr_tm_active()

2018-08-16 Thread Michael Neuling
On Mon, 2018-06-18 at 19:59 -0300, Breno Leitao wrote: > Currently msr_tm_active() is a wrapper around MSR_TM_ACTIVE() if > CONFIG_PPC_TRANSACTIONAL_MEM is set, or it is just a function that > returns false if CONFIG_PPC_TRANSACTIONAL_MEM is not set. > > This function is not necessary, since MSR_T

Re: [PATCH 3/3] powerpc/pseries/mm: call H_BLOCK_REMOVE

2018-08-16 Thread Laurent Dufour
On 30/07/2018 15:47, Michael Ellerman wrote: > Hi Laurent, > > Just one comment below. > > Laurent Dufour writes: >> diff --git a/arch/powerpc/platforms/pseries/lpar.c >> b/arch/powerpc/platforms/pseries/lpar.c >> index 96b8cd8a802d..41ed03245eb4 100644 >> --- a/arch/powerpc/platforms/pseries/l

ptrace compile failure with gcc-8.2 on 32-bit powerpc

2018-08-16 Thread Meelis Roos
After upgrading my distro compiler to gcc-8.2, Linux fails to compile on 32-bit powerpc (tested with 4.17, 4.18 and v4.18-7873-gf91e654474d4). CC arch/powerpc/kernel/ptrace.o In file included from ./include/linux/bitmap.h:9, from ./include/linux/cpumask.h:12,