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

2012-07-09 Thread Yasuaki Ishimatsu
Hi Wen, 2012/07/06 18:20, Wen Congyang wrote: > At 07/06/2012 04:27 PM, Yasuaki Ishimatsu Wrote: >> Hi Wen, >> >> 2012/07/04 19:01, Wen Congyang wrote: >>> At 07/04/2012 01:52 PM, Yasuaki Ishimatsu Wrote: Hi Wen, 2012/07/04 14:08, Wen Congyang wrote: > At 07/04/2012 12:45 PM, Ya

[PATCH 0/3] powerpc/mpic: Enhancements for FSL MPIC.

2012-07-09 Thread Varun Sethi
This patchset adds/fixes the following functionality specific to the FSL MPIC: 1. Fix support for timer group B interrupts. Previously these were not getting initialized. 2. Use the MPIC_LARGE_VECTORS flag while intializing FSL MPIC. This prevents us from eating in to hardware vector number space

[PATCH 1/3] powerpc/mpic: finish supporting timer group B on Freescale chips

2012-07-09 Thread Varun Sethi
Previously, these interrupts would be mapped, but the offset calculation was broken, and only the first group was initialized. Signed-off-by: Scott Wood --- arch/powerpc/include/asm/mpic.h |5 +++ arch/powerpc/sysdev/mpic.c | 58 --- 2 files changed

[PATCH 2/3 v2] powerpc/mpic: Use the MPIC_LARGE_VECTORS flag for FSL MPIC.

2012-07-09 Thread Varun Sethi
We should use the MPIC_LARG_VECTORS flag while intializing the MPIC. This prevents us from eating in to hardware vector number space (MSIs) while setting up internal sources. Signed-off-by: Varun Sethi --- arch/powerpc/sysdev/mpic.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) d

[PATCH 3/3 v2] powerpc/mpic: FSL MPIC error interrupt support.

2012-07-09 Thread Varun Sethi
All SOC device error interrupts are muxed and delivered to the core as a single MPIC error interrupt. Currently all the device drivers requiring access to device errors have to register for the MPIC error interrupt as a shared interrupt. With this patch we add interrupt demuxing capability in the

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

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

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

2012-07-09 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 CC: W

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

2012-07-09 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 v3 3/13] memory-hotplug : unify argument of firmware_map_add_early/hotplug

2012-07-09 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 v3 4/13] memory-hotplug : remove /sys/firmware/memmap/X sysfs

2012-07-09 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 v3 5/13] memory-hotplug : does not release memory region in PAGES_PER_SECTION chunks

2012-07-09 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 v3 6/13] memory-hotplug : add memory_block_release

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

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

2012-07-09 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 v3 9/13] memory-hotplug : move register_page_bootmem_info_node and put_page_bootmem for sparse-vmemmap

2012-07-09 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 v3 10/13] memory-hotplug : implement register_page_bootmem_info_section of sparse-vmemmap

2012-07-09 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 v3 11/13] memory-hotplug : free memmap of sparse-vmemmap

2012-07-09 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 v3 12/13] memory-hotplug : add node_device_release

2012-07-09 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 v3 13/13] memory-hotplug : remove sysfs file of node

2012-07-09 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 CC: Wen

[PATCH] PCI: Add pcie_irq=other to enable non MSI/INTx interrupt for port service driver

2012-07-09 Thread Shengzhou Liu
On some platforms, in RC mode, root port has neither MSI/MSI-X nor INTx interrupt generated, which are available only in EP mode on those platform. In this case, we try to use other interrupt if supported (i.e. there is the shared error interrupt on platform P1010, P3041, P4080, etc) to have AER, H

[PATCH 0/4] powerpc/booke: Modifications to fsl booke cpu setup code

2012-07-09 Thread Varun Sethi
Modifications are aimed specifically at the e500mc/e5500 cpu setup code. Following modifications are introduced by this patchset: 1. Move the E.HV check to the cpu setup code. Based on this check we manipulte the CPU_FTR_EMB_HV flag (added as a part of e500mc KVM support) in the cpu_spec st

[PATCH 1/4] powepc/booke: Separate out E.HV check and ivor setup code.

2012-07-09 Thread Varun Sethi
Move the E.HV check and CPU_FTR_EMB_HV flag manipulation to the cpu setup code. Create a separate routine for E.HV ivors setup. Signed-off-by: Varun Sethi --- arch/powerpc/kernel/cpu_setup_fsl_booke.S | 29 ++--- arch/powerpc/kernel/head_fsl_booke.S | 18

[PATCH 2/4] powerpc/booke: Merge the 32 bit e5500/e500mc cpu setup code.

2012-07-09 Thread Varun Sethi
Merge the 32 bit cpu setup code for e500mc/e5500 and define the "cpu_restore" routine (for e5500/e6500) only for the 64 bit case. The cpu_restore routine is used in the 64 bit case for setting up the secondary cores. Signed-off-by: Varun Sethi --- arch/powerpc/kernel/cpu_setup_fsl_booke.S |1

[PATCH 3/4] powerpc/booke: Separate out restore_e5500/setup_e5500 routines.

2012-07-09 Thread Varun Sethi
For the 64 bit case separate out e5500 cpu_setup and cpu_restore functions. The cpu_setup function (for the primary core) is passed the cpu_spec pointer, which is not there in case of the cpu_restore function. Also, in our case we will have to manipulate the CPU_FTR_EMB_HV flag on the the primary c

[PATCH 4/4] powerpc/booke: Add CPU_FTR_EMB_HV check for e5500.

2012-07-09 Thread Varun Sethi
Added CPU_FTR_EMB_HV feature check for e550. Signed-off-by: Varun Sethi Signed-off-by: Mihai Caraman --- arch/powerpc/kernel/cpu_setup_fsl_booke.S |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/kernel/cpu_setup_fsl_booke.S b/arch/powerpc/kernel/cpu_s

[PATCH -V3 0/11] arch/powerpc: Add 64TB support to ppc64

2012-07-09 Thread Aneesh Kumar K.V
Hi, This patchset include patches for supporting 64TB with ppc64. I haven't booted this on hardware with 64TB memory yet. But they boot fine on real hardware with less memory. Changes extend VSID bits to 38 bits for a 256MB segment and 26 bits for 1TB segments. Changes from V2: * Fix few FIXMEs

[PATCH -V3 03/11] arch/powerpc: Convert virtual address to vpn

2012-07-09 Thread Aneesh Kumar K.V
From: "Aneesh Kumar K.V" This patch convert different functions to take virtual page number instead of virtual address. Virtual page number is virtual address shifted right by VPN_SHIFT (12) bits. This enable us to have an address range of upto 76 bits. Signed-off-by: Aneesh Kumar K.V --- arch

[PATCH -V3 05/11] arch/powerpc: remove masking top 16 bit of va in tlb invalidate

2012-07-09 Thread Aneesh Kumar K.V
From: "Aneesh Kumar K.V" ISA doc doesn't talk about this. As per ISA doc for a 4K page tlbie RB RS " The Abbreviated Virtual Address (AVA) field in register RB must contain bits 14:65 of the virtual address translated by the TLB entry to be invalidated." That indicate we should not ma

[PATCH -V3 04/11] arch/powerpc: Rename va to vpn

2012-07-09 Thread Aneesh Kumar K.V
From: "Aneesh Kumar K.V" Rename the variable to better reflect the values. No functional change in this patch. Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/include/asm/kvm_book3s.h |2 +- arch/powerpc/include/asm/machdep.h |6 +-- arch/powerpc/include/asm/mmu-hash64.h |

[PATCH -V3 02/11] arch/powerpc: Simplify hpte_decode

2012-07-09 Thread Aneesh Kumar K.V
From: "Aneesh Kumar K.V" This patch simplify hpte_decode for easy switching of virtual address to virtual page number in the later patch Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/mm/hash_native_64.c | 49 ++ 1 file changed, 28 insertions(+), 21 dele

[PATCH -V3 06/11] arch/powerpc: Make KERN_VIRT_SIZE not dependend on PGTABLE_RANGE

2012-07-09 Thread Aneesh Kumar K.V
From: "Aneesh Kumar K.V" As we keep increasing PGTABLE_RANGE we need not increase the virual map area for kernel. Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/include/asm/pgtable-ppc64.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/include/asm/pgtable

[PATCH -V3 01/11] arch/powerpc: Use hpt_va to compute virtual address

2012-07-09 Thread Aneesh Kumar K.V
From: "Aneesh Kumar K.V" Don't open code the same Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/platforms/cell/beat_htab.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/cell/beat_htab.c b/arch/powerpc/platforms/cell/beat_htab.c index 943c9d3.

[PATCH -V3 07/11] arch/powerpc: Increase the slice range to 64TB

2012-07-09 Thread Aneesh Kumar K.V
From: "Aneesh Kumar K.V" This patch makes the high psizes mask as an unsigned char array so that we can have more than 16TB. Currently we support upto 64TB Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/include/asm/mmu-hash64.h |6 ++- arch/powerpc/include/asm/page_64.h|6 ++- ar

[PATCH -V3 10/11] arch/powerpc: Use 32bit array for slb cache

2012-07-09 Thread Aneesh Kumar K.V
From: "Aneesh Kumar K.V" With larger vsid we need to track more bits of ESID in slb cache for slb invalidate. Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/include/asm/paca.h |2 +- arch/powerpc/mm/slb_low.S |8 2 files changed, 5 insertions(+), 5 deletions(-) diff -

[PATCH -V3 11/11] arch/powerpc: Add 64TB support

2012-07-09 Thread Aneesh Kumar K.V
From: "Aneesh Kumar K.V" Increase max addressable range to 64TB. This is not tested on real hardware yet. Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/include/asm/mmu-hash64.h|8 arch/powerpc/include/asm/pgtable-ppc64-4k.h |2 +- arch/powerpc/include/asm/pgtable-p

[PATCH -V3 09/11] arch/powerpc: Use 50 bits of VSID in slbmte

2012-07-09 Thread Aneesh Kumar K.V
From: "Aneesh Kumar K.V" Increase the number of valid VSID bits in slbmte instruction. We will use the new bits when we increase valid VSID bits. Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/mm/slb_low.S |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerp

[PATCH -V3 08/11] arch/powerpc: Make some of the PGTABLE_RANGE dependency explicit

2012-07-09 Thread Aneesh Kumar K.V
From: "Aneesh Kumar K.V" slice array size and slice mask size depend on PGTABLE_RANGE. We can't directly include pgtable.h in these header because there is a circular dependency. So add compile time check for these values. Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/include/asm/mmu-hash64

Re: [PATCH SLAB 1/2 v3] duplicate the cache name in SLUB's saved_alias list, SLAB, and SLOB

2012-07-09 Thread Christoph Lameter
> I was pointed by Glauber to the slab common code patches. I need some > more time to read the patches. Now I think the slab/slot changes in this > v3 are not needed, and can be ignored. That may take some kernel cycles. You have a current issue here that needs to be fixed. > > down_write(&

Re: [PATCH 1/3] powerpc/mpic: finish supporting timer group B on Freescale chips

2012-07-09 Thread Kumar Gala
On Jul 9, 2012, at 3:45 AM, Varun Sethi wrote: > Previously, these interrupts would be mapped, but the offset > calculation was broken, and only the first group was initialized. > > Signed-off-by: Scott Wood > --- > arch/powerpc/include/asm/mpic.h |5 +++ > arch/powerpc/sysdev/mpic.c |

Re: [PATCH 2/3 v2] powerpc/mpic: Use the MPIC_LARGE_VECTORS flag for FSL MPIC.

2012-07-09 Thread Kumar Gala
On Jul 9, 2012, at 3:46 AM, Varun Sethi wrote: > We should use the MPIC_LARG_VECTORS flag while intializing the MPIC. > This prevents us from eating in to hardware vector number space (MSIs) > while setting up internal sources. > > Signed-off-by: Varun Sethi > --- > arch/powerpc/sysdev/mpic.c

RE: [PATCH 2/3 v2] powerpc/mpic: Use the MPIC_LARGE_VECTORS flag for FSL MPIC.

2012-07-09 Thread Sethi Varun-B16395
> -Original Message- > From: Kumar Gala [mailto:ga...@kernel.crashing.org] > Sent: Monday, July 09, 2012 7:58 PM > To: Sethi Varun-B16395 > Cc: linuxppc-dev@lists.ozlabs.org > Subject: Re: [PATCH 2/3 v2] powerpc/mpic: Use the MPIC_LARGE_VECTORS flag > for FSL MPIC. > > > On Jul 9, 2012,

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

2012-07-09 Thread Christoph Lameter
On Mon, 9 Jul 2012, Yasuaki Ishimatsu wrote: > Even if you apply these patches, you cannot remove the physical memory > completely since these patches are still under development. I want you to > cooperate to improve the physical memory hot-remove. So please review these > patches and give your c

Re: [PATCH] PCI: Add pcie_irq=other to enable non MSI/INTx interrupt for port service driver

2012-07-09 Thread Scott Wood
On 07/09/2012 05:49 AM, Shengzhou Liu wrote: > On some platforms, in RC mode, root port has neither MSI/MSI-X nor INTx > interrupt generated, which are available only in EP mode on those platform. > In this case, we try to use other interrupt if supported (i.e. there is the > shared error interrupt

Re: [PATCH 1/3] powerpc/mpic: finish supporting timer group B on Freescale chips

2012-07-09 Thread Scott Wood
On 07/09/2012 09:12 AM, Kumar Gala wrote: > > On Jul 9, 2012, at 3:45 AM, Varun Sethi wrote: > >> Previously, these interrupts would be mapped, but the offset >> calculation was broken, and only the first group was initialized. >> >> Signed-off-by: Scott Wood >> --- >> arch/powerpc/include/asm/m

Re: [PATCH v3] printk: Have printk() never buffer its data

2012-07-09 Thread Greg Kroah-Hartman
On Sun, Jul 08, 2012 at 07:55:55PM +0200, Kay Sievers wrote: > On Sat, 2012-07-07 at 07:04 +1000, Michael Neuling wrote: > > Whole kmsg below. > > I guess I have an idea now what's going on. > > > 4,47,0;WARNING: at > > /scratch/mikey/src/linux-ozlabs/arch/powerpc/sysdev/xics/xics-common.c:105 >

Re: [PATCH v3] printk: Have printk() never buffer its data

2012-07-09 Thread Joe Perches
On Mon, 2012-07-09 at 10:09 -0700, Greg Kroah-Hartman wrote: > is it ok if we > just merge this in 3.6-rc1 and backport it to 3.5.1 if it looks ok > there? I'd prefer it get accepted now so that refactoring the printk subsystem could occur for 3.6. Another option would be to revert all Kay's chan

Re: [PATCH 1/3] powerpc/mpic: finish supporting timer group B on Freescale chips

2012-07-09 Thread Kumar Gala
On Jul 9, 2012, at 11:43 AM, Scott Wood wrote: > On 07/09/2012 09:12 AM, Kumar Gala wrote: >> >> On Jul 9, 2012, at 3:45 AM, Varun Sethi wrote: >> >>> Previously, these interrupts would be mapped, but the offset >>> calculation was broken, and only the first group was initialized. >>> >>> Sign

Re: [PATCH 1/3] powerpc/mpic: finish supporting timer group B on Freescale chips

2012-07-09 Thread Scott Wood
On 07/09/2012 12:36 PM, Kumar Gala wrote: > > On Jul 9, 2012, at 11:43 AM, Scott Wood wrote: > >> On 07/09/2012 09:12 AM, Kumar Gala wrote: >>> >>> On Jul 9, 2012, at 3:45 AM, Varun Sethi wrote: >>> Previously, these interrupts would be mapped, but the offset calculation was broken, and

Re: [PATCH 3/3 v2] powerpc/mpic: FSL MPIC error interrupt support.

2012-07-09 Thread Kumar Gala
On Jul 9, 2012, at 3:47 AM, Varun Sethi wrote: > All SOC device error interrupts are muxed and delivered to the core as a > single > MPIC error interrupt. Currently all the device drivers requiring access to > device > errors have to register for the MPIC error interrupt as a shared interrupt.

PCIE Hotplug on P2010(mpc85xx) ?

2012-07-09 Thread Joakim Tjernlund
Trying to get the pciehp module to work on the above system. I can see it register but then nothing happens. I suspect there is something missing that I don't see ATM. Any clues what to look for? Jocke ___ Linuxppc-dev mailing list Linuxppc-dev@lists.

Re: [PATCH 3/3 v2] powerpc/mpic: FSL MPIC error interrupt support.

2012-07-09 Thread Scott Wood
On 07/09/2012 02:03 PM, Kumar Gala wrote: > > On Jul 9, 2012, at 3:47 AM, Varun Sethi wrote: > >> +int mpic_err_int_init(struct mpic *mpic, irq_hw_number_t irqnum) >> +{ > > Why can't we do this during mpic_init() time? Are you willing to hardcode that IRQ 16 is the error interrupt, without wai

Re: [PATCH v3] printk: Have printk() never buffer its data

2012-07-09 Thread Joe Perches
On Sun, 2012-07-08 at 19:55 +0200, Kay Sievers wrote: > At the same time the CPU#2 prints the same warning with a continuation > line, but the buffer from CPU#1 can not be flushed to the console, nor > can the continuation line printk()s from CPU#2 be merged at this point. > The consoles are still

Re: [PATCH v3] printk: Have printk() never buffer its data

2012-07-09 Thread Kay Sievers
On Mon, Jul 9, 2012 at 11:42 PM, Joe Perches wrote: > On Sun, 2012-07-08 at 19:55 +0200, Kay Sievers wrote: > >> At the same time the CPU#2 prints the same warning with a continuation >> line, but the buffer from CPU#1 can not be flushed to the console, nor >> can the continuation line printk()s f

Re: [PATCH v3] printk: Have printk() never buffer its data

2012-07-09 Thread Joe Perches
On Tue, 2012-07-10 at 00:10 +0200, Kay Sievers wrote: > On Mon, Jul 9, 2012 at 11:42 PM, Joe Perches wrote: > > On Sun, 2012-07-08 at 19:55 +0200, Kay Sievers wrote: > > > >> At the same time the CPU#2 prints the same warning with a continuation > >> line, but the buffer from CPU#1 can not be flus

Re: [PATCH v3] printk: Have printk() never buffer its data

2012-07-09 Thread Michael Neuling
Greg Kroah-Hartman wrote: > On Sun, Jul 08, 2012 at 07:55:55PM +0200, Kay Sievers wrote: > > On Sat, 2012-07-07 at 07:04 +1000, Michael Neuling wrote: > > > Whole kmsg below. > > > > I guess I have an idea now what's going on. > > > > > 4,47,0;WARNING: at > > > /scratch/mikey/src/linux-ozlabs/

Re: [PATCH v3] printk: Have printk() never buffer its data

2012-07-09 Thread Kay Sievers
On Tue, Jul 10, 2012 at 12:29 AM, Joe Perches wrote: > On Tue, 2012-07-10 at 00:10 +0200, Kay Sievers wrote: >> On Mon, Jul 9, 2012 at 11:42 PM, Joe Perches wrote: >> > On Sun, 2012-07-08 at 19:55 +0200, Kay Sievers wrote: >> > >> >> At the same time the CPU#2 prints the same warning with a conti

Re: [PATCH -V3 03/11] arch/powerpc: Convert virtual address to vpn

2012-07-09 Thread Stephen Rothwell
Hi Aneesh, On Mon, 9 Jul 2012 18:43:33 +0530 "Aneesh Kumar K.V" wrote: > > diff --git a/arch/powerpc/include/asm/mmu-hash64.h > b/arch/powerpc/include/asm/mmu-hash64.h > index 1c65a59..1c984a6 100644 > --- a/arch/powerpc/include/asm/mmu-hash64.h > +++ b/arch/powerpc/include/asm/mmu-hash64.h >

Re: [PATCH -V3 03/11] arch/powerpc: Convert virtual address to vpn

2012-07-09 Thread Stephen Rothwell
Hi Aneesh, On Mon, 9 Jul 2012 18:43:33 +0530 "Aneesh Kumar K.V" wrote: > > diff --git a/arch/powerpc/mm/hash_native_64.c > b/arch/powerpc/mm/hash_native_64.c > index 660b8bb..308e29d 100644 > --- a/arch/powerpc/mm/hash_native_64.c > +++ b/arch/powerpc/mm/hash_native_64.c > @@ -39,22 +39,33 @@

Re: [PATCH v3] printk: Have printk() never buffer its data

2012-07-09 Thread Joe Perches
On Tue, 2012-07-10 at 00:40 +0200, Kay Sievers wrote: > On Tue, Jul 10, 2012 at 12:29 AM, Joe Perches wrote: > > On Tue, 2012-07-10 at 00:10 +0200, Kay Sievers wrote: > >> On Mon, Jul 9, 2012 at 11:42 PM, Joe Perches wrote: > >> > On Sun, 2012-07-08 at 19:55 +0200, Kay Sievers wrote: > >> > > >>

Re: [PATCH v3] printk: Have printk() never buffer its data

2012-07-09 Thread Joe Perches
On Mon, 2012-07-09 at 16:32 -0700, Joe Perches wrote: > Then you've changed semantics and I think you need to > fix it. > > A dev_ call is not guaranteed to be a complete > message. > > There are dev_ and netdev_ calls > followed by pr_cont. > > Maybe these could be fixed up and then they could

Re: [PATCH SLAB 1/2 v3] duplicate the cache name in SLUB's saved_alias list, SLAB, and SLOB

2012-07-09 Thread Li Zhong
On Mon, 2012-07-09 at 09:01 -0500, Christoph Lameter wrote: > > I was pointed by Glauber to the slab common code patches. I need some > > more time to read the patches. Now I think the slab/slot changes in this > > v3 are not needed, and can be ignored. > > That may take some kernel cycles. You ha

Re: [PATCH 3/3 v2] powerpc/mpic: FSL MPIC error interrupt support.

2012-07-09 Thread Kumar Gala
On Jul 9, 2012, at 3:22 PM, Scott Wood wrote: > On 07/09/2012 02:03 PM, Kumar Gala wrote: >> >> On Jul 9, 2012, at 3:47 AM, Varun Sethi wrote: >> >>> +int mpic_err_int_init(struct mpic *mpic, irq_hw_number_t irqnum) >>> +{ >> >> Why can't we do this during mpic_init() time? > > Are you willin

Semantics of lv1_pause()

2012-07-09 Thread Benjamin Herrenschmidt
Hi Geoff ! Do you have access to any kind of documentation regarding the precise semantics of lv1_pause() ? I'm fixing various issues with our idle loops, among other things, because we are soft-disabled when we hit ppc_md.powersave() but not hard-disabled, there could be an interrupt marked as p

[PATCH] More fixes for lazy IRQ vs. idle

2012-07-09 Thread Benjamin Herrenschmidt
Looks like we still have issues with pSeries and Cell idle code vs. the lazy irq state. In fact, the reset fixes that went upstream are exposing the problem more by causing BUG_ON() to trigger (which this patch turns into a WARN_ON instead). We need to be careful when using a variant of low power

Re: [PATCH] More fixes for lazy IRQ vs. idle

2012-07-09 Thread Michael Neuling
Benjamin Herrenschmidt wrote: > Looks like we still have issues with pSeries and Cell idle code > vs. the lazy irq state. In fact, the reset fixes that went upstream > are exposing the problem more by causing BUG_ON() to trigger (which > this patch turns into a WARN_ON instead). Do we need to cc

Re: [PATCH -V3 03/11] arch/powerpc: Convert virtual address to vpn

2012-07-09 Thread Aneesh Kumar K.V
Stephen Rothwell writes: > Hi Aneesh, > > On Mon, 9 Jul 2012 18:43:33 +0530 "Aneesh Kumar K.V" > wrote: >> >> diff --git a/arch/powerpc/include/asm/mmu-hash64.h >> b/arch/powerpc/include/asm/mmu-hash64.h >> index 1c65a59..1c984a6 100644 >> --- a/arch/powerpc/include/asm/mmu-hash64.h >> +++ b/

RE: [PATCH] PCI: Add pcie_irq=other to enable non MSI/INTx interrupt for port service driver

2012-07-09 Thread Liu Shengzhou-B36685
> -Original Message- > From: Wood Scott-B07421 > Sent: Tuesday, July 10, 2012 12:39 AM > To: Liu Shengzhou-B36685 > Cc: bhelg...@google.com; linux-...@vger.kernel.org; linuxppc- > d...@lists.ozlabs.org > Subject: Re: [PATCH] PCI: Add pcie_irq=other to enable non MSI/INTx interrupt > for p

Re: [PATCH -V3 03/11] arch/powerpc: Convert virtual address to vpn

2012-07-09 Thread Aneesh Kumar K.V
Stephen Rothwell writes: > Hi Aneesh, > > On Mon, 9 Jul 2012 18:43:33 +0530 "Aneesh Kumar K.V" > wrote: >> >> diff --git a/arch/powerpc/mm/hash_native_64.c >> b/arch/powerpc/mm/hash_native_64.c >> index 660b8bb..308e29d 100644 >> --- a/arch/powerpc/mm/hash_native_64.c >> +++ b/arch/powerpc/mm

[PATCH 0/3] Raid: enable talitos xor offload for improving performance

2012-07-09 Thread Qiang Liu
The following 4 patches enabling fsl-dma and talitos offload raid operations for improving raid performance and balancing CPU load. Write performance will be improved by 40% tested by iozone. CPU load will be reduced by 8%. Qiang Liu (4): Talitos: move the data structure into header file

[PATCH 0/3] Raid: enable talitos xor offload for improving performance

2012-07-09 Thread Qiang Liu
The following 4 patches enabling fsl-dma and talitos offload raid operations for improving raid performance and balancing CPU load. Write performance will be improved by 40% tested by iozone. CPU load will be reduced by 8%. Qiang Liu (4): Talitos: move the data structure into header file

[PATCH 1/4] Talitos: move the data structure into header file

2012-07-09 Thread Qiang Liu
Move the declaration of talitos data structure into talitos.h. Cc: Herbert Xu Cc: David S. Miller Signed-off-by: Qiang Liu --- drivers/crypto/talitos.c | 108 -- drivers/crypto/talitos.h | 108 ++ 2 files

[PATCH 2/4] Talitos: Support for async_tx XOR offload

2012-07-09 Thread Qiang Liu
Expose Talitos's XOR functionality to be used for RAID parity calculation via the Async_tx layer. Cc: Herbert Xu Cc: David S. Miller Signed-off-by: Dipen Dudhat Signed-off-by: Maneesh Gupta Signed-off-by: Kim Phillips Signed-off-by: Vishnu Suresh Signed-off-by: Qiang Liu --- drivers/crypto

[PATCH 3/4] fsl-dma: support attribute of DMA_MEMORY when async_tx enabled

2012-07-09 Thread Qiang Liu
- delete attribute of DMA_INTERRUPT because fsl-dma doesn't support this function, exception will be thrown if talitos is used to compute xor at the same time; - change the release process of dma descriptor for avoiding exception when enable config NET_DMA, release dma descriptor from 1st to last s

[PATCH 4/4] Talitos: fix the issue of dma memory leak

2012-07-09 Thread Qiang Liu
An error will be happened when test with mass data: "DMA-API: device driver tries to sync DMA memory it has not allocated"; "DMA-API: debugging out of memory - disabling" dma mapping memory of request->desc is not released by right device, it should be private->dev but not dev; Cc: Herbert Xu Cc:

[PATCH 0/3] Raid: enable talitos xor offload for improving performance

2012-07-09 Thread Qiang Liu
The following 4 patches enabling fsl-dma and talitos offload raid operations for improving raid performance and balancing CPU load. Write performance will be improved by 40% tested by iozone. CPU load will be reduced by 8%. Qiang Liu (4): Talitos: move the data structure into header file

[PATCH 1/2] powerpc/mpc8572ds: Fix eTSEC is not available on core1 of AMP boot issue

2012-07-09 Thread Jia Hongtao
The issue log on core1 is: root@mpc8572ds:~# ifconfig eth0 10.192.208.244 net eth0: could not attach to PHY SIOCSIFFLAGS: No such device To attach PHY node mdio@24520 should not be disabled in dts of core1. Because all PHYs are controlled through this node as follows: mdio@24520 { phy0: e

[PATCH 2/2] powerpc/mpc8572ds: Update the MSI interrupts into 4-cell format

2012-07-09 Thread Jia Hongtao
With 2-cell format interrupts of MSI PCIe ethernet card can not work. Signed-off-by: Li Yang Signed-off-by: Jia Hongtao --- arch/powerpc/boot/dts/mpc8572ds_camp_core0.dts |8 arch/powerpc/boot/dts/mpc8572ds_camp_core1.dts |8 2 files changed, 8 insertions(+), 8 deletio