[PATCH] driver/mtd/IFC:Wait tWB time, poll R/B before command execution

2012-11-08 Thread Prabhakar Kushwaha
IFC_FIR_OP_CMD0 issues command for execution without checking flash readiness. It may cause problem if flash is not ready. Instead use IFC_FIR_OP_CW0 which Wait for tWB time and poll R/B to return high or time-out, before issuing command. NAND_CMD_READID command implemention does not fulfill above

[PATCH 0/1] powerpc/vdso: remove redundant locking in update_vsyscall_tz()

2012-11-08 Thread Shan Hai
The locking in update_vsyscall_tz() is not only unnecessary because the vdso code copies the data unproteced in __kernel_gettimeofday() but also introduces a hard to reproduce race condition between update_vsyscall() and update_vsyscall_tz(), which causes user space process to loop forever in vdso

[PATCH 00/14] powerpc: Add support for POWER8 relocation on exceptions

2012-11-08 Thread Michael Neuling
This set of patches adds support for taking exceptions with the MMU on which is supported by POWER8. A new set of exception vectors is added at 0xc000___4xxx. When the HW takes us here, MSR IR/DR will be set already and we no longer need a costly RFID to turn the MMU back on again. The o

[PATCH 01/14] powerpc: Fix name denorm hypervisor symbol

2012-11-08 Thread Michael Neuling
Signed-off-by: Michael Neuling --- arch/powerpc/kernel/exceptions-64s.S |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/exceptions-64s.S b/arch/powerpc/kernel/exceptions-64s.S index 10b658a..5663018 100644 --- a/arch/powerpc/kernel/exceptions-64s.S +++

[PATCH 02/14] powerpc: Whitespace changes in exception64s.S

2012-11-08 Thread Michael Neuling
Remove redundancy spaces and make tab usage consistent. Signed-off-by: Michael Neuling --- arch/powerpc/kernel/exceptions-64s.S | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/arch/powerpc/kernel/exceptions-64s.S b/arch/powerpc/kernel/excep

[PATCH 03/14] powerpc: Remove unessessary 0x3000 location enforcement

2012-11-08 Thread Michael Neuling
This removes the large gap between 0x1800 and 0x3000. Signed-off-by: Michael Neuling --- arch/powerpc/kernel/exceptions-64s.S |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/exceptions-64s.S b/arch/powerpc/kernel/exceptions-64s.S index 29cf7b1..de02

[PATCH 04/14] powerpc: Make load_hander handle upto 64k offset

2012-11-08 Thread Michael Neuling
If we change load_hander() to use an ori instead of addi, we can load handlers upto 64k away provided we are still 64k aligned. --- arch/powerpc/include/asm/exception-64s.h |3 ++- arch/powerpc/kernel/exceptions-64s.S |4 ++-- arch/powerpc/kernel/setup_64.c |5 + 3 fi

[PATCH 05/14] powerpc: Turn syscall handler into macros

2012-11-08 Thread Michael Neuling
This turns the syscall handler into macros as we are going to want to reuse them again later. Signed-off-by: Matt Evans Signed-off-by: Michael Neuling --- arch/powerpc/kernel/exceptions-64s.S | 63 +- 1 file changed, 40 insertions(+), 23 deletions(-) diff --gi

[PATCH 06/14] powerpc: Add new macros needed for relocation on exceptions

2012-11-08 Thread Michael Neuling
POWER8/v2.07 allows exceptions to be taken with the MMU still on. A new set of exception vectors is added at 0xc000___4xxx. When the HW takes us here, MSR IR/DR will be set already and we no longer need a costly RFID to turn the MMU back on again. The original 0x0 based exception vectors

[PATCH 07/14] powerpc: Add relocation on exception vector handlers

2012-11-08 Thread Michael Neuling
POWER8/v2.07 allows exceptions to be taken with the MMU still on. A new set of exception vectors is added at 0xc000___4xxx. When the HW takes us here, MSR IR/DR will be set already and we no longer need a costly RFID to turn the MMU back on again. The original 0x0 based exception vectors

[PATCH 08/14] powerpc: Move initial mfspr LPCR out of __init_LPCR

2012-11-08 Thread Michael Neuling
We want to change what's initially set in the LPCR, so start by taking the move from LPCR out of the function and into the caller. Signed-off-by: Matt Evans Signed-off-by: Michael Neuling --- arch/powerpc/kernel/cpu_setup_power.S |6 +- 1 file changed, 5 insertions(+), 1 deletion(-) di

[PATCH 09/14] powerpc: Setup relocation on exceptions for bare metal systems

2012-11-08 Thread Michael Neuling
This turns on MMU on execptions via AIL field in the LPCR. Signed-off-by: Matt Evans Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/reg.h|2 ++ arch/powerpc/kernel/cpu_setup_power.S |2 ++ 2 files changed, 4 insertions(+) diff --git a/arch/powerpc/include/asm/reg.h

[PATCH 10/14] powerpc: Add set_mode hcall

2012-11-08 Thread Michael Neuling
From: Ian Munsie This new hcall in POWER8 is used to set various resource mode registers. eg. it can set address translation mode on interrupt (note: partition wide scope) Signed-off-by: Ian Munsie Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/firmware.h |4 +++-

[PATCH 10/12] powerpc: Move get_longbusy_msecs into hvcall.h and remove duplicate function

2012-11-08 Thread Michael Neuling
From: Ian Munsie I am going to use this in the next patch, better to have this code in one place rather than three. Signed-off-by: Ian Munsie Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/hvcall.h | 20 drivers/infiniband/hw/ehca/hcp_if.c |

[PATCH 11/14] powerpc: Add wrappers to enable/disable relocation on exceptions

2012-11-08 Thread Michael Neuling
From: Ian Munsie These wrappers hide the parameters that have to be passed to H_SET_MODE to enable/disable relocation on during exceptions. As noted in the comments, since these have partition wide scope, they may take some time to complete and must be periodically retried until H_SUCCESS is ret

[PATCH 12/14] powerpc: Move get_longbusy_msecs into hvcall.h and remove duplicate function

2012-11-08 Thread Michael Neuling
From: Ian Munsie I am going to use this in the next patch, better to have this code in one place rather than three. Signed-off-by: Ian Munsie Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/hvcall.h | 20 drivers/infiniband/hw/ehca/hcp_if.c |

[PATCH 13/14] powerpc: Enable relocation on during exceptions at boot

2012-11-08 Thread Michael Neuling
From: Ian Munsie We currently do this synchronously at boot from setup_arch. On a large system this could hypothetically take a little while to complete, so currently we will give up if we are asked to wait for more than a second in total. If we actually start hitting that timeout in practice we

[PATCH 14/14] powerpc: Disable relocation on exceptions when kexecing

2012-11-08 Thread Michael Neuling
From: Ian Munsie Since we don't know if they new kernel we are kexecing into has been built to support relocation on exceptions, we disable them before we kexec. We do NOT disable them if we are execing a kdump kernel, because we want to change as little state as possible and it is likely that w

[PATCH] powerpc/pseries: Update ibm, architecture.vec for PAPR 2.7/POWER8

2012-11-08 Thread Michael Neuling
Update ibm,architecture.vec for POWER8 and allows us to support more than one parition per core. Signed-off-by: Michael Neuling --- v2: Missed some bits in the original post.. arch/powerpc/kernel/prom_init.c |9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/arch/po

[PATCH] powerpc: Add POWER8 architected mode to cputable

2012-11-08 Thread Michael Neuling
A PVR of 0x0F04 means we are arch v2.07 complicate ie, POWER8. Signed-off-by: Michael Neuling diff --git a/arch/powerpc/kernel/cputable.c b/arch/powerpc/kernel/cputable.c index 216ff84..75a3d71 100644 --- a/arch/powerpc/kernel/cputable.c +++ b/arch/powerpc/kernel/cputable.c @@ -435,6 +43