[PATCH v2 2/2] powerpc/mpic: add global timer support

2012-08-09 Thread Dongsheng.wang
From: Wang Dongsheng The MPIC global timer is a hardware timer inside the Freescale PIC comply to Open-PIC standard. When the timer is timeout of the specified interval, the hardware timer generates an interrupt. The driver currently is only tested on fsl chip, but it can potentially support othe

[PATCH v2 1/2] powerpc/mpic: Add Open-PIC global timer document

2012-08-09 Thread Dongsheng.wang
From: Wang Dongsheng Add a description of the OPEN-PIC global timer in the OPEN-PIC document. Moidfy mpic-timer document. 1.Add a TFRR register region. This register is written by software to report the clocking frequency of the PIC timers. 2.Add a device_type. The global timer in line with the

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

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

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

2012-08-09 Thread Ashley D Lai
Hi Kent, > > +ifdef CONFIG_TCG_IBMVTPM > > + tpm_bios-objs += tpm_eventlog.o tpm_of.o > > +else > > + tpm_bios-objs += tpm_eventlog.o tpm_noeventlog.o > > tpm_eventlog.c is included in all cases here... > > > +static inline struct dentry **tpm_bios_log_setup(char *name) > > +{ > > + retur

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

2012-08-09 Thread Ashley Lai
This patch adds a new device driver to support IBM virtual TPM (vTPM) for PPC64. IBM vTPM is supported through the adjunct partition with firmware release 740 or higher. With vTPM support, each lpar is able to have its own vTPM without the physical TPM hardware. This driver provides TPM function

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

2012-08-09 Thread Ashley Lai
This patch retrieves the event log data from the device tree during file open. The event log data will then 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

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

2012-08-09 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 V2 0/3] tpm: Add new vTPM device driver for PPC64

2012-08-09 Thread Ashley Lai
Change log V2: - Removed unnecessary tpm_bios_log_setup and tpm_bios_log_teardown functions in tpm_eventlog.h (patch 3/3). - Added more descriptions on vTPM (patch 1/3). These patches add support for IBM vTPM for PPC64. This new device driver works on firmware that supports vTPM (firmware releas

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

2012-08-09 Thread Scott Wood
On 08/08/2012 10:48 PM, Jia Hongtao-B38951 wrote: > > >> -Original Message- >> From: Wood Scott-B07421 >> Sent: Thursday, August 09, 2012 12:02 AM >> To: Jia Hongtao-B38951 >> Cc: Wood Scott-B07421; linuxppc-dev@lists.ozlabs.org; >> ga...@kernel.crashing.org; Li Yang-R58472 >> Subject: Re

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

2012-08-09 Thread Ashley Lai
Hi Kent, Thanks for looking into it. I'll fix in the next version. Sorry if you got this message twice. I have some issues with my mail server. Thanks, --Ashley Lai ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org

Re: [PATCH v7 0/8] Raid: enable talitos xor offload for improving performance

2012-08-09 Thread Ira W. Snyder
On Thu, Aug 09, 2012 at 04:19:35PM +0800, qiang@freescale.com wrote: > Hi all, > > The following 8 patches enabling fsl-dma and talitos offload raid > operations for improving raid performance and balancing CPU load. > > These patches include talitos, fsl-dma and carma module (caram uses > so

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

2012-08-09 Thread Scott Wood
On 08/08/2012 10:48 PM, Jia Hongtao-B38951 wrote: > > >> -Original Message- >> From: Wood Scott-B07421 >> Sent: Wednesday, August 08, 2012 11:58 PM >> To: Jia Hongtao-B38951 >> Cc: Wood Scott-B07421; Li Yang-R58472; linuxppc-dev@lists.ozlabs.org; >> Gala Kumar-B11780 >> Subject: Re: [PATC

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

2012-08-09 Thread Kent Yoder
Hi Ashley, > diff --git a/drivers/char/tpm/Makefile b/drivers/char/tpm/Makefile > index 547509d..b53da57 100644 > --- a/drivers/char/tpm/Makefile > +++ b/drivers/char/tpm/Makefile > @@ -2,9 +2,15 @@ > # Makefile for the kernel tpm device drivers. > # > obj-$(CONFIG_TCG_TPM) += tpm.o > +obj-$(CO

Re: [PATCH v2 4/6] x86: Add clear_page_nocache

2012-08-09 Thread Jan Beulich
>>> On 09.08.12 at 17:03, "Kirill A. Shutemov" >>> wrote: > From: Andi Kleen > > Add a cache avoiding version of clear_page. Straight forward integer variant > of the existing 64bit clear_page, for both 32bit and 64bit. While on 64-bit this is fine, I fail to see how you avoid using the SSE2 i

Re: [RFC PATCH V6 04/19] memory-hotplug: offline and remove memory when removing the memory device

2012-08-09 Thread Vasilis Liaskovitis
Hi, > We should offline and remove memory when removing the memory device. > The memory device can be removed by 2 ways: > 1. send eject request by SCI > 2. echo 1 >/sys/bus/pci/devices/PNP0C80:XX/eject > [snip] > + > +static int acpi_memory_disable_device(struct acpi_memory_device *mem_device)

Re: [PATCH v2 6/6] x86: switch the 64bit uncached page clear to SSE/AVX v2

2012-08-09 Thread Jan Beulich
>>> On 09.08.12 at 17:03, "Kirill A. Shutemov" >>> wrote: > ENTRY(clear_page_nocache) > CFI_STARTPROC > - xorl %eax,%eax > - movl $4096/64,%ecx > + push %rdi > + call kernel_fpu_begin > + pop%rdi You use CFI annotations elsewhere, so why don't you use pushq

Re: [PATCH v2 4/6] x86: Add clear_page_nocache

2012-08-09 Thread H. Peter Anvin
On 08/09/2012 08:03 AM, Kirill A. Shutemov wrote: From: Andi Kleen Add a cache avoiding version of clear_page. Straight forward integer variant of the existing 64bit clear_page, for both 32bit and 64bit. Also add the necessary glue for highmem including a layer that non cache coherent architec

[PATCH v2 1/6] THP: Use real address for NUMA policy

2012-08-09 Thread Kirill A. Shutemov
From: Andi Kleen Use the fault address, not the rounded down hpage address for NUMA policy purposes. In some circumstances this can give more exact NUMA policy. Signed-off-by: Andi Kleen Signed-off-by: Kirill A. Shutemov --- mm/huge_memory.c |8 1 files changed, 4 insertions(+),

[PATCH v2 3/6] THP: Pass real, not rounded, address to clear_huge_page

2012-08-09 Thread Kirill A. Shutemov
From: Andi Kleen Signed-off-by: Andi Kleen Signed-off-by: Kirill A. Shutemov --- mm/huge_memory.c |9 + 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/mm/huge_memory.c b/mm/huge_memory.c index 70737ec..ecd93f8 100644 --- a/mm/huge_memory.c +++ b/mm/huge_memory.c @@

[PATCH v2 2/6] mm: make clear_huge_page tolerate non aligned address

2012-08-09 Thread Kirill A. Shutemov
From: Andi Kleen hugetlb does not necessarily pass in an aligned address, so the low level address computation is wrong. This will fix architectures that actually use the address for flushing the cleared address (very few, like xtensa/sparc/...?) Signed-off-by: Andi Kleen Signed-off-by: Kirill

[PATCH v2 4/6] x86: Add clear_page_nocache

2012-08-09 Thread Kirill A. Shutemov
From: Andi Kleen Add a cache avoiding version of clear_page. Straight forward integer variant of the existing 64bit clear_page, for both 32bit and 64bit. Also add the necessary glue for highmem including a layer that non cache coherent architectures that use the virtual address for flushing can

[PATCH v2 6/6] x86: switch the 64bit uncached page clear to SSE/AVX v2

2012-08-09 Thread Kirill A. Shutemov
From: Andi Kleen With multiple threads vector stores are more efficient, so use them. This will cause the page clear to run non preemptable and add some overhead. However on 32bit it was already non preempable (due to kmap_atomic) and there is an preemption opportunity every 4K unit. On a NPB (N

[PATCH v2 5/6] mm: make clear_huge_page cache clear only around the fault address

2012-08-09 Thread Kirill A. Shutemov
From: Andi Kleen Clearing a 2MB huge page will typically blow away several levels of CPU caches. To avoid this only cache clear the 4K area around the fault address and use a cache avoiding clears for the rest of the 2MB area. Signed-off-by: Andi Kleen Signed-off-by: Kirill A. Shutemov --- mm

[PATCH v2 0/6] Avoid cache trashing on clearing huge/gigantic page

2012-08-09 Thread Kirill A. Shutemov
From: "Kirill A. Shutemov" Clearing a 2MB huge page will typically blow away several levels of CPU caches. To avoid this only cache clear the 4K area around the fault address and use a cache avoiding clears for the rest of the 2MB area. This patchset implements cache avoiding version of clear_p

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

2012-08-09 Thread Ian Molton
On 09/08/12 12:43, Arnd Bergmann wrote: > On 08/08/12 14:19, Ian Molton wrote: > > On 08/08/12 13:39, Arnd Bergmann wrote: > >> On Wednesday 08 August 2012, Ian Molton wrote: > >>> This method would require a small amount of rework in the driver to > >>> set up ports, rather than just one. >

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

2012-08-09 Thread Kumar Gala
On Aug 9, 2012, at 12:05 AM, Li Yang wrote: > On Thu, Aug 9, 2012 at 10:52 AM, Jia Hongtao-B38951 > wrote: >> >> >>> -Original Message- >>> From: Linuxppc-dev [mailto:linuxppc-dev- >>> bounces+b38951=freescale@lists.ozlabs.org] On Behalf Of Kumar Gala >>> Sent: Wednesday, August 08

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

2012-08-09 Thread Sethi Varun-B16395
> -Original Message- > From: Wood Scott-B07421 > Sent: Wednesday, August 08, 2012 12:25 AM > To: Sethi Varun-B16395 > Cc: Kumar Gala; linuxppc-dev@lists.ozlabs.org; Hamciuc Bogdan-BHAMCIU1 > Subject: Re: [PATCH 3/3 v4] powerpc/mpic: FSL MPIC error interrupt > support. > > On 08/06/2012 1

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

2012-08-09 Thread Ian Molton
Adding devicetree-discuss and linuxppc-dev, as well as Dale Farnsworth, who initially added the bindings for mv643xx. On 08/08/12 14:19, Ian Molton wrote: > On 08/08/12 13:39, Arnd Bergmann wrote: >> On Wednesday 08 August 2012, Ian Molton wrote: >>> The SMI / PHY stuff should look very similar, s

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

2012-08-09 Thread Arnd Bergmann
On 08/08/12 14:19, Ian Molton wrote: > On 08/08/12 13:39, Arnd Bergmann wrote: >> On Wednesday 08 August 2012, Ian Molton wrote: >>> This method would require a small amount of rework in the driver to >>> set up ports, rather than just one. >> This looks quite nice, but it is still very much

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

2012-08-09 Thread Jia Hongtao-B38951
> -Original Message- > From: Wood Scott-B07421 > Sent: Thursday, August 09, 2012 5:04 AM > To: Kumar Gala > Cc: Jia Hongtao-B38951; Wood Scott-B07421; linuxppc-dev@lists.ozlabs.org; > Li Yang-R58472 > Subject: Re: [PATCH 5/6] powerpc/fsl-pci: Add pci inbound/outbound PM > support > > On

[PATCH v7 8/8] carma: remove unnecessary DMA_INTERRUPT capability

2012-08-09 Thread qiang.liu
From: Qiang Liu These drivers set the DMA_INTERRUPT capability bit when requesting a DMA controller channel. This was historical, and is no longer needed. Recent changes to the drivers/dma/fsldma.c driver have removed support for this flag. This makes the carma drivers unable to find a DMA chann

[PATCH v7 7/8] fsl-dma: fix a warning of unitialized cookie

2012-08-09 Thread qiang.liu
From: Qiang Liu Fix a warning of unitialized value when compile with -Wuninitialized. Cc: Dan Williams Cc: Dan Williams Cc: Vinod Koul Cc: Li Yang Signed-off-by: Qiang Liu Reported-by: Kim Phillips Acked-by: Ira W. Snyder --- drivers/dma/fsldma.c |2 +- 1 files changed, 1 insertions(

[PATCH v7 6/8] fsl-dma: use spin_lock_bh to instead of spin_lock_irqsave

2012-08-09 Thread qiang.liu
From: Qiang Liu The use of spin_lock_irqsave() is a stronger locking mechanism than is required throughout the driver. The minimum locking required should be used instead. Interrupts will be turned off and context will be saved, there is needless to use irqsave. Change all instances of spin_lock

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

2012-08-09 Thread qiang.liu
From: Qiang Liu Fix the potential risk when enable config NET_DMA and ASYNC_TX. Async_tx is lack of support in current release process of dma descriptor, all descriptors will be released whatever is acked or no-acked by async_tx, so there is a potential race condition when dma engine is uesd by o

[PATCH v7 4/8] fsl-dma: move functions to avoid forward declarations

2012-08-09 Thread qiang.liu
From: Qiang Liu These functions will be modified in the next patch in the series. By moving the function in a patch separate from the changes, it will make review easier. Cc: Dan Williams Cc: Dan Williams Cc: Vinod Koul Cc: Li Yang Signed-off-by: Ira W. Snyder Signed-off-by: Qiang Liu ---

[PATCH v7 3/8] fsl-dma: add fsl_dma_free_descriptor() to reduce code duplication

2012-08-09 Thread qiang.liu
From: Qiang Liu There are several places where descriptors are freed using identical code. Put this code into a function to reduce code duplication. Cc: Dan Williams Cc: Dan Williams Cc: Vinod Koul Signed-off-by: Ira W. Snyder --- drivers/dma/fsldma.c | 38

[PATCH v7 2/8] fsl-dma: remove attribute DMA_INTERRUPT of dmaengine

2012-08-09 Thread qiang.liu
From: Qiang Liu Delete attribute DMA_INTERRUPT because fsl-dma doesn't support this function, exception will be thrown if talitos is used to offload xor at the same time. Cc: Dan Williams Cc: Vinod Koul Cc: Li Yang Signed-off-by: Qiang Liu Acked-by: Ira W. Snyder --- drivers/dma/fsldma.c |

[PATCH v7 1/8] Talitos: Support for async_tx XOR offload

2012-08-09 Thread qiang.liu
From: Qiang Liu Expose Talitos's XOR functionality to be used for RAID parity calculation via the Async_tx layer. Cc: Herbert Xu Cc: David S. Miller Signed-off-by: Dipen Dudhat Signed-off-by: Maneesh Gupta Signed-off-by: Kim Phillips Signed-off-by: Vishnu Suresh Signed-off-by: Qiang Liu -

[PATCH v7 0/8] Raid: enable talitos xor offload for improving performance

2012-08-09 Thread qiang.liu
Hi all, The following 8 patches enabling fsl-dma and talitos offload raid operations for improving raid performance and balancing CPU load. These patches include talitos, fsl-dma and carma module (caram uses some features of fsl-dma). Write performance will be improved by 25-30% tested by iozone

[PATCH 3/3, v2] powerpc/e5500: Add Power ISA properties to comply with ePAPR 1.1

2012-08-09 Thread Olivia Yin
power-isa-version and power-isa-* are cpu node general properties defined in ePAPR. If the power-isa-version property exists, then for each category from the Categories section of Book I of the Power ISA version indicated, the existence of a property named power-isa-[CAT], where [CAT] is the a

[PATCH 2/3, v2] powerpc/e500mc: Add Power ISA properties to comply with ePAPR 1.1

2012-08-09 Thread Olivia Yin
power-isa-version and power-isa-* are cpu node general properties defined in ePAPR. If the power-isa-version property exists, then for each category from the Categories section of Book I of the Power ISA version indicated, the existence of a property named power-isa-[CAT], where [CAT] is the a

[PATCH 1/3, v2] powerpc/e500v2: Add Power ISA properties to comply with ePAPR 1.1

2012-08-09 Thread Olivia Yin
power-isa-version and power-isa-* are cpu node general properties defined in ePAPR. If the power-isa-version property exists, then for each category from the Categories section of Book I of the Power ISA version indicated, the existence of a property named power-isa-[CAT], where [CAT] is the a