Re: make 3.82 fails on powerpc defconfig update [was: Linux 2.6.35]

2010-08-02 Thread Sam Ravnborg
On Tue, Aug 03, 2010 at 12:03:35AM +0300, Thomas Backlund wrote: > 02.08.2010 23:51, Sam Ravnborg skrev: > >> > >> Thanks, this seems to fix the first issue, but then I get the same erro on > >> the following line 190: > >> > >> 190: bootwrapper_install %.dtb: > >> 191:$(Q)$(MAKE) ARCH=ppc

[PATCH] powerpc: fix build with make 3.82

2010-08-02 Thread Sam Ravnborg
Thomas Backlund reported that the powerpc build broke with make 3.82. It failed with the following message: arch/powerpc/Makefile:183: *** mixed implicit and normal rules. Stop. The fix is to avoid mixing non-wildcard and wildcard targets. Reported-by: Thomas Backlund Tested-by: Thomas Bac

[PATCH] powerpc/kdump: Stop all other CPUs before running crash handlers

2010-08-02 Thread Anton Blanchard
During kdump we run the crash handlers first then stop all other CPUs. We really want to stop all CPUs as close to the fail as possible and also have a very controlled environment for running the crash handlers, so it makes sense to reverse the order. Signed-off-by: Anton Blanchard --- Index: p

[PATCH] powerpc/mm: Fix vsid_scrample typo

2010-08-02 Thread Anton Blanchard
The code is wrapped in an #if 0, but it's wrong so we may as well fix it. Signed-off-by: Anton Blanchard --- Index: linux-2.6/arch/powerpc/include/asm/mmu-hash64.h === --- linux-2.6.orig/arch/powerpc/include/asm/mmu-hash64.h

RE: possible bug in ppc_vm_region_alloc()

2010-08-02 Thread Yossi Etigin
Hello, (I repost this because looks like the previous was filtered because I was not subscribed to the list) We are looking at dma_alloc_coherent(), which uses ppc_vm_region_alloc() on the coherent region "consistent_head". It seems to us there is a bug in the function ppc_vm_region_alloc(). The

Re: [PATCH] powerpc: Dont require a dma_ops struct to set dma mask

2010-08-02 Thread Stephen Rothwell
Hi Kumar, On Mon, 2 Aug 2010 12:21:22 -0500 Kumar Gala wrote: > > --- a/arch/powerpc/include/asm/dma-mapping.h > +++ b/arch/powerpc/include/asm/dma-mapping.h > @@ -131,9 +131,7 @@ static inline int dma_set_mask(struct device *dev, u64 > dma_mask) > { > struct dma_map_ops *dma_ops = get_d

[PATCH 3/3] powerpc: Add 64bit csum_and_copy_to_user

2010-08-02 Thread Anton Blanchard
This adds the equivalent of csum_and_copy_from_user for the receive side so we can copy and checksum in one pass. It is modelled on the generic checksum routine. Signed-off-by: Anton Blanchard --- Index: powerpc.git/arch/powerpc/include/asm/checksum.h ===

[PATCH 2/3] powerpc: Optimise 64bit csum_partial_copy_generic and add csum_and_copy_from_user

2010-08-02 Thread Anton Blanchard
We use the same core loop as the new csum_partial, adding in the stores and exception handling code. To keep things simple we do all the exception fixup in csum_and_copy_from_user. This wrapper function is modelled on the generic checksum code and is careful to always calculate a complete checksum

[PATCH 1/3] powerpc: Optimise 64bit csum_partial

2010-08-02 Thread Anton Blanchard
The main loop of csum_partial runs very slowly on recent POWER CPUs. After some analysis on both POWER6 and POWER7 I came up with routine below. First we get the source aligned to a double word, ignoring any odd alignment to keep things simple. Then we do 64 bytes at a time, with an entry and exit

Re: [PATCH v2 5/7] powerpc/85xx: Add MChk handler for SRIO port

2010-08-02 Thread Michael Neuling
> > MCSR_MASK is not defined anywhere, so when I compile this code, I get this: > > Never mind. I see that it's been fixed already, and that the patch > that removed MCSR_MASK was posted around the same time that this patch > was posted. I don't know what happened here but 2.6.35 is broken becau

Re: [PATCH 0/2 v3] mpc5200 ac97 gpio reset

2010-08-02 Thread Mark Brown
On Sat, Jul 31, 2010 at 10:42:15PM -0600, Grant Likely wrote: > On Sun, Jun 27, 2010 at 4:01 PM, Mark Brown > > I'm a little concerned with a collision with multi codec here. It'd > > be handy if you could keep it separate in case it needs merging > > into both trees (or we could merge via ASoC on

Re: Please pull my perf.git urgent branch

2010-08-02 Thread Ingo Molnar
* Scott Wood wrote: > On Wed, 28 Jul 2010 14:47:31 +1000 > Paul Mackerras wrote: > > > On Tue, Jul 27, 2010 at 11:28:54AM -0500, Scott Wood wrote: > > > > > Doesn't the setting of .period need to be maintained (it is in the other > > > powerpc perf_event implementation that this is derived fr

Re: Please pull my perf.git master branch

2010-08-02 Thread Ingo Molnar
* Paul Mackerras wrote: > Ingo, > > Please do a pull from my perf.git tree at: > > git://git.kernel.org/pub/scm/linux/kernel/git/paulus/perf.git master > > to get two commits. They only affect the driver for the PMU on the > Freescale embedded PowerPC processors. One is from Peter Z. and

[PATCH 2/3] P4080/mtd: Only make elbc nand driver detect nand flash partitions

2010-08-02 Thread Roy Zang
From: Lan Chunhe-B25806 The former driver had the two functions: 1. detecting nand flash partitions; 2. registering elbc interrupt. Now, second function is removed to fsl_lbc.c. Signed-off-by: Lan Chunhe-B25806 Signed-off-by: Roy Zang --- drivers/mtd/nand/Kconfig |1 + drivers/m

[PATCH 3/3] P4080/mtd: Fix the freescale lbc issue with 36bit mode

2010-08-02 Thread Roy Zang
From: Lan Chunhe-B25806 When system uses 36bit physical address, res.start is 36bit physical address. But the function of in_be32 returns 32bit physical address. Then both of them compared each other is wrong. So by converting the address of res.start into the right format fixes this issue. Sign

[PATCH 1/3] P4080/eLBC: Make Freescale elbc interrupt common to elbc devices

2010-08-02 Thread Roy Zang
From: Lan Chunhe-B25806 Move Freescale elbc interrupt from nand dirver to elbc driver. Then all elbc devices can use the interrupt instead of ONLY nand. Signed-off-by: Lan Chunhe-B25806 Signed-off-by: Roy Zang --- arch/powerpc/Kconfig |7 +- arch/powerpc/include/asm/fsl_lbc.

Re: [PATCH v4 1/2] powerpc: cleanup APIs for cpu/thread/core mappings

2010-08-02 Thread Benjamin Herrenschmidt
On Thu, 2010-07-22 at 06:27 +0530, Vaidyanathan Srinivasan wrote: > These APIs take logical cpu number as input > Change cpu_first_thread_in_core() to cpu_leftmost_thread_sibling() > Change cpu_last_thread_in_core() to cpu_rightmost_thread_sibling() I'm still not happy here. I don't find leftmost

[PATCH 1/3 v2] sdhci: Add auto CMD12 support for eSDHC driver

2010-08-02 Thread Roy Zang
From: Jerry Huang Add auto CMD12 command support for eSDHC driver. This is needed by P4080 and P1022 for block read/write. Manual asynchronous CMD12 abort operation causes protocol violations on these silicons. Signed-off-by: Jerry Huang Signed-off-by: Roy Zang --- drivers/mmc/host/sdhci-of-c

[PATCH 3/3 v2] dts: Add ESDHC weird voltage bits workaround

2010-08-02 Thread Roy Zang
P4080 ESDHC controller does not support 1.8V and 3.0V voltage. but the host controller capabilities register wrongly set the bits. This patch adds the workaround to correct the weird voltage setting bits. Only 3.3V voltage is supported for P4080 ESDHC controller. Signed-off-by: Roy Zang --- arch

[PATCH 2/3 v2] dts: Add sdhci,auto-cmd12 field for p4080 device tree

2010-08-02 Thread Roy Zang
Signed-off-by: Roy Zang --- Documentation/powerpc/dts-bindings/fsl/esdhc.txt |2 ++ arch/powerpc/boot/dts/p4080ds.dts|1 + 2 files changed, 3 insertions(+), 0 deletions(-) diff --git a/Documentation/powerpc/dts-bindings/fsl/esdhc.txt b/Documentation/powerpc/dts-bindings/

Please pull my perf.git master branch

2010-08-02 Thread Paul Mackerras
Ingo, Please do a pull from my perf.git tree at: git://git.kernel.org/pub/scm/linux/kernel/git/paulus/perf.git master to get two commits. They only affect the driver for the PMU on the Freescale embedded PowerPC processors. One is from Peter Z. and has been around for some time. The other f

Re: [PATCH 0/6] Remove owner field from sysfs attribute structure

2010-08-02 Thread Greg KH
On Wed, Jul 28, 2010 at 11:16:35PM -0700, Eric Biederman wrote: > On Wed, Jul 28, 2010 at 10:09 PM, Guenter Roeck > wrote: > > The following comment is found in include/linux/sysfs.h: > > > >   /* FIXME > >    * The *owner field is no longer used. > >    * x86 tree has been cleaned up. The owner >

Re: [PATCH 2/3] USB: add of_platform glue driver for FSL USB DR controller

2010-08-02 Thread Greg KH
On Wed, Jul 28, 2010 at 11:46:47AM -0700, Greg KH wrote: > On Wed, Jul 28, 2010 at 12:14:14PM -0600, Grant Likely wrote: > > On Wed, Jul 28, 2010 at 5:58 AM, Anatolij Gustschin wrote: > > > Hi Grant, > > > > > > On Wed, 28 Jul 2010 02:16:08 -0600 > > > Grant Likely wrote: > > > > > >> On Thu, Jul

Re: [PATCH] usb gadget: don't save bind callback in struct usb_gadget_driver

2010-08-02 Thread Greg KH
On Mon, Aug 02, 2010 at 03:12:48PM +0200, Uwe Kleine-König wrote: > On Mon, Aug 02, 2010 at 02:51:36PM +0200, Julia Lawall wrote: > > > diff --git a/drivers/usb/gadget/amd5536udc.c > > > b/drivers/usb/gadget/amd5536udc.c > > > index 731150d..c266c1e 100644 > > > --- a/drivers/usb/gadget/amd5536udc

[PATCH] perf, powerpc: fsl_emb: Restore setting perf_sample_data.period

2010-08-02 Thread Scott Wood
Commit 6b95ed345b9faa4ab3598a82991968f2e9f851bb changed from a struct initializer to perf_sample_data_init(), but the setting of the .period member was left out. Signed-off-by: Scott Wood --- arch/powerpc/kernel/perf_event_fsl_emb.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) dif

Re: Please pull my perf.git urgent branch

2010-08-02 Thread Scott Wood
On Wed, 28 Jul 2010 14:47:31 +1000 Paul Mackerras wrote: > On Tue, Jul 27, 2010 at 11:28:54AM -0500, Scott Wood wrote: > > > Doesn't the setting of .period need to be maintained (it is in the other > > powerpc perf_event implementation that this is derived from)? > > Gah, yes it does. Well, lo

Re: make 3.82 fails on powerpc defconfig update [was: Linux 2.6.35]

2010-08-02 Thread Thomas Backlund
02.08.2010 23:51, Sam Ravnborg skrev: >> >> Thanks, this seems to fix the first issue, but then I get the same erro on >> the following line 190: >> >> 190: bootwrapper_install %.dtb: >> 191:$(Q)$(MAKE) ARCH=ppc64 $(build)=$(boot) $(patsubst >> %,$(boot)/%,$@) >> > > Obviously - dunno ho

Re: make 3.82 fails on powerpc defconfig update [was: Linux 2.6.35]

2010-08-02 Thread Andreas Schwab
Sam Ravnborg writes: > +bootwrapper_install Missing colon. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." ___ Linuxppc-dev mail

Re: make 3.82 fails on powerpc defconfig update [was: Linux 2.6.35]

2010-08-02 Thread Thomas Backlund
02.08.2010 21:28, Sam Ravnborg skrev: > On Mon, Aug 02, 2010 at 11:51:11AM +0300, Thomas Backlund wrote: >> Hi, >> (please cc me as I'm not subscribed) >> >> updating from make 3.81 to 3.82 gets me this: >> >> [tho...@tmb linux-2.6.35]$ cp arch/powerpc/configs/ppc64_defconfig .config >> [tho...@tmb

Re: make 3.82 fails on powerpc defconfig update [was: Linux 2.6.35]

2010-08-02 Thread Sam Ravnborg
> > Thanks, this seems to fix the first issue, but then I get the same erro on > the following line 190: > > 190: bootwrapper_install %.dtb: > 191:$(Q)$(MAKE) ARCH=ppc64 $(build)=$(boot) $(patsubst %,$(boot)/%,$@) > Obviously - dunno how I missed that. Updated patch below. I will do a

Re: [PATCH v2 1/2] powerpc/85xx: kexec for SMP 85xx BookE systems

2010-08-02 Thread Kumar Gala
On Jul 21, 2010, at 4:14 PM, Matthew McClintock wrote: > Adds support for kexec on 85xx machines for the BookE platform. > Including support for SMP machines > > Based off work from Maxim Uvarov > Signed-off-by: Matthew McClintock > --- > arch/powerpc/Kconfig | 10 +++--- > arch/

Re: make 3.82 fails on powerpc defconfig update [was: Linux 2.6.35]

2010-08-02 Thread Sam Ravnborg
On Mon, Aug 02, 2010 at 11:51:11AM +0300, Thomas Backlund wrote: > Hi, > (please cc me as I'm not subscribed) > > updating from make 3.81 to 3.82 gets me this: > > [tho...@tmb linux-2.6.35]$ cp arch/powerpc/configs/ppc64_defconfig .config > [tho...@tmb linux-2.6.35]$ LC_ALL=C make oldconfig ARCH=po

Re: Issues to access Compact Flash Card on MPC8360E

2010-08-02 Thread Anton Vorontsov
On Mon, Aug 02, 2010 at 07:44:22PM +0530, Atul Deshmukh wrote: > Thanks a lot Anton, > From the dts entry given below, > > local...@e0005000 { > #address-cells = <2>; >#size-cells = <1>; >compatible = "fsl,mpc8349e-localbus", > "

Re: [PATCH] perf, powerpc: Convert the FSL driver to use local64_t

2010-08-02 Thread Kumar Gala
On Aug 2, 2010, at 1:18 AM, Paul Mackerras wrote: > From: Peter Zijlstra > > For some reason the FSL driver got left out when we converted perf > to use local64_t instead of atomic64_t. > > Signed-off-by: Peter Zijlstra > --- > This is against the perf/core branch in the tip tree at > git://g

[PATCH] powerpc: Dont require a dma_ops struct to set dma mask

2010-08-02 Thread Kumar Gala
The only reason to require a dma_ops struct is to see if it has implemented set_dma_mask. If not we can fall back to setting the mask directly. This resolves an issue with how to sequence the setting of a DMA mask for platform devices. Before we had an issue in that we have no way of setting the

Re: [PATCH 0/6] Remove owner field from sysfs attribute structure

2010-08-02 Thread Greg KH
On Mon, Aug 02, 2010 at 09:15:24AM -0700, Guenter Roeck wrote: > On Fri, 2010-07-30 at 10:36 -0400, Greg KH wrote: > > On Fri, Jul 30, 2010 at 08:28:10PM +1000, Benjamin Herrenschmidt wrote: > > > On Fri, 2010-07-30 at 10:45 +0200, Tejun Heo wrote: > > > > On 07/29/2010 07:09 AM, Guenter Roeck wrot

Re: [PATCH] usb gadget: don't save bind callback in struct usb_gadget_driver

2010-08-02 Thread Michał Nazarewicz
Some random thoughts, one bug and mostly just minor comments: @@ -1954,13 +1954,14 @@ static int setup_ep0(struct udc *dev) } /* Called by gadget driver to register itself */ -int usb_gadget_register_driver(struct usb_gadget_driver *driver) +int usb_gadget_probe_driver(struct usb_gadget_driver

Re: Issues to access Compact Flash Card on MPC8360E

2010-08-02 Thread Atul Deshmukh
Thanks a lot Anton, >From the dts entry given below, local...@e0005000 { #address-cells = <2>; #size-cells = <1>;

Re: [PATCH 0/6] Remove owner field from sysfs attribute structure

2010-08-02 Thread Guenter Roeck
On Fri, 2010-07-30 at 10:36 -0400, Greg KH wrote: > On Fri, Jul 30, 2010 at 08:28:10PM +1000, Benjamin Herrenschmidt wrote: > > On Fri, 2010-07-30 at 10:45 +0200, Tejun Heo wrote: > > > On 07/29/2010 07:09 AM, Guenter Roeck wrote: > > > > The following comment is found in include/linux/sysfs.h: > >

Re: Issues to access Compact Flash Card on MPC8360E

2010-08-02 Thread Anton Vorontsov
On Mon, Aug 02, 2010 at 06:08:14PM +0530, Atul Deshmukh wrote: [...] > 2: To access CF card in True IDE mode we have to use > "linux-kernel-source/drivers/ata/pata_platform.c" and > "linux-kernel-source/drivers/ata/libata-sff.c".I'm going right?? CF IDE support was already implemented for MPC8

Re: [PATCH] usb gadget: don't save bind callback in struct usb_gadget_driver

2010-08-02 Thread Uwe Kleine-König
On Mon, Aug 02, 2010 at 02:51:36PM +0200, Julia Lawall wrote: > > diff --git a/drivers/usb/gadget/amd5536udc.c > > b/drivers/usb/gadget/amd5536udc.c > > index 731150d..c266c1e 100644 > > --- a/drivers/usb/gadget/amd5536udc.c > > +++ b/drivers/usb/gadget/amd5536udc.c > > @@ -1954,13 +1954,14 @@ sta

Re: [PATCH] usb gadget: don't save bind callback in struct usb_gadget_driver

2010-08-02 Thread Julia Lawall
> diff --git a/drivers/usb/gadget/amd5536udc.c b/drivers/usb/gadget/amd5536udc.c > index 731150d..c266c1e 100644 > --- a/drivers/usb/gadget/amd5536udc.c > +++ b/drivers/usb/gadget/amd5536udc.c > @@ -1954,13 +1954,14 @@ static int setup_ep0(struct udc *dev) > } > > /* Called by gadget driver to

[PATCH] usb gadget: don't save bind callback in struct usb_gadget_driver

2010-08-02 Thread Uwe Kleine-König
The bind function is only needed at probe time, so there is no value in saving it . To accomplish this the function to register a gadget driver now takes the bind function as a second argument. To make things clearer rename the function to resemble platform_driver_probe vs. platform_driver_regist

Issues to access Compact Flash Card on MPC8360E

2010-08-02 Thread Atul Deshmukh
Hi, I would like to have your expert opinion on one of our design issue to access the Compact Flash on MPC8360E. I'm building an embedded system that will access Compact Flash card on MPC8360E through local bus and not through PCMCIA. The issue is how to access the CF card i.e. whether in memory

Re: 2.6.35-stable/ppc64/p7: Badness at lib/dma-debug.c:902, Call Trace & Instruction Dump during boot

2010-08-02 Thread FUJITA Tomonori
CC'ed to dma-debug maintainer. On Mon, 02 Aug 2010 16:21:09 +0530 Subrata Modak wrote: > Hi, > > On boot, Badness at lib/dma-debug.c:902, Call Trace & Instruction Dump > are recorded at /var/log/messages: > > > udev: starting ver

Re: [PATCH RFC] usb gadget: introduce usb_gadget_probe_driver

2010-08-02 Thread Michał Nazarewicz
On Fri, 30 Jul 2010 16:49:14 +0200, Uwe Kleine-König wrote: by using usb_gadget_probe_driver with driver->bind = NULL. When all drivers are fixed to use the new function the bind member of struct usb_gadget_driver can go away. On second thought, would it be hard to just fix all the gadgets?

make 3.82 fails on powerpc defconfig update [was: Linux 2.6.35]

2010-08-02 Thread Thomas Backlund
Hi, (please cc me as I'm not subscribed) updating from make 3.81 to 3.82 gets me this: [tho...@tmb linux-2.6.35]$ cp arch/powerpc/configs/ppc64_defconfig .config [tho...@tmb linux-2.6.35]$ LC_ALL=C make oldconfig ARCH=powerpc /mnt/work/2.6.35/linux-2.6.35/arch/powerpc/Makefile:183: *** mixed im

[PATCH v2 4/6] mtd: m25p80: add a read function to read page by page

2010-08-02 Thread Mingkai Hu
For Freescale's eSPI controller, the max transaction length one time is limitted by the SPCOM[TRANSLEN] field which is 0x. When used mkfs.ext2 command to create ext2 filesystem on the flash, the read length will exceed the max value of the SPCOM[TRANSLEN] field, so change the read function to r

[PATCH v2 3/6] mtd: m25p80: add support to parse the SPI flash's partitions

2010-08-02 Thread Mingkai Hu
Signed-off-by: Mingkai Hu --- v2: - Move the flash partition function from of_spi.c to MTD driver drivers/mtd/devices/m25p80.c | 29 + 1 files changed, 29 insertions(+), 0 deletions(-) diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c index

[PATCH v2 2/6] eSPI: add eSPI controller support

2010-08-02 Thread Mingkai Hu
Add eSPI controller support based on the library code spi_fsl_lib.c. The eSPI controller is newer controller 85xx/Pxxx devices supported. There're some differences comparing to the SPI controller: 1. Has different register map and different bit definition So leave the code operated the registe

[PATCH v2 5/6] powerpc/of: add eSPI controller dts bindings

2010-08-02 Thread Mingkai Hu
Also modifiy the document of cell-index in SPI controller. Signed-off-by: Mingkai Hu --- v2: - Add cell-index clarification - Add mpc8536 chip name to the compatible value Documentation/powerpc/dts-bindings/fsl/spi.txt | 24 +++- 1 files changed, 23 insertions(+), 1 del

[PATCH v2 6/6] DTS: add SPI flash(s25fl128p01) support on p4080ds and mpc8536ds board

2010-08-02 Thread Mingkai Hu
Signed-off-by: Mingkai Hu --- v2: - Remove the whitespace inconsitencies arch/powerpc/boot/dts/mpc8536ds.dts | 52 +++ arch/powerpc/boot/dts/p4080ds.dts | 11 +++- 2 files changed, 56 insertions(+), 7 deletions(-) diff --git a/arch/powerpc/boot/dts/mp

[PATCH v2 0/6] refactor spi_mpc8xxx.c and add eSPI controller support

2010-08-02 Thread Mingkai Hu
In-Reply-To: This patchset refactor the file spi_mpc8xxx.c to abstract some common code as a lib used by the SPI/eSPI controller driver, move the SPI controller driver code to spi_fsl_spi.c, and add the eSPI controller support with spi_fsl_espi.c. Tested on P4080DS and MPC8536DS board based on

Re: [PATCH 02/11] powerpc/nvram: More flexible nvram_create_partition()

2010-08-02 Thread Benjamin Herrenschmidt
On Mon, 2010-08-02 at 10:55 +1000, Benjamin Herrenschmidt wrote: > Replace nvram_create_os_partition() with a variant that takes > the partition name, signature and size as arguments. > > Signed-off-by: Benjamin Herrenschmidt > --- > arch/powerpc/kernel/nvram_64.c | 46