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

2012-07-02 Thread Wen Congyang
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_device_remove(): > - offline memory > - remove physi

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

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

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

2012-07-02 Thread Wen Congyang
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 remove them. > > Note : The code does not free firmware_ma

[RFC PATCH v2 13/13] memory-hotplug : remove sysfs file of node

2012-07-02 Thread Yasuaki Ishimatsu
The patch adds node_set_offline() and unregister_one_node() to remove_memory() for removing sysfs file of node. CC: David Rientjes CC: Jiang Liu CC: Len Brown CC: Benjamin Herrenschmidt CC: Paul Mackerras CC: Christoph Lameter Cc: Minchan Kim CC: Andrew Morton CC: KOSAKI Motohiro Signed-o

[RFC PATCH v2 12/13] memory-hotplug : add node_device_release

2012-07-02 Thread Yasuaki Ishimatsu
When calling unregister_node(), the function shows following message at device_release(). Device 'node2' does not have a release() function, it is broken and must be fixed. So the patch implements node_device_release() CC: David Rientjes CC: Jiang Liu CC: Len Brown CC: Benjamin Herrenschmidt

[RFC PATCH v2 11/13] memory-hotplug : free memmap of sparse-vmemmap

2012-07-02 Thread Yasuaki Ishimatsu
I don't think that all pages of virtual mapping in removed memory can be freed, since page which type is MIX_SECTION_INFO is difficult to free. So, the patch only frees page which type is SECTION_INFO at first. CC: David Rientjes CC: Jiang Liu CC: Len Brown CC: Benjamin Herrenschmidt CC: Paul

[RFC PATCH v2 10/13] memory-hotplug : implement register_page_bootmem_info_section of sparse-vmemmap

2012-07-02 Thread Yasuaki Ishimatsu
For removing memmap region of sparse-vmemmap which is allocated bootmem, memmap region of sparse-vmemmap needs to be registered by get_page_bootmem(). So the patch searches pages of virtual mapping and registers the pages by get_page_bootmem(). CC: David Rientjes CC: Jiang Liu CC: Len Brown CC:

[RFC PATCH v2 9/13] memory-hotplug : move register_page_bootmem_info_node and put_page_bootmem for sparse-vmemmap

2012-07-02 Thread Yasuaki Ishimatsu
For implementing register_page_bootmem_info_node of sparse-vmemmap, register_page_bootmem_info_node and put_page_bootmem are moved to memory_hotplug.c CC: David Rientjes CC: Jiang Liu CC: Len Brown CC: Benjamin Herrenschmidt CC: Paul Mackerras CC: Christoph Lameter Cc: Minchan Kim CC: Andre

[RFC PATCH v2 8/13] memory-hotplug : check page type in get_page_bootmem

2012-07-02 Thread Yasuaki Ishimatsu
There is a possibility that get_page_bootmem() is called to the same page many times. So when get_page_bootmem is called to the same page, the function only increments page->_count. CC: David Rientjes CC: Jiang Liu CC: Len Brown CC: Benjamin Herrenschmidt CC: Paul Mackerras CC: Christoph Lame

[RFC PATCH v2 7/13] memory-hotplug : remove_memory calls __remove_pages

2012-07-02 Thread Yasuaki Ishimatsu
The patch adds __remove_pages() to remove_memory(). Then the range of phys_start_pfn argument and nr_pages argument in __remove_pagse() may have different zone. So zone argument is removed from __remove_pages() and __remove_pages() caluculates zone in each section. When CONFIG_SPARSEMEM_VMEMMAP is

[RFC PATCH v2 6/13] memory-hotplug : add memory_block_release

2012-07-02 Thread Yasuaki Ishimatsu
When calling remove_memory_block(), the function shows following message at device_release(). Device 'memory528' does not have a release() function, it is broken and must be fixed. remove_memory_block() calls kfree(mem). I think it shouled be called from device_release(). So the patch implements

[RFC PATCH v2 5/13] memory-hotplug : does not release memory region in PAGES_PER_SECTION chunks

2012-07-02 Thread Yasuaki Ishimatsu
Since applying a patch(de7f0cba96786c), release_mem_region() has been changed as called in PAGES_PER_SECTION chunks because register_memory_resource() is called in PAGES_PER_SECTION chunks by add_memory(). But it seems firmware dependency. If CRS are written in the PAGES_PER_SECTION chunks in ACPI

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

2012-07-02 Thread Yasuaki Ishimatsu
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. Note : The code does not free firmware_map_entry since there is no way to free memory which i

[RFC PATCH v2 3/13] unify argument of firmware_map_add_early/hotplug

2012-07-02 Thread Yasuaki Ishimatsu
There are two ways to create /sys/firmware/memmap/X sysfs: - firmware_map_add_early When the system starts, it is calledd from e820_reserve_resources() - firmware_map_add_hotplug When the memory is hot plugged, it is called from add_memory() But these functions are called without unif

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

2012-07-02 Thread Yasuaki Ishimatsu
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_device_remove(): - offline memory - remove physical memory (only return -EBUSY) - free acpi_memory_device

[RFC PATCH v2 1/13] memory-hotplug : rename remove_memory to offline_memory

2012-07-02 Thread Yasuaki Ishimatsu
remove_memory() does not remove memory but just offlines memory. The patch changes name of it to offline_memory(). CC: David Rientjes CC: Jiang Liu CC: Len Brown CC: Benjamin Herrenschmidt CC: Paul Mackerras CC: Christoph Lameter Cc: Minchan Kim CC: Andrew Morton CC: KOSAKI Motohiro Signe

[RFC PATCH v2 0/13] memory-hotplug : hot-remove physical memory

2012-07-02 Thread Yasuaki Ishimatsu
This patch series aims to support physical memory hot-remove. [RFC PATCH v2 1/13] memory-hotplug : rename remove_memory to offline_memory [RFC PATCH v2 2/13] memory-hotplug : add physical memory hotplug code to acpi_memory_device_remove [RFC PATCH v2 3/13] memory-hotplug : unify argument of

Re: [PATCH] mm: setup pageblock_order before it's used by sparse

2012-07-02 Thread Jiang Liu
>> Hi Yinghai, >> >> I'm afraid the v2 will break powerpc. Currently only IA64 and PowerPC >> supports variable hugetlb size. >> >> HPAGE_SHIFT is a variable default to 0 on powerpc. But seems PowerPC >> is doing something wrong here, according to it's mm initialization >> sequence as below: >> sta

Re: [PATCH] mm: setup pageblock_order before it's used by sparse

2012-07-02 Thread Jiang Liu
On 2012-7-3 4:43, Yinghai Lu wrote: > On Sun, Jul 1, 2012 at 7:01 PM, Jiang Liu wrote: >> Hi Yinghai, >> The patch fails compilation as below: >> mm/page_alloc.c:151: error: initializer element is not constant >> mm/page_alloc.c:151: error: expected ‘,’ or ‘;’ before ‘__attribute__’ >> >>

Re: [PATCH] mm: setup pageblock_order before it's used by sparse

2012-07-02 Thread Yinghai Lu
On Mon, Jul 2, 2012 at 7:54 PM, Jiang Liu wrote: > On 2012-7-3 4:43, Yinghai Lu wrote: >> On Sun, Jul 1, 2012 at 7:01 PM, Jiang Liu wrote: >>> Hi Yinghai, >>> The patch fails compilation as below: >>> mm/page_alloc.c:151: error: initializer element is not constant >>> mm/page_alloc.c:151:

Re: [PATCH 5/5] usb: gadget: composite: parse dt overrides

2012-07-02 Thread Rob Herring
On 07/02/2012 02:35 AM, Felipe Balbi wrote: > Hi, > > On Tue, Jun 26, 2012 at 11:27:13AM -0300, Alexandre Pereira da Silva wrote: >> Grab the devicetree node properties to override VendorId, ProductId, >> bcdDevice, Manucacturer, Product and SerialNumber >> >> Signed-off-by: Alexandre Pereira da S

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

2012-07-02 Thread Benjamin Herrenschmidt
On Mon, 2012-07-02 at 23:38 +0200, Gerhard Pircher wrote: > > What about this fix:? > > http://patchwork.ozlabs.org/patch/166346/ > > At least I can't see it in the log... The module fix went in. The ftrace patch, well, it's untested and we don't even know if we have a problem with mcount yet,

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

2012-07-02 Thread Gerhard Pircher
Original-Nachricht > Datum: Mon, 02 Jul 2012 14:57:39 +1000 > Von: Benjamin Herrenschmidt > An: Linus Torvalds > CC: linuxppc-dev list , Andrew Morton > , Linux Kernel list > Betreff: [git pull] Please pull powerpc.git merge branch > Hi Linus > > Here are two more fixes th

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

2012-07-02 Thread Alexander Graf
On 02.07.2012, at 23:31, Scott Wood wrote: > On 07/02/2012 04:27 PM, Alexander Graf wrote: >> >> On 02.07.2012, at 23:26, Benjamin Herrenschmidt wrote: >> >>> On Mon, 2012-07-02 at 22:59 +0200, Alexander Graf wrote: This should go into an #ifdef __ASSEMBLY__ block, right? :) >>> >>> We al

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

2012-07-02 Thread Scott Wood
On 07/02/2012 04:27 PM, Alexander Graf wrote: > > On 02.07.2012, at 23:26, Benjamin Herrenschmidt wrote: > >> On Mon, 2012-07-02 at 22:59 +0200, Alexander Graf wrote: >>> This should go into an #ifdef __ASSEMBLY__ block, right? :) >> >> We almost never use #ifdef __ASSEMBLY__, we use it the othe

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

2012-07-02 Thread Alexander Graf
On 02.07.2012, at 23:26, Benjamin Herrenschmidt wrote: > On Mon, 2012-07-02 at 22:59 +0200, Alexander Graf wrote: >> This should go into an #ifdef __ASSEMBLY__ block, right? :) > > We almost never use #ifdef __ASSEMBLY__, we use it the other way around, > to prevent C stuff from being included i

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

2012-07-02 Thread Benjamin Herrenschmidt
On Mon, 2012-07-02 at 16:14 -0500, Stuart Yoder wrote: > -v2 >-moved CURRENT_THREAD_INFO under assembly only > #ifdef Nak, invert the two cases to avoid the if_n_def, but don't move it inside __ASSEMBLY__ only. IE. Address Alex other comment :-) Cheers, Ben. ___

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

2012-07-02 Thread Benjamin Herrenschmidt
On Mon, 2012-07-02 at 22:59 +0200, Alexander Graf wrote: > This should go into an #ifdef __ASSEMBLY__ block, right? :) We almost never use #ifdef __ASSEMBLY__, we use it the other way around, to prevent C stuff from being included in assembly. The other way around is legit since things might be us

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

2012-07-02 Thread Alexander Graf
On 02.07.2012, at 23:14, Stuart Yoder wrote: > From: Stuart Yoder > > Signed-off-by: Stuart Yoder > --- > > -this patch is a pre-requisite for the idle hcall which I > am trying to get into Alex's KVM tree, so ideally would like > Ben's ack and get this applied to Alex's tree > > -built/test

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

2012-07-02 Thread Stuart Yoder
From: Stuart Yoder Signed-off-by: Stuart Yoder --- -this patch is a pre-requisite for the idle hcall which I am trying to get into Alex's KVM tree, so ideally would like Ben's ack and get this applied to Alex's tree -built/tested with a 32-bit booke kernel, built a 64-bit booke kernel -v2

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

2012-07-02 Thread Alexander Graf
On 02.07.2012, at 22:56, Stuart Yoder wrote: > From: Stuart Yoder > > Signed-off-by: Stuart Yoder > --- > > -this patch is a pre-requisite for the idle hcall which I > am trying to get into Alex's KVM tree, so ideally would like > Ben's ack and get this applied to Alex's tree > > -built/test

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

2012-07-02 Thread Stuart Yoder
From: Stuart Yoder Signed-off-by: Stuart Yoder --- -this patch is a pre-requisite for the idle hcall which I am trying to get into Alex's KVM tree, so ideally would like Ben's ack and get this applied to Alex's tree -built/tested with a 32-bit booke kernel, built a 64-bit booke kernel arch/

Re: 3.5.0-rc5: BUG: soft lockup - CPU#0 stuck for 22s

2012-07-02 Thread Christian Kujau
On Mon, 2 Jul 2012 at 09:45, Paul E. McKenney wrote: > On Sun, Jul 01, 2012 at 11:30:40PM -0700, Christian Kujau wrote: > > On Mon, 2 Jul 2012 at 14:50, Benjamin Herrenschmidt wrote: > > > Interesting... I observed something roughly similar on a dual G4 > > > the other day associated with a 30s to

Re: [PATCH] P1021: set IReady in QE Microcode Upload

2012-07-02 Thread Timur Tabi
Kumar Gala wrote: >> > No, I forgot all about it. I'll try it today, assuming the lone 8323 >> > board in the board farm still works. > Do you remember if you ever tested this? Well, I tried to test it. We have an 83xx board that has a QE UART that needs firmware uploaded, but I don't know how

Re: [PATCH 1/2] powerpc/mpc85xx: p1022ds support the MTD for NOR and NAND flash

2012-07-02 Thread Kumar Gala
On Apr 16, 2012, at 8:42 PM, wrote: > From: Jerry Huang > > The compatilbe 'simple-bus' is removed from the latest DTS for NAND and > NOR flash partition, so we must add the new compatilbe support for p1022ds, > otherwise, the kernel can't parse the partition of NOR and NAND flash. > > Sign

Re: 3.5.0-rc5: BUG: soft lockup - CPU#0 stuck for 22s

2012-07-02 Thread Paul E. McKenney
On Sun, Jul 01, 2012 at 11:30:40PM -0700, Christian Kujau wrote: > On Mon, 2 Jul 2012 at 14:50, Benjamin Herrenschmidt wrote: > > Interesting... I observed something roughly similar on a dual G4 > > the other day associated with a 30s to 1mn pause during boot. RCU > > was complaining loudly. > > >

Re: MPC5200b jffs2 memcpy alignment problem

2012-07-02 Thread Stephan Gatzka
Hi! This problem has been discussed several times [1], [2], but wasn't resolved yet. The clean solution suggested was to implement a custom mapping driver [3]. Then I'll do that. It doesn't look terribly complicated. It would be helpful if someone can test the first version if it's available.

Re: [PATCH 2/2] powerpc/p1022ds/DTS: Add RTC support

2012-07-02 Thread Kumar Gala
On Apr 16, 2012, at 8:42 PM, wrote: > From: Jerry Huang > > Add the RTC support for p1022ds > > Signed-off-by: Jerry Huang > --- > arch/powerpc/boot/dts/p1022ds.dtsi |4 > 1 files changed, 4 insertions(+), 0 deletions(-) applied - k ___

Re: 3.5.0-rc5: BUG: soft lockup - CPU#0 stuck for 22s

2012-07-02 Thread Christian Kujau
On Mon, 2 Jul 2012 at 14:50, Benjamin Herrenschmidt wrote: > > while trying to upgrade from 3.4.0 to 3.5.0-rc5 on this Powerbook G4 > > (powerpc 32 bit), this happens during booting: > > > > -- > > usb 2-1: new full-speed USB device number 4 using ohci_hcd > > SCSI subsystem initializ

[PATCH] [powerpc] Export memory limit via device tree

2012-07-02 Thread Suzuki K. Poulose
The powerpc kernel doesn't export the memory limit enforced by 'mem=' kernel parameter. This is required for building the ELF header in kexec-tools to limit the vmcore to capture only the used memory. On powerpc the kexec-tools depends on the device-tree for memory related information, unlike /proc

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

2012-07-02 Thread Zhao Chenhui
On Thu, Jun 28, 2012 at 08:50:51PM +1000, 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

Re: MPC5200b jffs2 memcpy alignment problem

2012-07-02 Thread Anatolij Gustschin
Hi Stephan, On Sun, 01 Jul 2012 08:47:01 +0200 Stephan Gatzka wrote: > Hi Albrecht, > > > I don't recall who proposed this patch, but exactly this solution is > > around for a longer time (mayby you search archives...). On my board, I > > have a flash chip attached to the LocalBus in 16-bit

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

2012-07-02 Thread Zhao Chenhui
On Fri, Jun 29, 2012 at 10:39:24AM -0500, Tabi Timur-B04825 wrote: > On Tue, Jun 26, 2012 at 5:25 AM, Zhao Chenhui > wrote: > > 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. > > > >

Re: [PATCH 5/5] usb: gadget: composite: parse dt overrides

2012-07-02 Thread Felipe Balbi
Hi, On Tue, Jun 26, 2012 at 11:27:13AM -0300, Alexandre Pereira da Silva wrote: > Grab the devicetree node properties to override VendorId, ProductId, > bcdDevice, Manucacturer, Product and SerialNumber > > Signed-off-by: Alexandre Pereira da Silva I need Grant's acked-by to queue this one. --