Re: [PATCH v2] cpufreq: powernv: Set the cpus to nominal frequency during reboot/kexec

2014-09-01 Thread Shilpa Bhat
This patch ensures the cpus to kexec/reboot at nominal frequency. Nominal frequency is the highest cpu frequency on PowerPC at which the cores can run without getting throttled. If the host kernel had set the cpus to a low pstate and then it kexecs/reboots to a cpufreq disabled kernel it would

[PATCH v16 4/7] powerpc: add pmd_[dirty|mkclean] for THP

2014-09-01 Thread Minchan Kim
MADV_FREE needs pmd_dirty and pmd_mkclean for detecting recent overwrite of the contents since MADV_FREE syscall is called for THP page. This patch adds pmd_dirty and pmd_mkclean for THP page MADV_FREE support. Cc: Benjamin Herrenschmidt b...@kernel.crashing.org Cc: Paul Mackerras

[PATCH] spi: fsl: Don't use devm_kzalloc in master-setup callback

2014-09-01 Thread Axel Lin
device_add() expects that any memory allocated via devm_* API is only done in the device's probe function. Fix below boot warning: [3.092348] WARNING: at drivers/base/dd.c:286 [3.096637] Modules linked in: [3.099697] CPU: 0 PID: 25 Comm: kworker/u2:1 Tainted: G W

[PATCH] Freescale Frame Manager Device Tree binding document

2014-09-01 Thread Igal . Liberman
From: Igal Liberman igal.liber...@freescale.com The Frame Manager (FMan) combines the Ethernet network interfaces with packet distribution logic to provide intelligent distribution and queuing decisions for incoming traffic at line rate. This binding document describes Freescale's Frame Manager

Re: [RFC PATCH] powerpc: Wire up three syscalls

2014-09-01 Thread David Herrmann
Hi On Sun, Aug 31, 2014 at 2:52 PM, Pranith Kumar bobby.pr...@gmail.com wrote: Hi Geert, On Sun, Aug 31, 2014 at 4:53 AM, Geert Uytterhoeven ge...@linux-m68k.org wrote: Hi Pranith, On Sat, Aug 30, 2014 at 5:36 AM, Pranith Kumar bobby.pr...@gmail.com wrote: I see that the three syscalls

RE: [PATCH v2] cpufreq: powernv: Set the cpus to nominal frequency during reboot/kexec

2014-09-01 Thread David Laight
From: Shilpa Bhat Hi Viresh, On Fri, 2014-08-29 at 05:33 +0530, Viresh Kumar wrote: On 28 August 2014 19:36, Shilpasri G Bhat shilpa.b...@linux.vnet.ibm.com wrote: Changes v1-v2: Invoke .target() driver callback to set the cpus to nominal frequency in reboot notifier, instead of

Re: [RFC PATCH] powerpc: Wire up three syscalls

2014-09-01 Thread David Herrmann
Hi On Sun, Aug 31, 2014 at 7:51 PM, Pranith Kumar bobby.pr...@gmail.com wrote: On 08/31/2014 10:34 AM, David Herrmann wrote: The only arch-dependent code for memfd_test.c is the syscall invocation: memfd_create(const char *name, unsigned int flags); via glibc as:

Re: [RFC PATCH] powerpc: Wire up three syscalls

2014-09-01 Thread Pranith Kumar
Hi David, On Mon, Sep 1, 2014 at 7:33 AM, David Herrmann dh.herrm...@gmail.com wrote: Nice catch. We changed 'flags' from u64 to unsigned int in the last revision of the series. Patch looks good, but I'd prefer using unsigned int as type, instead of __u32. Just to be consistent with the

Re: [RFC PATCH] powerpc: Wire up three syscalls

2014-09-01 Thread David Herrmann
Hi On Mon, Sep 1, 2014 at 5:21 PM, Pranith Kumar bobby.pr...@gmail.com wrote: Hi David, On Mon, Sep 1, 2014 at 7:33 AM, David Herrmann dh.herrm...@gmail.com wrote: Nice catch. We changed 'flags' from u64 to unsigned int in the last revision of the series. Patch looks good, but I'd prefer

Re: [RFC PATCH] powerpc: Wire up three syscalls

2014-09-01 Thread Pranith Kumar
On Mon, Sep 1, 2014 at 11:31 AM, David Herrmann dh.herrm...@gmail.com wrote: Btw., the original patch (wire up syscalls) can be applied unchanged. Great! Can I use that as an Ack-by? I will send in the patch with updated changelog. -- Pranith ___

Re: [RFC PATCH] powerpc: Wire up three syscalls

2014-09-01 Thread David Herrmann
Hi On Mon, Sep 1, 2014 at 7:16 PM, Pranith Kumar bobby.pr...@gmail.com wrote: On Mon, Sep 1, 2014 at 11:31 AM, David Herrmann dh.herrm...@gmail.com wrote: Btw., the original patch (wire up syscalls) can be applied unchanged. Great! Can I use that as an Ack-by? I will send in the patch with

[PATCH] powerpc: Wire up three sys calls

2014-09-01 Thread Pranith Kumar
This patch wires up three new syscalls for powerpc. The three new syscalls are seccomp, getrandom and memfd_create. Signed-off-by: Pranith Kumar bobby.pr...@gmail.com Reviewed-by: David Herrmann dh.herrm...@gmail.com --- arch/powerpc/include/asm/systbl.h | 3 +++

[PATCH] powerpc/powernv: Don't call generic code on offline cpus

2014-09-01 Thread Paul Mackerras
On PowerNV platforms, when a CPU is offline, we put it into nap mode. It's possible that the CPU wakes up from nap mode while it is still offline due to a stray IPI. A misdirected device interrupt could also potentially cause it to wake up. In that circumstance, we need to clear the interrupt so

[PATCH v2 0/3] powerpc: Make sstep.c more generally useful

2014-09-01 Thread Paul Mackerras
This patch series modifies the code in arch/powerpc/lib/sstep.c so that it can be used by KVM in its instruction emulation, thereby reducing the number of different PowerPC instruction emulators that we have in the kernel. It does this by splitting the existing emulate_step() function into two:

[PATCH 1/3] powerpc: Split out instruction analysis part of emulate_step()

2014-09-01 Thread Paul Mackerras
This splits out the instruction analysis part of emulate_step() into a separate analyse_instr() function, which decodes the instruction, but doesn't execute any load or store instructions. It does execute integer instructions and branches which can be executed purely by updating register values

[PATCH 2/3] powerpc: Emulate icbi, mcrf and conditional-trap instructions

2014-09-01 Thread Paul Mackerras
This extends the instruction emulation done by analyse_instr() and emulate_step() to handle a few more instructions that are found in the kernel. Signed-off-by: Paul Mackerras pau...@samba.org --- arch/powerpc/include/asm/sstep.h | 1 + arch/powerpc/lib/sstep.c | 60

[PATCH 3/3] powerpc: Implement emulation of string loads and stores

2014-09-01 Thread Paul Mackerras
The size field of the op.type word is now the total number of bytes to be loaded or stored. Signed-off-by: Paul Mackerras pau...@samba.org --- arch/powerpc/lib/sstep.c | 59 1 file changed, 49 insertions(+), 10 deletions(-) diff --git