[PATCH] powerpc: Make unaligned accesses endian-safe for powerpc

2013-12-15 Thread Anton Blanchard
From: Rajesh B Prathipati The generic put_unaligned/get_unaligned macros were made endian-safe by calling the appropriate endian dependent macros based on the endian type of the powerpc processor. Signed-off-by: Rajesh B Prathipati Signed-off-by: Anton Blanchard --- diff --git a/arch/powerp

Re: [PATCH 6/9] powerpc/pci: Use dev_is_pci() to check whether it is pci device

2013-12-15 Thread Wei Yang
Yijing, This one looks good. While I take a look at the source code, there are around 20 places with similar style. Do you think it would be good to change all these places in one patch? On Thu, Dec 05, 2013 at 08:01:20PM +0800, Yijing Wang wrote: >Use PCI standard marco dev_is_pci() instead of

RE: [PATCH v5 4/4] powerpc/85xx: add sysfs for pw20 state and altivec idle

2013-12-15 Thread dongsheng.w...@freescale.com
> -Original Message- > From: Bhushan Bharat-R65777 > Sent: Monday, November 11, 2013 12:11 PM > To: Wang Dongsheng-B40534; Wood Scott-B07421 > Cc: linuxppc-dev@lists.ozlabs.org > Subject: RE: [PATCH v5 4/4] powerpc/85xx: add sysfs for pw20 state and altivec > idle > > > > Those codes jus

[PATCH] powerpc/book3s: Recover from MC in sapphire on SCOM read via MMIO.

2013-12-15 Thread Mahesh J Salgaonkar
From: Mahesh Salgaonkar Detect and recover from machine check when inside opal on a special scom load instructions. On specific SCOM read via MMIO we may get a machine check exception with SRR0 pointing inside opal. To recover from MC in this scenario, get a recovery instruction address and retur

[PATCH] This patch adds support to read error logs from OPAL and export them

2013-12-15 Thread Mahesh J Salgaonkar
From: Mahesh Salgaonkar to userspace through sysfs interface /sys/firmware/opa/opal-elog. This patch buffers 128 error log records until it is consumed by userspace tool. This patch provides an sysfs interface '/sys/firmware/opa/opal-elog-ack' to user to receive an acknowledgement of successful

Re: [PATCH 10/10] Kconfig: cleanup SERIO_I8042 dependencies

2013-12-15 Thread Dmitry Torokhov
On Sun, Dec 15, 2013 at 08:27:25PM -0500, David Miller wrote: > From: Mark Salter > Date: Sun, 15 Dec 2013 10:50:26 -0500 > > > On Sun, 2013-12-15 at 02:36 -0800, Dmitry Torokhov wrote: > >> How are we going to merge this? In bulk through input tree or peacemeal > >> through all arches first? > >

Re: [RFC PATCH] time: Support in tick broadcast framework for archs without an external wakeup source

2013-12-15 Thread Preeti U Murthy
Hi, The patch had some compile time fixes to be done. It was accidentally mailed out before doing so. Below is the right patch. Apologies for the same. Thanks Regards Preeti U Murthy - time: Support in tick broadcast f

[PATCH] powerpc: Fix bad stack check in exception entry

2013-12-15 Thread Michael Neuling
In EXCEPTION_PROLOG_COMMON() we check to see if the stack pointer (r1) is valid when coming from the kernel. If it's not valid, we die but with a nice oops message. Currently we allocate a stack frame (subtract INT_FRAME_SIZE) before we check to see if the stack pointer is negative. Unfortunatel

Re: [PATCH 10/10] Kconfig: cleanup SERIO_I8042 dependencies

2013-12-15 Thread David Miller
From: Mark Salter Date: Sun, 15 Dec 2013 10:50:26 -0500 > On Sun, 2013-12-15 at 02:36 -0800, Dmitry Torokhov wrote: >> How are we going to merge this? In bulk through input tree or peacemeal >> through all arches first? > > They should all go together to eliminate the chance of bisect breakage. >

[git pull] Please pull powerpc.git merge branch

2013-12-15 Thread Benjamin Herrenschmidt
Hi Linus ! Here are some more powerpc fixes for 3.13. Uli's patch fixes a regression in ptrace caused by a mis-merge of a previous LE patch. The rest are all more endian fixes, all fairly trivial, found during testing of 3.13-rc's. Cheers, Ben. The following changes since commit e641eb03ab2b0f0

Re: [PATCH] powerpc/sysdev: Fix a mpic section mismatch for MPC85xx

2013-12-15 Thread Benjamin Herrenschmidt
On Sun, 2013-12-15 at 19:38 +0100, Christian Engelmayer wrote: > Moved arch/powerpc/sysdev/mpic.c : smp_mpic_probe() out of the __init section. > It is referenced by arch/powerpc/platforms/85xx/smp.c : smp_85xx_setup_cpu(). I don't like this. The reference is not actually going to call into the co

[PATCH] powerpc: Fix endian issues in power7/8 machine check handler

2013-12-15 Thread Anton Blanchard
The SLB save area is shared with the hypervisor and is defined as big endian, so we need to byte swap on little endian builds. Signed-off-by: Anton Blanchard --- diff --git a/arch/powerpc/kernel/mce_power.c b/arch/powerpc/kernel/mce_power.c index b36e777..27c93f4 100644 --- a/arch/powerpc/kerne

[PATCH] powerpc/sysdev: Fix a mpic section mismatch for MPC85xx

2013-12-15 Thread Christian Engelmayer
Moved arch/powerpc/sysdev/mpic.c : smp_mpic_probe() out of the __init section. It is referenced by arch/powerpc/platforms/85xx/smp.c : smp_85xx_setup_cpu(). Signed-off-by: Christian Engelmayer --- arch/powerpc/sysdev/mpic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch

[PATCH] powerpc/sysdev: Fix a pci section mismatch for Book E

2013-12-15 Thread Christian Engelmayer
Moved the following functions out of the __init section: arch/powerpc/sysdev/fsl_pci.c : fsl_add_bridge() arch/powerpc/sysdev/indirect_pci.c : setup_indirect_pci() Those are referenced by arch/powerpc/sysdev/fsl_pci.c : fsl_pci_probe() when compiling for Book E support. Signed-off-by:

RE: [PATCH v11] PPC: POWERNV: move iommu_add_device earlier

2013-12-15 Thread Varun Sethi
> -Original Message- > From: Linuxppc-dev [mailto:linuxppc-dev- > bounces+varun.sethi=freescale@lists.ozlabs.org] On Behalf Of Alexey > Kardashevskiy > Sent: Thursday, December 12, 2013 1:24 PM > To: linuxppc-dev@lists.ozlabs.org > Cc: Alexey Kardashevskiy; Alex Graf; Bhushan Bharat-R

Re: [PATCH 10/10] Kconfig: cleanup SERIO_I8042 dependencies

2013-12-15 Thread Mark Salter
On Sun, 2013-12-15 at 02:36 -0800, Dmitry Torokhov wrote: > On Sat, Dec 14, 2013 at 10:32:31AM -0800, H. Peter Anvin wrote: > > On 12/14/2013 08:59 AM, Mark Salter wrote: > > > Remove messy dependencies from SERIO_I8042 by having it depend on one > > > Kconfig symbol (ARCH_MIGHT_HAVE_PC_SERIO) and

[RFC PATCH v3] powerpc: Loading kernels over 8Mbytes without CONFIG_PIN_TLB

2013-12-15 Thread Christophe Leroy
Hereunder is a try to implement the sizing of the initial memory size based on initial-mapped-area size given by uboot in r7. As this has an impact on all powerpc platforms due to the need to provide the info up to function setup_initial_memory_limit(), I'm not completly sure of the proper implemen

Re: [PATCH v3] powerpc: Fix PTE page address mismatch in pgtable ctor/dtor

2013-12-15 Thread Sebastian Andrzej Siewior
* Hong H. Pham | 2013-12-07 09:06:33 [-0500]: >On PPC32, only SMP kernels are affected. > >On PPC64, only SMP kernels with 4K page size are affected. $ uname -a Linux mpc8536-1 3.12.1-rt3-00281-g9de268d #76 SMP PREEMPT RT Fri Nov 22 16:53:05 CET 2013 ppc GNU/Linux $ uptime 22:01:10 up 22 days,

Re: [PATCH 10/10] Kconfig: cleanup SERIO_I8042 dependencies

2013-12-15 Thread Dmitry Torokhov
On Sat, Dec 14, 2013 at 10:32:31AM -0800, H. Peter Anvin wrote: > On 12/14/2013 08:59 AM, Mark Salter wrote: > > Remove messy dependencies from SERIO_I8042 by having it depend on one > > Kconfig symbol (ARCH_MIGHT_HAVE_PC_SERIO) and having architectures > > which need it select ARCH_MIGHT_HAVE_PC_S