[PATCH 6/7] pci: function to retrieve alignment of p2p bars

2012-06-28 Thread Gavin Shan
The patch introduces function pci_align_boundary() to retrieve the minimal alignment of p2p bars according to the argument. Signed-off-by: Gavin Shan --- drivers/pci/host-bridge.c | 24 include/linux/pci.h |1 + 2 files changed, 25 insertions(+) diff --git a

[PATCH 5/7] pci: minimal alignment for bars of P2P bridges

2012-06-28 Thread Gavin Shan
On some powerpc platforms, device BARs need to be assigned to separate "segments" of the address space in order for the error isolation and HW virtualization mechanisms (EEH) to work properly. Those "segments" have a minimum size that can be fairly large (16M). In order to be able to use the generi

[PATCH 1/7] pci: change variable name for find_pci_host_bridge

2012-06-28 Thread Gavin Shan
The patch changes the variable name for function find_pci_host_bridge() so that it looks more meaningful. More specificly, the "bus" has been replaced with "root_bus". Signed-off-by: Yinghai Lu Signed-off-by: Gavin Shan --- drivers/pci/host-bridge.c |4 ++-- 1 file changed, 2 insertions(+),

[PATCH 7/7] pci: resource assignment based on p2p alignment

2012-06-28 Thread Gavin Shan
The patch changes function pbus_size_io() and pbus_size_mem() to do resource (I/O, memory and prefetchable memory) reassignment based on the minimal alignments from the p2p bridge. Signed-off-by: Gavin Shan --- drivers/pci/setup-bus.c | 22 +++--- 1 file changed, 15 insertions(

[PATCH 2/7] pci: argument pci_bus for find_pci_host_bridge

2012-06-28 Thread Gavin Shan
The patch changes the argument of find_pci_host_bridge() to pci_bus. Signed-off-by: Yinghai Lu Signed-off-by: Gavin Shan --- drivers/pci/host-bridge.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/drivers/pci/host-bridge.c b/drivers/pci/host-bridge.c index

[PATCH V5 0/7] minimal alignment for p2p bars

2012-06-28 Thread Gavin Shan
v1 -> v2: * Shorten the varaible names so that they looks more short. * Changelog adjustment so that they looks more meaningful. v2 -> v3: * Rebase to 3.5.RC4 v3 -> v4: * Merge Yinghai's patches. v3 -> v4: * Split patch for easy review. * Add funct

[PATCH 4/7] pci: fiddle with conversion of pci and CPU address

2012-06-28 Thread Gavin Shan
The patch fiddles with the those functions used to do conversion between PCI and CPU address. More specificly, 2 functions are involved: pcibios_bus_to_resource() and pcibios_resource_to_bus() Signed-off-by: Yinghai Lu Signed-off-by: Gavin Shan --- drivers/pci/host-bridge.c | 24 +

[PATCH 3/7] pci: make find_pci_host_bridge global

2012-06-28 Thread Gavin Shan
The patch makes function find_pci_host_bridge() global so that the platforms (e.g. PPC) can access pci_host_bridge. Signed-off-by: Gavin Shan --- drivers/pci/host-bridge.c |2 +- include/linux/pci.h |1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/pci/hos

[PATCH] powerpc: Use cpumask iterator to avoid warning in xmon

2012-06-28 Thread Anton Blanchard
We have a bug report where the kernel hits a warning in the cpumask code: WARNING: at include/linux/cpumask.h:107 Which is: WARN_ON_ONCE(cpu >= nr_cpumask_bits); The backtrace is: cpu_cmd cmds xmon_core xmon die xmon is iterating through 0 to NR_

Re: [RFC PATCH 4/12] memory-hotplug : remove /sys/firmware/memmap/X sysfs

2012-06-28 Thread Yasuaki Ishimatsu
Hi Wen, 2012/06/28 17:38, Wen Congyang wrote: At 06/28/2012 04:07 PM, Yasuaki Ishimatsu Wrote: Hi Wen, 2012/06/28 15:32, Wen Congyang wrote: At 06/27/2012 01:47 PM, Yasuaki Ishimatsu Wrote: When (hot)adding memory into system, /sys/firmware/memmap/X/{end, start, type} sysfs files are created

RE: [PATCH 0/3] powerpc/fsl: PCI refactoring and QEMU paravirt platform

2012-06-28 Thread Jia Hongtao-B38951
> -Original Message- > From: Wood Scott-B07421 > Sent: Friday, June 29, 2012 12:31 AM > To: Jia Hongtao-B38951 > Cc: Wood Scott-B07421; ga...@kernel.crashing.org; Li Yang-R58472; > ag...@suse.de; linuxppc-dev@lists.ozlabs.org > Subject: Re: [PATCH 0/3] powerpc/fsl: PCI refactoring and QEM

Re: [PATCH powerpc 2/2] kfree the cache name of pgtable cache if SLUB is used

2012-06-28 Thread Zhong Li
On 06/29/2012 08:45 AM, Benjamin Herrenschmidt wrote: > On Mon, 2012-06-25 at 17:54 +0800, Li Zhong wrote: > >> diff --git a/arch/powerpc/mm/init_64.c b/arch/powerpc/mm/init_64.c >> index 620b7ac..c9d2a7f 100644 >> --- a/arch/powerpc/mm/init_64.c >> +++ b/arch/powerpc/mm/init_64.c >> @@ -130,6 +13

Re: [PATCH powerpc 2/2] kfree the cache name of pgtable cache if SLUB is used

2012-06-28 Thread Benjamin Herrenschmidt
On Mon, 2012-06-25 at 17:54 +0800, Li Zhong wrote: > diff --git a/arch/powerpc/mm/init_64.c b/arch/powerpc/mm/init_64.c > index 620b7ac..c9d2a7f 100644 > --- a/arch/powerpc/mm/init_64.c > +++ b/arch/powerpc/mm/init_64.c > @@ -130,6 +130,9 @@ void pgtable_cache_add(unsigned shift, void > (*ctor)(vo

Re: [PATCH v6 1/5] powerpc/85xx: implement hardware timebase sync

2012-06-28 Thread Kumar Gala
On Jun 28, 2012, at 5:50 AM, Benjamin Herrenschmidt wrote: > On Thu, 2012-06-28 at 11:38 +0800, Zhao Chenhui wrote: >> >> >> The bootloader have done a timebase sync. If we do not need KEXEC or >> HOTPLUG_CPU feature, it is unnecessary to do it again at boot time of >> kernel. I only compile th

Re: [PATCH 0/3] powerpc/fsl: PCI refactoring and QEMU paravirt platform

2012-06-28 Thread Scott Wood
On 06/27/2012 11:06 PM, Jia Hongtao-B38951 wrote: > > >> -Original Message- >> From: Wood Scott-B07421 >> Sent: Thursday, June 28, 2012 7:49 AM >> To: ga...@kernel.crashing.org >> Cc: ag...@suse.de; linuxppc-dev@lists.ozlabs.org; Jia Hongtao-B38951 >> Subject: [PATCH 0/3] powerpc/fsl: PCI

Re: [PATCH v6 1/5] powerpc/85xx: implement hardware timebase sync

2012-06-28 Thread Benjamin Herrenschmidt
On Thu, 2012-06-28 at 11:38 +0800, Zhao Chenhui wrote: > > > The bootloader have done a timebase sync. If we do not need KEXEC or > HOTPLUG_CPU feature, it is unnecessary to do it again at boot time of > kernel. I only compile the timebase sync routines > when users enable KEXEC or HOTPLUG_CPU.

Re: Build regressions/improvements in v3.5-rc4

2012-06-28 Thread Paul Mundt
On Tue, Jun 26, 2012 at 10:06:27PM +0200, Geert Uytterhoeven wrote: > On Tue, Jun 26, 2012 at 9:59 PM, Geert Uytterhoeven > wrote: > > JFYI, when comparing v3.5-rc4 to v3.5-rc3[3], the summaries are: > > ??- build errors: +11/-219 > > 11 regressions: > + arch/sh/include/asm/fixmap.h: error: imp

Re: [RFC PATCH 4/12] memory-hotplug : remove /sys/firmware/memmap/X sysfs

2012-06-28 Thread Wen Congyang
At 06/28/2012 04:07 PM, Yasuaki Ishimatsu Wrote: > Hi Wen, > > 2012/06/28 15:32, Wen Congyang wrote: >> At 06/27/2012 01:47 PM, Yasuaki Ishimatsu Wrote: >>> When (hot)adding memory into system, /sys/firmware/memmap/X/{end, >>> start, type} >>> sysfs files are created. But there is no code to remov

Re: [RFC PATCH 4/12] memory-hotplug : remove /sys/firmware/memmap/X sysfs

2012-06-28 Thread Yasuaki Ishimatsu
Hi Wen, 2012/06/28 15:32, Wen Congyang wrote: At 06/27/2012 01:47 PM, Yasuaki Ishimatsu Wrote: When (hot)adding memory into system, /sys/firmware/memmap/X/{end, start, type} sysfs files are created. But there is no code to remove these files. The patch implements the function to remove them. N

Re: [PATCH] powerpc: check_and_cede_processor never cedes

2012-06-28 Thread Benjamin Herrenschmidt
On Thu, 2012-06-28 at 09:13 +1000, Anton Blanchard wrote: > Hi, > > > I'd rather add a helper, something like lazy_irq_pending() > > and hide the actual check for the bits in irq_happened, in > > case we change the scheme again. > > Good idea. Look ok? > > -- > > Commit f948501b36c6 ("Make hard

Re: [PATCH V4 1/2] PCI: pcibus address to resource converting take bus directly

2012-06-28 Thread Benjamin Herrenschmidt
On Wed, 2012-06-27 at 12:15 -0600, Bjorn Helgaas wrote: > > This patch appears to have multiple unrelated changes: > > - change "struct pci_bus *bus" to "struct pci_bus *root_bus" > - change find_pci_host_bridge() argument from dev to bus > - fiddle with pcibios_bus_to_resource() and > pcib

Re: [RFC PATCH 2/12] memory-hogplug : check memory offline in offline_pages

2012-06-28 Thread Yasuaki Ishimatsu
Hi David, 2012/06/27 15:16, David Rientjes wrote: On Wed, 27 Jun 2012, Yasuaki Ishimatsu wrote: Index: linux-3.5-rc4/mm/memory_hotplug.c === --- linux-3.5-rc4.orig/mm/memory_hotplug.c 2012-06-26 13:28:16.743211538 +0900 +++