mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Peter Kardos <kardos.peter.sk@gmail.com>
To: Sascha Hauer <s.hauer@pengutronix.de>
Cc: barebox@lists.infradead.org
Subject: Re: AT91RM9200 hang in atmel_serial_putc
Date: Mon, 22 Aug 2016 11:00:48 +0200	[thread overview]
Message-ID: <63af30cc-9fd5-3283-a9f2-9e98e507d581@gmail.com> (raw)
In-Reply-To: <20160822061049.GC20657@pengutronix.de>

During the weekend I've played with this some more...
It seems that the "breakage" was introduced with v2016.05. This version
introduced the "exception vector remapping to 0xFFFF*".
Unfortunately AT91RM9200 has peripherals in this region.

I'll test the patch tonight when i get home.

Peter

On 2016-08-22 08:10, Sascha Hauer wrote:
> On Thu, Aug 18, 2016 at 11:15:33PM +0200, Peter Kardos wrote:
>> Hi Sascha,
>>
>> I may have something. It seems the memory (MMU?) gets "messed" up;
>>
>> Reading the debug uart registers (v2015.07) gives reasonable results, like
>>      (gdb) x/32w 0xfffff200
>>      0xfffff200:    0x00000000    0x00000800    0x00000000 0x00000000
>>      0xfffff210:    0x00000000    0x40001a1a    0x00000000 0x00000000
>>      0xfffff220:    0x00000021    0x00000000    0x00000000 0x00000000
>>      0xfffff230:    0x00000000    0x00000000    0x00000000 0x00000000
>>      0xfffff240:    0x09290781    0x00000000    0x00000000 0x00000000
>>
>> However the content from v2016.08 gives
>>
>> 0xFFFFF200    D78D7E1F    F1139ADE    413E0FE5    BBFB6DF2
>> 0xFFFFF210    7D78666E    79CBDEA6    8FB2CB03    BEF6C2B7
>> 0xFFFFF220    C9071D17    FA1EFA2D    C4BCD95E    27D73C7C
>> 0xFFFFF230    727C3437    DFBDEBED    69C45C2A    7F5958F6
>> 0xFFFFF240    834B237E    F8B8A211    1AC74D66    FAE06274
> Uh, this indeed seems to be messed up by the MMU, more specifically
> during setup of the vector table. Could you try the attached patch?
> It's not a solution, but is a clear indication that the bug is in this
> area.
>
> Sascha
>
> ---------------------------8<--------------------------------
>
>  From eb66f09db694a0bc1fc88cde8d86e47faf6debf9 Mon Sep 17 00:00:00 2001
> From: Sascha Hauer <s.hauer@pengutronix.de>
> Date: Mon, 22 Aug 2016 08:05:38 +0200
> Subject: [PATCH] ARM: Disable vector table (tmp)
>
> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
> ---
>   arch/arm/cpu/mmu.c | 2 ++
>   1 file changed, 2 insertions(+)
>
> diff --git a/arch/arm/cpu/mmu.c b/arch/arm/cpu/mmu.c
> index a31bce4..fc26077 100644
> --- a/arch/arm/cpu/mmu.c
> +++ b/arch/arm/cpu/mmu.c
> @@ -289,6 +289,8 @@ static void create_vector_table(unsigned long adr)
>   	u32 *exc;
>   	int idx;
>   
> +	return;
> +
>   	vectors_sdram = request_sdram_region("vector table", adr, SZ_4K);
>   	if (vectors_sdram) {
>   		/*


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  reply	other threads:[~2016-08-22  9:01 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-18  1:08 Peter Kardos
2016-08-18  7:38 ` Sascha Hauer
2016-08-18  8:00   ` Peter Kardos
2016-08-18 21:15     ` Peter Kardos
2016-08-22  6:10       ` Sascha Hauer
2016-08-22  9:00         ` Peter Kardos [this message]
2016-08-22 20:39           ` Peter Kardos
2016-08-24 12:24             ` Sascha Hauer
2016-08-25 20:53               ` Peter Kardos

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=63af30cc-9fd5-3283-a9f2-9e98e507d581@gmail.com \
    --to=kardos.peter.sk@gmail.com \
    --cc=barebox@lists.infradead.org \
    --cc=s.hauer@pengutronix.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox