Re: [PATCH v2 3/6] powerpc/pci: use pci_is_pcie() to simplify code

2013-09-06 Thread Bjorn Helgaas
On Thu, Sep 05, 2013 at 03:55:27PM +0800, Yijing Wang wrote: > Use pci_is_pcie() to simplify code. > > Acked-by: Kumar Gala > Reviewed-by: Gavin Shan > Signed-off-by: Yijing Wang > Cc: Gavin Shan > Cc: Benjamin Herrenschmidt > Cc: Paul Mackerras > Cc: linuxppc-dev@lists.ozlabs.org > Cc: linu

Re: [git pull] Please pull powerpc.git next branch

2013-09-06 Thread Linus Torvalds
On Thu, Sep 5, 2013 at 7:24 PM, Benjamin Herrenschmidt wrote: > > * A bunch of endian fixes ! We don't have full LE support yet in that > release but this contains a lot of fixes all over arch/powerpc to use the > proper accessors, call the firmware with the right endian mode, etc... Ok, this ca

Re: [PATCH v8 1/3] DMA: Freescale: revise device tree binding document

2013-09-06 Thread Scott Wood
On Wed, 2013-08-28 at 13:48 +0100, Mark Rutland wrote: > On Wed, Aug 28, 2013 at 09:18:55AM +0100, Hongbo Zhang wrote: > > On 08/27/2013 07:25 PM, Mark Rutland wrote: > > > On Tue, Aug 27, 2013 at 11:42:01AM +0100, hongbo.zh...@freescale.com > > > wrote: > > >> From: Hongbo Zhang > > >> > > >> Th

Re: [PATCH V2 2/2] powerpc/85xx: workaround for chips with MSI hardware errata

2013-09-06 Thread Kumar Gala
On Sep 6, 2013, at 10:36 AM, Scott Wood wrote: > On Fri, 2013-09-06 at 10:01 -0500, Kumar Gala wrote: >> On Sep 5, 2013, at 1:37 PM, Scott Wood wrote: >> >>> On Thu, 2013-09-05 at 13:34 -0500, Kumar Gala wrote: On Apr 2, 2013, at 9:03 PM, Jia Hongtao wrote: > + msi->feat

Re: [PATCH V2] powerpc: Add I2C bus multiplexer node for B4 and T4240QDS

2013-09-06 Thread Kumar Gala
On Sep 5, 2013, at 10:33 PM, Jia Hongtao-B38951 wrote: >> -Original Message- >> From: Kumar Gala [mailto:ga...@kernel.crashing.org] >> Sent: Friday, September 06, 2013 2:41 AM >> To: Jia Hongtao-B38951 >> Cc: linuxppc-dev@lists.ozlabs.org; Wood Scott-B07421; >> wei.y...@windriver.com >> S

[PATCH 4/7] power/mpc85xx: Add delay after enabling I2C master

2013-09-06 Thread York Sun
Erratum A-006037 indicates I2C controller executes the write to I2CCR only after it sees SCL idle for 64K cycle of internal I2C controller clocks. If during this waiting period, I2C controller is disabled (I2CCR[MEN] set to 0), then the controller could end in bad state, and hang the future access

[PATCH 5/7] powerpc/corenet64_smp_defconfig: Enable most SPI splash

2013-09-06 Thread York Sun
Enable CONFIG_MTD_M25P80 for corenet64_smp_defconfig. Verified on P5040DS. Signed-off-by: York Sun Reviewed-by: Wood Scott-B07421 Reviewed-by: Fleming Andrew-AFLEMING Tested-by: Fleming Andrew-AFLEMING --- arch/powerpc/configs/corenet64_smp_defconfig |1 + 1 file changed, 1 insertion(+)

[PATCH 7/7] powerpc/b4860emu: Add device tree file for b4860emu

2013-09-06 Thread York Sun
B4860EMU is a emualtor target with minimum peripherals. It is based on B4860QDS and trimmed down most peripherals due to either not modeled or lack of board level connections. The main purpose of this minimum dts is to speed up booting on emulator. Signed-off-by: York Sun Reviewed-by: Wood Scott-

[PATCH 6/7] powerpc/t4240emu: Add device tree file for t4240emu

2013-09-06 Thread York Sun
T4240EMU is an emulator target with minimum peripherals. It is based on T4240QDS and trimmed down most peripherals due to either not modeled or lack of board level connections. The main purpose of this minimum dts is to speed up booting on emulator. Signed-off-by: York Sun Reviewed-by: Wood Scott

[PATCH 3/7] i2c/rtc-ds3232: Fix irq for probing

2013-09-06 Thread York Sun
Driver shouldn't request irq when irq = 0. It is returned from parsing device tree. 0 means no interrupt. Signed-off-by: York Sun Reviewed-by: Zang Tiefei-R61911 Reviewed-by: Fleming Andrew-AFLEMING Tested-by: Fleming Andrew-AFLEMING --- drivers/rtc/rtc-ds3232.c |2 +- 1 file changed, 1 i

[PATCH 2/7] powerpc/mpc8xxx: Change EDAC for FSL SoC

2013-09-06 Thread York Sun
Remove mpc83xx and mpc85xx as dependency. Signed-off-by: York Sun Reviewed-by: Fleming Andrew-AFLEMING Tested-by: Fleming Andrew-AFLEMING --- drivers/edac/Kconfig |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/edac/Kconfig b/drivers/edac/Kconfig index 878f09

[PATCH 1/7] powerpc/mpc85xx: Fix EDAC address capture

2013-09-06 Thread York Sun
Extend err_addr to cover 64 bits for DDR errors. Signed-off-by: York Sun Reviewed-by: Fleming Andrew-AFLEMING Tested-by: Fleming Andrew-AFLEMING --- drivers/edac/mpc85xx_edac.c | 10 +++--- drivers/edac/mpc85xx_edac.h |1 + 2 files changed, 8 insertions(+), 3 deletions(-) diff --git

Re: [PATCH V2 2/2] powerpc/85xx: workaround for chips with MSI hardware errata

2013-09-06 Thread Scott Wood
On Fri, 2013-09-06 at 10:01 -0500, Kumar Gala wrote: > On Sep 5, 2013, at 1:37 PM, Scott Wood wrote: > > > On Thu, 2013-09-05 at 13:34 -0500, Kumar Gala wrote: > >> On Apr 2, 2013, at 9:03 PM, Jia Hongtao wrote: > >>> + msi->feature |= MSI_HW_ERRATA_ENDIAN; > >>> + } > >>> + > >>>

Re: [PATCH V2 2/2] powerpc/85xx: workaround for chips with MSI hardware errata

2013-09-06 Thread Kumar Gala
On Sep 5, 2013, at 1:37 PM, Scott Wood wrote: > On Thu, 2013-09-05 at 13:34 -0500, Kumar Gala wrote: >> On Apr 2, 2013, at 9:03 PM, Jia Hongtao wrote: >>> + msi->feature |= MSI_HW_ERRATA_ENDIAN; >>> + } >>> + >>> /* >>> * Remember the phandle, so that we can match wit

Re: [PATCH V3 2/2] powerpc/85xx: Add TWR-P1025 board support

2013-09-06 Thread Scott Wood
On Fri, 2013-09-06 at 05:01 -0500, Xie Xiaobo-R63061 wrote: > Hi Scott, > > Thanks for your reminding and advice. > > I discuss this with Liu Shengzhou(the first person that remind me > #interrupt-cells is 4), he advised removing the interrupts property > from the phy node, because the mdio used

Re: [PATCH V3 1/2] powerpc/85xx: Add QE common init functions

2013-09-06 Thread Scott Wood
On Fri, 2013-09-06 at 04:52 -0500, Xie Xiaobo-R63061 wrote: > Hi Scott, > > I already remove these code from the P1025TWR platform file(see the 2/2 > patch). Do you means I also need to remove these codes from the others > platforms and use the common call instead? > Thank you. Yes. -Scott

Re: [PATCH] powerpc: Add I2C bus multiplexer node for B4 and T4240QDS

2013-09-06 Thread Scott Wood
On Thu, 2013-09-05 at 21:30 -0500, Tang Yuantian-B29983 wrote: > > -Original Message- > > From: Wood Scott-B07421 > > Sent: 2013年9月6日 星期五 2:41 > > To: Tang Yuantian-B29983 > > Cc: Yang,Wei; Jia Hongtao-B38951; Wood Scott-B07421; linuxppc- > > d...@lists.ozlabs.org > > Subject: Re: [PATCH] p

Re: [PATCH v9 12/13] KVM: PPC: Add support for IOMMU in-kernel handling

2013-09-06 Thread Alexey Kardashevskiy
On 09/06/2013 04:57 PM, Gleb Natapov wrote: > On Thu, Sep 05, 2013 at 02:05:09PM +1000, Benjamin Herrenschmidt wrote: >> On Tue, 2013-09-03 at 13:53 +0300, Gleb Natapov wrote: Or supporting all IOMMU links (and leaving emulated stuff as is) in on "device" is the last thing I have to do an

[PATCH v3 2/8] ppc/cell: use get_unused_fd_flags(0) instead of get_unused_fd()

2013-09-06 Thread Yann Droneaud
Macro get_unused_fd() is used to allocate a file descriptor with default flags. Those default flags (0) can be "unsafe": O_CLOEXEC must be used by default to not leak file descriptor across exec(). Instead of macro get_unused_fd(), functions anon_inode_getfd() or get_unused_fd_flags() should be us

[PATCH v3 0/8] Getting rid of get_unused_fd() / use O_CLOEXEC

2013-09-06 Thread Yann Droneaud
e allows it to choose, without race, if the file descriptor is going to be inherited across exec(). Status: In linux-next tag 20130906, they're currently: - 22 calls to get_unused_fd_flags() (+3) not counting get_unused_fd() and anon_inode_getfd() - 7 calls to get_unuse

[PATCH v10 12/13] KVM: PPC: Add support for IOMMU in-kernel handling

2013-09-06 Thread Alexey Kardashevskiy
This allows the host kernel to handle H_PUT_TCE, H_PUT_TCE_INDIRECT and H_STUFF_TCE requests targeted an IOMMU TCE table without passing them to user space which saves time on switching to user space and back. Both real and virtual modes are supported. The kernel tries to handle a TCE request in t

RE: [PATCH V3 2/2] powerpc/85xx: Add TWR-P1025 board support

2013-09-06 Thread Xie Xiaobo-R63061
Hi Scott, Thanks for your reminding and advice. I discuss this with Liu Shengzhou(the first person that remind me #interrupt-cells is 4), he advised removing the interrupts property from the phy node, because the mdio used the poll way preferentially. Best Regards Xie Xiaobo -Original Mes

RE: [PATCH V3 1/2] powerpc/85xx: Add QE common init functions

2013-09-06 Thread Xie Xiaobo-R63061
Hi Scott, I already remove these code from the P1025TWR platform file(see the 2/2 patch). Do you means I also need to remove these codes from the others platforms and use the common call instead? Thank you. Best Regards Xie Xiaobo -Original Message- From: Wood Scott-B07421 Sent: Thurs

[PATCH] Add a vga alias node for P1022

2013-09-06 Thread Jason Jin
From: Jason Jin When the vga was set as the stdout and stderr in u-boot, the stdout fixup code in u-boot need to find out the vga alias node in dtb. Signed-off-by: Jason Jin --- arch/powerpc/boot/dts/fsl/p1022si-post.dtsi | 2 +- arch/powerpc/boot/dts/fsl/p1022si-pre.dtsi | 1 + 2 files chang

[PATCH] powerpc/corenet/config: add missing SCSI configs for corenet64_smp_defconfig

2013-09-06 Thread Shaohui Xie
Otherwise there will be no SCSI device nodes. Signed-off-by: Shaohui Xie --- arch/powerpc/configs/corenet64_smp_defconfig | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/powerpc/configs/corenet64_smp_defconfig b/arch/powerpc/configs/corenet64_smp_defconfig index 6c8b020..53058cb

[PATCH] powerpc/85xx: DTS - re-organize the SPI partitions property

2013-09-06 Thread Mingkai Hu
Re-organize the SPI partitions and use the same SPI flash memory map for most of the platforms which have 16MB SPI flash mounted. 1. Extend the U-Boot partition to 1MB The image for booting from SPI is larger than 512KB, while the size of U-Boot partition is 512KB on some boards, so enlar

Re: [PATCH v9 12/13] KVM: PPC: Add support for IOMMU in-kernel handling

2013-09-06 Thread Alexey Kardashevskiy
On 09/06/2013 04:57 PM, Gleb Natapov wrote: > On Thu, Sep 05, 2013 at 02:05:09PM +1000, Benjamin Herrenschmidt wrote: >> On Tue, 2013-09-03 at 13:53 +0300, Gleb Natapov wrote: Or supporting all IOMMU links (and leaving emulated stuff as is) in on "device" is the last thing I have to do an