Re: [PATCH] powerpc/rtas: Fix a potential race between CPU-Offline & Migration

2018-09-30 Thread Gautham R Shenoy
On Fri, Sep 28, 2018 at 03:36:08PM -0500, Nathan Fontenot wrote: > On 09/28/2018 02:02 AM, Gautham R Shenoy wrote: > > Hi Nathan, > > > > On Thu, Sep 27, 2018 at 12:31:34PM -0500, Nathan Fontenot wrote: > >> On 09/27/2018 11:51 AM, Gautham R. Shenoy wrote: > >>> From: "Gautham R. Shenoy" > >>> >

[PATCH] powerpc/nohash: fix undefined behaviour when testing page size support

2018-09-30 Thread Daniel Axtens
When enumerating page size definitions to check hardware support, we construct a constant which is (1U << (def->shift - 10)). However, the array of page size definitions is only initalised for various MMU_PAGE_* constants, so it contains a number of 0-initialised elements with def->shift == 0. Thi

[PATCH] powerpc: remove leftover code of old GCC version checks

2018-09-30 Thread Masahiro Yamada
Clean up the leftover of commit f2910f0e6835 ("powerpc: remove old GCC version checks"). Signed-off-by: Masahiro Yamada --- My patch had been sent earlier, with more clean-ups: https://lore.kernel.org/patchwork/patch/977805/ Anyway, this cleans up the left-over of the Nicholas' one. arch/pow

Re: [PATCH v3 6/9] kbuild: consolidate Devicetree dtb build rules

2018-09-30 Thread Masahiro Yamada
Hi Rob, 2018年9月29日(土) 0:43 Rob Herring : > +# > --- > +# Devicetree files > + > +ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/boot/dts/),) > +dtstree := arch/$(SRCARCH)/boot/dts > +endif > + > +ifneq ($(dtstree),) > + > +%.d

Re: [PATCH 2/2] powerpc/64: Increase stack redzone for 64-bit kernel to 512 bytes

2018-09-30 Thread Nicholas Piggin
On Mon, 1 Oct 2018 09:11:04 +0800 Bin Meng wrote: > Hi Nick, > > On Mon, Oct 1, 2018 at 7:27 AM Nicholas Piggin wrote: > > > > On Sat, 29 Sep 2018 23:25:20 -0700 > > Bin Meng wrote: > > > > > commit 573ebfa6601f ("powerpc: Increase stack redzone for 64-bit > > > userspace to 512 bytes") only

Re: [PATCH 2/2] powerpc/64: Increase stack redzone for 64-bit kernel to 512 bytes

2018-09-30 Thread Bin Meng
Hi Nick, On Mon, Oct 1, 2018 at 7:27 AM Nicholas Piggin wrote: > > On Sat, 29 Sep 2018 23:25:20 -0700 > Bin Meng wrote: > > > commit 573ebfa6601f ("powerpc: Increase stack redzone for 64-bit > > userspace to 512 bytes") only changes stack userspace redzone size. > > We need increase the kernel o

Re: [PATCH] soc: Convert to using %pOFn instead of device_node.name

2018-09-30 Thread Andy Gross
On Mon, Aug 27, 2018 at 08:52:44PM -0500, Rob Herring wrote: > In preparation to remove the node name pointer from struct device_node, > convert printf users to use the %pOFn format specifier. > > Cc: Qiang Zhao > Cc: Li Yang > Cc: Andy Gross > Cc: David Brown > Cc: Heiko Stuebner > Cc: Thier

[PATCH AUTOSEL 4.18 47/65] sched/topology: Set correct NUMA topology type

2018-09-30 Thread Sasha Levin
From: Srikar Dronamraju [ Upstream commit e5e96fafd9028b1478b165db78c52d981c14f471 ] With the following commit: 051f3ca02e46 ("sched/topology: Introduce NUMA identity node sched domain") the scheduler introduced a new NUMA level. However this leads to the NUMA topology on 2 node systems to

Re: [RFC PATCH 08/11] powerpc/tm: Do not reclaim on ptrace

2018-09-30 Thread Michael Neuling
On Sun, 2018-09-30 at 20:51 -0300, Breno Leitao wrote: > Hi Mikey, > > On 09/28/2018 02:36 AM, Michael Neuling wrote: > > > > > + WARN_ON(MSR_TM_SUSPENDED(mfmsr())); + + tm_enable(); + > > > > > tm_save_sprs(&(tsk->thread)); > > > > > > > > Do we need to check if TM was enabled in the task b

Re: [RFC PATCH 08/11] powerpc/tm: Do not reclaim on ptrace

2018-09-30 Thread Breno Leitao
Hi Mikey, On 09/28/2018 02:36 AM, Michael Neuling wrote: + WARN_ON(MSR_TM_SUSPENDED(mfmsr())); + + tm_enable(); + tm_save_sprs(&(tsk->thread)); >>> >>> Do we need to check if TM was enabled in the task before saving the >>> TM SPRs? >>> >>> What happens if TM was lazily off and hence

Re: [PATCH 2/2] powerpc/64: Increase stack redzone for 64-bit kernel to 512 bytes

2018-09-30 Thread Nicholas Piggin
On Sat, 29 Sep 2018 23:25:20 -0700 Bin Meng wrote: > commit 573ebfa6601f ("powerpc: Increase stack redzone for 64-bit > userspace to 512 bytes") only changes stack userspace redzone size. > We need increase the kernel one to 512 bytes too per ABIv2 spec. You're right we need 512 to be compatible

Re: Looking for architecture papers

2018-09-30 Thread Segher Boessenkool
On Sun, Sep 30, 2018 at 10:05:01AM +0300, Raz wrote: > First, thank you. > And another question, is there a development environment that > resembles Fixed Virtual Platform for ARM ( FVP ARM) ? I don't know FVP, but that seems similar to systemsim? https://www14.software.ibm.com/webapp/set2/sas/f/p

Re: Looking for architecture papers

2018-09-30 Thread Raz
First, thank you. And another question, is there a development environment that resembles Fixed Virtual Platform for ARM ( FVP ARM) ? On Sun, Sep 30, 2018 at 1:13 AM Segher Boessenkool wrote: > > Hi Raz, > > On Sun, Sep 30, 2018 at 12:24:35AM +0300, Raz wrote: > > I want to learn about powerp