Re: [RFC PATCH powerpc] Fix compile error of pgtable-ppc64.h

2014-01-16 Thread Aneesh Kumar K.V
Li Zhong writes: > It seems that forward declaration couldn't work well with typedef, use > struct spinlock directly to avoiding following build errors: > > In file included from include/linux/spinlock.h:81, > from include/linux/seqlock.h:35, > from include/linux

[RFC PATCH powerpc] Fix compile error of pgtable-ppc64.h

2014-01-16 Thread Li Zhong
It seems that forward declaration couldn't work well with typedef, use struct spinlock directly to avoiding following build errors: In file included from include/linux/spinlock.h:81, from include/linux/seqlock.h:35, from include/linux/time.h:5, fr

[PATCH] powerpc/configs: Enbale Freescale IFC controller

2014-01-16 Thread Prabhakar Kushwaha
Currently IFC NAND driver is enabled in corenet32smp_defconfig. But IFC controller is not enabled So, Enable IFC controller in corenet32smp_defconfig. Signed-off-by: Prabhakar Kushwaha --- Based upon git://git.kernel.org/pub/scm/linux/kernel/git/scottwood/linux.git branch master arch/powerpc

[PATCH 2/2][v4] powerpc/config: Enable memory driver

2014-01-16 Thread Prabhakar Kushwaha
As Freescale IFC controller has been moved to driver to driver/memory. So enable memory driver in powerpc config Signed-off-by: Prabhakar Kushwaha --- Changes for v2: Sending as it is Changes for v3: Sending as it is Changes for v4: Rebased to git://git.kernel.org/pub/scm/linux/kerne

[PATCH 1/2][4] driver/memory:Move Freescale IFC driver to a common driver

2014-01-16 Thread Prabhakar Kushwaha
Freescale IFC controller has been used for mpc8xxx. It will be used for ARM-based SoC as well. This patch moves the driver to driver/memory and fix the header file includes. Also remove module_platform_driver() and instead call platform_driver_register() from subsys_initcall() to make sure

[PATCH 1/3] pci: add "fundamental reset" quirk

2014-01-16 Thread Alexey Kardashevskiy
From: Thadeu Lima de Souza Cascardo Signed-off-by: Thadeu Lima de Souza Cascardo --- drivers/pci/quirks.c | 21 + 1 file changed, 21 insertions(+) diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c index f6c31fa..f3eedbf 100644 --- a/drivers/pci/quirks.c +++ b/drivers

Re: [PATCH 1/3] pci: add "fundamental reset" quirk

2014-01-16 Thread Alexey Kardashevskiy
Rats. Please ignore this patchset. On 01/17/2014 04:08 PM, Alexey Kardashevskiy wrote: > From: Thadeu Lima de Souza Cascardo > > Signed-off-by: Thadeu Lima de Souza Cascardo > --- > drivers/pci/quirks.c | 21 + > 1 file changed, 21 insertions(+) > > diff --git a/drivers/p

[PATCH 2/3] PPC: KVM: fix to compile without VFIO

2014-01-16 Thread Alexey Kardashevskiy
Signed-off-by: Alexey Kardashevskiy --- arch/powerpc/kvm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/kvm/Kconfig b/arch/powerpc/kvm/Kconfig index cb6e84a..88cffb8 100644 --- a/arch/powerpc/kvm/Kconfig +++ b/arch/powerpc/kvm/Kconfig @@ -65,7 +65,7 @@ co

[PATCH V2] cpuidle/governors: Fix logic in selection of idle states

2014-01-16 Thread Preeti U Murthy
The cpuidle governors today are not handling scenarios where no idle state can be chosen. Such scenarios coud arise if the user has disabled all the idle states at runtime or the latency requirement from the cpus is very strict. The menu governor returns 0th index of the idle state table when no o

[PATCH] powerpc: set the correct ksp_limit on ppc32 when switching to irq stack

2014-01-16 Thread Kevin Hao
Guenter Roeck has got the following call trace on a p2020 board: Kernel stack overflow in process eb3e5a00, r1=eb79df90 CPU: 0 PID: 2838 Comm: ssh Not tainted 3.13.0-rc8-juniper-00146-g19eca00 #4 task: eb3e5a00 ti: c0616000 task.ti: ef44 NIP: c003a420 LR: c003a410 CTR: c0017518 REGS:

Re: Kernel stack overflows due to "powerpc: Remove ksp_limit on ppc64" with v3.13-rc8 on ppc32 (P2020)

2014-01-16 Thread Kevin Hao
On Fri, Jan 17, 2014 at 01:58:10PM +1100, Benjamin Herrenschmidt wrote: > On Fri, 2014-01-17 at 10:20 +0800, Kevin Hao wrote: > > On Thu, Jan 16, 2014 at 10:05:32AM -0800, Guenter Roeck wrote: > > > Hi all, > > > > > > I am getting kernel stack overflows with v3.13-rc8 on a system with P2020 > >

Re: Kernel stack overflows due to "powerpc: Remove ksp_limit on ppc64" with v3.13-rc8 on ppc32 (P2020)

2014-01-16 Thread Guenter Roeck
On 01/16/2014 06:58 PM, Benjamin Herrenschmidt wrote: On Fri, 2014-01-17 at 10:20 +0800, Kevin Hao wrote: On Thu, Jan 16, 2014 at 10:05:32AM -0800, Guenter Roeck wrote: Hi all, I am getting kernel stack overflows with v3.13-rc8 on a system with P2020 CPU. The kernel is patched for the target,

Re: Kernel stack overflows due to "powerpc: Remove ksp_limit on ppc64" with v3.13-rc8 on ppc32 (P2020)

2014-01-16 Thread Benjamin Herrenschmidt
On Fri, 2014-01-17 at 10:20 +0800, Kevin Hao wrote: > On Thu, Jan 16, 2014 at 10:05:32AM -0800, Guenter Roeck wrote: > > Hi all, > > > > I am getting kernel stack overflows with v3.13-rc8 on a system with P2020 > > CPU. > > The kernel is patched for the target, but I don't think that is related.

Re: Kernel stack overflows due to "powerpc: Remove ksp_limit on ppc64" with v3.13-rc8 on ppc32 (P2020)

2014-01-16 Thread Kevin Hao
On Thu, Jan 16, 2014 at 10:05:32AM -0800, Guenter Roeck wrote: > Hi all, > > I am getting kernel stack overflows with v3.13-rc8 on a system with P2020 CPU. > The kernel is patched for the target, but I don't think that is related. > Stack overflows are in different areas, but always in calls from

[PATCH 8/8] powerpc/perf: add kconfig option for hypervisor provided counters

2014-01-16 Thread Cody P Schafer
Signed-off-by: Cody P Schafer --- arch/powerpc/perf/Makefile | 2 ++ arch/powerpc/platforms/Kconfig.cputype | 6 ++ 2 files changed, 8 insertions(+) diff --git a/arch/powerpc/perf/Makefile b/arch/powerpc/perf/Makefile index 60d71ee..5e5fcd2 100644 --- a/arch/powerpc/perf/Makefile

[PATCH 7/8] powerpc/perf: add support for the hv 24x7 interface

2014-01-16 Thread Cody P Schafer
This provides a basic interface between hv_24x7 and perf. Similar to the one provided for gpci, it lacks transaction support and does not list any events. Signed-off-by: Cody P Schafer --- arch/powerpc/perf/hv-24x7.c | 354 1 file changed, 354 inserti

[PATCH 6/8] powerpc/perf: add support for the hv gpci (get performance counter info) interface

2014-01-16 Thread Cody P Schafer
This provides a basic link between perf and hv_gpci. Notably, it does not yet support transactions and does not list any events (they can still be manually composed). Signed-off-by: Cody P Schafer --- arch/powerpc/perf/hv-gpci.c | 235 1 file changed,

[PATCH 5/8] powerpc: add 24x7 interface header

2014-01-16 Thread Cody P Schafer
24x7 (also called hv_24x7 or H_24X7) is an interface to obtain performance counters from the hypervisor. These counters do not have a fixed format/possition and are instead documented in a "24x7 Catalog", which is provided by the hypervisor (that interface is also documented in this header). This

[PATCH 2/8] perf core: export swevent hrtimer helpers

2014-01-16 Thread Cody P Schafer
Export the swevent hrtimer helpers currently only used in events/core.c to allow the addition of architecture specific sw-like pmus. Signed-off-by: Cody P Schafer --- include/linux/perf_event.h | 5 - kernel/events/core.c | 8 2 files changed, 8 insertions(+), 5 deletions(-)

[PATCH 4/8] powerpc: add hv_gpci interface header

2014-01-16 Thread Cody P Schafer
"H_GetPerformanceCounterInfo" (refered to as hv_gpci or just gpci from here on) is an interface to retrieve specific performance counters and other data from the hypervisor. All outputs have a fixed format (and are represented as structs in this patch). Signed-off-by: Cody P Schafer --- arch/pow

[PATCH 3/8] powerpc: add hvcalls for 24x7 and gpci (get performance counter info)

2014-01-16 Thread Cody P Schafer
Signed-off-by: Cody P Schafer --- arch/powerpc/include/asm/hvcall.h | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/include/asm/hvcall.h b/arch/powerpc/include/asm/hvcall.h index d8b600b..48d6efa 100644 --- a/arch/powerpc/include/asm/hvcall.h +++ b/arch/powe

[PATCH 1/8] perf: add PMU_RANGE_ATTR() helper for use by sw-like pmus

2014-01-16 Thread Cody P Schafer
Add PMU_RANGE_ATTR() and PMU_RANGE_RESV() (for reserved areas) which generate functions to extract the relevent bits from event->attr.config{,1,2} for use by sw-like pmus where the 'config{,1,2}' values don't map directly to hardware registers. Signed-off-by: Cody P Schafer --- include/linux/per

[PATCH 0/8] Add support for PowerPC Hypervisor supplied performance counters

2014-01-16 Thread Cody P Schafer
These patches add basic pmus for 2 powerpc hypervisor interfaces to obtain performance counters: gpci ("get performance counter info") and 24x7. The counters supplied by these interfaces are continually counting and never need to be (and cannot be) disabled or enabled. They additionally do not gen

Re: [PATCH RFC] powerpc/mpc85xx: add support for the kmp204x reference board

2014-01-16 Thread Scott Wood
On Thu, 2014-01-16 at 14:38 +0100, Valentin Longchamp wrote: > This patch introduces the support for Keymile's kmp204x reference > design. This design is based on Freescale's P2040/P2041 SoC. > > The peripherals used by this design are: > - SPI NOR Flash as bootloader medium > - NAND Flash with a

Kernel stack overflows due to "powerpc: Remove ksp_limit on ppc64" with v3.13-rc8 on ppc32 (P2020)

2014-01-16 Thread Guenter Roeck
Hi all, I am getting kernel stack overflows with v3.13-rc8 on a system with P2020 CPU. The kernel is patched for the target, but I don't think that is related. Stack overflows are in different areas, but always in calls from __do_softirq. Crashes happen reliably either during boot or if I put any

Re: [PATCH RFC v6 4/5] dma: mpc512x: register for device tree channel lookup

2014-01-16 Thread Gerhard Sittig
On Mon, Jan 13, 2014 at 12:17 +0400, Alexander Popov wrote: > > Thanks for your replies, Gerhard and Vinod. > > 2014/1/9 Vinod Koul : > > On Wed, Jan 08, 2014 at 05:47:19PM +0100, Gerhard Sittig wrote: > >> [ what is the semantics of DMA_PRIVATE capability flag? > >> is documentation available

[PATCH RFC] powerpc/mpc85xx: add support for the kmp204x reference board

2014-01-16 Thread Valentin Longchamp
This patch introduces the support for Keymile's kmp204x reference design. This design is based on Freescale's P2040/P2041 SoC. The peripherals used by this design are: - SPI NOR Flash as bootloader medium - NAND Flash with a ubi partition - 2 PCIe busses (hosts 1 and 3) - 3 FMAN Ethernet devices (

Re: [PATCH v2] drivers/tty/hvc: don't use module_init in non-modular hyp. console code

2014-01-16 Thread David Vrabel
On 15/01/14 21:35, Paul Gortmaker wrote: > The HVC_OPAL/RTAS/UDBG/XEN options are all bool, and hence their support > is either present or absent. It will never be modular, so using > module_init as an alias for __initcall is rather misleading. > > Fix this up now, so that we can relocate module_

[PATCH v2] powerpc/powernv: Platform dump interface

2014-01-16 Thread Vasant Hegde
This patch adds interface to retrieve FSP and Platform dump. Flow: - We register for OPAL notification events. - OPAL sends new dump available notification. - We retrieve the dump via OPAL interface and send it to debugfs. - User copies the dump data and end ACKs via debugfs. - We send A

[PATCH 3/4 v2]powerpc/fsl-booke: Add support for T2080/T2081 SoC

2014-01-16 Thread Shengzhou Liu
Add support for T2080/T2081 SoC without DPAA components. The T2080 SoC includes the following function and features: - Four dual-threaded 64-bit Power architecture e6500 cores, up to 1.8GHz - 2MB L2 cache and 512KB CoreNet platform cache (CPC) - Hierarchical interconnect fabric - One 32-/64-bit DD

[PATCH] powerpc/pci: Fix IMMRBAR address

2014-01-16 Thread Minghuan Lian
For PEXCSRBAR, bit 3-0 indicate prefetchable and address type. So when getting base address, these bits should be masked, otherwise we may get incorrect base address. Signed-off-by: Minghuan Lian --- arch/powerpc/sysdev/fsl_pci.c | 8 1 file changed, 8 insertions(+) diff --git a/arch/p