[PATCH v2] powerpc/83xx: gianfar_ptp: select 1588 clock source through dts file

2013-09-25 Thread Aida Mynzhasova
Currently IEEE 1588 timer reference clock source is determined through hard-coded value in gianfar_ptp driver. This patch allows to select ptp clock source by means of device tree file node. For instance: fsl,cksel = <0>; for using external (TSEC_TMR_CLK input) high precision timer refer

Re: mm: insure topdown mmap chooses addresses above security minimum

2013-09-25 Thread Ingo Molnar
* Timothy Pepper wrote: > A security check is performed on mmap addresses in > security/security.c:security_mmap_addr(). It uses mmap_min_addr to insure > mmaps don't get addresses lower than a user configurable guard value > (/proc/sys/vm/mmap_min_addr). The arch specific mmap topdown searche

Re: [PATCH v10 2/3] DMA: Freescale: Add new 8-channel DMA engine device tree nodes

2013-09-25 Thread Hongbo Zhang
On 09/25/2013 01:31 AM, Stephen Warren wrote: On 09/24/2013 04:30 AM, Hongbo Zhang wrote: On 09/24/2013 01:04 AM, Stephen Warren wrote: On 09/18/2013 04:15 AM, hongbo.zh...@freescale.com wrote: From: Hongbo Zhang Freescale QorIQ T4 and B4 introduce new 8-channel DMA engines, this patch adds

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

2013-09-25 Thread Wang Dongsheng-B40534
> -Original Message- > From: Bhushan Bharat-R65777 > Sent: Wednesday, September 25, 2013 2:23 PM > To: Wang Dongsheng-B40534; Wood Scott-B07421 > Cc: linuxppc-dev@lists.ozlabs.org; Wang Dongsheng-B40534 > Subject: RE: [PATCH v4 4/4] powerpc/85xx: add sysfs for pw20 state and > altivec idl

Re: [PATCH v2 4/4] hotplug, powerpc, x86: Remove cpu_hotplug_driver_lock()

2013-09-25 Thread Rafael J. Wysocki
Hi, On Thursday, August 29, 2013 06:22:09 PM Toshi Kani wrote: > cpu_hotplug_driver_lock() serializes CPU online/offline operations > when ARCH_CPU_PROBE_RELEASE is set. This lock interface is no longer > necessary with the following reason: > > - lock_device_hotplug() now protects CPU online/o

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

2013-09-25 Thread Bhushan Bharat-R65777
> -Original Message- > From: Wang Dongsheng-B40534 > Sent: Wednesday, September 25, 2013 1:40 PM > To: Bhushan Bharat-R65777; Wood Scott-B07421 > Cc: linuxppc-dev@lists.ozlabs.org > Subject: RE: [PATCH v4 4/4] powerpc/85xx: add sysfs for pw20 state and altivec > idle > > > > > -Ori

Re: Build regressions/improvements in v3.12-rc2

2013-09-25 Thread Geert Uytterhoeven
On Wed, Sep 25, 2013 at 10:54 AM, Geert Uytterhoeven wrote: > JFYI, when comparing v3.12-rc2 to v3.12-rc1[3], the summaries are: > - build errors: +15/-11 + error: arch/powerpc/kernel/entry_32.S: undefined reference to `uprobe_post_sstep_notifier': => .text+0x10570) + error: arch/powerpc/k

[PATCH 1/2] hwrng: Use KBUILD_MODNAME in pseries-rng.c

2013-09-25 Thread Michael Ellerman
Signed-off-by: Michael Ellerman --- drivers/char/hw_random/pseries-rng.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/char/hw_random/pseries-rng.c b/drivers/char/hw_random/pseries-rng.c index 5f11979..9dbeed3 100644 --- a/drivers/char/hw_random/pseries-rng.c +

[PATCH 2/2] hwrng: Return errors to upper levels in pseries-rng.c

2013-09-25 Thread Michael Ellerman
We don't expect to get errors from the hypervisor when reading the rng, but if we do we should pass the error up to the hwrng driver. Otherwise the hwrng driver will continue calling us forever. Signed-off-by: Michael Ellerman --- drivers/char/hw_random/pseries-rng.c | 14 +++--- 1 file

RE: [PATCH V4 3/3] powerpc/85xx: Add TWR-P1025 board support

2013-09-25 Thread Xie Xiaobo-R63061
Hi Scott, See the reply inline. > -Original Message- > From: Wood Scott-B07421 > Sent: Wednesday, September 25, 2013 7:22 AM > To: Xie Xiaobo-R63061 > Cc: linuxppc-dev@lists.ozlabs.org; Johnston Michael-R49610 > Subject: Re: [PATCH V4 3/3] powerpc/85xx: Add TWR-P1025 board support > > On

RE: [PATCH V4 1/3] powerpc/85xx: Add QE common init functions

2013-09-25 Thread Xie Xiaobo-R63061
> -Original Message- > From: Wood Scott-B07421 > Sent: Wednesday, September 25, 2013 7:13 AM > To: Xie Xiaobo-R63061 > Cc: linuxppc-dev@lists.ozlabs.org > Subject: Re: [PATCH V4 1/3] powerpc/85xx: Add QE common init functions > > On Tue, 2013-09-24 at 18:48 +0800, Xie Xiaobo wrote: > > Def

[PATCH][v5] powerpc/fsl-booke: Add initial T104x_QDS board support

2013-09-25 Thread Prabhakar Kushwaha
Add support for T104x board in board file t104x_qds.c, It is common for both T1040 and T1042 as they share same QDS board. T1040QDS board Overview --- - SERDES Connections, 8 lanes supporting: — PCI Express: supporting Gen 1 and Gen 2; — SGMII — QSGMII

[PATCH][v5] powerpc/mpc85xx:Add initial device tree support of T104x

2013-09-25 Thread Prabhakar Kushwaha
The QorIQ T1040/T1042 processor support four integrated 64-bit e5500 PA processor cores with high-performance data path acceleration architecture and network peripheral interfaces required for networking & telecommunications. T1042 personality is a reduced personality of T1040 without Integrated 8

[PATCH] powerpc/kvmbook3s_hv: propagate H_SET_MODE to the host

2013-09-25 Thread Laurent Dufour
Follow-up to Anton's H_SET_MODE patch, the host should be taken aware of guest endianess change. The hcall H_SET_MODE is processed in kvm then in the host. Signed-off-by: Laurent Dufour --- arch/powerpc/kvm/book3s_hv.c |8 1 file changed, 8 insertions(+) diff --git a/arch/powerpc/

Re: [PATCH] powerpc/kvmbook3s_hv: propagate H_SET_MODE to the host

2013-09-25 Thread Greg Kurz
On Wed, 25 Sep 2013 14:10:27 +0200 Laurent Dufour wrote: > Follow-up to Anton's H_SET_MODE patch, the host should be taken aware of > guest endianess change. > > The hcall H_SET_MODE is processed in kvm then in the host. > > Signed-off-by: Laurent Dufour Tested-by: Greg Kurz > --- > arch/po

Re: [PATCH] powerpc/kvm: Handle the boundary condition correctly

2013-09-25 Thread Aneesh Kumar K.V
Hi Alex, "Aneesh Kumar K.V" writes: Ok, please give me an example with real numbers and why it breaks. > > http://mid.gmane.org/1376995766-16526-4-git-send-email-aneesh.ku...@linux.vnet.ibm.com > >>> >>> Didn't quiet get what you are looking for. As explained before, we

Re: [PATCH] powerpc/kvm: Handle the boundary condition correctly

2013-09-25 Thread Alexander Graf
On 25.09.2013, at 17:42, Aneesh Kumar K.V wrote: > > Hi Alex, > > "Aneesh Kumar K.V" writes: > Ok, please give me an example with real numbers and why it breaks. > >> >> http://mid.gmane.org/1376995766-16526-4-git-send-email-aneesh.ku...@linux.vnet.ibm.com >>

Re: [PATCH 5/7] iommu: supress loff_t compilation error on powerpc

2013-09-25 Thread Alex Williamson
On Thu, 2013-09-19 at 12:59 +0530, Bharat Bhushan wrote: > Signed-off-by: Bharat Bhushan > --- > drivers/vfio/pci/vfio_pci_rdwr.c |3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > > diff --git a/drivers/vfio/pci/vfio_pci_rdwr.c > b/drivers/vfio/pci/vfio_pci_rdwr.c > index 210db24

Re: [PATCH 2/7] iommu: add api to get iommu_domain of a device

2013-09-25 Thread Alex Williamson
On Thu, 2013-09-19 at 12:59 +0530, Bharat Bhushan wrote: > This api return the iommu domain to which the device is attached. > The iommu_domain is required for making API calls related to iommu. > Follow up patches which use this API to know iommu maping. > > Signed-off-by: Bharat Bhushan > --- >

Re: [PATCH 6/7] vfio: moving some functions in common file

2013-09-25 Thread Alex Williamson
On Thu, 2013-09-19 at 12:59 +0530, Bharat Bhushan wrote: > Some function defined in vfio_iommu_type1.c were common and > we want to use these for FSL IOMMU (PAMU) and iommu-none driver. > So some of them are moved to vfio_iommu_common.c > > I think we can do more of that but we will take this step

Re: mm: insure topdown mmap chooses addresses above security minimum

2013-09-25 Thread Timothy Pepper
On Wed 25 Sep at 09:30:49 +0200 mi...@kernel.org said: > > info.flags = VM_UNMAPPED_AREA_TOPDOWN; > > info.length = len; > > - info.low_limit = PAGE_SIZE; > > + info.low_limit = max(PAGE_SIZE, PAGE_ALIGN(mmap_min_addr)); > > info.high_limit = mm->mmap_base; > > info.align_mask =

Re: [PATCH v2] powerpc/83xx: gianfar_ptp: select 1588 clock source through dts file

2013-09-25 Thread Richard Cochran
On Wed, Sep 25, 2013 at 11:24:23AM +0400, Aida Mynzhasova wrote: > Currently IEEE 1588 timer reference clock source is determined through > hard-coded value in gianfar_ptp driver. This patch allows to select ptp > clock source by means of device tree file node. Looks okay to me now. Acked-by: Ric

Re: mm: insure topdown mmap chooses addresses above security minimum

2013-09-25 Thread Ingo Molnar
* Timothy Pepper wrote: > On Wed 25 Sep at 09:30:49 +0200 mi...@kernel.org said: > > > info.flags = VM_UNMAPPED_AREA_TOPDOWN; > > > info.length = len; > > > - info.low_limit = PAGE_SIZE; > > > + info.low_limit = max(PAGE_SIZE, PAGE_ALIGN(mmap_min_addr)); > > > info.high_limit = mm->mmap_ba

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

2013-09-25 Thread Scott Wood
On Wed, 2013-09-25 at 03:10 -0500, Wang Dongsheng-B40534 wrote: > > > -Original Message- > > From: Bhushan Bharat-R65777 > > Sent: Wednesday, September 25, 2013 2:23 PM > > To: Wang Dongsheng-B40534; Wood Scott-B07421 > > Cc: linuxppc-dev@lists.ozlabs.org; Wang Dongsheng-B40534 > > Subject

Re: [PATCH V4 1/3] powerpc/85xx: Add QE common init functions

2013-09-25 Thread Scott Wood
On Wed, 2013-09-25 at 04:51 -0500, Xie Xiaobo-R63061 wrote: > > -Original Message- > > From: Wood Scott-B07421 > > Sent: Wednesday, September 25, 2013 7:13 AM > > To: Xie Xiaobo-R63061 > > Cc: linuxppc-dev@lists.ozlabs.org > > Subject: Re: [PATCH V4 1/3] powerpc/85xx: Add QE common init fun

Re: [PATCH v2 2/6] PCI/MSI: Factor out pci_get_msi_cap() interface

2013-09-25 Thread Bjorn Helgaas
On Fri, Sep 20, 2013 at 07:27:36AM -0500, Tejun Heo wrote: > On Fri, Sep 20, 2013 at 10:24:59AM +0200, Alexander Gordeev wrote: > > * Make pci_enable_msix() return 0/-errno > > My choice would be this one. I agree; it sounds like you've identified several bugs related to the current confusing int

Re: [PATCH 7/7] vfio pci: Add vfio iommu implementation for FSL_PAMU

2013-09-25 Thread Alex Williamson
On Thu, 2013-09-19 at 12:59 +0530, Bharat Bhushan wrote: > This patch adds vfio iommu support for Freescale IOMMU > (PAMU - Peripheral Access Management Unit). > > The Freescale PAMU is an aperture-based IOMMU with the following > characteristics. Each device has an entry in a table in memory > d

Re: linux-next: build failure after merge of the akpm tree

2013-09-25 Thread Andrew Morton
On Wed, 25 Sep 2013 11:06:43 +1000 Stephen Rothwell wrote: > Hi Andrew, > > After merging the akpm tree, linux-next builds (powerpc allmodconfig) > fail like this: I can't get powerpc to build at all at present: CHK include/config/kernel.release CHK include/generated/uapi/linux/ve

Re: [PATCH v2 4/4] hotplug, powerpc, x86: Remove cpu_hotplug_driver_lock()

2013-09-25 Thread Toshi Kani
On Wed, 2013-09-25 at 08:27 +, Rafael J. Wysocki wrote: > Hi, > > On Thursday, August 29, 2013 06:22:09 PM Toshi Kani wrote: > > cpu_hotplug_driver_lock() serializes CPU online/offline operations > > when ARCH_CPU_PROBE_RELEASE is set. This lock interface is no longer > > necessary with the f

Re: [PATCH v2 2/6] PCI/MSI: Factor out pci_get_msi_cap() interface

2013-09-25 Thread Alexander Gordeev
On Wed, Sep 25, 2013 at 12:02:20PM -0600, Bjorn Helgaas wrote: > On Fri, Sep 20, 2013 at 07:27:36AM -0500, Tejun Heo wrote: > > On Fri, Sep 20, 2013 at 10:24:59AM +0200, Alexander Gordeev wrote: > > > * Make pci_enable_msix() return 0/-errno > > > > My choice would be this one. > > I agree; it so

Re: [PATCH v2 2/6] PCI/MSI: Factor out pci_get_msi_cap() interface

2013-09-25 Thread Tejun Heo
Hello, On Wed, Sep 25, 2013 at 10:58:05PM +0200, Alexander Gordeev wrote: > Unfortunately, pSeries is a shows-topper here :( It seems we have to > introduce pci_get_msi{,x}_limit() interfaces to honour the quota > thing. I just hope the hardware set for pSeries is limited and we > won't need to u

[PATCH RESEND 4/4] hotplug, powerpc, x86: Remove cpu_hotplug_driver_lock()

2013-09-25 Thread Toshi Kani
cpu_hotplug_driver_lock() serializes CPU online/offline operations when ARCH_CPU_PROBE_RELEASE is set. This lock interface is no longer necessary with the following reason: - lock_device_hotplug() now protects CPU online/offline operations, including the probe & release interfaces enabled by

Re: [PATCH v2] powerpc/83xx: gianfar_ptp: select 1588 clock source through dts file

2013-09-25 Thread Kumar Gala
On Sep 25, 2013, at 2:24 AM, Aida Mynzhasova wrote: > Currently IEEE 1588 timer reference clock source is determined through > hard-coded value in gianfar_ptp driver. This patch allows to select ptp > clock source by means of device tree file node. > > For instance: > > fsl,cksel = <0>; >

Re: linux-next: build failure after merge of the akpm tree

2013-09-25 Thread Andrew Morton
On Wed, 25 Sep 2013 14:32:14 -0700 (PDT) Hugh Dickins wrote: > On Wed, 25 Sep 2013, Andrew Morton wrote: > > On Wed, 25 Sep 2013 11:06:43 +1000 Stephen Rothwell > > wrote: > > > Hi Andrew, > > > > > > After merging the akpm tree, linux-next builds (powerpc allmodconfig) > > > fail like this: >

Re: [PATCH] powerpc/kvmbook3s_hv: propagate H_SET_MODE to the host

2013-09-25 Thread Paul Mackerras
On Wed, Sep 25, 2013 at 02:10:27PM +0200, Laurent Dufour wrote: > Follow-up to Anton's H_SET_MODE patch, the host should be taken aware of > guest endianess change. > > The hcall H_SET_MODE is processed in kvm then in the host. > > Signed-off-by: Laurent Dufour > --- > arch/powerpc/kvm/book3s_h

Re: [PATCH V4 3/3] powerpc/85xx: Add TWR-P1025 board support

2013-09-25 Thread Scott Wood
On Wed, 2013-09-25 at 04:50 -0500, Xie Xiaobo-R63061 wrote: > Hi Scott, > > See the reply inline. > > > -Original Message- > > From: Wood Scott-B07421 > > Sent: Wednesday, September 25, 2013 7:22 AM > > To: Xie Xiaobo-R63061 > > Cc: linuxppc-dev@lists.ozlabs.org; Johnston Michael-R49610 >

Re: [PATCH v3 3/3] powerpc/85xx: use one kernel option for all the CoreNet_Generic boards

2013-09-25 Thread Scott Wood
On Wed, 2013-09-25 at 08:58 +0800, Kevin Hao wrote: > On Tue, Sep 24, 2013 at 05:41:32PM -0500, Scott Wood wrote: > > On Tue, 2013-09-24 at 11:03 +0800, Kevin Hao wrote: > > > + and B4 QDS boards > [...] > > > > Is there any difference between the 32-bit and 64-bit versions of this > > config sy

Re: [PATCH v3 3/3] powerpc/85xx: use one kernel option for all the CoreNet_Generic boards

2013-09-25 Thread Kevin Hao
On Wed, Sep 25, 2013 at 06:11:23PM -0500, Scott Wood wrote: > On Wed, 2013-09-25 at 08:58 +0800, Kevin Hao wrote: > > On Tue, Sep 24, 2013 at 05:41:32PM -0500, Scott Wood wrote: > > > On Tue, 2013-09-24 at 11:03 +0800, Kevin Hao wrote: > > > > + and B4 QDS boards > > [...] > > > > > > Is t

Re: [PATCH] powerpc/fsl/defconfig: enable CONFIG_AT803X_PHY

2013-09-25 Thread Scott Wood
On Tue, 2013-09-03 at 16:28 +0800, Shengzhou Liu wrote: > Enable CONFIG_AT803X_PHY to support AR8030/8033/8035 PHY. > > Signed-off-by: Shengzhou Liu > --- > arch/powerpc/configs/corenet32_smp_defconfig |1 + > arch/powerpc/configs/mpc85xx_defconfig |1 + > arch/powerpc/configs/mpc8

Re: [PATCH v3 3/3] powerpc/85xx: use one kernel option for all the CoreNet_Generic boards

2013-09-25 Thread Scott Wood
On Thu, 2013-09-26 at 09:23 +0800, Kevin Hao wrote: > On Wed, Sep 25, 2013 at 06:11:23PM -0500, Scott Wood wrote: > > On Wed, 2013-09-25 at 08:58 +0800, Kevin Hao wrote: > > > On Tue, Sep 24, 2013 at 05:41:32PM -0500, Scott Wood wrote: > > > > On Tue, 2013-09-24 at 11:03 +0800, Kevin Hao wrote: > >

Re: Device tree node for Freescale Gianfar PTP reference clock source selection

2013-09-25 Thread Scott Wood
On Mon, 2013-09-23 at 11:37 +0400, Aida Mynzhasova wrote: > Hi, > > Currently, Freescale Gianfar PTP reference clock source is determined > through hard-coded value in gianfar_ptp driver. I don't think that > recompilation of the entire module (or even worse - the kernel) is a god > idea when w

Re: [PATCH v3 3/3] powerpc/85xx: use one kernel option for all the CoreNet_Generic boards

2013-09-25 Thread Kevin Hao
On Wed, Sep 25, 2013 at 08:26:00PM -0500, Scott Wood wrote: > On Thu, 2013-09-26 at 09:23 +0800, Kevin Hao wrote: > > On Wed, Sep 25, 2013 at 06:11:23PM -0500, Scott Wood wrote: > > > On Wed, 2013-09-25 at 08:58 +0800, Kevin Hao wrote: > > > > On Tue, Sep 24, 2013 at 05:41:32PM -0500, Scott Wood wr

Re: [PATCH v3] powerpc/p1010rdb-pb:make a new dts for p1010rdb-pb

2013-09-25 Thread Scott Wood
On Wed, 2013-09-18 at 05:43 +, Liu Shengzhou-B36685 wrote: > > > -Original Message- > > From: Zhao Qiang-B45475 > > Sent: Wednesday, September 18, 2013 12:55 PM > > To: linuxppc-dev@lists.ozlabs.org > > Cc: Zhao Qiang-B45475; Liu Shengzhou-B36685 > > Subject: [PATCH v3] powerpc/p1010rd

[PATCH v4 0/3] powerpc/85xx: introduce corenet_generic machine

2013-09-25 Thread Kevin Hao
v4: - Update the patch 3 according to Scott's comment. v3: - Update the patch 1 according to Scott's comment. - Introduce one new patch to combine the board kernel options into one. v2: - Fold the original patch 2 into patch 1. - Update the patch 1 according to Scott and Kumar's commen

[PATCH v4 2/3] powerpc/85xx: rename the corenet_ds.c to corenet_generic.c

2013-09-25 Thread Kevin Hao
This file is also used by some RDB and QDS boards. So the name seems not so accurate. Rename it to corenet_generic.c. Also update the function names in this file according to the change. Signed-off-by: Kevin Hao --- v4: No change. v3: No change. v2: A new patch in v2. arch/powerpc/platforms/8

[PATCH v4 1/3] powerpc/85xx: introduce corenet_generic machine

2013-09-25 Thread Kevin Hao
In the current kernel, the board files for p2041rdb, p3041ds, p4080ds, p5020ds, p5040ds, t4240qds and b4qds are almost the same except the machine name. So this introduces a cornet_generic machine to support all these boards to avoid the code duplication. With these changes the file corenet_ds.h b

[PATCH v4 3/3] powerpc/85xx: use one kernel option for all the CoreNet_Generic boards

2013-09-25 Thread Kevin Hao
Currently all these boards use the same machine struct and also select the same kernel options, so it seems a bit of redundant to keep one separate kernel option for each board. Also update the defconfigs according to this change. Signed-off-by: Kevin Hao --- v4: Combine the separate kernel optio

Re: [PATCH v10 2/3] DMA: Freescale: Add new 8-channel DMA engine device tree nodes

2013-09-25 Thread Scott Wood
On Wed, 2013-09-25 at 15:35 +0800, Hongbo Zhang wrote: > By the way, I know maybe it is difficult, but why not introduce a > document of maintaining rules for the dt binding docs? we have dedicated > maintainers for this part now. Description language from one submitter > cannot satisfy every re

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

2013-09-25 Thread Wang Dongsheng-B40534
> -Original Message- > From: Wood Scott-B07421 > Sent: Thursday, September 26, 2013 1:57 AM > To: Wang Dongsheng-B40534 > Cc: Bhushan Bharat-R65777; Wood Scott-B07421; linuxppc- > d...@lists.ozlabs.org > Subject: Re: [PATCH v4 4/4] powerpc/85xx: add sysfs for pw20 state and > altivec idle

RE: [PATCH] powerpc/fsl/defconfig: enable CONFIG_AT803X_PHY

2013-09-25 Thread Liu Shengzhou-B36685
> -Original Message- > From: Wood Scott-B07421 > Sent: Thursday, September 26, 2013 9:24 AM > To: Liu Shengzhou-B36685 > Cc: linuxppc-dev@lists.ozlabs.org; ga...@kernel.crashing.org > Subject: Re: [PATCH] powerpc/fsl/defconfig: enable CONFIG_AT803X_PHY > > On Tue, 2013-09-03 at 16:28 +080

Re: [PATCH v10 2/3] DMA: Freescale: Add new 8-channel DMA engine device tree nodes

2013-09-25 Thread David Gibson
On Wed, Sep 25, 2013 at 08:46:32PM -0500, Scott Wood wrote: > On Wed, 2013-09-25 at 15:35 +0800, Hongbo Zhang wrote: > > By the way, I know maybe it is difficult, but why not introduce a > > document of maintaining rules for the dt binding docs? we have dedicated > > maintainers for this part now

[PATCH] powerpc/tm: Switch out userspace PPR and DSCR sooner

2013-09-25 Thread Michael Neuling
When we do a treclaim or trecheckpoint we end up running with userspace PPR and DSCR values. Currently we don't do anything special to avoid running with user values which could cause a severe performance degradation. This patch moves the PPR and DSCR save and restore around treclaim and trecheck

[PATCH] powerpc: Add VMX optimised xor for RAID5

2013-09-25 Thread Anton Blanchard
Add a VMX optimised xor, used primarily for RAID5. On a POWER7 blade this is a decent win: 32regs: 17932.800 MB/sec altivec : 19724.800 MB/sec The bigger gain is when the same test is run in SMT4 mode, as it would if the machine was busy: 8regs : 8377.600 MB/sec altivec

RE: [PATCH 5/7] iommu: supress loff_t compilation error on powerpc

2013-09-25 Thread Bhushan Bharat-R65777
> -Original Message- > From: Alex Williamson [mailto:alex.william...@redhat.com] > Sent: Wednesday, September 25, 2013 10:10 PM > To: Bhushan Bharat-R65777 > Cc: j...@8bytes.org; b...@kernel.crashing.org; ga...@kernel.crashing.org; > linux- > ker...@vger.kernel.org; linuxppc-dev@lists.oz

RE: [PATCH 6/7] vfio: moving some functions in common file

2013-09-25 Thread Bhushan Bharat-R65777
> -Original Message- > From: linux-pci-ow...@vger.kernel.org [mailto:linux-pci-ow...@vger.kernel.org] > On Behalf Of Alex Williamson > Sent: Wednesday, September 25, 2013 10:33 PM > To: Bhushan Bharat-R65777 > Cc: j...@8bytes.org; b...@kernel.crashing.org; ga...@kernel.crashing.org; > li

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

2013-09-25 Thread Bhushan Bharat-R65777
> -Original Message- > From: Wang Dongsheng-B40534 > Sent: Thursday, September 26, 2013 8:02 AM > To: Wood Scott-B07421 > Cc: Bhushan Bharat-R65777; linuxppc-dev@lists.ozlabs.org > Subject: RE: [PATCH v4 4/4] powerpc/85xx: add sysfs for pw20 state and altivec > idle > > > > > -Orig

Re: [PATCH v10 2/3] DMA: Freescale: Add new 8-channel DMA engine device tree nodes

2013-09-25 Thread Hongbo Zhang
On 09/26/2013 10:28 AM, David Gibson wrote: On Wed, Sep 25, 2013 at 08:46:32PM -0500, Scott Wood wrote: On Wed, 2013-09-25 at 15:35 +0800, Hongbo Zhang wrote: By the way, I know maybe it is difficult, but why not introduce a document of maintaining rules for the dt binding docs? we have dedicat

RE: [PATCH 7/7] vfio pci: Add vfio iommu implementation for FSL_PAMU

2013-09-25 Thread Bhushan Bharat-R65777
> -Original Message- > From: Alex Williamson [mailto:alex.william...@redhat.com] > Sent: Thursday, September 26, 2013 12:37 AM > To: Bhushan Bharat-R65777 > Cc: j...@8bytes.org; b...@kernel.crashing.org; ga...@kernel.crashing.org; > linux- > ker...@vger.kernel.org; linuxppc-dev@lists.ozl

[PATCH][v6] powerpc/fsl-booke: Add initial T104x_QDS board support

2013-09-25 Thread Prabhakar Kushwaha
Add support for T104x board in board file t104x_qds.c, It is common for both T1040 and T1042 as they share same QDS board. T1040QDS board Overview --- - SERDES Connections, 8 lanes supporting: — PCI Express: supporting Gen 1 and Gen 2; — SGMII — QSGMII

[PATCH][v6] powerpc/mpc85xx:Add initial device tree support of T104x

2013-09-25 Thread Prabhakar Kushwaha
The QorIQ T1040/T1042 processor support four integrated 64-bit e5500 PA processor cores with high-performance data path acceleration architecture and network peripheral interfaces required for networking & telecommunications. T1042 personality is a reduced personality of T1040 without Integrated 8

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

2013-09-25 Thread Wang Dongsheng-B40534
> -Original Message- > From: Bhushan Bharat-R65777 > Sent: Thursday, September 26, 2013 12:23 PM > To: Wang Dongsheng-B40534; Wood Scott-B07421 > Cc: linuxppc-dev@lists.ozlabs.org > Subject: RE: [PATCH v4 4/4] powerpc/85xx: add sysfs for pw20 state and > altivec idle > > > > > -Ori

[PATCH] powerpc: word-at-a-time optimization for 64bit LE

2013-09-25 Thread Philippe Bergheaud
This is an optimization for the PowerPC in 64-bit little-endian. Bit counting is used in find_zero(), instead of the multiply and shift. It is modelled after Alan Modra's PowerPC LE strlen patch http://sourceware.org/ml/libc-alpha/2013-08/msg00097.html. Signed-off-by: Philippe Bergheaud --- arc

[PATCH 1/3] powerpc: Implement arch_get_random_long/int() for powernv

2013-09-25 Thread Michael Ellerman
Add the plumbing to implement arch_get_random_long/int(). It didn't seem worth adding an extra ppc_md hook for int, so we reuse the one for long. Add an implementation for powernv based on the hwrng found in power7+ systems. We whiten the output of the hwrng, and the result passes all the dieharde

[PATCH 2/3] hwrng: Add a driver for the hwrng found in power7+ systems

2013-09-25 Thread Michael Ellerman
Add a driver for the hwrng found in power7+ systems, based on the existing code for the arch_get_random_long() hook. We only register a single instance of the driver, not one per device, because we use the existing per_cpu array of devices in the arch code. This means we always read from the "clos

[PATCH 3/3] KVM: PPC: Book3S: Add support for hwrng found on some powernv systems

2013-09-25 Thread Michael Ellerman
Some powernv systems include a hwrng. Guests can access it via the H_RANDOM hcall. We add a real mode implementation of H_RANDOM when a hwrng is found. Userspace can detect the presence of the hwrng by quering the KVM_CAP_PPC_HWRNG capability. Signed-off-by: Michael Ellerman --- arch/powerpc/in