Re: [m68k,powerpc,dma,ethernet,freescale RFA] Coldfire m54xx FEC ethernet driver

2012-10-23 Thread Greg Ungerer
Hi Philippe, On 16/10/12 18:03, Philippe De Muyter wrote: On Tue, Oct 16, 2012 at 04:39:05PM +1000, Greg Ungerer wrote: On 09/10/12 19:07, Philippe De Muyter wrote: [CCing lkml, linux-ppc, netdev, linux-m68k] Hello kernel sources architects I have a working driver for the m54xx FEC ethernet

Re: ELDK 4.2/kilauea/3.5+ kernel broken

2012-10-23 Thread Robert Berger
Hi Ben, > > Remind me what is the symptom ? A specific device isn't working ? Or the > whole kernel goes toast ? The whole kernel goes toast! Just reboots without saying much before;) > My feeling is that those patches make MSIs > work (well that's what they are supposed to do) and for some reaso

RE: [PATCH][V4] powerpc/fsl-pci: Add pci inbound/outbound PM support

2012-10-23 Thread Jia Hongtao-B38951
Hi Kumar, This PCI controller PM thing is pending for nearly a month without further discussion. Maybe it's time now to reach an agreement. - Hongtao. > -Original Message- > From: Jia Hongtao-B38951 > Sent: Friday, October 19, 2012 12:15 PM > To: 'Kumar Gala' > Cc: Wood Scott-B07421; l

Re: [v2][PATCH 1/2] powerpc/kgdb: Fix a single stgep case of lazy IRQ

2012-10-23 Thread tiejun.chen
Please ignore v2 temporarily since I have to correct something lately. Sorry for any inconvenience. Tiejun On 10/18/2012 10:47 AM, Tiejun Chen wrote: When we're in kgdb_singlestep(), we have to work around to get thread_info by copying from the kernel stack before calling kgdb_handle_exceptio

RE: [PATCH 3/3 v3] iommu/fsl: Freescale PAMU driver and IOMMU API implementation.

2012-10-23 Thread Sethi Varun-B16395
> -Original Message- > From: Wood Scott-B07421 > Sent: Tuesday, October 23, 2012 5:23 AM > To: Tabi Timur-B04825 > Cc: Sethi Varun-B16395; joerg.roe...@amd.com; iommu@lists.linux- > foundation.org; linuxppc-dev@lists.ozlabs.org; linux- > ker...@vger.kernel.org > Subject: Re: [PATCH 3/3 v3

RE: [PATCH 3/3 v3] iommu/fsl: Freescale PAMU driver and IOMMU API implementation.

2012-10-23 Thread Sethi Varun-B16395
> -Original Message- > From: Tabi Timur-B04825 > Sent: Tuesday, October 23, 2012 2:48 AM > To: Sethi Varun-B16395 > Cc: joerg.roe...@amd.com; io...@lists.linux-foundation.org; linuxppc- > d...@lists.ozlabs.org; linux-ker...@vger.kernel.org > Subject: Re: [PATCH 3/3 v3] iommu/fsl: Freescal

Re: [PATCH v2 00/12] memory-hotplug: hot-remove physical memory

2012-10-23 Thread Wen Congyang
At 10/23/2012 06:30 PM, Ni zhan Chen Wrote: > On 10/23/2012 06:30 PM, we...@cn.fujitsu.com wrote: >> From: Wen Congyang > > The patchset doesn't support kernel memory hot-remove, correct? If the > answer is yes, you should point out in your patchset changelog. The answer is no. If you only apply

Re: [PATCH v2 00/12] memory-hotplug: hot-remove physical memory

2012-10-23 Thread Ni zhan Chen
On 10/23/2012 06:30 PM, we...@cn.fujitsu.com wrote: From: Wen Congyang The patchset doesn't support kernel memory hot-remove, correct? If the answer is yes, you should point out in your patchset changelog. The patch-set was divided from following thread's patch-set. https://lkml.org/lkml

[PATCH v2 10/12] memory-hotplug: memory_hotplug: clear zone when removing the memory

2012-10-23 Thread wency
From: Yasuaki Ishimatsu When a memory is added, we update zone's and pgdat's start_pfn and spanned_pages in the function __add_zone(). So we should revert them when the memory is removed. The patch adds a new function __remove_zone() to do this. CC: David Rientjes CC: Jiang Liu CC: Len Brown

[PATCH v2 09/12] memory-hotplug: remove page table of x86_64 architecture

2012-10-23 Thread wency
From: Wen Congyang For hot removing memory, we sholud remove page table about the memory. So the patch searches a page table about the removed memory, and clear page table. CC: David Rientjes CC: Jiang Liu CC: Len Brown CC: Christoph Lameter Cc: Minchan Kim CC: Andrew Morton CC: KOSAKI Mot

[PATCH v2 11/12] memory-hotplug: remove sysfs file of node

2012-10-23 Thread wency
From: Wen Congyang This patch introduces a new function try_offline_node() to remove sysfs file of node when all memory sections of this node are removed. If some memory sections of this node are not removed, this function does nothing. CC: David Rientjes CC: Jiang Liu CC: Len Brown CC: Chris

[PATCH v2 12/12] memory-hotplug: free node_data when a node is offlined

2012-10-23 Thread wency
From: Wen Congyang We call hotadd_new_pgdat() to allocate memory to store node_data. So we should free it when removing a 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

[PATCH v2 00/12] memory-hotplug: hot-remove physical memory

2012-10-23 Thread wency
From: Wen Congyang The patch-set was divided from following thread's patch-set. https://lkml.org/lkml/2012/9/5/201 The last version of this patchset: https://lkml.org/lkml/2012/10/5/469 If you want to know the reason, please read following thread. https://lkml.org/lkml/2012/10/2/83 The patch

[PATCH v2 08/12] memory-hotplug: remove memmap of sparse-vmemmap

2012-10-23 Thread wency
From: Yasuaki Ishimatsu All pages of virtual mapping in removed memory cannot be freed, since some pages used as PGD/PUD includes not only removed memory but also other memory. So the patch checks whether page can be freed or not. How to check whether page can be freed or not? 1. When removing

[PATCH v2 07/12] memory-hotplug: implement register_page_bootmem_info_section of sparse-vmemmap

2012-10-23 Thread wency
From: 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(). Note: register_page_bootmem

[PATCH v2 06/12] memory-hotplug: unregister memory section on SPARSEMEM_VMEMMAP

2012-10-23 Thread wency
From: Yasuaki Ishimatsu Currently __remove_section for SPARSEMEM_VMEMMAP does nothing. But even if we use SPARSEMEM_VMEMMAP, we can unregister the memory_section. So the patch add unregister_memory_section() into __remove_section(). CC: David Rientjes CC: Jiang Liu CC: Len Brown CC: Christop

[PATCH v2 05/12] memory-hotplug: introduce new function arch_remove_memory() for removing page table depends on architecture

2012-10-23 Thread wency
From: Wen Congyang For removing memory, we need to remove page table. But it depends on architecture. So the patch introduce arch_remove_memory() for removing page table. Now it only calls __remove_pages(). Note: __remove_pages() for some archtecuture is not implemented (I don't know how t

[PATCH v2 04/12] memory-hotplug: remove /sys/firmware/memmap/X sysfs

2012-10-23 Thread wency
From: 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 which is allocated by boot

[PATCH v2 02/12] memory-hotplug: check whether all memory blocks are offlined or not when removing memory

2012-10-23 Thread wency
From: Yasuaki Ishimatsu We remove the memory like this: 1. lock memory hotplug 2. offline a memory block 3. unlock memory hotplug 4. repeat 1-3 to offline all memory blocks 5. lock memory hotplug 6. remove memory(TODO) 7. unlock memory hotplug All memory blocks must be offlined before removing m

[PATCH v2 01/12] memory-hotplug: try to offline the memory twice to avoid dependence

2012-10-23 Thread wency
From: Wen Congyang memory can't be offlined when CONFIG_MEMCG is selected. For example: there is a memory device on node 1. The address range is [1G, 1.5G). You will find 4 new directories memory8, memory9, memory10, and memory11 under the directory /sys/devices/system/memory/. If CONFIG_MEMCG i

[PATCH v2 03/12] memory-hotplug: remove redundant codes

2012-10-23 Thread wency
From: Wen Congyang offlining memory blocks and checking whether memory blocks are offlined are very similar. This patch introduces a new function to remove redundant codes. CC: David Rientjes CC: Jiang Liu CC: Len Brown CC: Christoph Lameter Cc: Minchan Kim CC: Andrew Morton CC: KOSAKI Mot

[RFC PATCH powerpc] Fix MAX_STACK_TRACE_ENTRIES too low!

2012-10-23 Thread Li Zhong
This patch tries to fix the following BUG report: [0.012313] BUG: MAX_STACK_TRACE_ENTRIES too low! [0.012318] turning off the locking correctness validator. [0.012321] Call Trace: [0.012330] [c0017666f6d0] [c0012128] .show_stack+0x78/0x184 (unreliable) [0.012339] [

RE: [PATCH] powerpc/esdhc: enable the card insert/remove interrupt

2012-10-23 Thread Huang Changming-R66093
Hi, Anton For FSL SOCs, the interrupt mode is support for card detect. For some reasons, some board can't support this feature, such as mpc837xmds board, but mpc837xrdb board support it. I see your links, it is about the DMA (the first version of p2020 don't support DMA, need to enable the PIO m

Re: [PATCH] powerpc/esdhc: enable the card insert/remove interrupt

2012-10-23 Thread Anton Vorontsov
On Tue, Oct 23, 2012 at 03:01:17PM +0800, r66...@freescale.com wrote: > From: Jerry Huang > > The current eSDHC driver use the poll mode to detect > if the SD/MMC card is inserted or removed, which will generate > many interrupts and impact the performance. > Therefore, change the default card d

Re: [PATCH 8/10] memory-hotplug : remove page table of x86_64 architecture

2012-10-23 Thread Wen Congyang
At 10/23/2012 03:09 PM, wujianguo Wrote: > On 2012-10-22 15:11, Wen Congyang wrote: >> Hi, Wu >> >> Sorry for late reply. >> >> At 10/09/2012 04:26 PM, wujianguo Wrote: >>> Hi Congyang, >>> I think we should also free pages which are used by page tables after >>> removing >>> page tables of th

Re: [PATCH 8/10] memory-hotplug : remove page table of x86_64 architecture

2012-10-23 Thread wujianguo
On 2012-10-22 15:11, Wen Congyang wrote: > Hi, Wu > > Sorry for late reply. > > At 10/09/2012 04:26 PM, wujianguo Wrote: >> Hi Congyang, >> I think we should also free pages which are used by page tables after >> removing >> page tables of the memory. > > It is OK to do it. > >> >> From: