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

2010-08-01 Thread Anton Vorontsov
On Mon, Aug 02, 2010 at 02:19:58PM +0800, Zang Roy-R61911 wrote: [...] > > For p4080 it will be 'voltage-ranges = <3200 3400>;'. So, with > > voltage-ranges we can do fine grained VDD control without > > introducing anything new. > why not >voltage-ranges = <3300 3300>; Right you a

Re: ramdisk size is larger than 4MB

2010-08-01 Thread Shawn Jin
>> It should be fine to just change it locally.  It would be a problem to >> change it upstream for all boards, since some supported boards have >> only 16MB (or even 8MB) of RAM. > > I'll definitely try to change it locally first. Would a configurable > base address for the bootwrapper an acceptab

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

2010-08-01 Thread Zang Roy-R61911
> -Original Message- > From: Anton Vorontsov [mailto:cbouatmai...@gmail.com] > Sent: Friday, July 30, 2010 15:06 PM > To: Zang Roy-R61911 > Cc: linux-...@vger.kernel.org; linuxppc-...@ozlabs.org; > a...@linux-foundation.org > Subject: Re: [PATCH 3/3 v2] mmc: Add ESDHC weird voltage bit

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

2010-08-01 Thread Paul Mackerras
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://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip Posting here

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

2010-08-01 Thread Benjamin Herrenschmidt
On Mon, 2010-08-02 at 13:43 +1000, Michael Ellerman wrote: > > > > /* try creating a partition with the free space we have */ > > - rc = nvram_create_partition("ppc64,linux", ); > > That looks odd? Trailing comma. Yeah, that and... > > diff --git a/arch/powerpc/platforms/pseries/nvra

Re: [PATCH 05/11] powerpc/nvram: Completely clear a new partition

2010-08-01 Thread Michael Ellerman
On Mon, 2010-08-02 at 10:55 +1000, Benjamin Herrenschmidt wrote: > When creating a partition, we clear it entirely rather than > just the first two words since the previous code was rather > specific to the pseries log partition format. > > Signed-off-by: Benjamin Herrenschmidt > --- > arch/powe

Re: [PATCH 03/11] powerpc/nvram: nvram_create_partitions() now uses bytes

2010-08-01 Thread Michael Ellerman
On Mon, 2010-08-02 at 10:55 +1000, Benjamin Herrenschmidt wrote: > This converts nvram_create_partition() to use a size in bytes > rather than blocks. It does the appropriate alignment internally > > The size passed is also the data size (ie. doesn't include the > header anymore). > > Signed-off-

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

2010-08-01 Thread Michael Ellerman
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

Re: [PATCH 10/11] powerpc/nvram: Move the log partition stuff to pseries

2010-08-01 Thread Benjamin Herrenschmidt
On Mon, 2010-08-02 at 10:55 +1000, Benjamin Herrenschmidt wrote: > The nvram log partition stuff currently in nvram_64.c is really > pseries specific. It isn't actually used on anything else (despite > the fact that we ran the code to setup the partition on anything > except powermac) and the log f

[PATCH 11/11] powerpc/nvram: Rename ppc64, linux partition to ibm, rtas-log

2010-08-01 Thread Benjamin Herrenschmidt
I'm not aware of any userspace tool accessing it by its name anyways, it's read back by the kernel itself on the next boot to get back older log entries Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/platforms/pseries/nvram.c | 23 +-- 1 files changed, 13 insertions

[PATCH 10/11] powerpc/nvram: Move the log partition stuff to pseries

2010-08-01 Thread Benjamin Herrenschmidt
The nvram log partition stuff currently in nvram_64.c is really pseries specific. It isn't actually used on anything else (despite the fact that we ran the code to setup the partition on anything except powermac) and the log format is specific to pseries RTAS implementation. So move it where it bel

[PATCH 09/11] powerpc/nvram: Change nvram_setup_partition() to use new helper

2010-08-01 Thread Benjamin Herrenschmidt
This changes the function to use nvram_find_partition() instead of doing the lookup "by hand". It also makes some of the logic clearer and prints out more useful diagnostic information. Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/kernel/nvram_64.c | 72 ++

[PATCH 08/11] powerpc/nvram: Add nvram_find_partition()

2010-08-01 Thread Benjamin Herrenschmidt
Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/kernel/nvram_64.c | 22 ++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/kernel/nvram_64.c b/arch/powerpc/kernel/nvram_64.c index c934b5a..fd0d12d 100644 --- a/arch/powerpc/kernel/nvram_64.

[PATCH 06/11] powerpc/nvram: Shuffle code around in nvram_create_partition()

2010-08-01 Thread Benjamin Herrenschmidt
This error log stuff is really pseries specific. As a first step we move the initialization of these variables to the caller of nvram_create_partition(), which is also slightly reorganized so we setup the free partition before we clear the new partition, so the chance of an error during clear leavi

[PATCH 07/11] powerpc/nvram: Improve partition removal

2010-08-01 Thread Benjamin Herrenschmidt
Existing code is nasty, has bugs etc... rewrite the function more simply, and make it take the signature and optional name of the partitions to remove as arguments, thus making it a more generic utility. We also try to remove a log partition that we find and is too small rather than creating a dup

[PATCH 03/11] powerpc/nvram: nvram_create_partitions() now uses bytes

2010-08-01 Thread Benjamin Herrenschmidt
This converts nvram_create_partition() to use a size in bytes rather than blocks. It does the appropriate alignment internally The size passed is also the data size (ie. doesn't include the header anymore). Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/kernel/nvram_64.c | 20

[PATCH 05/11] powerpc/nvram: Completely clear a new partition

2010-08-01 Thread Benjamin Herrenschmidt
When creating a partition, we clear it entirely rather than just the first two words since the previous code was rather specific to the pseries log partition format. Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/kernel/nvram_64.c | 19 ++- 1 files changed, 10 insertion

[PATCH 04/11] powerpc/nvram: Ensure that the partition header/block size is right

2010-08-01 Thread Benjamin Herrenschmidt
Use BUILD_BUG_ON to ensure the structure representing a partition header have the right size. Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/kernel/nvram_64.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/kernel/nvram_64.c b/arch/powerpc/kernel/nv

[RFC] Clean up ppc64 nvram code

2010-08-01 Thread Benjamin Herrenschmidt
This series is a first go at cleaning up some cruft in nvram_64.c for handling nvram partitions. The current ppc64,linux partition is really pseries specific, so we change the code for finding/creating it gets turned into a more generic API for manipulating nvram partitions, and the specifics to th

[PATCH 01/11] powerpc/nvram: Move things out of asm/nvram.h

2010-08-01 Thread Benjamin Herrenschmidt
This moves a bunch of definitions out of asm/nvram.h to the files that use them or just outright remove completely unused stuff. We leave the partition signatures definitions, they will be useful Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/include/asm/nvram.h | 42 +--

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

2010-08-01 Thread Benjamin Herrenschmidt
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 +++ arch/powerpc/platforms/pseries/nvram.c |6 ++-- 2 files

[git pull] powerpc 5xxx and xilinx virtex changes

2010-08-01 Thread Grant Likely
Hi Ben, Here are the mpc5xxx and Xilinx virtex changes I've collected for the 2.6.36 merge window. Please pull. g. The following changes since commit b37fa16e78d6f9790462b3181602a26b5af36260: Linus Torvalds (1): Linux 2.6.35-rc6 are available in the git repository at: git://git.se

Re: [PATCH 00/27] KVM PPC PV framework v3

2010-08-01 Thread Alexander Graf
On 01.08.2010, at 16:02, Avi Kivity wrote: > On 07/29/2010 03:47 PM, Alexander Graf wrote: >> On PPC we run PR=0 (kernel mode) code in PR=1 (user mode) and don't use the >> hypervisor extensions. >> >> While that is all great to show that virtualization is possible, there are >> quite some cases

Re: [PATCH 4/7] KVM: PPC: Add book3s_32 tlbie flush acceleration

2010-08-01 Thread Alexander Graf
On 01.08.2010, at 16:08, Avi Kivity wrote: > On 07/29/2010 04:04 PM, Alexander Graf wrote: >> On Book3s_32 the tlbie instruction flushed effective addresses by the mask >> 0x0000. This is pretty hard to reflect with a hash that hashes ~0xfff, so >> to speed up that target we should also keep

Re: [PATCH 0/7] Rest of my KVM-PPC patch queue

2010-08-01 Thread Avi Kivity
On 07/29/2010 04:04 PM, Alexander Graf wrote: During the past few weeks a couple of fixes have gathered in my queue. This is a dump of everything that is not related to the PV framework. Please apply on top of the PV stuff. Looks reasonable as well. I'll apply as soon as I get a review on t

Re: [PATCH 4/7] KVM: PPC: Add book3s_32 tlbie flush acceleration

2010-08-01 Thread Avi Kivity
On 07/29/2010 04:04 PM, Alexander Graf wrote: On Book3s_32 the tlbie instruction flushed effective addresses by the mask 0x0000. This is pretty hard to reflect with a hash that hashes ~0xfff, so to speed up that target we should also keep a special hash around for it. static inline u64 k

Re: [PATCH 00/27] KVM PPC PV framework v3

2010-08-01 Thread Avi Kivity
On 07/29/2010 03:47 PM, Alexander Graf wrote: On PPC we run PR=0 (kernel mode) code in PR=1 (user mode) and don't use the hypervisor extensions. While that is all great to show that virtualization is possible, there are quite some cases where the emulation overhead of privileged instructions is

Re: [PATCH 2/7] usb: fsl_udc_core: check return value of create_proc_read_entry()

2010-08-01 Thread Dan Carpenter
On Sun, Aug 01, 2010 at 10:19:34AM +0400, Vasiliy Kulikov wrote: > On Sat, Jul 31, 2010 at 21:17 +0200, Dan Carpenter wrote: > > On Sat, Jul 31, 2010 at 09:38:20PM +0400, Kulikov Vasiliy wrote: > > > create_proc_read_entry() may fail, if so return -ENOMEM. > > > > > > > It can fail, but also we r

Re: [PATCH 2/7] usb: fsl_udc_core: check return value of create_proc_read_entry()

2010-08-01 Thread Dan Carpenter
On Sat, Jul 31, 2010 at 09:38:20PM +0400, Kulikov Vasiliy wrote: > create_proc_read_entry() may fail, if so return -ENOMEM. > It can fail, but also we return NULL if procfs is disabled. I haven't looked at it very carefully, would this patch break the module if procfs was disabled? The same app

[PATCH] edac: mpc85xx: Add support for new MPCxxx/Pxxxx EDAC controllers (fix)

2010-08-01 Thread Anton Vorontsov
On Wed, Jul 21, 2010 at 06:21:08PM -0500, Scott Wood wrote: [...] > > > > + { .compatible = "fsl,p4080-l2-cache-controller", }, > > > > > > L2 on the p4080 is quite different from those other chips. It's part > > > of the core, controlled by SPRs. > > > > erm, was that an ack or a nack? > >

Re: [PATCH] of/device: Replace struct of_device with struct of_platform

2010-08-01 Thread Grant Likely
On Sun, Aug 1, 2010 at 2:05 AM, David Miller wrote: > > Subject should say "struct platform_device" not "struct of_platform", > I think :-) Gah! yup, will fix. Thanks. g. -- Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd. ___ Linuxppc-dev

Re: [PATCH] of/device: Replace struct of_device with struct of_platform

2010-08-01 Thread David Miller
Subject should say "struct platform_device" not "struct of_platform", I think :-) ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

[PATCH] of/device: Replace struct of_device with struct of_platform

2010-08-01 Thread Grant Likely
of_device is just an alias for platform_device, so remove it entirely. Also replace to_of_device() with to_platform_device(). This patch was initially generated from the following semantic patch, and then edited by hand to pick up the bits that coccinelle didn't catch. @@ @@ -struct of_device +s