Re: [PATCH V3] fsl-sata: add support for interrupt coalsecing feature

2012-02-14 Thread Li Yang
On Wed, Feb 15, 2012 at 3:40 PM, Qiang Liu wrote: > Adds support for interrupt coalescing feature to reduce interrupt events. > Provides a mechanism of adjusting coalescing count and timeout tick by sysfs > at runtime, so that tradeoff of latency and CPU load can be made depending > on different a

[PATCH V3] fsl-sata: add support for interrupt coalsecing feature

2012-02-14 Thread Qiang Liu
Adds support for interrupt coalescing feature to reduce interrupt events. Provides a mechanism of adjusting coalescing count and timeout tick by sysfs at runtime, so that tradeoff of latency and CPU load can be made depending on different applications. Signed-off-by: Qiang Liu --- change for V3

RE: [PATCH V2 RESEND] fsl-sata: I/O load balancing

2012-02-14 Thread Liu Qiang-B32616
> -Original Message- > From: linux-ide-ow...@vger.kernel.org [mailto:linux-ide- > ow...@vger.kernel.org] On Behalf Of Li Yang > Sent: Wednesday, February 15, 2012 3:22 PM > To: Liu Qiang-B32616 > Cc: jgar...@pobox.com; linux-...@vger.kernel.org; linuxppc- > d...@lists.ozlabs.org; linux-ker.

Re: [PATCH V2 RESEND] fsl-sata: I/O load balancing

2012-02-14 Thread Li Yang
On Wed, Feb 15, 2012 at 1:49 PM, Qiang Liu wrote: Hi Liu Qiang, The patch is fine except for the title and comment. It's too vague to say I/O load balancing. You need explicit description like "add interrupt coalescing support" as title. > Reduce interrupt signals through reset Interrupt Coal

[PATCH 1/2 v5] powerpc/85xx: Add Quicc Engine support for p1025rdb

2012-02-14 Thread Zhicheng Fan
From: Zhicheng Fan Signed-off-by: Zhicheng Fan --- arch/powerpc/platforms/85xx/mpc85xx_rdb.c | 78 - 1 files changed, 77 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/platforms/85xx/mpc85xx_rdb.c b/arch/powerpc/platforms/85xx/mpc85xx_rdb.c index e95aef7

[PATCH 2/2 v5] powerpc/85xx: Abstract common define of signal multiplex control for qe

2012-02-14 Thread Zhicheng Fan
From: Zhicheng Fan The mpc85xx_rdb and mpc85xx_mds have commom define of signal multiplex for qe, so they need to go in common header, the patch abstract them to fsl_guts.h Signed-off-by: Zhicheng Fan --- arch/powerpc/include/asm/fsl_guts.h | 20 +++- arch/powerpc/plat

[PATCH V2 RESEND] fsl-sata: I/O load balancing

2012-02-14 Thread Qiang Liu
Reduce interrupt signals through reset Interrupt Coalescing Control Reg. Provide dynamic method to adjust interrupt signals and timer ticks by sysfs. It is a tradeoff for different applications. Signed-off-by: Qiang Liu --- change for V2 support dynamic config interrupt coalescing registe

[PATCH 6/12] arch/powerpc: remove references to cpu_*_map.

2012-02-14 Thread Rusty Russell
From: Rusty Russell This has been obsolescent for a while; time for the final push. Signed-off-by: Rusty Russell Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: linuxppc-dev@lists.ozlabs.org --- arch/powerpc/platforms/wsp/smp.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH 3/3] powerpc/pci: Make pci_probe_only default to 0

2012-02-14 Thread Benjamin Herrenschmidt
pci_probe_only is set on ppc64 to prevent resource re-allocation by the core. It's meant to be used in very specific circumstances such as when operating under a hypervisor that may prevent such re-allocation. Instead of default to 1, we make it default to 0 and explcitiely set it in the few cases

[PATCH 2/3] powerpc/fsl/pci: Improve PCIe host bridge quirks

2012-02-14 Thread Benjamin Herrenschmidt
The current quirk is a header quirk which runs after pci_setup_device(). This means that we can warnings from the later due to an unrecognized class code, and some parts of pci_dev aren't setup properly. On the other hand, we somewhat rely on that later on as this causes "pci_read_bases" to not be

[PATCH 1/3] powerpc/fsl/pci: Fix PCIe fixup regression

2012-02-14 Thread Benjamin Herrenschmidt
Upstream changes to the way PHB resources are registered broke the resource fixup for FSL boards. We can no longer rely on the resource pointer array for the PHB's pci_bus structure, so let's leave it alone and go straight for the PHB resources instead. This also makes the code generally more read

Re: [RFC PATCH v6 00/10] fadump: Firmware-assisted dump support for Powerpc.

2012-02-14 Thread Paul Mackerras
On Sat, Dec 10, 2011 at 12:19:59PM +0530, Mahesh J Salgaonkar wrote: > The most of the code implementation has been adapted from phyp assisted dump > implementation written by Linas Vepstas and Manish Ahuja. When you repost the series, please be explicit about what the relationship between the ne

RE: [PATCH] powerpc/usb: fix issue of CPU halt when missing USB PHY clock

2012-02-14 Thread Benjamin Herrenschmidt
> > > + if (!(in_be32(non_ehci + FSL_SOC_USB_CTRL) & CTRL_PHY_CLK_VALID)) > > { > > > + printk(KERN_WARNING "fsl-ehci: USB PHY clock invalid\n"); > > > + return -1; > > > > Please return a proper error code. -ENODEV ? > > [Shengzhou] Ok, updated in v2, thanks. > > Note that I ju

[PATCH] powerpc: remove legacy iSeries from ppc64_defconfig

2012-02-14 Thread Stephen Rothwell
Since we are heading towards removing the Legacy iSeries platform, start by no longer building it for ppc64_defconfig. Signed-off-by: Stephen Rothwell --- arch/powerpc/configs/ppc64_defconfig |5 - 1 files changed, 0 insertions(+), 5 deletions(-) diff --git a/arch/powerpc/configs/ppc64_

[PATCH v4] powerpc: Rework lazy-interrupt handling

2012-02-14 Thread Benjamin Herrenschmidt
The current implementation of lazy interrupts handling has some issues that this tries to address. Except on iSeries, we don't do the various workarounds we need to do on re-enable when returning from an interrupt, which can do an implicit re-enable, and thus we may still lose or get delayed decre

Re: [PATCH v3] powerpc: Rework lazy-interrupt handling

2012-02-14 Thread Benjamin Herrenschmidt
On Tue, 2012-02-14 at 17:46 +1100, Benjamin Herrenschmidt wrote: > The current implementation of lazy interrupts handling has some > issues that this tries to address. > > Except on iSeries, we don't do the various workarounds we need to > do on re-enable when returning from an interrupt, which ca

Re: smp: Start up non-boot CPUs asynchronously

2012-02-14 Thread Benjamin Herrenschmidt
On Tue, 2012-02-14 at 15:18 +0530, Srivatsa S. Bhat wrote: > > 2. Just below that we have smp_cpus_done(setup_max_cpus); and this > > translates > > to native_smp_cpus_done() under x86, which calls impress_friends(). > > And that means, the bogosum calculation and the total activated processor >

Re: smp: Start up non-boot CPUs asynchronously

2012-02-14 Thread Arjan van de Ven
On 2/14/2012 11:57 AM, Srivatsa S. Bhat wrote: >> In addition to this, the reality is that the whole "bring cpus up" >> sequence needs to be changed; the current one is very messy and requires >> the hotplug lock for the whole bring up of each individual cpu... which >> is a very unfortunate desig

Re: smp: Start up non-boot CPUs asynchronously

2012-02-14 Thread Peter Zijlstra
On Wed, 2012-02-15 at 01:27 +0530, Srivatsa S. Bhat wrote: > [Small note, it appears as if the last 2 of your replies to this > thread > didn't reach LKML.] because he used html mail, LKML drops those.. IIRC you can tell K-9 not to use html cruft, but then I stopped trying to pretend you can ema

Re: smp: Start up non-boot CPUs asynchronously

2012-02-14 Thread Srivatsa S. Bhat
[Small note, it appears as if the last 2 of your replies to this thread didn't reach LKML.] On 02/14/2012 08:01 PM, Arjan van de Ven wrote: > one coments; will comment more when I get to work > > On Tue, Feb 14, 2012 at 1:48 AM, Srivatsa S. Bhat > > 7. And whichever code between smp_init() an

Re: smp: Start up non-boot CPUs asynchronously

2012-02-14 Thread Srivatsa S. Bhat
On 02/14/2012 03:18 PM, Srivatsa S. Bhat wrote: > On 02/14/2012 01:47 PM, Srivatsa S. Bhat wrote: > >> On 01/31/2012 09:54 PM, Arjan van de Ven wrote: >> >>> From ee65be59057c920042747d46dc174c5a5a56c744 Mon Sep 17 00:00:00 2001 >>> From: Arjan van de Ven >>> Date: Mon, 30 Jan 2012 20:44:51 -080

[PATCH] of: Only compile OF_DYNAMIC on PowerPC pseries and iseries

2012-02-14 Thread Grant Likely
Only two architectures use the OF node reference counting and reclaim bits. There is no need to compile it for the rest of the PowerPC platforms or for any of the other architectures. This patch makes iseries and pseries select CONFIG_OF_DYNAMIC, and makes it default to off for everything else. I

Re: smp: Start up non-boot CPUs asynchronously

2012-02-14 Thread Arjan van de Ven
Its more than acpi ... machine checks can do it too etc -- Sent from my Android phone with K-9 Mail. Please excuse my brevity. Peter Zijlstra wrote: On Tue, 2012-02-14 at 06:31 -0800, Arjan van de Ven wrote: > > frankly, such code HAS to worry about cpus going online and offline > even today;

Re: smp: Start up non-boot CPUs asynchronously

2012-02-14 Thread Peter Zijlstra
On Tue, 2012-02-14 at 06:31 -0800, Arjan van de Ven wrote: > > frankly, such code HAS to worry about cpus going online and offline > even today; the firmware, at least on X86, can start taking cores > offline/online once ACPI is initialized (as controlled by a data > center manager from outsid

Re: smp: Start up non-boot CPUs asynchronously

2012-02-14 Thread Arjan van de Ven
one coments; will comment more when I get to work On Tue, Feb 14, 2012 at 1:48 AM, Srivatsa S. Bhat 7. And whichever code between smp_init() and async_synchronize_full() didn't > > care about CPU hotplug till today but depended on all cpus being online > must > suddenly start worrying about CPU H

[PATCH 26/40] powerpc: Use set_current_blocked() and block_sigmask()

2012-02-14 Thread Matt Fleming
From: Matt Fleming As described in e6fa16ab ("signal: sigprocmask() should do retarget_shared_pending()") the modification of current->blocked is incorrect as we need to check whether the signal we're about to block is pending in the shared queue. Also, use the new helper function introduced in

[PATCH 1/2 v5] powerpc/85xx: Add Quicc Engine support for p1025rdb

2012-02-14 Thread Zhicheng Fan
From: Zhicheng Fan Signed-off-by: Zhicheng Fan --- arch/powerpc/platforms/85xx/mpc85xx_rdb.c | 78 - 1 files changed, 77 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/platforms/85xx/mpc85xx_rdb.c b/arch/powerpc/platforms/85xx/mpc85xx_rdb.c index e95aef7

[PATCH 2/2 v5] powerpc/85xx: Abstract common define of signal multiplex control for qe

2012-02-14 Thread Zhicheng Fan
From: Zhicheng Fan The mpc85xx_rdb and mpc85xx_mds have commom define of signal multiplex for qe, so they need to go in common header, the patch abstract them to fsl_guts.h Signed-off-by: Zhicheng Fan --- arch/powerpc/include/asm/fsl_guts.h | 18 ++ arch/powerpc/platfo

Re: smp: Start up non-boot CPUs asynchronously

2012-02-14 Thread Srivatsa S. Bhat
On 02/14/2012 01:47 PM, Srivatsa S. Bhat wrote: > On 01/31/2012 09:54 PM, Arjan van de Ven wrote: > >> From ee65be59057c920042747d46dc174c5a5a56c744 Mon Sep 17 00:00:00 2001 >> From: Arjan van de Ven >> Date: Mon, 30 Jan 2012 20:44:51 -0800 >> Subject: [PATCH] smp: Start up non-boot CPUs asynchr

ignore [PATCH 1/2 v4] powerpc/85xx: Add Quicc Engine support for p1025rdb

2012-02-14 Thread Zhicheng Fan
hi all, ignore v4 patche for qe -- Zhicheng Fan ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

[PATCH 2/2 v4] powerpc/85xx: Abstract common define of signal multiplex control for qe

2012-02-14 Thread Zhicheng Fan
From: Zhicheng Fan The mpc85xx_rdb and mpc85xx_mds have commom define of signal multiplex for qe, so they need to go in common header, the patch abstract them to fsl_guts.h Signed-off-by: Zhicheng Fan --- arch/powerpc/include/asm/fsl_guts.h | 18 ++ arch/powerpc/platfo

[PATCH 1/2 v4] powerpc/85xx: Add Quicc Engine support for p1025rdb

2012-02-14 Thread Zhicheng Fan
From: Zhicheng Fan Signed-off-by: Zhicheng Fan --- arch/powerpc/platforms/85xx/mpc85xx_rdb.c | 78 - 1 files changed, 77 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/platforms/85xx/mpc85xx_rdb.c b/arch/powerpc/platforms/85xx/mpc85xx_rdb.c index e95aef7

[RFC] usb: Fix build error due to dma_mask is not at pdev_archdata at ARM

2012-02-14 Thread Peter Chen
When build i.mx platform with imx_v6_v7_defconfig, and after adding USB Gadget support, it has below build error: CC drivers/usb/host/fsl-mph-dr-of.o drivers/usb/host/fsl-mph-dr-of.c: In function 'fsl_usb2_device_register': drivers/usb/host/fsl-mph-dr-of.c:97: error: 'struct pdev_archdata' ha

[PATCH] powerpc/85xx:Add PSC9131 RDB Support

2012-02-14 Thread Prabhakar Kushwaha
PSC9131RDB is a Freescale reference design board for PSC9131 SoC.The PSC9131 is integrated SoC that targets Femto base station market. It combines Power Architecture e500v2 and DSP StarCore SC3850 core technologies with MAPLE-B2F baseband acceleration processing elements. -The PSC9131 SoC incl

[RFC] usb: Fix build error due to dma_mask is not at pdev_archdata at ARM

2012-02-14 Thread Peter Chen
When build i.mx platform with imx_v6_v7_defconfig, and after adding USB Gadget support, it has below build error: CC drivers/usb/host/fsl-mph-dr-of.o drivers/usb/host/fsl-mph-dr-of.c: In function 'fsl_usb2_device_register': drivers/usb/host/fsl-mph-dr-of.c:97: error: 'struct pdev_archdata' ha

Re: smp: Start up non-boot CPUs asynchronously

2012-02-14 Thread Srivatsa S. Bhat
On 01/31/2012 09:54 PM, Arjan van de Ven wrote: > From ee65be59057c920042747d46dc174c5a5a56c744 Mon Sep 17 00:00:00 2001 > From: Arjan van de Ven > Date: Mon, 30 Jan 2012 20:44:51 -0800 > Subject: [PATCH] smp: Start up non-boot CPUs asynchronously > > The starting of the "not first" CPUs actuall

[PATCH 2/2 v4] powerpc/dts: Add dts for p1025rdb board

2012-02-14 Thread Zhicheng Fan
From: Zhicheng Fan P1025RDB Overview -- 1Gbyte DDR3 SDRAM 32 Mbyte NAND flash 16Mbyte NOR flash 16 Mbyte SPI flash SD connector to interface with the SD memory card Real-time clock on I2C bus PCIe: - x1 PCIe slot - x1 mini-PCIe slot 10/100/1000 BaseT Ethernet ports: - eTSEC1, RG

[PATCH 1/2 v4] powerpc/85xx: Add p1025rdb platform support

2012-02-14 Thread Zhicheng Fan
From: Zhicheng Fan Signed-off-by: Zhicheng Fan --- arch/powerpc/platforms/85xx/mpc85xx_rdb.c | 22 ++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/platforms/85xx/mpc85xx_rdb.c b/arch/powerpc/platforms/85xx/mpc85xx_rdb.c index d54772e..e95ae