RE: [PATCH V5 3/3] powerpc/fsl-pci: Unify pci/pcie initialization code

2012-08-07 Thread Jia Hongtao-B38951
> -Original Message- > From: Wood Scott-B07421 > Sent: Monday, August 06, 2012 11:10 PM > To: Jia Hongtao-B38951 > Cc: Wood Scott-B07421; linuxppc-dev@lists.ozlabs.org; > ga...@kernel.crashing.org; Li Yang-R58472 > Subject: Re: [PATCH V5 3/3] powerpc/fsl-pci: Unify pci/pcie > initializati

[PATCH 1/4] powerpc/85xx: add sleep and deep sleep support

2012-08-07 Thread Zhao Chenhui
In sleep PM mode, the clocks of e500 core and unused IP blocks is turned off. IP blocks which are allowed to wake up the processor are still running. Some Freescale chips like MPC8536 and P1022 has deep sleep PM mode in addtion to the sleep PM mode. While in deep sleep PM mode, additionally, the

[PATCH 3/4] cpu: export cpu hotplug disable/enable functions as global functions

2012-08-07 Thread Zhao Chenhui
The cpufreq driver of mpc85xx will disable/enable cpu hotplug temporarily. Therefore, the related functions should be exported. Signed-off-by: Zhao Chenhui --- include/linux/cpu.h |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/include/linux/cpu.h b/include/linux/cpu.

[PATCH 4/4] powerpc/85xx: add support to JOG feature using cpufreq interface

2012-08-07 Thread Zhao Chenhui
Some 85xx silicons like MPC8536 and P1022 have a JOG feature, which provides a dynamic mechanism to lower or raise the CPU core clock at runtime. This patch adds the support to change CPU frequency using the standard cpufreq interface. The ratio CORE to CCB can be 1:1(except MPC8536), 3:2, 2:1, 5:

[PATCH 2/4] fsl_pmc: Add API to enable device as wakeup event source

2012-08-07 Thread Zhao Chenhui
Add APIs for setting wakeup source and lossless Ethernet in low power modes. These APIs can be used by wake-on-packet feature. Signed-off-by: Dave Liu Signed-off-by: Li Yang Signed-off-by: Jin Qing Signed-off-by: Zhao Chenhui --- arch/powerpc/sysdev/fsl_pmc.c | 77 ++

RE: [PATCH v6 5/8] fsl-dma: change release process of dma descriptor for supporting async_tx

2012-08-07 Thread Liu Qiang-B32616
Hi Ira, I remember you said you always disable CONFIG_NET_DMA to make sure dma engine won't be locked, actually if this options may affect some behavior of fsl-dma in current kernel, it is possible to issue pending descriptors if there is any network actions. Set CONFIG_NET_DMA=y, dma_issue_pe

[PATCH] mpc85xx_defconfig: add VIA PATA support for MPC85xxCDS

2012-08-07 Thread Zhao Chenhui
Signed-off-by: Zhao Chenhui --- Replace this patch "mpc85xx_defconfig: add IDE support for MPC85xxCDS". arch/powerpc/configs/mpc85xx_defconfig |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/configs/mpc85xx_defconfig b/arch/powerpc/configs/mpc85xx_defconfig

RE: [PATCH 5/6] powerpc/fsl-pci: Add pci inbound/outbound PM support

2012-08-07 Thread Jia Hongtao-B38951
> -Original Message- > From: Kumar Gala [mailto:ga...@kernel.crashing.org] > Sent: Tuesday, July 31, 2012 9:37 PM > To: Jia Hongtao-B38951 > Cc: linuxppc-dev@lists.ozlabs.org; Wood Scott-B07421; Li Yang-R58472 > Subject: Re: [PATCH 5/6] powerpc/fsl-pci: Add pci inbound/outbound PM > suppo

Re: [PATCH V4 3/3] powerpc/fsl-pci: Unify pci/pcie initialization code

2012-08-07 Thread Scott Wood
On 08/07/2012 01:23 AM, Jia Hongtao-B38951 wrote: >> -Original Message- >> From: Wood Scott-B07421 >> Sent: Monday, August 06, 2012 11:16 PM >> To: Jia Hongtao-B38951 >> Cc: Wood Scott-B07421; Kumar Gala; linuxppc-dev@lists.ozlabs.org; Li >> Yang-R58472 >> Subject: Re: [PATCH V4 3/3] powerp

Re: [PATCH V5 3/3] powerpc/fsl-pci: Unify pci/pcie initialization code

2012-08-07 Thread Scott Wood
On 08/06/2012 11:20 PM, Li Yang wrote: > On Mon, Aug 6, 2012 at 11:09 PM, Scott Wood wrote: >> On 08/05/2012 10:07 PM, Jia Hongtao-B38951 wrote: >>> >>> -Original Message- From: Wood Scott-B07421 Sent: Saturday, August 04, 2012 12:28 AM To: Jia Hongtao-B38951 Cc: l

Re: [PATCH V5 3/3] powerpc/fsl-pci: Unify pci/pcie initialization code

2012-08-07 Thread Scott Wood
On 08/07/2012 03:09 AM, Jia Hongtao-B38951 wrote: > I am really not sure that all boards need primary bus. Could you give me > the link of discussion about primary that you mentioned? https://lists.ozlabs.org/pipermail/linuxppc-dev/2012-June/098586.html -Scott __

Re: [PATCH 5/6] powerpc/fsl-pci: Add pci inbound/outbound PM support

2012-08-07 Thread Scott Wood
On 08/07/2012 05:11 AM, Jia Hongtao-B38951 wrote: > > >> -Original Message- >> From: Kumar Gala [mailto:ga...@kernel.crashing.org] >> Sent: Tuesday, July 31, 2012 9:37 PM >> To: Jia Hongtao-B38951 >> Cc: linuxppc-dev@lists.ozlabs.org; Wood Scott-B07421; Li Yang-R58472 >> Subject: Re: [PAT

Re: [PATCH 5/6] powerpc/fsl-pci: Add pci inbound/outbound PM support

2012-08-07 Thread Kumar Gala
On Aug 7, 2012, at 10:34 AM, Scott Wood wrote: > On 08/07/2012 05:11 AM, Jia Hongtao-B38951 wrote: >> >> >>> -Original Message- >>> From: Kumar Gala [mailto:ga...@kernel.crashing.org] >>> Sent: Tuesday, July 31, 2012 9:37 PM >>> To: Jia Hongtao-B38951 >>> Cc: linuxppc-dev@lists.ozlabs.o

Re: [PATCH 3/4] cpu: export cpu hotplug disable/enable functions as global functions

2012-08-07 Thread Kumar Gala
On Aug 7, 2012, at 3:43 AM, Zhao Chenhui wrote: > The cpufreq driver of mpc85xx will disable/enable cpu hotplug temporarily. > Therefore, the related functions should be exported. > > Signed-off-by: Zhao Chenhui > --- > include/linux/cpu.h |4 > 1 files changed, 4 insertions(+), 0 delet

Re: [PATCH 3/3 v4] powerpc/mpic: FSL MPIC error interrupt support.

2012-08-07 Thread Scott Wood
On 08/06/2012 11:22 AM, Sethi Varun-B16395 wrote: > > >> -Original Message- >> From: Kumar Gala [mailto:ga...@kernel.crashing.org] >> Sent: Monday, August 06, 2012 9:23 PM >> To: Sethi Varun-B16395 >> Cc: linuxppc-dev@lists.ozlabs.org; Hamciuc Bogdan-BHAMCIU1 >> Subject: Re: [PATCH 3/3 v4

Re: [PATCH 3/3 v3] powerpc/mpic: FSL MPIC error interrupt support.

2012-08-07 Thread Scott Wood
On 08/03/2012 02:32 PM, Sethi Varun-B16395 wrote: > > >> -Original Message- >> From: Kumar Gala [mailto:ga...@kernel.crashing.org] >> Sent: Saturday, August 04, 2012 12:55 AM >> To: Sethi Varun-B16395 >> Cc: linuxppc-dev@lists.ozlabs.org; Hamciuc Bogdan-BHAMCIU1 >> Subject: Re: [PATCH 3/3

[PATCH 39/41] TTY: hvc_console, add tty install

2012-08-07 Thread Jiri Slaby
This has two outcomes: * we give the TTY layer a tty_port * we do not find the info structure every time open is called on that tty Since we take a reference to a port in ->install, we need also ->cleanup to drop that reference. Signed-off-by: Jiri Slaby Cc: linuxppc-dev@lists.ozlabs.org ---

[PATCH 41/41] TTY: hvcs, add tty install

2012-08-07 Thread Jiri Slaby
This has two outcomes: * we give the TTY layer a tty_port * we do not find the info structure every time open is called on that tty >From now on, we only increase the reference count in ->install (and decrease in ->cleanup). Signed-off-by: Jiri Slaby Cc: linuxppc-dev@lists.ozlabs.org --- driv

Re: [PATCH v3 3/7] mv643xx.c: Add basic device tree support.

2012-08-07 Thread Arnd Bergmann
On Tuesday 07 August 2012, Ian Molton wrote: > > I think it documents some of the same thing, > > Not really. It documents some godawful hack that recycled the platform > device -based driver and provided a DT binding for it, just for PPC. > > I cant even find anything that implements code for wh

Endianness of multi-bit 'gpios' property?

2012-08-07 Thread Timur Tabi
When a 'gpios' property defines multiple GPIO pins, is there any kind of expectation on the endian order of those pins? For example, take this: gpios = <&gpio0 0 0 &gpio0 1 0>; If I write a value of "2" to this GPIO pair, should I expect a value of 1 to be written to pin

[PATCH 0/3] tpm: Add new vTPM device driver for PPC64

2012-08-07 Thread Ashley Lai
These patches add support for IBM vTPM for PPC64. This new device driver works on firmware that supports vTPM (firmware release 740 or higher). Tested on Power7+ system with firmware level ZM770_001. Applied to Kent Yoder patch to modularize event log located at: https://github.com/shpedoikal/li

[PATCH 2/3] PPC64: Add support for instantiating SML from Open Firmware

2012-08-07 Thread Ashley Lai
This patch instantiate Stored Measurement Log (SML) and put the log address and size in the device tree. Signed-off-by: Ashley Lai --- arch/powerpc/kernel/prom_init.c | 64 +++ 1 files changed, 64 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/kern

[PATCH 3/3] drivers/char/tpm: Add securityfs support for event log

2012-08-07 Thread Ashley Lai
This patch retrieves the event log from the device tree and the event log data will be displayed through securityfs. Signed-off-by: Ashley Lai --- drivers/char/tpm/Makefile |8 - drivers/char/tpm/tpm.h| 12 -- drivers/char/tpm/tpm_eventlog.c |7 drive

[PATCH 1/3] drivers/char/tpm: Add new device driver to support IBM vTPM

2012-08-07 Thread Ashley Lai
This patch adds a new device driver to support IBM virtual TPM (vTPM) for PPC64. This driver provides TPM functionalities by communicating with the vTPM adjunct through Hypervisor calls (Hcalls) and Command/Response Queue (CRQ) commands. Signed-off-by: Ashley Lai --- drivers/char/tpm/Kconfig

[PATCH] Use pmc_overflow() to detect rolled back events

2012-08-07 Thread Sukadev Bhattiprolu
>From 21e9d1775f0c6f37a39e5d682ff74693fa9a4004 Mon Sep 17 00:00:00 2001 From: Sukadev Bhattiprolu Date: Tue, 7 Aug 2012 17:53:24 -0700 Subject: [PATCH] Use pmc_overflow to detect rolled back events. For certain speculative events on Power7, 'perf stat' reports far higher event count than 'perf r

RE: [PATCH 5/6] powerpc/fsl-pci: Add pci inbound/outbound PM support

2012-08-07 Thread Jia Hongtao-B38951
> -Original Message- > From: Kumar Gala [mailto:ga...@kernel.crashing.org] > Sent: Wednesday, August 08, 2012 1:34 AM > To: Wood Scott-B07421 > Cc: Jia Hongtao-B38951; linuxppc-dev@lists.ozlabs.org; Wood Scott-B07421; > Li Yang-R58472 > Subject: Re: [PATCH 5/6] powerpc/fsl-pci: Add pci in

[PATCH 1/2] powerpc: POWER7 copy_to_user/copy_from_user patch applied twice

2012-08-07 Thread Anton Blanchard
"powerpc: Use enhanced touch instructions in POWER7 copy_to_user/copy_from_user" was applied twice. Remove one. Signed-off-by: Anton Blanchard --- Index: b/arch/powerpc/lib/copyuser_power7.S === --- a/arch/powerpc/lib/copyuser_powe

[PATCH 2/2] powerpc: Fix VMX in interrupt check in POWER7 copy loops

2012-08-07 Thread Anton Blanchard
The enhanced prefetch hint patches corrupt the condition register that was used to check if we are in interrupt. Fix this by using cr1. Signed-off-by: Anton Blanchard --- Index: b/arch/powerpc/lib/copyuser_power7.S === --- a/arch/p

RE: [PATCH V4 3/3] powerpc/fsl-pci: Unify pci/pcie initialization code

2012-08-07 Thread Jia Hongtao-B38951
> -Original Message- > From: Wood Scott-B07421 > Sent: Tuesday, August 07, 2012 11:20 PM > To: Jia Hongtao-B38951 > Cc: Wood Scott-B07421; Kumar Gala; linuxppc-dev@lists.ozlabs.org; Li > Yang-R58472 > Subject: Re: [PATCH V4 3/3] powerpc/fsl-pci: Unify pci/pcie > initialization code > > O

[PATCH 3/3 v5] powerpc/mpic: FSL MPIC error interrupt support.

2012-08-07 Thread Varun Sethi
All SOC device error interrupts are muxed and delivered to the core as a single MPIC error interrupt. Currently all the device drivers requiring access to device errors have to register for the MPIC error interrupt as a shared interrupt. With this patch we add interrupt demuxing capability in the

Re: [PATCH 3/4] cpu: export cpu hotplug disable/enable functions as global functions

2012-08-07 Thread Srivatsa S. Bhat
On 08/07/2012 11:21 PM, Kumar Gala wrote: > > On Aug 7, 2012, at 3:43 AM, Zhao Chenhui wrote: > >> The cpufreq driver of mpc85xx will disable/enable cpu hotplug temporarily. >> Therefore, the related functions should be exported. >> >> Signed-off-by: Zhao Chenhui >> --- >> include/linux/cpu.h |