Re: [PATCH] powerpc/powernv/cpuidle: Pass correct drv->cpumask for registration

2017-03-18 Thread Benjamin Herrenschmidt
On Fri, 2017-03-17 at 23:35 +0530, Vaidyanathan Srinivasan wrote: > +   /* > +    * On PowerNV platform cpu_present may be less that cpu_possible > +    * in cases where firmware detects the cpu, but it is not available > +    * for OS.  Such CPUs are not hotplugable at runtime on

Re: [PATCH kernel] KVM: PPC: Add MMIO emulation for stdx (store doubleword indexed)

2017-03-18 Thread Benjamin Herrenschmidt
On Fri, 2017-03-17 at 23:11 +1100, Alexey Kardashevskiy wrote: > On 17/03/17 19:31, Alexey Kardashevskiy wrote: > > This adds missing stdx emulation which allow Mellanox driver from > > recent kernels work when MMIO emulation is enforced in the > > userspace. > > > btw what would its load

[PATCH] cpuidle: Validate cpu_dev in cpuidle_add_sysfs

2017-03-18 Thread Vaidyanathan Srinivasan
If a given cpu is not in cpu_present and cpu hotplug is disabled, arch can skip setting up the cpu_dev. Arch cpuidle driver should pass correct cpu mask for registration, but failing to do so by the driver causes error to propagate and crash like this: [ 30.076045] Unable to handle kernel

Re: [PATCH] powerpc/pasemi, cbe: Do not process decremeter or external wakeup from powersave

2017-03-18 Thread Nicholas Piggin
On Fri, 17 Mar 2017 15:43:22 +0100 Christian Zigotzky wrote: > Nicholas Piggin writes: > > > Hi, > > > > I would like to start using a dedicated stack for system reset interrupt > > and treat it as a Linux nmi, which makes it tricky to call complex > > interrupt

Re: [PATCH] powerpc/powernv/cpuidle: Pass correct drv->cpumask for registration

2017-03-18 Thread Vaidyanathan Srinivasan
* Michael Neuling [2017-03-18 16:28:02]: > Vaidy, > > Thanks for fixing this. > > > drv->cpumask defaults to cpu_possible_mask in __cpuidle_driver_init(). > > This breaks cpuidle on powernv where sysfs files are not created for > > cpus in cpu_possible_mask that cannot be