Re: [PATCH v4 0/3] powerpc: Enable seccomp filter support

2015-02-26 Thread Purcareata Bogdan
Ping? On 18.02.2015 10:16, Bogdan Purcareata wrote: Add the missing pieces in order to enable SECCOMP_FILTER on PowerPC architectures, and enable this support. Testing has been pursued using libseccomp with the latest ppc support patches [1][2], on Freescale platforms for both ppc and ppc64. Su

Re: [PATCH 0/5] split ET_DYN ASLR from mmap ASLR

2015-02-26 Thread Ingo Molnar
* Kees Cook wrote: > This separates ET_DYN ASLR from mmap ASLR, as already > done on s390. The various architectures that are already > randomizing mmap (arm, arm64, mips, powerpc, s390, and > x86), have their various forms of arch_mmap_rnd() made > available via the new CONFIG_ARCH_HAS_ELF_

Re: [3/3] powerpc/dma: Remove ZONE_DMA completely

2015-02-26 Thread Benjamin Herrenschmidt
On Fri, 2015-02-27 at 14:39 +1100, Michael Ellerman wrote: > On Thu, 2015-02-26 at 17:38 +1100, Michael Ellerman wrote: > > On Fri, 2015-20-02 at 08:35:44 UTC, Benjamin Herrenschmidt wrote: > > > diff --git a/arch/powerpc/kernel/dma.c b/arch/powerpc/kernel/dma.c > > > index e24e0ae..6306d4e 100644

Re: [3/3] powerpc/dma: Remove ZONE_DMA completely

2015-02-26 Thread Michael Ellerman
On Thu, 2015-02-26 at 17:38 +1100, Michael Ellerman wrote: > On Fri, 2015-20-02 at 08:35:44 UTC, Benjamin Herrenschmidt wrote: > > diff --git a/arch/powerpc/kernel/dma.c b/arch/powerpc/kernel/dma.c > > index e24e0ae..6306d4e 100644 > > --- a/arch/powerpc/kernel/dma.c > > +++ b/arch/powerpc/kernel/d

[PATCH 0/5] split ET_DYN ASLR from mmap ASLR

2015-02-26 Thread Kees Cook
This separates ET_DYN ASLR from mmap ASLR, as already done on s390. The various architectures that are already randomizing mmap (arm, arm64, mips, powerpc, s390, and x86), have their various forms of arch_mmap_rnd() made available via the new CONFIG_ARCH_HAS_ELF_RANDOMIZE. For these architectures,

[PATCH 2/5] mm: expose arch_mmap_rnd when available

2015-02-26 Thread Kees Cook
When an architecture fully supports randomizing the ELF load location, the arch_mmap_rnd() function becomes available. Rename and expose these functions where they exist. Introduces CONFIG_ARCH_HAS_ELF_RANDOMIZE. Signed-off-by: Kees Cook --- arch/Kconfig | 7 +++ arch/arm/K

[PATCH 5/5] mm: fold arch_randomize_brk into ARCH_HAS_ELF_RANDOMIZE

2015-02-26 Thread Kees Cook
On architectures that define CONFIG_ARCH_HAS_ELF_RANDOMIZE, collapse the function declarations while continuing to handle CONFIG_COMPAT_BRK. Signed-off-by: Kees Cook --- arch/Kconfig | 1 + arch/arm/include/asm/elf.h | 4 arch/arm64/include/asm/elf.h | 4 arc

[PATCH 4/5] mm: split ET_DYN ASLR from mmap ASLR

2015-02-26 Thread Kees Cook
This moves arch_mmap_rnd() into the ELF loader for handling ET_DYN ASLR in a separate region from mmap ASLR, as already done on s390. Removes CONFIG_BINFMT_ELF_RANDOMIZE_PIE. Reported-by: Hector Marco-Gisbert Signed-off-by: Kees Cook --- arch/arm/Kconfig| 1 - arch/arm64/Kconfig

[PATCH 3/5] mm: move randomize_et_dyn into ELF_ET_DYN_BASE

2015-02-26 Thread Kees Cook
This moves s390's randomize_et_dyn base into ELF_ET_DYN_BASE, and removes an unused arm64 extern. Signed-off-by: Kees Cook --- arch/arm64/include/asm/elf.h | 1 - arch/s390/include/asm/elf.h | 9 + arch/s390/mm/mmap.c | 11 --- 3 files changed, 5 insertions(+), 16 del

[PATCH 1/5] arm: factor out mmap ASLR into mmap_rnd

2015-02-26 Thread Kees Cook
Move logic for mmap ASLR into separate function. Signed-off-by: Kees Cook --- arch/arm/mm/mmap.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/arch/arm/mm/mmap.c b/arch/arm/mm/mmap.c index 5e85ed371364..0f8bc158f2c6 100644 --- a/arch/arm/mm/mmap.c +++ b/arch/

[PATCH] powerpc: Make corenet64_defconfig a bit more useful

2015-02-26 Thread Benjamin Herrenschmidt
CONFIG_BLK_DEV_SD, SR, ... are needed for pretty much any SATA or USB storage device (corenet32_defconfig has them) and modern any with systemd needs the CGROUPS gunk. Signed-off-by: Benjamin Herrenschmidt --- diff --git a/arch/powerpc/configs/corenet64_smp_defconfig b/arch/powerpc/configs/core

Re: [PATCH 4/4] powerpc/mpic: remove unused functions

2015-02-26 Thread Arseny Solokha
> @@ -1676,31 +1666,6 @@ void __init mpic_init(struct mpic *mpic) > mpic_err_int_init(mpic, MPIC_FSL_ERR_INT); > } > > -void __init mpic_set_clk_ratio(struct mpic *mpic, u32 clock_ratio) > -{ > - u32 v; > - > - v = mpic_read(mpic->gregs, MPIC_GREG_GLOBAL_CONF_1); > - v

Re: [PATCH 03/15] fbdev: aty128fb: replace PPC_OF with PPC

2015-02-26 Thread Benjamin Herrenschmidt
On Fri, 2015-02-27 at 09:05 +0800, Kevin Hao wrote: > On Fri, Feb 27, 2015 at 11:11:15AM +1100, Benjamin Herrenschmidt wrote: > > On Sat, 2015-01-31 at 21:47 +0800, Kevin Hao wrote: > > > The PPC_OF is a ppc specific option which is used to mean that the > > > firmware device tree access functions

Re: [PATCH 0/2] powerpc/kvm: Enable running guests on RT Linux

2015-02-26 Thread Scott Wood
On Thu, 2015-02-26 at 14:31 +0100, Sebastian Andrzej Siewior wrote: > On 02/26/2015 02:02 PM, Paolo Bonzini wrote: > > > > > > On 24/02/2015 00:27, Scott Wood wrote: > >> This isn't a host PIC driver. It's guest PIC emulation, some of which > >> is indeed not suitable for a rawlock (in particula

Re: [PATCH 03/15] fbdev: aty128fb: replace PPC_OF with PPC

2015-02-26 Thread Kevin Hao
On Fri, Feb 27, 2015 at 11:11:15AM +1100, Benjamin Herrenschmidt wrote: > On Sat, 2015-01-31 at 21:47 +0800, Kevin Hao wrote: > > The PPC_OF is a ppc specific option which is used to mean that the > > firmware device tree access functions are available. Since all the > > ppc platforms have a device

Re: [PATCH] Fix offset2lib issue for x86*, ARM*, PowerPC and MIPS

2015-02-26 Thread Andrew Morton
On Thu, 26 Feb 2015 15:37:37 -0800 Kees Cook wrote: > Agh, no, please let's avoid the CONFIG addition. That is precisely how we do this. > Hector mentioned in private mail that he was looking at an alternative > that adds exec_base to struct mm which would avoid all this insanity. > > Can't we

Re: [PATCH] Fix offset2lib issue for x86*, ARM*, PowerPC and MIPS

2015-02-26 Thread Kees Cook
On Thu, Feb 26, 2015 at 4:11 PM, Kees Cook wrote: > On Thu, Feb 26, 2015 at 4:06 PM, Andrew Morton > wrote: >> On Thu, 26 Feb 2015 15:37:37 -0800 Kees Cook wrote: >> >>> Agh, no, please let's avoid the CONFIG addition. >> >> That is precisely how we do this. >> >>> Hector mentioned in private ma

Re: [PATCH 03/15] fbdev: aty128fb: replace PPC_OF with PPC

2015-02-26 Thread Benjamin Herrenschmidt
On Sat, 2015-01-31 at 21:47 +0800, Kevin Hao wrote: > The PPC_OF is a ppc specific option which is used to mean that the > firmware device tree access functions are available. Since all the > ppc platforms have a device tree, it is aways set to 'y' for ppc. > So it makes no sense to keep a such opt

Re: [RFC V2 12/12] i2c: bcm-iproc: make use of the new infrastructure for quirks

2015-02-26 Thread Ray Jui
On 2/25/2015 8:02 AM, Wolfram Sang wrote: > From: Wolfram Sang > > Signed-off-by: Wolfram Sang > --- > drivers/i2c/busses/i2c-bcm-iproc.c | 15 +++ > 1 file changed, 7 insertions(+), 8 deletions(-) > > diff --git a/drivers/i2c/busses/i2c-bcm-iproc.c > b/drivers/i2c/busses/i2c-bc

Re: [PATCH] Fix offset2lib issue for x86*, ARM*, PowerPC and MIPS

2015-02-26 Thread Andrew Morton
On Fri, 27 Feb 2015 10:21:36 +1100 Stephen Rothwell wrote: > > +/* Not all architectures implement mmap_rnd() */ > > +unsigned long __weak mmap_rnd(void) > > +{ > > +} > > + > > +/* > > + * Not all architectures use randomize_et_dyn(), so use __weak to let the > > + * linker omit it from vmlinux

Re: [PATCH] Fix offset2lib issue for x86*, ARM*, PowerPC and MIPS

2015-02-26 Thread Andrew Morton
On Thu, 26 Feb 2015 15:34:36 -0800 Kees Cook wrote: > >> That pointless repetition should be avoided. > > > > That's surprisingly hard! > > > > After renaming mips brk_rnd() to mmap_rnd() I had a shot. I'm not very > > confident in the result. Does that __weak trick even work? > > In theory, i

Re: [PATCH] Fix offset2lib issue for x86*, ARM*, PowerPC and MIPS

2015-02-26 Thread Kees Cook
On Thu, Feb 26, 2015 at 2:38 PM, Andrew Morton wrote: > On Tue, 24 Feb 2015 08:39:06 +0100 Ingo Molnar wrote: > >> >> * Hector Marco Gisbert wrote: >> >> > +unsigned long randomize_et_dyn(unsigned long base) >> > +{ >> > + unsigned long ret; >> > + if ((current->personality & ADDR_NO_RANDOMI

Re: [PATCH] Fix offset2lib issue for x86*, ARM*, PowerPC and MIPS

2015-02-26 Thread Stephen Rothwell
Hi Andrew, [Just resending to correct addresses - sorry for those who get a duplicate] On Thu, 26 Feb 2015 14:38:15 -0800 Andrew Morton wrote: > > diff -puN > fs/binfmt_elf.c~fix-offset2lib-issue-for-x86-arm-powerpc-and-mips-fix > fs/binfmt_elf.c > --- a/fs/binfmt_elf.c~fix-offset2lib-issue-f

Re: [PATCH] Fix offset2lib issue for x86*, ARM*, PowerPC and MIPS

2015-02-26 Thread Stephen Rothwell
Hi Andrew, On Thu, 26 Feb 2015 14:38:15 -0800 Andrew Morton wrote: > > diff -puN > fs/binfmt_elf.c~fix-offset2lib-issue-for-x86-arm-powerpc-and-mips-fix > fs/binfmt_elf.c > --- a/fs/binfmt_elf.c~fix-offset2lib-issue-for-x86-arm-powerpc-and-mips-fix > +++ a/fs/binfmt_elf.c > @@ -22,6 +22,7 @@ >

Re: [PATCH] Fix offset2lib issue for x86*, ARM*, PowerPC and MIPS

2015-02-26 Thread Andrew Morton
On Thu, 26 Feb 2015 23:00:52 + Russell King - ARM Linux wrote: > On Thu, Feb 26, 2015 at 02:38:15PM -0800, Andrew Morton wrote: > > diff -puN > > arch/arm64/Kconfig~fix-offset2lib-issue-for-x86-arm-powerpc-and-mips-fix > > arch/arm64/Kconfig > > --- > > a/arch/arm64/Kconfig~fix-offset2lib

Re: [PATCH] Fix offset2lib issue for x86*, ARM*, PowerPC and MIPS

2015-02-26 Thread Andrew Morton
On Thu, 26 Feb 2015 14:38:15 -0800 Andrew Morton wrote: > Does that __weak trick even work? Nope. --- a/fs/binfmt_elf.c~fix-offset2lib-issue-for-x86-arm-powerpc-and-mips-fix-fix +++ a/fs/binfmt_elf.c @@ -2307,10 +2307,10 @@ unsigned long __weak mmap_rnd(void) } /* - * Not all architectures

Re: [PATCH] Fix offset2lib issue for x86*, ARM*, PowerPC and MIPS

2015-02-26 Thread Russell King - ARM Linux
On Thu, Feb 26, 2015 at 02:38:15PM -0800, Andrew Morton wrote: > diff -puN > arch/arm64/Kconfig~fix-offset2lib-issue-for-x86-arm-powerpc-and-mips-fix > arch/arm64/Kconfig > --- a/arch/arm64/Kconfig~fix-offset2lib-issue-for-x86-arm-powerpc-and-mips-fix > +++ a/arch/arm64/Kconfig > @@ -1,4 +1,4 @@

Re: [PATCH] Fix offset2lib issue for x86*, ARM*, PowerPC and MIPS

2015-02-26 Thread David Daney
On 02/26/2015 02:38 PM, Andrew Morton wrote: [...] From: Andrew Morton Subject: fix-offset2lib-issue-for-x86-arm-powerpc-and-mips-fix Consolidate randomize_et_dyn() implementations into fs/binfmt_elf.c. There doesn't seem to be a compile-time way of making randomize_et_dyn() go away on archite

Re: [PATCH] Fix offset2lib issue for x86*, ARM*, PowerPC and MIPS

2015-02-26 Thread Andrew Morton
On Tue, 24 Feb 2015 08:39:06 +0100 Ingo Molnar wrote: > > * Hector Marco Gisbert wrote: > > > +unsigned long randomize_et_dyn(unsigned long base) > > +{ > > + unsigned long ret; > > + if ((current->personality & ADDR_NO_RANDOMIZE) || > > + !(current->flags & PF_RANDOMIZE)) > > +

Re: [PATCH] ibmveth: Add function to enable live MAC address changes

2015-02-26 Thread Jiri Pirko
Thu, Feb 26, 2015 at 02:08:06PM CET, brk...@linux.vnet.ibm.com wrote: >On 02/25/2015 06:34 PM, Thomas Falcon wrote: >> @@ -1327,6 +1327,24 @@ static unsigned long ibmveth_get_desired_dma(struct >> vio_dev *vdev) >> return ret; >> } >> >> +static int ibmveth_set_mac_addr(struct net_device *d

Re: [PATCH 5/5] crypto: talitos: Add software backlog queue handling

2015-02-26 Thread Martin Hicks
Hi Horia, On Tue, Feb 24, 2015 at 1:21 PM, Horia Geantă wrote: > On 2/20/2015 6:21 PM, Martin Hicks wrote: >> + int ret = -EINPROGRESS; >> >> spin_lock_irqsave(&priv->chan[ch].head_lock, flags); >> >> + if (edesc) { >> + orig_request = &edesc->req; >> + crypt

[PATCH] spi: fsl-spi: use of_iomap() to map parameter ram on CPM1

2015-02-26 Thread Christophe Leroy
On CPM2, the SPI parameter RAM is dynamically allocated in the dualport RAM whereas in CPM1, it is statically allocated to a default address with capability to relocate it somewhere else via the use of CPM micropatch. The address of the parameter RAM is given by the boot loader and expected to be m

[PATCH 1/3] powerpc/mpc85xx: Add FMan clock nodes

2015-02-26 Thread Emil Medve
From: Igal Liberman Signed-off-by: Igal Liberman --- arch/powerpc/boot/dts/fsl/b4si-post.dtsi| 11 +++ arch/powerpc/boot/dts/fsl/p2041si-post.dtsi | 8 arch/powerpc/boot/dts/fsl/p3041si-post.dtsi | 8 arch/powerpc/boot/dts/fsl/p4080si-post.dtsi | 16 +

[PATCH 3/3] powerpc/mpc85xx: Add FSL QorIQ DPAA FMan support to the SoC device tree(s)

2015-02-26 Thread Emil Medve
From: Igal Liberman Based on prior work by Andy Fleming Signed-off-by: Igal Liberman Signed-off-by: Shruti Kanetkar Signed-off-by: Emil Medve --- arch/powerpc/boot/dts/fsl/b4420si-pre.dtsi | 9 ++- arch/powerpc/boot/dts/fsl/b4860si-post.dtsi | 20 - arch/powerpc/boot/dts/fsl/b4860si

[PATCH 2/3] powerpc/mpc85xx: Create dts components for the FSL QorIQ DPAA FMan

2015-02-26 Thread Emil Medve
From: Igal Liberman Based on prior work by Andy Fleming Signed-off-by: Igal Liberman Signed-off-by: Shruti Kanetkar Signed-off-by: Emil Medve --- arch/powerpc/boot/dts/fsl/qoriq-fman-0-10g-0.dtsi | 62 arch/powerpc/boot/dts/fsl/qoriq-fman-0-1g-0.dtsi | 69 ++ a

Re: [PATCH 0/2] powerpc/kvm: Enable running guests on RT Linux

2015-02-26 Thread Sebastian Andrzej Siewior
On 02/26/2015 02:02 PM, Paolo Bonzini wrote: > > > On 24/02/2015 00:27, Scott Wood wrote: >> This isn't a host PIC driver. It's guest PIC emulation, some of which >> is indeed not suitable for a rawlock (in particular, openpic_update_irq >> which loops on the number of vcpus, with a loop body th

Re: [PATCH 0/2] powerpc/kvm: Enable running guests on RT Linux

2015-02-26 Thread Paolo Bonzini
On 24/02/2015 00:27, Scott Wood wrote: > This isn't a host PIC driver. It's guest PIC emulation, some of which > is indeed not suitable for a rawlock (in particular, openpic_update_irq > which loops on the number of vcpus, with a loop body that calls > IRQ_check() which loops over all pending IR

Re: [PATCH] ibmveth: Add function to enable live MAC address changes

2015-02-26 Thread Brian King
On 02/25/2015 06:34 PM, Thomas Falcon wrote: > @@ -1327,6 +1327,24 @@ static unsigned long ibmveth_get_desired_dma(struct > vio_dev *vdev) > return ret; > } > > +static int ibmveth_set_mac_addr(struct net_device *dev, void *p) > +{ > + struct ibmveth_adapter *adapter = netdev_priv(dev)

[PATCH v2 11/11] powerpc: kill PPC_OF

2015-02-26 Thread Kevin Hao
We have set CONFIG_PPC_OF to always 'y' in commit 0a498d96a332 ("powerpc: set CONFIG_PPC_OF=y always for ARCH=powerpc") nine years ago. And the arch/ppc also has gone away for many years. The OF functionality was also moved to a common place and be used by many archs. So it does make no sense to ke

[PATCH v2 10/11] tty: kconfig: remove the superfluous dependency on PPC_OF

2015-02-26 Thread Kevin Hao
In the current kernel, the CONFIG_PPC_OF is always 'y' for the ppc arch. So we don't need to check it with other ppc specific options. Signed-off-by: Kevin Hao --- v2: No change. drivers/tty/serial/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/tty/seria

[PATCH v2 09/11] mmc: kconfig: replace PPC_OF with PPC

2015-02-26 Thread Kevin Hao
The PPC_OF is a ppc specific option which is used to mean that the firmware device tree access functions are available. Since all the ppc platforms have a device tree, it is aways set to 'y' for ppc. So it makes no sense to keep a such option in the current kernel. Replace it with PPC. Signed-off-

[PATCH v2 08/11] fbdev: kconfig: replace PPC_OF with PPC

2015-02-26 Thread Kevin Hao
The PPC_OF is a ppc specific option which is used to mean that the firmware device tree access functions are available. Since all the ppc platforms have a device tree, it is aways set to 'y' for ppc. So it makes no sense to keep a such option in the current kernel. Replace it with PPC. Signed-off-

[PATCH v2 07/11] fbdev: remove the unnecessary includes of ppc specific header files

2015-02-26 Thread Kevin Hao
In the current kernel, we don't need to include these arch specific header files for ppc. Signed-off-by: Kevin Hao --- v2: No change. drivers/video/fbdev/core/fbmon.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/video/fbdev/core/fbmon.c b/drivers/video/fbdev/core/fbmon.c index

[PATCH v2 06/11] fbdev: riva: remove the dependency on PPC_OF

2015-02-26 Thread Kevin Hao
The OF functionality has moved to a common place and be used by many archs. So we don't need to include the ppc arch specific header files and depend on PPC_OF option any more. This is a preparation for killing PPC_OF. Signed-off-by: Kevin Hao --- v2: No change. drivers/video/fbdev/riva/fbdev.c

[PATCH v2 05/11] fbdev: nvidia: remove the dependency on PPC_OF

2015-02-26 Thread Kevin Hao
The OF functionality has moved to a common place and be used by many archs. So we don't need to include the ppc arch specific header files and depend on PPC_OF option any more. This is a preparation for killing PPC_OF. Signed-off-by: Kevin Hao --- v2: No change. drivers/video/fbdev/nvidia/Makef

[PATCH v2 04/11] fbdev: imsttfb: remove the dependency on PPC_OF

2015-02-26 Thread Kevin Hao
The OF functionality has moved to a common place and be used by many archs. So we don't need to depend on PPC_OF option any more. This is a preparation for killing PPC_OF. Signed-off-by: Kevin Hao --- v2: Only print the error log when CONFIG_OF is enabled. drivers/video/fbdev/imsttfb.c | 6 +---

[PATCH v2 03/11] fbdev: radeon: replace PPC_OF with PPC

2015-02-26 Thread Kevin Hao
The PPC_OF is a ppc specific option which is used to mean that the firmware device tree access functions are available. Since all the ppc platforms have a device tree, it is aways set to 'y' for ppc. So it makes no sense to keep a such option in the current kernel. Replace it with PPC. Signed-off-

[PATCH v2 02/11] fbdev: aty128fb: replace PPC_OF with PPC

2015-02-26 Thread Kevin Hao
The PPC_OF is a ppc specific option which is used to mean that the firmware device tree access functions are available. Since all the ppc platforms have a device tree, it is aways set to 'y' for ppc. So it makes no sense to keep a such option in the current kernel. Replace it with PPC. Signed-off-

[PATCH v2 01/11] sata_svw: remove the dependency on PPC_OF

2015-02-26 Thread Kevin Hao
The OF functionality has moved to a common place and be used by many archs. So we don't need to include the ppc arch specific header files and depend on PPC_OF option any more. This is a preparation for killing PPC_OF. Signed-off-by: Kevin Hao Acked-by: Tejun Heo --- v2: Add the ack from Tejun H

[PATCH v2 00/11] powerpc: kill PPC_OF

2015-02-26 Thread Kevin Hao
Hi, v2: - Drop the following patches which were already merged. be802bf955a1 ("mtd: kconfig: replace PPC_OF with PPC") 0a4a3529df40 ("gpio: kconfig: replace PPC_OF with PPC") c31316cb6c5a ("usb: kconfig: replace PPC_OF with PPC") f0b66a2cf68e ("PCI: Add pci_devic

Re: [PATCH 1/1]: thermal driver therm_adt746.c

2015-02-26 Thread Thomas Haschka
Hello, I hope I get it correct this time, thanks again. Just to recapitulate, here's a quick list of the changes made: 1. changes in sensors limits, we are down from 70, 50, 70 to 45, 50, 70, where the first value is the environement sensor that is located on the bottumside of the Hardd

RE: [PATCH] powerpc/fsl: add power_off support for fsl platform

2015-02-26 Thread dongsheng.w...@freescale.com
> -Original Message- > From: Wood Scott-B07421 > Sent: Wednesday, February 25, 2015 10:30 AM > To: Wang Dongsheng-B40534 > Cc: Jin Zhengxiong-R64188; Li Yang-Leo-R58472; Jia Hongtao-B38951; linuxppc- > d...@lists.ozlabs.org > Subject: Re: [PATCH] powerpc/fsl: add power_off support for fsl

[PATCH v4 07/30] PCI: Pass PCI domain number combined with root bus number

2015-02-26 Thread Yijing Wang
Now we could pass PCI domain combined with bus number in u32 argu. Because in arm/arm64, PCI domain number is assigned by pci_bus_assign_domain_nr(). So we leave pci_scan_root_bus() and pci_create_root_bus() in arm/arm64 unchanged. A new function pci_host_assign_domain_nr() will be introduced for a

[PATCH v4 18/30] PCI/powerpc: Use pci_scan_root_bridge() for simplicity

2015-02-26 Thread Yijing Wang
Now we could use pci_scan_root_bridge() to scan pci buses, provide powerpc specific pci_host_bridge_ops. Suggested-by: Arnd Bergmann Signed-off-by: Yijing Wang CC: Benjamin Herrenschmidt CC: linuxppc-dev@lists.ozlabs.org --- arch/powerpc/include/asm/machdep.h |2 +- arch/powerpc/kern

[PATCH v4 17/30] PCI/powerpc: Rename pcibios_root_bridge_prepare()

2015-02-26 Thread Yijing Wang
Pcibios_root_bridge_prepare() in powerpc is used to set root bus speed. Rename it to pcibios_set_root_bus_speed() for better readability. Signed-off-by: Yijing Wang CC: Benjamin Herrenschmidt CC: linuxppc-dev@lists.ozlabs.org --- arch/powerpc/include/asm/machdep.h |2 +- arch/powerpc/