[PATCH v2] PCI: use dev-irq instead of dev-pin to enable non MSI/INTx interrupt

2012-07-18 Thread Shengzhou Liu
On some platforms, root port has neither MSI/MSI-X nor INTx interrupt generated in RC mode. In this case, we have to use other interrupt(e.g. system shared interrupt) for port service irq to have AER, Hot-plug, etc, services to work. Signed-off-by: Shengzhou Liu shengzhou@freescale.com ---

RE: [PATCH] PCI: use dev-irq instead of dev-pin to enable non MSI/INTx interrupt

2012-07-18 Thread Liu Shengzhou-B36685
-Original Message- From: Wood Scott-B07421 Sent: Wednesday, July 18, 2012 1:42 AM To: Liu Shengzhou-B36685 Cc: bhelg...@google.com; linux-...@vger.kernel.org; linuxppc- d...@lists.ozlabs.org Subject: Re: [PATCH] PCI: use dev-irq instead of dev-pin to enable non MSI/INTx interrupt

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

2012-07-18 Thread Benjamin Herrenschmidt
On Mon, 2012-07-02 at 20:25 -0700, Yinghai Lu wrote: That means pageblock_order is always set to MAX_ORDER - 1, not sure whether this is intended. And it has the same issue as IA64 of wasting memory if CONFIG_SPARSE is enabled. adding BenH, need to know if it is powerpc intended. So

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

2012-07-18 Thread Benjamin Herrenschmidt
On Tue, 2012-07-03 at 11:29 +0800, Jiang Liu wrote: OK, waiting response from PPC. If we could find some ways to set HPAGE_SIZE early on PPC too, we can setup pageblock_order in arch instead of page_alloc.c as early as possible. We could split our hugetlbpage_init() into two, with the bit

Re: [PATCH] MIPS: fix bug.h MIPS build regression

2012-07-18 Thread Geert Uytterhoeven
On Mon, Jul 16, 2012 at 9:27 PM, Geert Uytterhoeven ge...@linux-m68k.org wrote: On Fri, Jun 22, 2012 at 7:54 PM, David Daney dda...@caviumnetworks.com wrote: On 06/20/2012 09:12 AM, Ralf Baechle wrote: On Wed, Jun 20, 2012 at 03:27:59PM +0900, Yoichi Yuasa wrote: Commit:

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

2012-07-18 Thread Yasuaki Ishimatsu
This patch series aims to support physical memory hot-remove. [RFC PATCH v4 1/13] memory-hotplug : rename remove_memory to offline_memory [RFC PATCH v4 2/13] memory-hotplug : add physical memory hotplug code to acpi_memory_device_remove [RFC PATCH v4 3/13] memory-hotplug : check whether

[RFC PATCH 0/13] firmware_map : unify argument of firmware_map_add_early/hotplug

2012-07-18 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

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

2012-07-18 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 rient...@google.com CC: Jiang Liu liu...@gmail.com CC: Len Brown len.br...@intel.com CC: Benjamin Herrenschmidt b...@kernel.crashing.org CC: Paul Mackerras

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

2012-07-18 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. It only check whether memory is online or not.

[PATCH v4 3/13] memory-hotplug : check whether memory is present or not

2012-07-18 Thread Yasuaki Ishimatsu
If system supports memory hot-remove, online_pages() may online removed pages. So online_pages() need to check whether onlining pages are present or not. CC: David Rientjes rient...@google.com CC: Jiang Liu liu...@gmail.com CC: Len Brown len.br...@intel.com CC: Benjamin Herrenschmidt

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

2012-07-18 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

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

2012-07-18 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 v4 7/13] memory-hotplug : remove_memory calls __remove_pages

2012-07-18 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

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

2012-07-18 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 v4 8/13] memory-hotplug : check page type in get_page_bootmem

2012-07-18 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 rient...@google.com CC: Jiang Liu liu...@gmail.com CC: Len Brown len.br...@intel.com CC: Benjamin

mpc85xx_edac.c: Should the mpc85xx_l2_isr be shared irqs?

2012-07-18 Thread Xufeng Zhang
Hi All, I detected below error when booting p1021mds after enabled EDAC feature: EDAC MC: Ver: 2.1.0 Jul 17 2012 Freescale(R) MPC85xx EDAC driver, (C) 2006 Montavista Software EDAC MC0: Giving out device to 'MPC85xx_edac' 'mpc85xx_mc_err': DEV mpc85xx_mc_e rr IRQ 45/[EDAC] MC err: IRQF_DISABLED

Where can i find patches for Freescale MPC5125 Tower?

2012-07-18 Thread Mahesh Bajaj
Hello, We have bought these evaluation boards for MPC5125 from Freescale. We did receive the linux source code for this device. But i have noticed that there are some patches available for many files. How do i get these patch files? Any help on this will be greatly appreciated. Support for

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

2012-07-18 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 rient...@google.com CC: Jiang Liu liu...@gmail.com CC: Len Brown len.br...@intel.com CC: Benjamin Herrenschmidt

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

2012-07-18 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 rient...@google.com CC: Jiang Liu

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

2012-07-18 Thread 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 memory, the page structs

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

2012-07-18 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 rient...@google.com CC: Jiang Liu liu...@gmail.com CC:

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

2012-07-18 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 rient...@google.com CC: Jiang Liu liu...@gmail.com CC: Len Brown len.br...@intel.com CC: Benjamin Herrenschmidt b...@kernel.crashing.org CC: Paul Mackerras

Re: [PATCH v4 3/13] memory-hotplug : check whether memory is present or not

2012-07-18 Thread Wen Congyang
At 07/18/2012 06:07 PM, Yasuaki Ishimatsu Wrote: If system supports memory hot-remove, online_pages() may online removed pages. So online_pages() need to check whether onlining pages are present or not. CC: David Rientjes rient...@google.com CC: Jiang Liu liu...@gmail.com CC: Len Brown

Re: [PATCH v4 3/13] memory-hotplug : check whether memory is present or not

2012-07-18 Thread Yasuaki Ishimatsu
Hi Wen, 2012/07/18 19:25, Wen Congyang wrote: At 07/18/2012 06:07 PM, Yasuaki Ishimatsu Wrote: If system supports memory hot-remove, online_pages() may online removed pages. So online_pages() need to check whether onlining pages are present or not. CC: David Rientjes rient...@google.com

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

2012-07-18 Thread Wen Congyang
At 07/18/2012 06:09 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

[PATCH RESEND] PPC Hardware Breakpoints: Fix incorrect pointer access

2012-07-18 Thread Naveen N. Rao
If arch_validate_hwbkpt_settings() fails, bp-ctx won't be valid and the kernel panics. Add a check to fix this. Reported-by: Edjunior Barbosa Machado emach...@linux.vnet.ibm.com Signed-off-by: Naveen N. Rao naveen.n@linux.vnet.ibm.com --- arch/powerpc/kernel/hw_breakpoint.c |2 +- 1 file

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

2012-07-18 Thread Yasuaki Ishimatsu
Hi Wen, 2012/07/18 19:33, Wen Congyang wrote: At 07/18/2012 06:09 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

Re: [PATCH v4 3/13] memory-hotplug : check whether memory is present or not

2012-07-18 Thread Wen Congyang
At 07/18/2012 06:07 PM, Yasuaki Ishimatsu Wrote: If system supports memory hot-remove, online_pages() may online removed pages. So online_pages() need to check whether onlining pages are present or not. CC: David Rientjes rient...@google.com CC: Jiang Liu liu...@gmail.com CC: Len Brown

Re: [PATCH] of: require a match on all fields of of_device_id

2012-07-18 Thread Scott Wood
On 07/17/2012 09:38 PM, Rob Herring wrote: On 07/17/2012 08:11 PM, Scott Wood wrote: Commit 107a84e61cdd3406c842a0e4be7efffd3a05dba6 (of: match by compatible property first) breaks the gianfar ethernet driver found on various Freescale PPC chips. You do know this is reverted, right? No, I

Re: [PATCH 05/15] pci: resource assignment based on p2p alignment

2012-07-18 Thread Bjorn Helgaas
On Tue, Jul 17, 2012 at 10:25 PM, Ram Pai linux...@us.ibm.com wrote: On Tue, Jul 17, 2012 at 11:14:51AM -0600, Bjorn Helgaas wrote: On Tue, Jul 17, 2012 at 4:38 AM, Benjamin Herrenschmidt b...@kernel.crashing.org wrote: On Tue, 2012-07-17 at 18:03 +0800, Ram Pai wrote: Lets say we

[PATCH] radeonfb: Add quirk for the graphics adapter in some JSxx

2012-07-18 Thread olaf
From: Tony Breeds t...@bakeyournoodle.com These devices are set to 640x480 by firmware, switch them to 800x600@60 so that the graphical installer can run on remote console. Reported by IBM during SLES10 SP2 beta testing: https://bugzilla.novell.com/show_bug.cgi?id=461002 LTC50817

[PATCH] scsi/ibmvscsi: /sys/class/scsi_host/hostX/config doesn't show any information

2012-07-18 Thread olaf
From: Linda Xie lx...@us.ibm.com Expected result: It should show something like this: x1521p4:~ # cat /sys/class/scsi_host/host1/config PARTITIONNAME='x1521p4' NWSDNAME='X1521P4' HOSTNAME='X1521P4' DOMAINNAME='RCHLAND.IBM.COM' NAMESERVERS='9.10.244.100 9.10.244.200' Actual result: x1521p4:~ #

[PATCH] scsi/ibmvscsi: add module alias for ibmvscsic

2012-07-18 Thread olaf
From: Olaf Hering o...@aepfle.de The driver is named ibmvscsic, at runtime it its name is advertised as ibmvscsi. For this reason mkinitrd wont pickup the driver properly. Reported by IBM during SLES11 beta testing: https://bugzilla.novell.com/show_bug.cgi?id=459933 LTC50724 Signed-off-by: Olaf

Re: [PATCH] MIPS: fix bug.h MIPS build regression

2012-07-18 Thread Andrew Morton
On Wed, 18 Jul 2012 10:35:46 +0200 Geert Uytterhoeven ge...@linux-m68k.org wrote: On Mon, Jul 16, 2012 at 9:27 PM, Geert Uytterhoeven ge...@linux-m68k.org wrote: On Fri, Jun 22, 2012 at 7:54 PM, David Daney dda...@caviumnetworks.com wrote: On 06/20/2012 09:12 AM, Ralf Baechle wrote:

Re: [PATCH] mlx4_en: map entire pages to increase throughput

2012-07-18 Thread Or Gerlitz
On 7/16/2012 11:57 PM, Thadeu Lima de Souza Cascardo wrote: On Mon, Jul 16, 2012 at 11:43:33PM +0300, Or Gerlitz wrote: TCP_STREAM from this setup before the patch would be good to know as well Does the stream test that I did with uperf using messages of 64000 bytes fit?

[PATCH] powerpc/ftrace: Trace function graph entry before updating index

2012-07-18 Thread Steven Rostedt
As Colin Cross ported my x86 change to ARM, he also pointed out that powerpc is also behind in this fix. The commit 722b3c746953 ftrace/graph: Trace function entry before updating index fixes an issue with function graph tracing for x86, where if the called entry function decides not to trace

Re: [PATCH] radeonfb: Add quirk for the graphics adapter in some JSxx

2012-07-18 Thread Olaf Hering
On Thu, Jul 19, Jingoo Han wrote: On Thursday, July 19, 2012 1:49 AM, o...@aepfle.de wrote: From: Tony Breeds t...@bakeyournoodle.com These devices are set to 640x480 by firmware, switch them to 800x600@60 so that the graphical installer can run on remote console. Reported by IBM

RE: [PATCH] radeonfb: Add quirk for the graphics adapter in some JSxx

2012-07-18 Thread Jingoo Han
On Thursday, July 19, 2012 1:49 AM, o...@aepfle.de wrote: From: Tony Breeds t...@bakeyournoodle.com These devices are set to 640x480 by firmware, switch them to 800x600@60 so that the graphical installer can run on remote console. Reported by IBM during SLES10 SP2 beta testing:

Re: [PATCH] radeonfb: Add quirk for the graphics adapter in some JSxx

2012-07-18 Thread Tony Breeds
On Wed, Jul 18, 2012 at 06:49:04PM +0200, o...@aepfle.de wrote: Thanks for following this up. From: Tony Breeds t...@bakeyournoodle.com These devices are set to 640x480 by firmware, switch them to 800x600@60 so that the graphical installer can run on remote console. Reported by IBM

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

2012-07-18 Thread Wen Congyang
At 07/18/2012 06:16 PM, Yasuaki Ishimatsu Wrote: 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