All of lore.kernel.org
 help / color / mirror / Atom feed
From: Holger Brunck <holger.brunck@keymile.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Bug#655102: v2011.12 and later do not boot on dreamplug.
Date: Mon, 09 Jan 2012 11:59:51 +0100	[thread overview]
Message-ID: <4F0AC8A7.10103@keymile.com> (raw)
In-Reply-To: <1326052145.29084.72.camel@dagon.hellion.org.uk>

On 01/08/2012 09:00 PM, Ian Campbell wrote:
> On Sun, 2012-01-08 at 15:30 +0000, Ian Campbell wrote:
>> v2011.12 hangs on boot on my dreamplug with:
>>
>>         U-Boot 2011.12-dirty (Jan 08 2012 - 15:16:44)
>>         Marvell-DreamPlug
>>         
>>         SoC:   Kirkwood 88F6281_A1
>>         DRAM:  512 MiB
>>         WARNING: Caches not enabled
>>
>> I bisected it down to:
>>         commit ca4b55800ed74207c35271bf7335a092d4955416
>>         Author: Heiko Schocher <hs@denx.de>
>>         Date:   Wed Nov 9 20:06:23 2011 +0000
>>         
>>             arm, arm926ejs: always do cpu critical inits
>>             
>>             always do the cpu critical inits in cpu_init_crit,
>>             and only jump to lowlevel_init, if CONFIG_SKIP_LOWLEVEL_INIT
>>             is not defined.
>>             
>>             Signed-off-by: Heiko Schocher <hs@denx.de>
>>             Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
>>             Cc: Wolfgang Denk <hs@denx.de>
>>             Cc: Sandeep Paulraj <s-paulraj@ti.com>
>>             Cc: Tom Rini <tom.rini@gmail.com>
>>             Cc: Christian Riesch <christian.riesch@omicron.at>
>>
>> and in particular the line
>> 	orr	r0, r0, #0x00000002	/* set bit 2 (A) Align */
>>
>> Commenting out just that one line causes things to work. Is the error
>> setting this bit or is it that there is a bug somewhere else which
>> prevents us setting this bit?
> 
> Seem that the latter is the case. The following fixes it for me.
> 
> (BTW, my mails to u-boot@ seem to be getting moderated, even though I am
> subscribed, is that normal?)
> 
> 8<-------------------------------------------------------------
> 
> From d6bc6e1a4f49314577e0be9af3cd020078593fdb Mon Sep 17 00:00:00 2001
> From: Ian Campbell <ijc@hellion.org.uk>
> Date: Sun, 8 Jan 2012 19:44:38 +0000
> Subject: [PATCH] kirkwood_spi: correct access to irq_mask register
> 
> Problem appears to have been present since day one but masked because alignment
> aborts were not enabled. ca4b55800ed7 "arm, arm926ejs: always do cpu critical
> inits" turned on alignment aborts and uncovered this latent problem.
> 
> Signed-off-by: Ian Campbell <ijc@hellion.org.uk>
> ---
>  drivers/spi/kirkwood_spi.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/spi/kirkwood_spi.c b/drivers/spi/kirkwood_spi.c
> index dfe542d..db8ba8b 100644
> --- a/drivers/spi/kirkwood_spi.c
> +++ b/drivers/spi/kirkwood_spi.c
> @@ -66,7 +66,7 @@ struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs,
>  	debug("data = 0x%08x \n", data);
>  
>  	writel(KWSPI_SMEMRDIRQ, &spireg->irq_cause);
> -	writel(KWSPI_IRQMASK, spireg->irq_mask);
> +	writel(KWSPI_IRQMASK, &spireg->irq_mask);
>  
>  	/* program mpp registers to select  SPI_CSn */
>  	if (cs) {

we had also SPI problems on our km_kirkwood boards with u-boot v2011.12. This
patch fixes it. Thanks! So:

Tested-By: Holger Brunck <holger.brunck@keymile.com>

Regards
Holger

  parent reply	other threads:[~2012-01-09 10:59 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-08 15:30 [U-Boot] v2011.12 and later do not boot on dreamplug Ian Campbell
2012-01-08 15:35 ` Ian Campbell
2012-01-08 19:49 ` Ian Campbell
2012-01-08 22:54   ` Jason
2012-01-12  8:01     ` Ian Campbell
2012-01-12 15:11       ` Jason
2012-01-09 10:59   ` Holger Brunck [this message]
2012-01-12 16:10   ` [U-Boot] [PATCH] kirkwood_spi: correct access to irq_mask register Ian Campbell
2012-01-12 16:22     ` Prafulla Wadaskar
2012-01-12 16:56       ` Ian Campbell
2012-01-27 16:34       ` Ian Campbell
2012-02-08  9:54         ` Prafulla Wadaskar
2012-02-09  6:30           ` Ian Campbell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F0AC8A7.10103@keymile.com \
    --to=holger.brunck@keymile.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.