Re: [PATCH]: [MPC5200] Add ATA DMA support

2008-08-13 Thread Tim Yamin
On Wed, Aug 13, 2008 at 7:11 AM, Grant Likely <[EMAIL PROTECTED]> wrote: > Sounds good to me. You will get more testers that way. I can pick it > up for -next if everything else looks good. Here are the new patches; tested against 2.6.27-rc3. Thanks, Tim 1) ata.h has dst_pa in the wrong place

Help

2008-08-13 Thread Boris Shteinbock
Help ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

Re: Help

2008-08-13 Thread Arnd Bergmann
On Wednesday 13 August 2008, Boris Shteinbock wrote: > Help Don't panic! ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

details, details ...

2008-08-13 Thread Kevin Diggs
Hi, In cpu exit function of a cpufreq driver: while (test_bit(cf750gxmChangingPllBit, &cf750gxvStateBits)) msleep(1); This bit will get cleared by a notifier callback. In module_exit function of a related module: while (test_bit(PLL_LOCK_BIT, (unsigned long *)&

Re: details, details ...

2008-08-13 Thread Arnd Bergmann
On Wednesday 13 August 2008, Kevin Diggs wrote: > In cpu exit function of a cpufreq driver: > >          while (test_bit(cf750gxmChangingPllBit, &cf750gxvStateBits)) >                  msleep(1); > > This bit will get cleared by a notifier callback. > > In module_exit function of a related modul

Re: [BUG] fec_mpc52xx: Don't call mpc52xx_fec_reset() in ISR

2008-08-13 Thread Juergen Beisert
On Donnerstag, 10. Juli 2008, Grant Likely wrote: > On Thu, Jul 10, 2008 at 02:39:09PM +0200, Wolfram Sang wrote: > > Hello, > > > > today, I was debugging a kernel crash on a board with a MPC5200B using > > 2.6.26-rc9. I found the following code in drivers/net/fec_mpc52xx.c: > > > > > I assume th

Re: [BUG] fec_mpc52xx: Don't call mpc52xx_fec_reset() in ISR

2008-08-13 Thread Wolfgang Grandegger
Hi Jürgen, Juergen Beisert wrote: On Donnerstag, 10. Juli 2008, Grant Likely wrote: On Thu, Jul 10, 2008 at 02:39:09PM +0200, Wolfram Sang wrote: Hello, today, I was debugging a kernel crash on a board with a MPC5200B using 2.6.26-rc9. I found the following code in drivers/net/fec_mpc52xx.c:

Re: [RFC/PATCH 2/3] of: add of_lookup_stdout() utility function

2008-08-13 Thread Timur Tabi
Grant Likely wrote: So, seeing as settling on a way to determine stdout still up in the air, it probably makes sense to condense that code down to a single authoritative function so that changes in this area are contained in one place. For now, I'll stick with decoding linux,stdout-path and on

Re: [PATCH 5121 pci 1/3] powerpc: 83xx: pci: Remove need for get_immrbase from mpc83xx_add_bridge.

2008-08-13 Thread John Rigby
Grant Likely wrote: On Thu, Aug 07, 2008 at 11:36:25AM -0600, John Rigby wrote: Modify mpc83xx_add_bridge to get config space register base address from the device tree instead of immr + hardcoded offset. 83xx pci nodes have these changes: register properties now contain two address len

Re: [PATCH 5121 pci 1/3] powerpc: 83xx: pci: Remove need for get_immrbase from mpc83xx_add_bridge.

2008-08-13 Thread Scott Wood
John Rigby wrote: As I type this I'm coming to like the primary flag more and more. I'm willing to change it to 'fsl,primary-pci-bridge' though I don't really agree with your argument against the generic name. It is in the context of an 'fsl,pci-whatever' node so it does not have to be specific.

Re: [PATCH 5121 pci 1/3] powerpc: 83xx: pci: Remove need for get_immrbase from mpc83xx_add_bridge.

2008-08-13 Thread Grant Likely
On Wed, Aug 13, 2008 at 10:10 AM, Scott Wood <[EMAIL PROTECTED]> wrote: > John Rigby wrote: >> >> As I type this I'm coming to like the primary flag more and more. >> I'm willing to change it to 'fsl,primary-pci-bridge' though I don't >> really agree with your argument against the generic name. It

Re: [PATCH 5121 pci 1/3] powerpc: 83xx: pci: Remove need for get_immrbase from mpc83xx_add_bridge.

2008-08-13 Thread Grant Likely
On Wed, Aug 13, 2008 at 10:06 AM, John Rigby <[EMAIL PROTECTED]> wrote: >> On Thu, Aug 07, 2008 at 11:36:25AM -0600, John Rigby wrote: >> Can you use something like 'fsl,primary-pci-bridge' instead? 'primary' >> is a little too generic for my taste. Also, the purpose of identifying >> one of the

Re: [PATCH 5121 pci 1/3] powerpc: 83xx: pci: Remove need for get_immrbase from mpc83xx_add_bridge.

2008-08-13 Thread John Rigby
Grant Likely wrote: On Wed, Aug 13, 2008 at 10:06 AM, John Rigby <[EMAIL PROTECTED]> wrote: On Thu, Aug 07, 2008 at 11:36:25AM -0600, John Rigby wrote: Can you use something like 'fsl,primary-pci-bridge' instead? 'primary' is a little too generic for my taste. Also, the purpose of identifyi

use plb_tft_cntlr_ref_d meet the problem

2008-08-13 Thread killyouatonce
Has anybody add the plb_tft_cntlr_ref to the desgin ? I add the pcores whcih copy from slideshow which is a reference desgin. > > Something is wrong. I show the image in my design , the > plb_tft_cntlr_ref ip core is works ,but it not work very well . The image > shows in the lcd is

Re: dtc: Make many functions 'static'

2008-08-13 Thread Jon Loeliger
> This patch marks various functions not shared between c files > 'static', as they should be. There are a couple of functions in dtc, > and many in the testsuite. > > This is *almost* enough to enable the -Wmissing-prototypes warning. > It's not quite enough, because there's a mess of junk in th

Re: libfdt: Implement fdt_get_property_namelen() and fdt_getprop_namelen()

2008-08-13 Thread Jon Loeliger
> As well as fdt_subnode_offset(), libfdt includes an > fdt_subnode_offset_namelen() function that takes the subnode name to > look up not as a NUL-terminated string, but as a string with an > explicit length. This can be useful when the caller has the name as > part of a longer string, such as a

Re: [PATCH 4/5] Relocation support

2008-08-13 Thread Mohan Kumar M
Paul Mackerras wrote: Mohan Kumar M writes: Hi Paul, Thanks for your comments. I will update the patches as per your comment and will give a detailed description for each patch. Regards, Mohan. static inline int in_kernel_text(unsigned long addr) { - if (addr >= (unsigned long

[PATCH 5121 pci rev2 1/3] powerpc: 83xx: pci: Remove need for get_immrbase from mpc83xx_add_bridge.

2008-08-13 Thread John Rigby
Modify mpc83xx_add_bridge to get config space register base address from the device tree instead of immr + hardcoded offset. 83xx pci nodes have this change: register properties now contain two address length tuples: First is the pci bridge register base, this has always been there.

[PATCH 5121 pci rev2 3/3] powerpc: pci: 5121: Hide pci bridge.

2008-08-13 Thread John Rigby
The class of the MPC5121 pci host bridge is PCI_CLASS_BRIDGE_OTHER while other freescale host bridges have class set to PCI_CLASS_PROCESSOR_POWERPC. This patch makes fixup_hide_host_resource_fsl match PCI_CLASS_BRIDGE_OTHER in addition to PCI_CLASS_PROCESSOR_POWERPC. Signed-off-by: John Rigby <[E

[PATCH 5121 pci rev2 2/3] powerpc: 5121: Add PCI support.

2008-08-13 Thread John Rigby
Uses mpc83xx_add_bridge in fsl_pci.c Adds second register tuple to pci node register property as done for 83xx device trees in a previous patch. Signed-off-by: John Rigby <[EMAIL PROTECTED]> --- arch/powerpc/boot/dts/mpc5121ads.dts |3 ++- arch/powerpc/platforms/512x/Kconfig |

[PATCH / RFC] net: fix locking in ibm_newemac

2008-08-13 Thread Sebastian Siewior
|PPC 4xx OCP EMAC driver, version 3.54 |MAL v2 /plb/mcmal, 2 TX channels, 2 RX channels |RGMII /plb/opb/[EMAIL PROTECTED] initialized with MDIO support |/plb/opb/[EMAIL PROTECTED]: input 0 in RGMII mode |BUG: spinlock bad magic on CPU#0, swapper/1 | lock: cf81632c, .magic: , .owner: /-1, .o

[PATCH 1/2] Added virtual resolution and panning support.

2008-08-13 Thread York Sun
Application can now have the virtual resoltuion and use FBIOPAN_DISPLAY ioctl to pan. Signed-off-by: York Sun <[EMAIL PROTECTED]> --- drivers/video/fsl-diu-fb.c | 28 +++- 1 files changed, 23 insertions(+), 5 deletions(-) diff --git a/drivers/video/fsl-diu-fb.c b/drive

[PATCH 2/2] Bug fix. Add sanity check for AOI position

2008-08-13 Thread York Sun
AOI position cannot be negative. Signed-off-by: York Sun <[EMAIL PROTECTED]> --- drivers/video/fsl-diu-fb.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/drivers/video/fsl-diu-fb.c b/drivers/video/fsl-diu-fb.c index d67e79b..8898d2a 100644 --- a/drivers/video/fsl-diu

[PATCH 0/2] Add virtual resolution and panning for Freescale DIU

2008-08-13 Thread York Sun
This patch set adds virtual resolutoin suppport for Freescale DIU driver. Applications such as fbset can set visible resolution and virtual resoltuion. X window can use the virtual resolution if xorg.conf has the following option. option virtual The second patch fixes a bug of AOI position.

Re: [PATCH] pata_of_platform: fix no irq handling

2008-08-13 Thread Steven A. Falco
Anton Vorontsov wrote: > On Tue, Aug 12, 2008 at 06:18:42PM +0400, Sergei Shtylyov wrote: > >> Anton Vorontsov wrote: >> >> >> 1. IDE status read does not work. (But am I understand correctly >> that IDE works well if IRQ is unspecified? Then this is hardly >> an issue.) >>>

Re: [PATCH 1/2] port ndfc driver to of platform

2008-08-13 Thread Sean MacLennan
Port of the ndfc driver to an of platform driver. Signed-off-by: Sean MacLennan <[EMAIL PROTECTED]> --- diff --git a/drivers/mtd/nand/ndfc.c b/drivers/mtd/nand/ndfc.c index efb1ab6..55aec25 100644 --- a/drivers/mtd/nand/ndfc.c +++ b/drivers/mtd/nand/ndfc.c @@ -5,9 +5,13 @@ * Platform independe

Re: [PATCH 2/2] port ndfc driver to of platform

2008-08-13 Thread Sean MacLennan
Changes to the warp platform with the ndfc as an of platform device. The main changes are: * moving the NAND information to the DTS * removing warp-nand.c * moving the NAND fixups to cuboot-warp.c Signed-off-by: Sean MacLennan <[EMAIL PROTECTED]> --- diff --git a/arch/powerpc/boot/cuboot-warp.c b

Re: [PATCH 5121 pci 3/3] powerpc: pci: 5121: Hide pci bridge.

2008-08-13 Thread Kumar Gala
On Aug 13, 2008, at 12:16 AM, Grant Likely wrote: On Thu, Aug 07, 2008 at 11:36:27AM -0600, John Rigby wrote: The class of the MPC5121 pci host bridge is PCI_CLASS_BRIDGE_OTHER while other freescale host bridges have class set to PCI_CLASS_PROCESSOR_POWERPC. This patch makes fixup_hide_host_r

Re: [PATCH / RFC] net: fix locking in ibm_newemac

2008-08-13 Thread Benjamin Herrenschmidt
On Wed, 2008-08-13 at 20:29 +0200, Sebastian Siewior wrote: > |PPC 4xx OCP EMAC driver, version 3.54 > |MAL v2 /plb/mcmal, 2 TX channels, 2 RX channels > |RGMII /plb/opb/[EMAIL PROTECTED] initialized with MDIO support > |/plb/opb/[EMAIL PROTECTED]: input 0 in RGMII mode > |BUG: spinlock bad magic o

[PATCH] libfdt: Add support for using aliases in fdt_path_offset()

2008-08-13 Thread Kumar Gala
If the path doesn't start with '/' check to see if it matches some alias under "/aliases" and substitute the matching alias value in the path and retry the lookup. Signed-off-by: Kumar Gala <[EMAIL PROTECTED]> --- libfdt/fdt_ro.c | 25 +++-- 1 files changed, 23 insertions(+)

Re: [PATCH] libfdt: Add support for using aliases in fdt_path_offset()

2008-08-13 Thread David Gibson
On Wed, Aug 13, 2008 at 10:52:26PM -0500, Kumar Gala wrote: > If the path doesn't start with '/' check to see if it matches some alias > under "/aliases" and substitute the matching alias value in the path > and retry the lookup. Kumar, this is broken. If you match an alias you only follow the pa

Re: details, details ...

2008-08-13 Thread Kevin Diggs
Arnd Bergmann wrote: On Wednesday 13 August 2008, Kevin Diggs wrote: Arnd Bergmann wrote: On Wednesday 13 August 2008, Kevin Diggs wrote: In cpu exit function of a cpufreq driver: while (test_bit(cf750gxmChangingPllBit, &cf750gxvStateBits)) msleep(1); This bit will

[RFC 0/2] powerpc: copy_4K_page tweaked for Cell

2008-08-13 Thread Mark Nelson
Hi All, What follows is an updated version of copy_4K_page that has been tuned for the Cell processor. With this new routine it was found that the system time measured when compiling a 2.6.26 pseries_defconfig was reduced by ~10s: mainline (2.6.27-rc1-00632-g2e1e921): real17m8.727s user5

[RFC 1/2] powerpc: copy_4K_page tweaked for Cell

2008-08-13 Thread Mark Nelson
/* * Copyright (C) 2008 Mark Nelson, IBM Corp. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version * 2 of the License, or (at your option) any later versi

[RFC 2/2] powerpc: copy_4K_page tweaked for Cell - add CPU feature

2008-08-13 Thread Mark Nelson
Add a new CPU feature, CPU_FTR_CP_USE_DCBTZ, to be added to the CPUs that benefit from having dcbt and dcbz instructions used in copy_4K_page(). So far Cell, PPC970 and Power4 benefit. This way all the other 64bit powerpc chips will have the whole prefetching loop nop'ed out. Signed-off-by: Mar