All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ivan Kuten <ivan.kuten-NihHnkIkDZhBDgjK7y7TUQ@public.gmane.org>
To: Haavard Skinnemoen <hskinnemoen-AIFe0yeh4nAAvxtiuMwx3w@public.gmane.org>
Cc: Nicolas-MRDXTZLjjMs8G+1z+Pypc6QD96bmaF075NbjCUgZEJk@public.gmane.org,
	Ferre <nicolas.ferre-XEyKDsrmbOsS+FvcfC7Uqw@public.gmane.org>,
	Bill Gatliff <bgat-uPd5UNENI//N9NzbbXoYwQ@public.gmane.org>,
	David Brownell <david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org>,
	andrew-eS41wJS13H5l57MIdRCFDg@public.gmane.org,
	spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: problem with converting from at91_spi to atmel_spi (AT91RM9200)
Date: Fri, 25 May 2007 18:02:36 +0300	[thread overview]
Message-ID: <20070525180236.33f634d2@newbox> (raw)
In-Reply-To: <20070524133646.62bbc386-RzfXdsu3MTOUA/xf2v/QOMGzbamoMwWuEvhb3Hwu1Ks@public.gmane.org>

On Thu, 24 May 2007 13:36:46 +0200
Haavard Skinnemoen wrote:

> 
> Is there any way you can get a dump of what the CPU is doing? Magic
> SysRq, NMI, etc?
> 
> Håvard

Unfortunately I could not get SysRq working on Ateml dbgu.
I installed GPIO IRQ handler 

static irqreturn_t chubpower_irq_handler(int irq, void *context)
{
        printk(KERN_EMERG "Power!\n");
        dump_stack();
        return IRQ_HANDLED;
}

and triggered it when the system stumbled on Dataflash init, also I added some printks:

eth0: Link now 100-FullDuplex
eth0: AT91 ethernet at 0xfefbc000 int=24 100-FullDuplex (00:12:34:56:78:9a)
eth0: National Semiconductor DP83848 PHY
spi_register_driver : line 163
enter atmel_spi_probe : line 546
atmel_spi_probe : line 603
atmel_spi atmel_spi.0: Atmel SPI Controller at 0xfffe0000 (irq 13)
spi_register_master : line 428
scan_boardinfo : line 318
spi_new_device : line 213
enter atmel_spi_setup : line 390
leave atmel_spi_setup : line 462
spi_drv_probe : line 136
dataflash_probe : line 536
dataflash_status : line 114
enter spi_w8r8 : line 617
enter spi_write_then_read : line 596
before spi_sync spi_write_then_read : line 629
enter atmel_spi_transfer : line 474
enter atmel_spi_dma_map_xfer : line 201
leave atmel_spi_dma_map_xfer : line 212
enter atmel_spi_dma_map_xfer : line 201
leave atmel_spi_dma_map_xfer : line 212
enter atmel_spi_next_message : line 182
cs_activate : line 77
enter atmel_spi_next_xfer : line 106
leave atmel_spi_next_xfer : line 173
leave atmel_spi_next_message : line 195
leave atmel_spi_transfer : line 524
Power!
[<c0023e60>] (dump_stack+0x0/0x14) from [<c0029440>] (chubpower_irq_handler+0x18/0x24)
[<c0029428>] (chubpower_irq_handler+0x0/0x24) from [<c0054980>] (handle_IRQ_event+0x44/0x80)
[<c005493c>] (handle_IRQ_event+0x0/0x80) from [<c0055c18>] (handle_simple_irq+0x80/0xb4)
 r7:00000003 r6:00000001 r5:0000005c r4:c01e4284
[<c0055b98>] (handle_simple_irq+0x0/0xb4) from [<c0029298>] (gpio_irq_handler+0xa0/0xcc)
 r5:c01e4284 r4:0000005c
[<c00291f8>] (gpio_irq_handler+0x0/0xcc) from [<c001f048>] (asm_do_IRQ+0x48/0x70)
[<c001f000>] (asm_do_IRQ+0x0/0x70) from [<c001fac4>] (__irq_svc+0x24/0x60)
Exception stack(0xc01ddf50 to 0xc01ddf98)
df40:                                     00000000 fefff830 00000000 60000013 
df60: c01dc000 c0020908 c01dff78 c02082ec 2001c184 41129200 2001c150 c01ddfa4 
df80: c01ddfa8 c01ddf98 c0020948 c0020954 60000013 ffffffff                   
 r7:c02082ec r6:00000003 r5:fefff000 r4:ffffffff
[<c0020908>] (default_idle+0x0/0x54) from [<c00209b4>] (cpu_idle+0x58/0x7c)
[<c002095c>] (cpu_idle+0x0/0x7c) from [<c001f2bc>] (__exception_text_end+0x48/0x58)
 r6:c001df28 r5:c01efe48 r4:c01f8ae4
[<c001f274>] (__exception_text_end+0x0/0x58) from [<c0008ab8>] (start_kernel+0x27c/0x2e4)
[<c000883c>] (start_kernel+0x0/0x2e4) from [<20008030>] (0x20008030)
 r6:c01dfc54 r5:c01f0304 r4:c0007175

Seems it was in the idle state.

BR,
Ivan



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
spi-devel-general mailing list
spi-devel-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/spi-devel-general

  parent reply	other threads:[~2007-05-25 15:02 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-23 11:34 problem with converting from at91_spi to atmel_spi (AT91RM9200) Ivan Kuten
2007-05-23 16:06 ` David Brownell
     [not found]   ` <200705230906.13353.david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org>
2007-05-23 16:29     ` Ivan Kuten
2007-05-24 11:36     ` Haavard Skinnemoen
     [not found]       ` <20070524133646.62bbc386-RzfXdsu3MTOUA/xf2v/QOMGzbamoMwWuEvhb3Hwu1Ks@public.gmane.org>
2007-05-24 16:31         ` David Brownell
     [not found]           ` <200705240931.43663.david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org>
2007-05-24 17:20             ` Bill Gatliff
     [not found]               ` <4655C956.8080300-uPd5UNENI//N9NzbbXoYwQ@public.gmane.org>
2007-05-24 18:24                 ` Ivan Kuten
2007-05-24 18:43                   ` Bill Gatliff
2007-05-25  7:07                   ` Andrew Victor
     [not found]                     ` <1180076844.23793.6.camel-WDSYOcD6Br5jTuWFell1NFaTQe2KTcn/@public.gmane.org>
2007-05-25 14:19                       ` Ivan Kuten
2007-05-25 14:41                         ` Andrew Victor
2007-05-25 16:51                         ` David Brownell
     [not found]                           ` <200705250951.06614.david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org>
2007-05-25 16:54                             ` Bill Gatliff
2007-05-25 15:02         ` Ivan Kuten [this message]
2007-05-25 15:55           ` Haavard Skinnemoen
     [not found]             ` <20070525175502.4927c151-RzfXdsu3MTOUA/xf2v/QOMGzbamoMwWuEvhb3Hwu1Ks@public.gmane.org>
2007-05-26 14:02               ` Ivan Kuten
2007-05-27 12:45                 ` Haavard Skinnemoen
2007-05-24 15:27     ` Ivan Kuten

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=20070525180236.33f634d2@newbox \
    --to=ivan.kuten-nihhnkikdzhbdgjk7y7tuq@public.gmane.org \
    --cc=Nicolas-MRDXTZLjjMs8G+1z+Pypc6QD96bmaF075NbjCUgZEJk@public.gmane.org \
    --cc=andrew-eS41wJS13H5l57MIdRCFDg@public.gmane.org \
    --cc=bgat-uPd5UNENI//N9NzbbXoYwQ@public.gmane.org \
    --cc=david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org \
    --cc=hskinnemoen-AIFe0yeh4nAAvxtiuMwx3w@public.gmane.org \
    --cc=nicolas.ferre-XEyKDsrmbOsS+FvcfC7Uqw@public.gmane.org \
    --cc=spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    /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.