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
[email protected]
https://lists.sourceforge.net/lists/listinfo/spi-devel-general

Reply via email to