Re: MPC831x (and others?) NAND erase performance improvements

2010-12-08 Thread Joakim Tjernlund
On Mon, 6 Dec 2010 22:15:54 -0500 Mark Mason ma...@postdiluvian.org wrote: A few months ago I ran into some performance problems involving UBI/NAND erases holding other devices off the LBC on an MPC8315. I found a solution for this, which worked well, at least with the hardware I was

Re: Getting the IRQ number (Was: Basic driver devel questions ?)

2010-12-08 Thread Guillaume Dargaud
Thanks again for your detailed answer, I'm learning, but not as fast as my colleagues with a deadline want me to ! The platform code does that. That function create devices on the platform bus by examining the device tree. It looks for nodes that are compatible with the compatible strings you

[PATCH] powerpc: Fix incorrect comment about interrupt stack allocation

2010-12-08 Thread Anton Blanchard
We now allow interrupt stacks anywhere in the first segment which can be 256M or 1TB. Fix the comment. Signed-off-by: Anton Blanchard an...@samba.org --- Index: powerpc.git/arch/powerpc/kernel/setup_64.c === ---

Re: Getting the IRQ number (Was: Basic driver devel questions ?)

2010-12-08 Thread Michael Ellerman
On Wed, 2010-12-08 at 11:18 +0100, Guillaume Dargaud wrote: Thanks again for your detailed answer, I'm learning, but not as fast as my colleagues with a deadline want me to ! :) The platform code does that. That function create devices on the platform bus by examining the device tree. It

[PATCH 0/4] V3 Add ability to link device blob(s) into vmlinux

2010-12-08 Thread dirk . brandewie
From: Dirk Brandewie dirk.brande...@gmail.com This patch set adds the ability to link device tree blobs into vmlinux. Patch 1 implements the changes to include/asm-generic/vmlinux.lds.h and adds a generic rule for generating DTB objects to be linked vmlinux. Patch 2 implements linking a DTB

[PATCH 1/4] of: Add support for linking device tree blobs into vmlinux

2010-12-08 Thread dirk . brandewie
From: Dirk Brandewie dirk.brande...@gmail.com This patch adds support for linking device tree blob(s) into vmlinux. Modifies asm-generic/vmlinux.lds.h to add linking .dtb sections into vmlinux. To maintain compatiblity with the of/fdt driver code platforms MUST copy the blob to a non-init memory

[PATCH 2/4] x86/of: Add building device tree blob(s) into image.

2010-12-08 Thread dirk . brandewie
From: Dirk Brandewie dirk.brande...@gmail.com This patch adds linking device tree blob into vmlinux. DTB's are added by adding the blob object name to list of objects to be linked into the image. Signed-off-by: Dirk Brandewie dirk.brande...@gmail.com --- arch/x86/platform/ce4100/Makefile | 10

[PATCH 3/4] of/powerpc: Use generic rule to build dtb's

2010-12-08 Thread dirk . brandewie
From: Dirk Brandewie dirk.brande...@gmail.com Modify arch/powerpc/boot/Makefile to use dtc command in scripts/Makefile.lib Signed-off-by: Dirk Brandewie dirk.brande...@gmail.com --- arch/powerpc/boot/Makefile |8 +++- 1 files changed, 3 insertions(+), 5 deletions(-) diff --git

[PATCH 4/4] microblaze/of: Use generic rule to build dtb's

2010-12-08 Thread dirk . brandewie
From: Dirk Brandewie dirk.brande...@gmail.com Modify arch/powerpc/boot/Makefile to use dtc command in scripts/Makefile.lib Signed-off-by: Dirk Brandewie dirk.brande...@gmail.com --- arch/microblaze/boot/Makefile | 12 +++- 1 files changed, 3 insertions(+), 9 deletions(-) diff --git

Re: [PATCH v2] powerpc, 5200: add support for charon board

2010-12-08 Thread Wolfram Sang
On Tue, Dec 07, 2010 at 07:58:55AM +0100, Heiko Schocher wrote: Signed-off-by: Heiko Schocher h...@denx.de Reviewed-by: Wolfram Sang w.s...@pengutronix.de -- Pengutronix e.K. | Wolfram Sang| Industrial Linux Solutions |

Re: Getting the IRQ number (Was: Basic driver devel questions ?)

2010-12-08 Thread Guillaume Dargaud
Sorry I assumed you were working on mainline. In 2.6.35 you still need to use an of_platform_driver, I'll describe below. So basically you need to change all occurrences of platform_driver to of_platform_driver. OK, thanks, I did that, compiled and ran the driver and its test prog... no

Re: MPC831x (and others?) NAND erase performance improvements

2010-12-08 Thread Scott Wood
On Wed, 8 Dec 2010 08:59:49 +0100 Joakim Tjernlund joakim.tjernl...@transmode.se wrote: On Mon, 6 Dec 2010 22:15:54 -0500 Mark Mason ma...@postdiluvian.org wrote: A few months ago I ran into some performance problems involving UBI/NAND erases holding other devices off the LBC on an

Re: MPC831x (and others?) NAND erase performance improvements

2010-12-08 Thread Joakim Tjernlund
Scott Wood scottw...@freescale.com wrote on 2010/12/08 18:18:39: On Wed, 8 Dec 2010 08:59:49 +0100 Joakim Tjernlund joakim.tjernl...@transmode.se wrote: On Mon, 6 Dec 2010 22:15:54 -0500 Mark Mason ma...@postdiluvian.org wrote: A few months ago I ran into some performance

Re: MPC831x (and others?) NAND erase performance improvements

2010-12-08 Thread Mark Mason
Joakim Tjernlund joakim.tjernl...@transmode.se wrote: Scott Wood scottw...@freescale.com wrote on 2010/12/08 18:18:39: On Wed, 8 Dec 2010 08:59:49 +0100 Joakim Tjernlund joakim.tjernl...@transmode.se wrote: On Mon, 6 Dec 2010 22:15:54 -0500 Mark Mason ma...@postdiluvian.org

Re: Getting the IRQ number (Was: Basic driver devel questions ?)

2010-12-08 Thread Joachim Förster
Hi Guillaume, Michael Ellerman wrote: On Wed, 2010-12-08 at 11:18 +0100, Guillaume Dargaud wrote: /// // Called on insmod static int __init xad_init(void) { int rc=0; printk(KERN_INFO SD Module %s: loading...\n

Re: MPC831x (and others?) NAND erase performance improvements

2010-12-08 Thread Joakim Tjernlund
Mark Mason ma...@postdiluvian.org wrote on 2010/12/08 20:26:16: Joakim Tjernlund joakim.tjernl...@transmode.se wrote: Scott Wood scottw...@freescale.com wrote on 2010/12/08 18:18:39: On Wed, 8 Dec 2010 08:59:49 +0100 Joakim Tjernlund joakim.tjernl...@transmode.se wrote:

Re: MPC831x (and others?) NAND erase performance improvements

2010-12-08 Thread Scott Wood
On Wed, 8 Dec 2010 20:57:03 +0100 Joakim Tjernlund joakim.tjernl...@transmode.se wrote: Mark Mason ma...@postdiluvian.org wrote on 2010/12/08 20:26:16: Joakim Tjernlund joakim.tjernl...@transmode.se wrote: Scott Wood scottw...@freescale.com wrote on 2010/12/08 18:18:39: On Wed,

[PATCH 5/5] of/device: Show even unavailable nodes in procfs

2010-12-08 Thread Deepak Saxena
Use the new raw of_get_next_child() variant so all device tree nodes will appear in procfs. Signed-off-by: Hollis Blanchard hollis_blanch...@mentor.com Signed-off-by: Deepak Saxena deepak_sax...@mentor.com --- fs/proc/proc_devtree.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-)

[PATCH 1/5] of/device: Centralize checking of 'status' properties

2010-12-08 Thread Deepak Saxena
Don't call any of_platform_driver's probe() function if the device node is not accessible (as denoted in the status property). Signed-off-by: Hollis Blanchard hollis_blanch...@mentor.com Signed-off-by: Deepak Saxena deepak_sax...@mentor.com --- arch/powerpc/platforms/83xx/suspend.c |3 ---

[PATCH 2/5] of/device: make for_each_node* check status properties

2010-12-08 Thread Deepak Saxena
Some early device drivers don't actually implement a struct of_platform_driver, and instead use the for_each_node* iterators to search for matching device nodes. Disabled device nodes will no longer be returned by these iterators. Signed-off-by: Hollis Blanchard hollis_blanch...@mentor.com

[PATCH 4/5] of/device: Create _of_get_next_child()

2010-12-08 Thread Deepak Saxena
There aren't many, but some of_get_next_child() callers do need an unabridged view of the device tree so we provide a wrapper that can be used by them. Signed-off-by: Hollis Blanchard hollis_blanch...@mentor.com Signed-off-by: Deepak Saxena deepak_sax...@mentor.com --- drivers/of/base.c | 26

[PATCH 3/5] of/device: Make of_get_next_child() check status properties

2010-12-08 Thread Deepak Saxena
We only return the next child if the device is available. Signed-off-by: Hollis Blanchard hollis_blanch...@mentor.com Signed-off-by: Deepak Saxena deepak_sax...@mentor.com --- drivers/of/base.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/of/base.c

Re: MPC831x (and others?) NAND erase performance improvements

2010-12-08 Thread Joakim Tjernlund
Scott Wood scottw...@freescale.com wrote on 2010/12/08 20:59:28: On Wed, 8 Dec 2010 20:57:03 +0100 Joakim Tjernlund joakim.tjernl...@transmode.se wrote: Mark Mason ma...@postdiluvian.org wrote on 2010/12/08 20:26:16: Joakim Tjernlund joakim.tjernl...@transmode.se wrote: Scott

Re: MPC831x (and others?) NAND erase performance improvements

2010-12-08 Thread Scott Wood
On Wed, 8 Dec 2010 21:11:08 +0100 Joakim Tjernlund joakim.tjernl...@transmode.se wrote: Scott Wood scottw...@freescale.com wrote on 2010/12/08 20:59:28: On Wed, 8 Dec 2010 20:57:03 +0100 Joakim Tjernlund joakim.tjernl...@transmode.se wrote: Can you think of any workaround such as not

Re: [PATCH 3/5] of/device: Make of_get_next_child() check status properties

2010-12-08 Thread Scott Wood
On Wed, 8 Dec 2010 11:29:44 -0800 Deepak Saxena deepak_sax...@mentor.com wrote: We only return the next child if the device is available. Signed-off-by: Hollis Blanchard hollis_blanch...@mentor.com Signed-off-by: Deepak Saxena deepak_sax...@mentor.com --- drivers/of/base.c |4 +++- 1

Re: MPC831x (and others?) NAND erase performance improvements

2010-12-08 Thread Joakim Tjernlund
Scott Wood scottw...@freescale.com wrote on 2010/12/08 21:25:51: On Wed, 8 Dec 2010 21:11:08 +0100 Joakim Tjernlund joakim.tjernl...@transmode.se wrote: Scott Wood scottw...@freescale.com wrote on 2010/12/08 20:59:28: On Wed, 8 Dec 2010 20:57:03 +0100 Joakim Tjernlund

Re: MPC831x (and others?) NAND erase performance improvements

2010-12-08 Thread Mark Mason
Joakim Tjernlund joakim.tjernl...@transmode.se wrote: Is there any risk that the NAND device will drive the LB and corrupt the bus for other devices? I think the only thing the NAND chip should be driving is the busy pin, OK, good. What function is actually lost if one uses an GPIO

Re: MPC831x (and others?) NAND erase performance improvements

2010-12-08 Thread Scott Wood
On Wed, 8 Dec 2010 22:26:59 +0100 Joakim Tjernlund joakim.tjernl...@transmode.se wrote: Scott Wood scottw...@freescale.com wrote on 2010/12/08 21:25:51: On Wed, 8 Dec 2010 21:11:08 +0100 Joakim Tjernlund joakim.tjernl...@transmode.se wrote: Scott Wood scottw...@freescale.com wrote on

Re: MPC831x (and others?) NAND erase performance improvements

2010-12-08 Thread Scott Wood
On Wed, 8 Dec 2010 17:02:45 -0500 Mark Mason ma...@postdiluvian.org wrote: I don't think that using a software NAND controller instead of the LBC FCM mode is all that bad. Again, I haven't actually done it, so check the MTD docs, but I'm pretty sure the software is meant to do that, so it

[PATCH V6 00/10] Add-Synopsys-DesignWare-HS-USB-OTG-driver

2010-12-08 Thread tmarri
From: Tirumala Marri tma...@apm.com v6: 1. Replaced register definitions and bit fields with macros. 2. Replace printks with dev_dbg or dev_err functions. 3. Cleanup some assignments. 4. Remove chip specific selections in Kconfig file. v5: 1. PATCH V5 has a new license header from Synopsys

Re: Getting the IRQ number (Was: Basic driver devel questions ?)

2010-12-08 Thread Michael Ellerman
On Wed, 2010-12-08 at 16:52 +0100, Guillaume Dargaud wrote: Sorry I assumed you were working on mainline. In 2.6.35 you still need to use an of_platform_driver, I'll describe below. So basically you need to change all occurrences of platform_driver to of_platform_driver. OK, thanks, I

[PATCH V6 00/10] Add-Synopsys-DesignWare-HS-USB-OTG-driver

2010-12-08 Thread tmarri
From: Tirumala Marri tma...@apm.com v6: 1. Replaced register definitions and bit fields with macros. 2. Replace printks with dev_dbg or dev_err functions. 3. Cleanup some assignments. 4. Remove chip specific selections in Kconfig file. v5: 1. PATCH V5 has a new license header from Synopsys

[PATCH V6 01/10] USB/ppc4xx: Add Synopsys DWC OTG Register definitions

2010-12-08 Thread tmarri
From: Tirumala Marri tma...@apm.com Add Synopsys Design Ware core register definitions. Signed-off-by: Tirumala R Marritma...@apm.com Signed-off-by: Fushen Chen fc...@apm.com Signed-off-by: Mark Miesfeld mmiesf...@apm.com --- drivers/usb/dwc_otg/dwc_otg_regs.h | 1313

[PATCH V6 02/10] USB/ppc4xx: Add Synopsys DWC OTG driver framework

2010-12-08 Thread tmarri
From: Tirumala Marri tma...@apm.com Platform probing is in dwc_otg_apmppc.c. Driver parameter and parameter checking are in dwc_otg_param.c. Signed-off-by: Tirumala R Marritma...@apm.com Signed-off-by: Fushen Chen fc...@apm.com Signed-off-by: Mark Miesfeld mmiesf...@apm.com ---

[PATCH V6 05/10] USB/ppc4xx: Add Synopsys DWC OTG HCD interrupt function

2010-12-08 Thread tmarri
From: Tirumala Marri tma...@apm.com Implements DWC OTG USB HCD interrupt service routine. Signed-off-by: Tirumala R Marritma...@apm.com Signed-off-by: Fushen Chen fc...@apm.com Signed-off-by: Mark Miesfeld mmiesf...@apm.com --- drivers/usb/dwc_otg/dwc_otg_hcd_intr.c | 1470

[PATCH V6 06/10] USB/ppc4xx: Add Synopsys DWC OTG HCD queue function

2010-12-08 Thread tmarri
From: Tirumala Marri tma...@apm.com Implements functions to manage Queue Heads and Queue Transfer Descriptors of DWC USB OTG Controller. Signed-off-by: Tirumala R Marritma...@apm.com Signed-off-by: Fushen Chen fc...@apm.com Signed-off-by: Mark Miesfeld mmiesf...@apm.com ---

[PATCH V6 09/10] USB/ppc4xx:Synopsys DWC OTG driver enable gadget support

2010-12-08 Thread tmarri
From: Tirumala Marri tma...@apm.com Enable gadget support Signed-off-by: Tirumala R Marritma...@apm.com Signed-off-by: Fushen Chen fc...@apm.com Signed-off-by: Mark Miesfeld mmiesf...@apm.com --- drivers/usb/gadget/Kconfig| 22 ++ drivers/usb/gadget/gadget_chips.h

[PATCH V6 10/10] USB ppc4xx: Add Synopsys DWC OTG driver kernel configuration and Makefile

2010-12-08 Thread tmarri
From: Tirumala Marri tma...@apm.com Add Synopsys DesignWare HS USB OTG driver kernel configuration. Synopsys OTG driver may operate in host only, device only, or OTG mode. The driver also allows user configure the core to use its internal DMA or Slave (PIO) mode. Signed-off-by: Tirumala R

[PATCH] ppc4xx: Add USB DWC DTS entry to Canyonlands board

2010-12-08 Thread tmarri
From: Tirumala Marri tma...@apm.com Add Synopsys Designware DTS entry for 460EX based Canyonlands board. Signed-off-by: Tirumala R Marritma...@apm.com --- arch/powerpc/boot/dts/canyonlands.dts | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) diff --git

[PATCH] ppc4xx: Add USB DWC DTS entry to Canyonlands board

2010-12-08 Thread tmarri
From: Tirumala Marri tma...@apm.com Add Synopsys Designware DTS entry for 460EX based Canyonlands board. Signed-off-by: Tirumala R Marritma...@apm.com --- arch/powerpc/boot/dts/canyonlands.dts | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) diff --git

Re: [PATCH 3/5] of/device: Make of_get_next_child() check status properties

2010-12-08 Thread Michael Ellerman
On Wed, 2010-12-08 at 15:01 -0600, Scott Wood wrote: On Wed, 8 Dec 2010 11:29:44 -0800 Deepak Saxena deepak_sax...@mentor.com wrote: We only return the next child if the device is available. Signed-off-by: Hollis Blanchard hollis_blanch...@mentor.com Signed-off-by: Deepak Saxena

Re: [PATCH 3/5] of/device: Make of_get_next_child() check status properties

2010-12-08 Thread David Gibson
On Thu, Dec 09, 2010 at 12:33:22PM +1100, Michael Ellerman wrote: On Wed, 2010-12-08 at 15:01 -0600, Scott Wood wrote: On Wed, 8 Dec 2010 11:29:44 -0800 Deepak Saxena deepak_sax...@mentor.com wrote: We only return the next child if the device is available. Signed-off-by: Hollis

Re: Run 'usermode-agent' cause kernel panic on Powerpc

2010-12-08 Thread Benjamin Herrenschmidt
On Wed, 2010-12-08 at 09:20 +0800, xufeng zhang wrote: I believe it would have such an impact. I don't see that user-mode debugging would be enabled at all. Maybe something like this untested patch: diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c index

Re: [RFC PATCH 7/7 v2] ppc: add dynamic dma window support

2010-12-08 Thread Benjamin Herrenschmidt
On Tue, 2010-10-26 at 20:35 -0700, Nishanth Aravamudan wrote: No much comments... I'm amazed how complex he firmware folks managed to make this ... static int iommu_reconfig_notifier(struct notifier_block *nb, unsigned long action, void *node) { int err = NOTIFY_OK; struct

[PATCH v5] ppc44x:PHY fixup for USB on canyonlands board

2010-12-08 Thread Rupjyoti Sarmah
This fix is a reset for USB PHY that requires some amount of time for power to be stable on Canyonlands. Signed-off-by: Rupjyoti Sarmah rsar...@apm.com --- changes from previous version: -- dts node correction, removed the address and size parameters -- Kconfig file updated removing dependency

Re: [RFC PATCH 6/7 v2] ppc/iommu: pass phb only to iommu_table_setparms_lpar

2010-12-08 Thread Benjamin Herrenschmidt
On Tue, 2010-10-26 at 20:35 -0700, Nishanth Aravamudan wrote: iommu_table_setparms_lpar needs either the phb or the subbusnumber (not both), pass the phb to make it similar to iommu_table_setparms. Note: In cases where a caller was passing bus-number previously to iommu_table_setparms_lpar()

Re: [PATCH v2] powerpc, 5200: add support for charon board

2010-12-08 Thread Heiko Schocher
Hello Wolfram, Wolfram Sang wrote: On Tue, Dec 07, 2010 at 07:58:55AM +0100, Heiko Schocher wrote: Signed-off-by: Heiko Schocher h...@denx.de Reviewed-by: Wolfram Sang w.s...@pengutronix.de Thanks! One more defconfig question: Is it possible to add to the mpc5200_defconfig, what is needed

Re: [PATCH V6 00/10] Add-Synopsys-DesignWare-HS-USB-OTG-driver

2010-12-08 Thread Greg KH
On Wed, Dec 08, 2010 at 04:28:59PM -0800, tma...@apm.com wrote: From: Tirumala Marri tma...@apm.com v6: 1. Replaced register definitions and bit fields with macros. 2. Replace printks with dev_dbg or dev_err functions. 3. Cleanup some assignments. 4. Remove chip specific selections in

Re: [PATCH 1/2] video, sm501: add OF binding to support SM501

2010-12-08 Thread Heiko Schocher
Hello Paul, Paul Mundt wrote: On Sat, Dec 04, 2010 at 09:23:47AM +0100, Heiko Schocher wrote: - add binding to OF, compatible name smi,sm501 [...] Documentation/kernel-parameters.txt |7 + Documentation/powerpc/dts-bindings/sm501.txt | 30 +++ drivers/mfd/sm501.c

Re: [PATCH] powerpc: iommu: Add device name to iommu error printks

2010-12-08 Thread Olof Johansson
On Wed, Dec 08, 2010 at 11:36:05AM +1100, Anton Blanchard wrote: Right now its difficult to see which device is running out of iommu space: iommu_alloc failed, tbl c0076e096660 vaddr c00768806600 npages 1 Use dev_info() so we get the device name and location: ipr :00:01.0:

[PATCH] fsldma: fix issue of slow dma

2010-12-08 Thread Li Yang
From: Forrest Shi b29...@freescale.com Fixed fsl dma slow issue by initializing dma mode register with bandwidth control. It boosts dma performance and should works with 85xx board. Signed-off-by: Forrest Shi b29...@freescale.com Signed-off-by: Li Yang le...@freescale.com ---