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

2012-07-03 Thread Gavin Shan
Hi Bjorn, Could you please review it when you have time? Thanks, Gavin >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

Re: [RFC PATCH v2 2/13] memory-hotplug : add physical memory hotplug code to acpi_memory_device_remove

2012-07-03 Thread Yasuaki Ishimatsu
Hi Wen, 2012/07/03 15:21, Wen Congyang wrote: > At 07/03/2012 01:54 PM, Yasuaki Ishimatsu Wrote: >> acpi_memory_device_remove() has been prepared to remove physical memory. >> But, the function only frees acpi_memory_device currentlry. >> >> The patch adds following functions into acpi_memory_devi

Re: [RFC PATCH v2 2/13] memory-hotplug : add physical memory hotplug code to acpi_memory_device_remove

2012-07-03 Thread Wen Congyang
At 07/03/2012 03:40 PM, Yasuaki Ishimatsu Wrote: > Hi Wen, > > 2012/07/03 15:21, Wen Congyang wrote: >> At 07/03/2012 01:54 PM, Yasuaki Ishimatsu Wrote: >>> acpi_memory_device_remove() has been prepared to remove physical memory. >>> But, the function only frees acpi_memory_device currentlry. >>>

[PATCH v3] cpuidle: (POWER) Replace pseries_notify_cpuidle_add _cpu call with a notifier to fix lockdep problem in start_secondary

2012-07-03 Thread Deepthi Dharwar
cpuidle: (POWER) Replace pseries_notify_cpuidle_add_cpu call with a notifier to fix lockdep problem in start_secondary From: Deepthi Dharwar Currently the call to pseries_notify_cpuidle_add_cpu(), that takes action on the cpuidle front when a cpu is added/removed is being made from smp_xics_se

[PATCH] powerpc/44x: Support OCM(On Chip Memory) for APM821xx SoC and Bluestone board

2012-07-03 Thread Vinh Nguyen Huu Tuong
This patch consists of: - Add driver for OCM component - Export OCM Information at /sys/kernel/debug/ppc4xx_ocm/info Signed-off-by: Vinh Nguyen Huu Tuong --- arch/powerpc/boot/dts/bluestone.dts |8 + arch/powerpc/include/asm/ppc4xx_ocm.h | 45 arch/powerpc/platforms/44x/Kconfig|

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

2012-07-03 Thread Zhao Chenhui
Do hardware timebase sync. Firstly, stop all timebases, and transfer the timebase value of the boot core to the other core. Finally, start all timebases. Only apply to dual-core chips, such as MPC8572, P2020, etc. Signed-off-by: Zhao Chenhui Signed-off-by: Li Yang --- v7: * removed CONFIG_85xx

[PATCH v7 2/5] powerpc/85xx: add HOTPLUG_CPU support

2012-07-03 Thread Zhao Chenhui
From: Li Yang Add support to disable and re-enable individual cores at runtime on MPC85xx/QorIQ SMP machines. Currently support e500v1/e500v2 core. MPC85xx machines use ePAPR spin-table in boot page for CPU kick-off. This patch uses the boot page from bootloader to boot core at runtime. It suppo

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

2012-07-03 Thread Tabi Timur-B04825
On Tue, Jul 3, 2012 at 5:21 AM, Zhao Chenhui wrote: > + np = of_find_matching_node(NULL, mpc85xx_smp_guts_ids); > + if (np) { > + guts = of_iomap(np, 0); > + of_node_put(np); > + if (!guts) { > + pr_err("%s: Could not map

RE: [PATCH][v2] PPC: use CURRENT_THREAD_INFO instead of open coded assembly

2012-07-03 Thread Yoder Stuart-B08248
> -Original Message- > From: Alexander Graf [mailto:ag...@suse.de] > Sent: Monday, July 02, 2012 4:16 PM > To: Yoder Stuart-B08248 > Cc: b...@kernel.crashing.org; linuxppc-dev@lists.ozlabs.org > Subject: Re: [PATCH][v2] PPC: use CURRENT_THREAD_INFO instead of open coded > assembly > >

[PATCH][v3] PPC: use CURRENT_THREAD_INFO instead of open coded assembly

2012-07-03 Thread Stuart Yoder
From: Stuart Yoder Signed-off-by: Stuart Yoder --- -v3 -moved CURRENT_THREAD_INFO out from under the assembly only #define as per comments on mailing list -reversed logic of 64-bit #ifdef for CURRENT_THREAD_INFO macro -this patch is a pre-requisite for the idle hcall which I am

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

2012-07-03 Thread Christoph Lameter
On Mon, 25 Jun 2012, Li Zhong wrote: > This patch tries to kfree the cache name of pgtables cache if SLUB is > used, as SLUB duplicates the cache name, and the original one is leaked. SLAB also does not free the name. Why would you have an #ifdef in there?

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

2012-07-03 Thread Geert Uytterhoeven
On Tue, Jul 3, 2012 at 9:12 PM, Geert Uytterhoeven wrote: > JFYI, when comparing v3.5-rc5 to v3.5-rc4[3], the summaries are: > - build errors: +20/-11 20 regressions: + arch/powerpc/platforms/512x/mpc512x_shared.c: error: 'FSL_DIU_PORT_DVI' undeclared (first use in this function): => 189:9

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

2012-07-03 Thread Christoph Lameter
Looking through the emails it seems that there is an issue with alias strings. That can be solved by duping the name of the slab earlier in kmem_cache_create(). Does this patch fix the issue? Subject: slub: Dup name earlier in kmem_cache_create Dup the name earlier in kmem_cache_create so that a

Re: [PATCH -v5 0/6] notifier error injection

2012-07-03 Thread Andrew Morton
On Sat, 30 Jun 2012 14:59:24 +0900 Akinobu Mita wrote: > This provides kernel modules that can be used to test the error handling > of notifier call chain failures by injecting artifical errors to the > following notifier chain callbacks. No updates to Documentation/fault-injection/? ___

Re: [PATCH][v3] PPC: use CURRENT_THREAD_INFO instead of open coded assembly

2012-07-03 Thread Benjamin Herrenschmidt
On Tue, 2012-07-03 at 10:11 -0500, Stuart Yoder wrote: > From: Stuart Yoder > > Signed-off-by: Stuart Yoder > --- > > -v3 >-moved CURRENT_THREAD_INFO out from under the assembly only > #define as per comments on mailing list >-reversed logic of 64-bit #ifdef for CURRENT_THREAD_INFO

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

2012-07-03 Thread Zhao Chenhui
On Tue, Jul 03, 2012 at 07:46:24AM -0500, Tabi Timur-B04825 wrote: > On Tue, Jul 3, 2012 at 5:21 AM, Zhao Chenhui > wrote: > > > + np = of_find_matching_node(NULL, mpc85xx_smp_guts_ids); > > + if (np) { > > + guts = of_iomap(np, 0); > > + of_node_put(np);

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

2012-07-03 Thread Tabi Timur-B04825
Zhao Chenhui wrote: > If the guts variable is NULL, it indicates there is error in dts or kernel. > We should fix the error, rather than ignore it. And that's why there's a warning message. Crashing the kernel is not going to fix anything. > Moreover, if smp_85xx_ops.give/take_timebase is NULL,

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

2012-07-03 Thread Zhao Chenhui
On Tue, Jul 03, 2012 at 10:17:12PM -0500, Tabi Timur-B04825 wrote: > Zhao Chenhui wrote: > > If the guts variable is NULL, it indicates there is error in dts or kernel. > > We should fix the error, rather than ignore it. > > And that's why there's a warning message. Crashing the kernel is not >

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

2012-07-03 Thread Yasuaki Ishimatsu
Hi Wen, 2012/07/03 15:35, Wen Congyang wrote: > At 07/03/2012 01:56 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

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

2012-07-03 Thread Wen Congyang
At 07/04/2012 12:45 PM, Yasuaki Ishimatsu Wrote: > Hi Wen, > > 2012/07/03 15:35, Wen Congyang wrote: >> At 07/03/2012 01:56 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 remo

[PATCH] tty/hvc_opal: Fix debug function name

2012-07-03 Thread Benjamin Herrenschmidt
udbg_init_debug_opal() should be udbg_init_debug_opal_raw() as the caller in arch/powerpc/kernel/udbg.c expects Signed-off-by: Benjamin Herrenschmidt --- drivers/tty/hvc/hvc_opal.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/hvc/hvc_opal.c b/drivers/tty/hvc

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

2012-07-03 Thread Yasuaki Ishimatsu
Hi Wen, 2012/07/04 14:08, Wen Congyang wrote: > At 07/04/2012 12:45 PM, Yasuaki Ishimatsu Wrote: >> Hi Wen, >> >> 2012/07/03 15:35, Wen Congyang wrote: >>> At 07/03/2012 01:56 PM, Yasuaki Ishimatsu Wrote: When (hot)adding memory into system, /sys/firmware/memmap/X/{end, start, type} >>>

[PATCH] powerpc: Move and fix MTMSR_EERI definition

2012-07-03 Thread Benjamin Herrenschmidt
Move this duplicated definition to ppc_asm.h and remove the braces which prevent the use of %rN register names Signed-off-by: Benjamin Herrenschmidt --- Alex: This is needed to fix the build with Mikey's patch series that enforce proper register name usage in assembly files. I'm about to merge

[PATCH] cpuidle:(POWER) Fixes for pseries_idle hotplug notifier

2012-07-03 Thread Deepthi Dharwar
cpuidle:(POWER) Fixes for pseries_idle hotplug notifier From: Deepthi Dharwar Currently the call to pseries_notify_cpuidle_add_cpu(), that takes action on the cpuidle front when a cpu is added/removed is being made from smp_xics_setup_cpu(). This caused lockdep issues as reported https://lkml.o

[PATCH] powerpc: Add a symbol for hypervisor trampolines

2012-07-03 Thread Michael Ellerman
Purely for cosmetic purposes, otherwise it can appear that we are in single_step_pSeries() which is slightly confusing. Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/exceptions-64s.S |1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/kernel/exceptions-64s.S b/arch/pow

rionet driver with MMIO DMA capability

2012-07-03 Thread Vineeth
Hi, With kernel mainstream version 3.5.rc-5 there's SRIO low level driver with DMA support for MMIO. But the rionet driver in the same kernel version doesnt support MMIO. We are trying to find the maximum bandwidth that we can achieve using our custom board's(quad MPC8641 ) 4-lane SRIO. Now we a