Re: [PATCH] powerpc: book3s: kvm: Don't abuse host r2 in exit path

2013-12-17 Thread Aneesh Kumar K.V
Hi Alex, Any update on this ? We need this to got into 3.13. -aneesh "Aneesh Kumar K.V" writes: > From: "Aneesh Kumar K.V" > > We don't use PACATOC for PR. Avoid updating HOST_R2 with PR > KVM mode when both HV and PR are enabled in the kernel. Without this we > get the below crash > > (qem

Re: [PATCH v2] powerpc/powernv: Framework to log critical errors on powernv.

2013-12-17 Thread Deepthi Dharwar
On 12/18/2013 10:57 AM, Michael Ellerman wrote: > On Wed, 2013-12-18 at 10:48 +0530, Deepthi Dharwar wrote: >> Hi Micheal, >> >> Thanks for the review. > > No worries. > >> On 12/18/2013 08:13 AM, Michael Ellerman wrote: >>> On Mon, 2013-12-16 at 18:00 +0530, Deepthi Dharwar wrote: +/* All t

Re: [PATCH v2] powerpc/powernv: Framework to log critical errors on powernv.

2013-12-17 Thread Michael Ellerman
On Wed, 2013-12-18 at 10:48 +0530, Deepthi Dharwar wrote: > Hi Micheal, > > Thanks for the review. No worries. > On 12/18/2013 08:13 AM, Michael Ellerman wrote: > > On Mon, 2013-12-16 at 18:00 +0530, Deepthi Dharwar wrote: > >> +/* All the information regarding an error/event to be reported > >

Re: [PATCH v2] powerpc/powernv: Framework to log critical errors on powernv.

2013-12-17 Thread Deepthi Dharwar
Hi Micheal, Thanks for the review. On 12/18/2013 08:13 AM, Michael Ellerman wrote: > On Mon, 2013-12-16 at 18:00 +0530, Deepthi Dharwar wrote: >> This patch provides error logging interfaces to report critical >> powernv error to FSP. >> All the required information to dump the error is collected

Re: [PATCH 8/8] powerpc: Fix endian issues in crash dump code

2013-12-17 Thread Michael Ellerman
On Thu, 2013-12-12 at 15:59 +1100, Anton Blanchard wrote: > A couple more device tree properties that need byte swapping. > > Signed-off-by: Anton Blanchard > --- > arch/powerpc/kernel/crash_dump.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/arch/powerpc/kerne

[PATCH v12] PPC: POWERNV: move iommu_add_device earlier

2013-12-17 Thread Alexey Kardashevskiy
The current implementation of IOMMU on sPAPR does not use iommu_ops and therefore does not call IOMMU API's bus_set_iommu() which 1) sets iommu_ops for a bus 2) registers a bus notifier Instead, PCI devices are added to IOMMU groups from subsys_initcall_sync(tce_iommu_init) which does basically the

Re: [PATCH V4 09/10] power8, perf: Change BHRB branch filter configuration

2013-12-17 Thread Anshuman Khandual
On 12/18/2013 05:38 AM, Michael Ellerman wrote: > On Fri, 2013-12-13 at 13:50 +0530, Anshuman Khandual wrote: >> On 12/09/2013 11:51 AM, Michael Ellerman wrote: >>> >>> As I said in my comments on version 3 which you ignored: >>> >>> I think it would be clearer if we actually checked for the >

Re: [v3][PATCH 8/8] book3e/kexec/kdump: recover "r4 = 0" to create the initial TLB

2013-12-17 Thread Scott Wood
On Tue, 2013-07-09 at 16:03 +0800, Tiejun Chen wrote: > In commit 96f013f, "powerpc/kexec: Add kexec "hold" support for Book3e > processors", requires that GPR4 survive the "hold" process, for IBM Blue > Gene/Q with with some very strange firmware. But for FSL Book3E, r4 = 1 > to indicate that the

Re: [v3][PATCH 7/8] book3e/kexec/kdump: redefine VIRT_PHYS_OFFSET

2013-12-17 Thread Scott Wood
On Tue, 2013-07-09 at 16:03 +0800, Tiejun Chen wrote: > Book3e is always aligned 1GB to create TLB so we should > use (KERNELBASE - MEMORY_START) as VIRT_PHYS_OFFSET to > get __pa/__va properly while boot kdump. What if MEMORY_START - PHYSICAL_START >= 1 GiB? What about the comment that says we c

Re: [v3][PATCH 6/8] book3e/kexec/kdump: implement ppc64 kexec specfic

2013-12-17 Thread Scott Wood
On Tue, 2013-07-09 at 16:03 +0800, Tiejun Chen wrote: > ppc64 kexec mechanism has a different implementation with ppc32. > > Signed-off-by: Tiejun Chen Could you describe the relevant differences? -Scott ___ Linuxppc-dev mailing list Linuxppc-dev@li

Re: [v3][PATCH 5/8] book3e/kexec/kdump: introduce a kexec kernel flag

2013-12-17 Thread Scott Wood
On Tue, 2013-07-09 at 16:03 +0800, Tiejun Chen wrote: > We need to introduce a flag to indicate we're already running > a kexec kernel then we can go proper path. For example, We > shouldn't access spin_table from the bootloader to up any secondary > cpu for kexec kernel, and kexec kernel already k

Re: [PATCH] powerpc, perf: Configure BHRB filter before enabling PMU interrupts

2013-12-17 Thread Anshuman Khandual
On 12/18/2013 07:44 AM, Michael Ellerman wrote: > From: Anshuman Khandual > > Right now the config_bhrb() PMU specific call happens after > write_mmcr0(), which actually enables the PMU for event counting and > interrupts. So there is a small window of time where the PMU and BHRB > runs without t

Re: [v3][PATCH 4/8] book3e/kexec/kdump: create a 1:1 TLB mapping

2013-12-17 Thread Scott Wood
On Tue, 2013-07-09 at 16:03 +0800, Tiejun Chen wrote: > book3e have no real MMU mode so we have to create a 1:1 TLB > mapping to make sure we can access the real physical address. > And correct something to support this pseudo real mode on book3e. > > Signed-off-by: Tiejun Chen Why do we need to

Re: [v3][PATCH 3/8] book3e/kexec/kdump: enable kexec for kernel

2013-12-17 Thread Scott Wood
On Tue, 2013-07-09 at 16:03 +0800, Tiejun Chen wrote: > We need to active KEXEC for book3e and bypass or convert non-book3e stuff > in kexec coverage. > > Signed-off-by: Tiejun Chen > --- > arch/powerpc/Kconfig |2 +- > arch/powerpc/kernel/machine_kexec_64.c | 148 > +

Re: [v3][PATCH 2/8] powerpc/book3e: support CONFIG_RELOCATABLE

2013-12-17 Thread Scott Wood
On Tue, 2013-07-09 at 16:03 +0800, Tiejun Chen wrote: > book3e is different with book3s since 3s includes the exception > vectors code in head_64.S as it relies on absolute addressing > which is only possible within this compilation unit. So we have > to get that label address with got. > > And wh

Re: [v3][PATCH 1/8] powerpc/book3e: rename interrupt_end_book3e with __end_interrupts

2013-12-17 Thread Scott Wood
On Tue, 2013-07-09 at 16:03 +0800, Tiejun Chen wrote: > We can rename 'interrupt_end_book3e' with '__end_interrupts' then > book3s/book3e can share this unique label to make sure we can use > this conveniently. > > Signed-off-by: Tiejun Chen What users of this do you plan to share between book3s

Re: [v6][PATCH 2/5] powerpc/book3e: store crit/mc/dbg exception thread info

2013-12-17 Thread Scott Wood
On Wed, 2013-10-23 at 17:31 +0800, Tiejun Chen wrote: > We need to store thread info to these exception thread info like something > we already did for PPC32. > > Signed-off-by: Tiejun Chen > --- > arch/powerpc/kernel/exceptions-64e.S | 22 +++--- > 1 file changed, 19 insertion

Re: [v6][PATCH 5/5] powerpc/book3e/kgdb: Fix a single stgep case of lazy IRQ

2013-12-17 Thread Scott Wood
On Wed, 2013-10-23 at 17:31 +0800, Tiejun Chen wrote: > In lazy EE magic, we may have a lazy interrupt occured while > entering kgdb, but we really don't want to replay that interrupt > for kgdb, so we have to clear the PACA_IRQ_HARD_DIS force to > make sure we can exit directly from this debug exc

Re: [PATCH v2] powerpc/powernv: Framework to log critical errors on powernv.

2013-12-17 Thread Michael Ellerman
On Mon, 2013-12-16 at 18:00 +0530, Deepthi Dharwar wrote: > This patch provides error logging interfaces to report critical > powernv error to FSP. > All the required information to dump the error is collected > at POWERNV level through error log interfaces > and then pushed on to FSP. > > This al

[PATCH] powerpc, perf: Configure BHRB filter before enabling PMU interrupts

2013-12-17 Thread Michael Ellerman
From: Anshuman Khandual Right now the config_bhrb() PMU specific call happens after write_mmcr0(), which actually enables the PMU for event counting and interrupts. So there is a small window of time where the PMU and BHRB runs without the required HW branch filter (if any) enabled in BHRB. This

Re: [PATCH 1/2] power7, perf: Make some new raw event codes available in sysfs

2013-12-17 Thread Michael Ellerman
On Fri, 2013-12-13 at 10:00 +0530, Anshuman Khandual wrote: > On 12/13/2013 08:20 AM, Michael Ellerman wrote: > > On Wed, 2013-10-16 at 11:22 +0530, Anshuman Khandual wrote: > >> This patch adds some more raw event codes into the existing list > >> of event codes present in power7-events-list.h fil

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

2013-12-17 Thread Michael Ellerman
On Mon, 2013-12-16 at 15:12 +1100, Michael Neuling wrote: > 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) be

Re: [PATCH V4 09/10] power8, perf: Change BHRB branch filter configuration

2013-12-17 Thread Michael Ellerman
On Fri, 2013-12-13 at 13:50 +0530, Anshuman Khandual wrote: > On 12/09/2013 11:51 AM, Michael Ellerman wrote: > > > > As I said in my comments on version 3 which you ignored: > > > > I think it would be clearer if we actually checked for the > > possibilities we > > allow and let everyth

Re: [PATCH v2] powerpc 8xx: Loading kernels over 8Mbytes without CONFIG_PIN_TLB

2013-12-17 Thread Scott Wood
On Tue, 2013-12-17 at 06:54 +0100, leroy christophe wrote: > Le 16/12/2013 23:57, Scott Wood a écrit : > > On Wed, 2013-12-11 at 00:36 +0100, leroy christophe wrote: > >> Le 11/12/2013 00:18, Scott Wood a écrit : > >>> There wasn't previously an ifdef specifically around the setting of > >>> SPRN_M

[PATCH] powerpc: Make 64-bit non-VMX __copy_tofrom_user bi-endian

2013-12-17 Thread Anton Blanchard
From: Paul E. McKenney The powerpc 64-bit __copy_tofrom_user() function uses shifts to handle unaligned invocations. However, these shifts were designed for big-endian systems: On little-endian systems, they must shift in the opposite direction. This commit relies on the C preprocessor to inser

Re: [PATCH] DTS: DMA: Fix DMA3 interrupts

2013-12-17 Thread Scott Wood
On Tue, 2013-12-17 at 16:48 +0800, Li Yang wrote: > On Wed, Dec 11, 2013 at 2:33 AM, Scott Wood wrote: > > On Tue, 2013-12-10 at 18:33 +0800, Hongbo Zhang wrote: > >> Scott, > >> This issue is due to the non-continuous MPIC register, I think there is > >> two ways to fix it. > >> > >> The first on

Re: [PATCH 4/5] powerpc/fsl-booke: Add initial T208x QDS board support

2013-12-17 Thread Scott Wood
On Wed, 2013-12-11 at 19:19 +0800, Shengzhou Liu wrote: > + boardctrl: board-control@3,0 { > + #address-cells = <1>; > + #size-cells = <1>; > + compatible = "fsl,fpga-qixis"; > + reg = <3 0 0x300>; > +

[PATCH] of/irq: Fix device_node refcount in of_irq_parse_raw()

2013-12-17 Thread Cédric Le Goater
Commit 2361613206e6, "of/irq: Refactor interrupt-map parsing" changed the refcount on the device_node causing an error in of_node_put(): ERROR: Bad of_node_put() on /pci@8002000 CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.13.0-rc3-dirty #2 Call Trace: [c0003e403500] [c00144fc]

[PATCH v2 05/10] powerpc: select ARCH_MIGHT_HAVE_PC_SERIO

2013-12-17 Thread Mark Salter
Architectures which might use an i8042 for serial IO to keyboard, mouse, etc should select ARCH_MIGHT_HAVE_PC_SERIO. Signed-off-by: Mark Salter Acked-by: Benjamin Herrenschmidt CC: Paul Mackerras CC: linuxppc-dev@lists.ozlabs.org --- arch/powerpc/Kconfig | 1 + 1 file changed, 1 insertion(+)

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

2013-12-17 Thread Mark Salter
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_SERIO in arch/*/Kconfig. New architectures are unlikely to need SERIO_I8042, so this avoids having an ever growing list of

[PATCH v2 00/10] Kconfig: cleanup SERIO_I8042 dependencies

2013-12-17 Thread Mark Salter
This patch series removes the messy dependencies from SERIO_I8042 by having it depend on one variable (ARCH_MAY_HAVE_PC_SERIO) and having architectures which need it select that variable in arch/*/Kconfig. New architectures are unlikely to need SERIO_I8042, so this avoids having an ever growing li

commit e38c0a1f breaks powerpc boards with uli1575 chip

2013-12-17 Thread Nikita Yushchenko
Hi While trying to make freescale p2020ds and mpc8572ds boards working with mainline kernel, I faced that commit e38c0a1f (Handle #address-cells > 2 specially) breaks things with these boards. Both these boards have uli1575 chip. Corresponding part in device tree is something like

Chip Select register with 8bit bus size...

2013-12-17 Thread neorf3k
We have a problem to communicate with a register, CS4, at at 0x1002. In U-boot that reg has the value 0x45fab3c1, but when we try to access it we get: 0x10101010 and we are not able to write too. With CS3 everything seems ok, we can read and write. CS3 is at: 0x1000. The main/only diff

Re: [PATCH] DTS: DMA: Fix DMA3 interrupts

2013-12-17 Thread Li Yang
On Wed, Dec 11, 2013 at 2:33 AM, Scott Wood wrote: > On Tue, 2013-12-10 at 18:33 +0800, Hongbo Zhang wrote: >> Scott, >> This issue is due to the non-continuous MPIC register, I think there is >> two ways to fix it. >> >> The first one is as what we are discussing, in fact the Bman/Qman DT >> auth

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

2013-12-17 Thread Dongsheng Wang
From: Wang Dongsheng Add a sys interface to enable/diable pw20 state or altivec idle, and control the wait entry time. Enable/Disable interface: 0, disable. 1, enable. /sys/devices/system/cpu/cpuX/pw20_state /sys/devices/system/cpu/cpuX/altivec_idle Set wait time interface:(Nanoseco

[PATCH v6 2/4] powerpc/85xx: add hardware automatically enter altivec idle state

2013-12-17 Thread Dongsheng Wang
From: Wang Dongsheng Each core's AltiVec unit may be placed into a power savings mode by turning off power to the unit. Core hardware will automatically power down the AltiVec unit after no AltiVec instructions have executed in N cycles. The AltiVec power-control is triggered by hardware. Signed

[PATCH v6 3/4] powerpc/85xx: add hardware automatically enter pw20 state

2013-12-17 Thread Dongsheng Wang
From: Wang Dongsheng Using hardware features make core automatically enter PW20 state. Set a TB count to hardware, the effective count begins when PW10 is entered. When the effective period has expired, the core will proceed from PW10 to PW20 if no exit conditions have occurred during the period.

[PATCH v6 1/4] powerpc/fsl: add E6500 PVR and SPRN_PWRMGTCR0 define

2013-12-17 Thread Dongsheng Wang
From: Wang Dongsheng E6500 PVR and SPRN_PWRMGTCR0 will be used in subsequent pw20/altivec idle patches. Signed-off-by: Wang Dongsheng --- *v3: Add bit definitions for PWRMGTCR0. arch/powerpc/include/asm/reg.h | 2 ++ arch/powerpc/include/asm/reg_booke.h | 9 + 2 files changed, 1