kernel 2.6.33 fail to mount rootfs on ramdisk

2010-08-10 Thread Shawn Jin
Hi, The kernel 2.6.33 failed to mount the rootfs on the ramdisk. I enabled the ramdisk block device support and ext2 filesystem as shown below. CONFIG_BLK_DEV_RAM=y CONFIG_BLK_DEV_RAM_COUNT=16 CONFIG_BLK_DEV_RAM_SIZE=4096 CONFIG_EXT2_FS=y Are these adequate configurations for kernel to support r

Re: [PATCH] powerpc: Feature nop out reservation clear when stcx checks address

2010-08-10 Thread Paul Mackerras
On Wed, Aug 11, 2010 at 03:20:05PM +1000, Anton Blanchard wrote: > All recent POWER CPUs check the address before letting the stcx succeed > so we can create a CPU feature and nop it out. As Ben suggested, we can > only do this in our syscall path because there is a remote possibility > some kerne

[PATCH] powerpc, perf_event: Reduce latency of calling perf_event_do_pending

2010-08-10 Thread Paul Mackerras
Commit 0fe1ac48 ("powerpc/perf_event: Fix oops due to perf_event_do_pending call") moved the call to perf_event_do_pending in timer_interrupt() down so that it was after the irq_enter() call. Unfortunately this moved it after the code that checks whether it is time for the next decrementer clock ev

[PATCH] powerpc: move arch_sd_sibling_asym_packing() to smp.c

2010-08-10 Thread Michael Neuling
Simple cleanup by moving arch_sd_sibling_asym_packing from process.c to smp.c to save an #ifdef CONFIG_SMP No functionality change. Signed-off-by: Michael Neuling --- arch/powerpc/kernel/process.c | 11 --- arch/powerpc/kernel/smp.c |9 + 2 files changed, 9 insertion

[PATCH] powerpc: Feature nop out reservation clear when stcx checks address

2010-08-10 Thread Anton Blanchard
The POWER architecture does not require stcx to check that it is operating on the same address as the larx. This means it is possible for an an exception handler to execute a larx, get a reservation, decide not to do the stcx and then return back with an active reservation. If the interrupted code

RE: [PATCH 1/2] mmc: change ACMD12 to AUTO_CMD12 for more clear

2010-08-10 Thread Zang Roy-R61911
> -Original Message- > From: Zang Roy-R61911 > Sent: Tuesday, August 10, 2010 17:47 PM > To: a...@linux-foundation.org; linux-...@vger.kernel.org > Cc: linuxppc-...@ozlabs.org; mir...@gmail.com; > cbouatmai...@gmail.com; grant.lik...@secretlab.ca > Subject: [PATCH 1/2] mmc: change ACMD

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

2010-08-10 Thread Zang Roy-R61911
> -Original Message- > From: Zang Roy-R61911 > Sent: Friday, August 06, 2010 10:52 AM > To: linux-...@lists.infradead.org > Cc: linuxppc-...@ozlabs.org; a...@linux-foundation.org; Gala > Kumar-B11780; Lan Chunhe-B25806 > Subject: [PATCH 1/3][MTD] P4080/eLBC: Make Freescale elbc > inte

Re: [PATCH][RFC] preempt_count corruption across H_CEDE call with CONFIG_PREEMPT on pseries

2010-08-10 Thread Darren Hart
On 07/22/2010 11:38 AM, Thomas Gleixner wrote: On Thu, 22 Jul 2010, Darren Hart wrote: Also of interest is that this path cpu_idle()->cpu_die()->pseries_mach_cpu_die() to start_secondary() enters with a preempt_count=1 if it wasn't corrupted across the hcall. That triggers the problem as well

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

2010-08-10 Thread Guenter Roeck
On Tue, 2010-08-10 at 11:20 -0400, Stephen Rothwell wrote: > Hi Jean, > > On Wed, 11 Aug 2010 01:17:33 +1000 Stephen Rothwell > wrote: > > > > On Tue, 10 Aug 2010 15:43:37 +0200 Jean Delvare wrote: > > > > > > Related bug? > > > > > > https://bugzilla.kernel.org/show_bug.cgi?id=16544 > > > >

Accessing GPIO registers on MPC8377ERDB board

2010-08-10 Thread Ravi Gupta
Hi, I want to access the GPIO registers present in MPC8377ERDB board. I have to write a GPIO driver for that, I am completely confused that how to do it. Please suggest some way or doc to start with. For the start-up, I was thinking of setting GPIO pins 9, 10 and 11 present on the board to active

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

2010-08-10 Thread Stephen Rothwell
Hi Jean, On Wed, 11 Aug 2010 01:17:33 +1000 Stephen Rothwell wrote: > > On Tue, 10 Aug 2010 15:43:37 +0200 Jean Delvare wrote: > > > > Related bug? > > > > https://bugzilla.kernel.org/show_bug.cgi?id=16544 > > Yep, fixed in linux-next today - hopefully the fix is on its way to Linus. Sorry,

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

2010-08-10 Thread Stephen Rothwell
Hi Jean, On Tue, 10 Aug 2010 15:43:37 +0200 Jean Delvare wrote: > > Related bug? > > https://bugzilla.kernel.org/show_bug.cgi?id=16544 Yep, fixed in linux-next today - hopefully the fix is on its way to Linus. -- Cheers, Stephen Rothwells...@canb.auug.org.au http://www.can

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

2010-08-10 Thread Jean Delvare
On Mon, 2 Aug 2010 16:31:28 -0700, Greg KH wrote: > 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

Re: [spi-devel-general] [PATCH v2 4/6] mtd: m25p80: add a read function to read page by page

2010-08-10 Thread David Brownell
--- On Tue, 8/10/10, Grant Likely wrote: > This one bothers me, but I can't put my > finger on it. The flag feels > like a controller specific hack. That's because it *IS* ... Not clear what a good fix would look like. But in general, SPI master controllers are responsible for returning all b

Re: [PATCH 8/8] v5 Update memory-hotplug documentation

2010-08-10 Thread Nathan Fontenot
On 08/09/2010 03:44 PM, Nishanth Aravamudan wrote: > On Monday, August 09, 2010 11:43:46 am Nathan Fontenot wrote: >> Update the memory hotplug documentation to reflect the new behaviors of >> memory blocks reflected in sysfs. > > > >> Index: linux-2.6/Documentation/memory-hotplug.txt >> ===

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

2010-08-10 Thread Zang Roy-R61911
> -Original Message- > From: Michał Mirosław [mailto:mir...@gmail.com] > Sent: Tuesday, August 10, 2010 2:25 AM > To: Zang Roy-R61911 > Cc: linux-...@vger.kernel.org; linuxppc-...@ozlabs.org; > a...@linux-foundation.org > Subject: Re: [PATCH 1/3 v2] sdhci: Add auto CMD12 support for >

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

2010-08-10 Thread Zang Roy-R61911
> -Original Message- > From: Anton Vorontsov [mailto:cbouatmai...@gmail.com] > Sent: Tuesday, August 10, 2010 1:44 AM > To: Grant Likely > Cc: Zang Roy-R61911; linuxppc-...@ozlabs.org; > a...@linux-foundation.org; linux-...@vger.kernel.org > Subject: Re: [PATCH 1/3 v2] sdhci: Add auto

[PATCH 2/2] mmc: some nip clean up for the sdhci driver

2010-08-10 Thread Roy Zang
remove the extra line and rewrite the if condition line. Signed-off-by: Roy Zang --- drivers/mmc/host/sdhci-of-core.c |1 - drivers/mmc/host/sdhci.c |5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/mmc/host/sdhci-of-core.c b/drivers/mmc/host/sdhci-

[PATCH 1/2] mmc: change ACMD12 to AUTO_CMD12 for more clear

2010-08-10 Thread Roy Zang
Change ACMD12 to AUTO_CMD12 to reduce the confusion. ACMD12 might be confused with MMC/SD App CMD 12 (CMD55+CMD12 combo). Signed-off-by: Roy Zang --- drivers/mmc/host/sdhci-of-core.c |2 +- drivers/mmc/host/sdhci.c |8 drivers/mmc/host/sdhci.h | 10 +-

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

2010-08-10 Thread Zang Roy-R61911
> -Original Message- > From: glik...@secretlab.ca [mailto:glik...@secretlab.ca] On > Behalf Of Grant Likely > Sent: Thursday, August 05, 2010 9:03 AM > To: Zang Roy-R61911 > Cc: linux-...@vger.kernel.org; linuxppc-...@ozlabs.org; > a...@linux-foundation.org > Subject: Re: [PATCH 1/3 v2

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

2010-08-10 Thread Grant Likely
On Tue, Aug 10, 2010 at 1:14 AM, David Brownell wrote: > > > --- On Mon, 8/9/10, Grant Likely wrote: > > >> > +       nr_parts = >> of_mtd_parse_partitions(&spi->dev, np, &parts); > > Let's keep OF-specific logic out of drivers like > this one ...  intended to work without OF. > > NAK on adding d

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

2010-08-10 Thread David Brownell
--- On Mon, 8/9/10, Grant Likely wrote: > > +       nr_parts = > of_mtd_parse_partitions(&spi->dev, np, &parts); Let's keep OF-specific logic out of drivers like this one ... intended to work without OF. NAK on adding dependencies like OF to drivers and other infrastructure that starts gene

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

2010-08-10 Thread Grant Likely
Hi Mingkai, one comment below. Otherwise this patch looks good, and so does patch 5. g. On Mon, Aug 2, 2010 at 1:52 AM, Mingkai Hu wrote: > Signed-off-by: Mingkai Hu > --- > > v2: >  - Remove the whitespace inconsitencies > >  arch/powerpc/boot/dts/mpc8536ds.dts |   52 >

Re: mpc870: hctosys.c unable to open rtc device rtc0

2010-08-10 Thread Shawn Jin
> Thanks Scott for the confirmation. I added that to my dts file and the > driver did try to probe the device. But accessing the device timed > out. There are some microcode patches related to I2C that I've not > applied. I'll try the patch(es) later. But how can I find out which > patch should be

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

2010-08-10 Thread Grant Likely
[adding David Woodhouse] (Btw, you should cc: David Woodhouse and the mtd list on the MTD patches). On Mon, Aug 2, 2010 at 1:52 AM, Mingkai Hu wrote: > For Freescale's eSPI controller, the max transaction length one time > is limitted by the SPCOM[TRANSLEN] field which is 0x. When used > mkf