[#5494] Run tftlcd test case in bf548-ezkit, kernel crashed at the end

Document created by Aaronwu Employee on Sep 4, 2013
Version 1Show Document
  • View in full screen mode

[#5494] Run tftlcd test case in bf548-ezkit, kernel crashed at the end

Submitted By: Vivi Li

Open Date

2009-09-03 22:31:31     Close Date

2009-09-24 23:08:21

Priority:

Medium     Assignee:

Michael Hennerich

Status:

Closed     Fixed In Release:

N/A

Found In Release:

2010R1     Release:

Category:

N/A     Board:

N/A

Processor:

BF548     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Fixed

Uboot version or rev.:

    Toolchain version or rev.:

gcc4.1-09r1-rc9

App binary format:

N/A     

Summary: Run tftlcd test case in bf548-ezkit, kernel crashed at the end

Details:

 

Run tftlcd test case in bf548-ezkit, kernel crashed at the end.

I can reproduce this bug when run test script, but I can not reproduce it manually.

 

--

Linux version 2.6.30.5-ADI-2010R1-pre-svn7258 (test@uclinux61-bf548-std) (gcc version 4.1.2 (ADI svn)) #4 Thu Sep 3 04:54:26 GMT 2009

bootconsole [early_shadow0] enabled

bootconsole [early_BFuart0] enabled

early printk enabled on early_BFuart0

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x0019cca0

  rodata    = 0x0019cca0-0x00233ed0

  bss       = 0x00234000-0x00247448

  data      = 0x00247448-0x00262000

    stack   = 0x00260000-0x00262000

  init      = 0x00262000-0x009f4000

  available = 0x009f4000-0x03dff000

  DMA Zone  = 0x03e00000-0x04000000

Hardware Trace Active and Enabled

Boot Mode: 1

Recovering from Watchdog event

Blackfin support (C) 2004-2009 Analog Devices, Inc.

Compiled for ADSP-BF548 Rev 0.2

Blackfin Linux support by http://blackfin.uclinux.org/

Processor Speed: 525 MHz core clock and 131 MHz System Clock

NOMPU: setting up cplb tables

Instruction Cache Enabled for CPU0

  External memory: cacheable in instruction cache

  L2 SRAM        : uncacheable in instruction cache

Data Cache Enabled for CPU0

  External memory: cacheable (write-back) in data cache

  L2 SRAM        : uncacheable in data cache

Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 15747

Kernel command line: root=/dev/mtdblock0 rw earlyprintk=serial,uart0,57600 ip=10.100.4.50:10.100.4.174:192.168.0.1:255.255.255.0:bf548-ezkit:eth0:off

NR_IRQS:263

Configuring Blackfin Priority Driven Interrupts

PID hash table entries: 256 (order: 8, 1024 bytes)

console [ttyBF0] enabled, bootconsole disabled

console [ttyBF0] enabled, bootconsole disabled

Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)

Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)

Memory available: 52724k/65536k RAM, (7752k init code, 1647k kernel code, 789k data, 2048k dma, 572k reserved)

Calibrating delay loop... 1046.52 BogoMIPS (lpj=2093056)

Security Framework initialized

Mount-cache hash table entries: 512

Blackfin Scratchpad data SRAM: 4 KB

Blackfin L1 Data A SRAM: 16 KB (16 KB free)

Blackfin L1 Data B SRAM: 16 KB (16 KB free)

Blackfin L1 Instruction SRAM: 48 KB (42 KB free)

Blackfin L2 SRAM: 128 KB (128 KB free)

net_namespace: 296 bytes

NET: Registered protocol family 16

Blackfin DMA Controller

ezkit_init(): registering device resources

bio: create slab <bio-0> at 0

SCSI subsystem initialized

usbcore: registered new interface driver usbfs

usbcore: registered new interface driver hub

usbcore: registered new device driver usb

musb_hdrc: version 6.0, musb-dma, host, debug=0

musb_hdrc: USB Host mode controller at ffc03c00 using DMA, IRQ 82

musb_hdrc musb_hdrc.0: MUSB HDRC host driver

musb_hdrc musb_hdrc.0: new USB bus registered, assigned bus number 1

usb usb1: configuration #1 chosen from 1 choice

hub 1-0:1.0: USB hub found

dma_alloc_init: dma_page @ 0x03daf000 - 512 pages at 0x03e00000

hub 1-0:1.0: 1 port detected

NET: Registered protocol family 2

IP route cache hash table entries: 1024 (order: 0, 4096 bytes)

TCP established hash table entries: 2048 (order: 2, 16384 bytes)

TCP bind hash table entries: 2048 (order: 1, 8192 bytes)

TCP: Hash tables configured (established 2048 bind 2048)

TCP reno registered

NET: Registered protocol family 1

msgmni has been set to 102

io scheduler noop registered

io scheduler anticipatory registered (default)

io scheduler cfq registered

bfin-otp: initialized

Serial: Blackfin serial driver

bfin-uart.1: ttyBF0 at MMIO 0xffc02000 (irq = 48) is a BFIN-UART

brd: module loaded

Driver 'sd' needs updating - please use bus_type methods

register bfin atapi driver

scsi0 : pata-bf54x

ata1: PATA max UDMA/66 irq 68

smsc911x: Driver version 2008-10-21.

smsc911x-mdio: probed

eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01, irq=-1)

net eth0: MAC Address: 00:e0:22:fe:bf:4e

physmap platform flash device: 02000000 at 20000000

physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank

Intel/Sharp Extended Query Table at 0x010A

Intel/Sharp Extended Query Table at 0x010A

Intel/Sharp Extended Query Table at 0x010A

Intel/Sharp Extended Query Table at 0x010A

Intel/Sharp Extended Query Table at 0x010A

Using buffer write method

Using auto-unlock on power-up/resume

cfi_cmdset_0001: Erase suspend on write enabled

RedBoot partition parsing not available

Using physmap partition information

Creating 3 MTD partitions on "physmap-flash.0":

0x000000000000-0x000000040000 : "bootloader(nor)"

0x000000040000-0x000000440000 : "linux kernel(nor)"

0x000000440000-0x000001000000 : "file system(nor)"

BF5xx on-chip NAND FLash Controller Driver, Version 1.2 (c) 2007 Analog Devices, Inc.

bf5xx-nand bf5xx-nand.0: page_size=256, data_width=8, wr_dly=3, rd_dly=3

NAND device: Manufacturer ID: 0x20, Chip ID: 0xda (ST Micro NAND 256MiB 3,3V 8-bit)

Creating 2 MTD partitions on "NAND 256MiB 3,3V 8-bit":

0x000000000000-0x000000400000 : "linux kernel(nand)"

0x000000400000-0x000010000000 : "file system(nand)"

m25p80 spi0.1: m25p16 (2048 Kbytes)

Creating 2 MTD partitions on "m25p80":

0x000000000000-0x000000040000 : "bootloader(spi)"

0x000000040000-0x000000200000 : "linux kernel(spi)"

bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_base@ffc00500, dma channel@4

bfin-spi bfin-spi.1: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_base@ffc02300, dma channel@5

Initializing USB Mass Storage driver...

usbcore: registered new interface driver usb-storage

USB Mass Storage support registered.

input: bf54x-keys as /devices/platform/bf54x-keys/input/input0

bf54x-keys: Blackfin BF54x Keypad registered IRQ 76

rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0

i2c /dev entries driver

i2c-bfin-twi i2c-bfin-twi.0: Blackfin BF5xx on-chip I2C TWI Contoller, regs_base@ffc00700

i2c-bfin-twi i2c-bfin-twi.1: Blackfin BF5xx on-chip I2C TWI Contoller, regs_base@ffc02200

bfin-wdt: initialized: timeout=20 sec (nowayout=0)

bfin-sdh bfin-sdh.0: unable to request DMA channel

bfin-sdh: probe of bfin-sdh.0 failed with error -16

usbcore: registered new interface driver usbhid

usbhid: v2.6:USB HID core driver

Advanced Linux Sound Architecture Driver Version 1.0.20.

No device for DAI bf5xx-ac97

dma rx:0 tx:1, err irq:10, regs:ffc00800

AD1980 SoC Audio Codec

asoc: AC97 <-> bf5xx-ac97 mapping ok

ALSA device list:

  #0: bf5xx-board (AD1980)

TCP cubic registered

NET: Registered protocol family 17

rtc-bfin rtc-bfin: setting system clock to 2004-05-31 10:06:27 UTC (1085997987)

ata1.00: ATA-6: TOSHIBA MK4032GAX, AD101A, max UDMA/100

ata1.00: 78140160 sectors, multi 16: LBA48

ata1.00: configured for UDMA/66

blk_queue_max_hw_segments: set to minimum 1

scsi 0:0:0:0: Direct-Access     ATA      TOSHIBA MK4032GA AD10 PQ: 0 ANSI: 5

sd 0:0:0:0: [sda] 78140160 512-byte hardware sectors: (40.0 GB/37.2 GiB)

sd 0:0:0:0: [sda] Write Protect is off

sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA

sda: sda1 sda2

sd 0:0:0:0: [sda] Attached SCSI disk

net eth0: SMSC911x/921x identified at 0x24000000, IRQ: 175

IP-Config: Gateway not on directly connected network.

Freeing unused kernel memory: 7752k freed

                           _____________________________________

        a8888b.           / Welcome to the uClinux distribution \

       d888888b.         /       _     _                         \

       8P"YP"Y88        /       | |   |_|            __  __ (TM)  |

       8|o||o|88  _____/        | |    _ ____  _   _ \ \/ /       |

       8'    .88       \        | |   | |  _ \| | | | \  /        |

       8`._.' Y8.       \       | |__ | | | | | |_| | /  \        |

      d/      `8b.       \      \____||_|_| |_|\____|/_/\_\       |

     dP   .    Y8b.       \   For embedded processors including   |

    d8:'  "  `::88b        \    the Analog Devices Blackfin      /

   d8"         'Y88b        \___________________________________/

  :8P    '      :888

   8a.   :     _a88P         For further information, check out:

._/"Yaa_:   .| 88P|            - http://blackfin.uclinux.org/

\    YP"    `| 8P  `.          - http://docs.blackfin.uclinux.org/

/     \.___.d|    .'           - http://www.uclinux.org/

`--..__)8888P`._.'  jgs/a:f    - http://www.analog.com/blackfin

 

Have a lot of fun...

 

 

BusyBox v1.15.0 (2009-09-03 04:14:29 GMT) hush - the humble shell

 

root:/> version

kernel:    Linux release 2.6.30.5-ADI-2010R1-pre-svn7258, build #4 Thu Sep 3 04:54:26 GMT 2009

toolchain: bfin-uclinux-gcc release gcc version 4.1.2 (ADI svn)

user-dist: release svn-8803, build #61 Thu Sep 3 04:53:31 GMT 2009

root:/>

*******************************************************************

STEP 3: Start testing.

 

 

usb 1-1: new high speed USB device using musb_hdrc and address 2

usb 1-1: configuration #1 chosen from 1 choice

scsi1 : SCSI emulation for USB Mass Storage devices

scsi 1:0:0:0: Direct-Access     SanDisk  U3 Cruzer Micro  6.51 PQ: 0 ANSI: 0 CCS

sd 1:0:0:0: [sdb] 2014271 512-byte hardware sectors: (1.03 GB/983 MiB)

sd 1:0:0:0: [sdb] Write Protect is off

sd 1:0:0:0: [sdb] Assuming drive cache: write through

sd 1:0:0:0: [sdb] Assuming drive cache: write through

sdb: sdb1 sdb2

sd 1:0:0:0: [sdb] Attached SCSI removable disk

 

root:/> modprobe bf54x_lq043fb

bf54x-lq043: FrameBuffer initializing...

root:/>

Case 1 ...PASS

lsmod

Module                  Size  Used by

bf54x_lq043fb           4984  0

cfbcopyarea             3108  1 bf54x_lq043fb

cfbfillrect             2848  1 bf54x_lq043fb

cfbimgblt               1628  1 bf54x_lq043fb

root:/>

Case 2 ...PASS

video_test

 

Case 3 ...PASS

^C

root:/>

Case 4 ...PASS

modprobe -r bf54x_lq043fb

bf54x-lq043: Unregister LCD driver.

root:/>

Case 5 ...PASS

lsmod

------------[ cut here ]------------

kernel BUG at mm/nommu.c:583!

Kernel panic - not syncing: BUG()

Hardware Trace:

   0 Target : <0x00004f90> { _trap_c + 0x0 }

     Source : <0xffa00630> { _exception_to_level5 + 0xa4 } CALL pcrel

   1 Target : <0xffa0058c> { _exception_to_level5 + 0x0 }

     Source : <0xffa00440> { _bfin_return_from_exception + 0x18 } RTX

   2 Target : <0xffa00428> { _bfin_return_from_exception + 0x0 }

     Source : <0xffa004e4> { _ex_trap_c + 0x74 } JUMP.S

   3 Target : <0xffa00470> { _ex_trap_c + 0x0 }

     Source : <0xffa006f6> { _trap + 0x5a } JUMP (P4)

   4 Target : <0xffa0069c> { _trap + 0x0 }

     Source : <0x0003a15e> { ___put_nommu_region + 0x16 } IF !CC JUMP

   5 Target : <0x0003a148> { ___put_nommu_region + 0x0 }

     Source : <0x0003a210> { _put_nommu_region + 0x1c } JUMP.L

   6 Target : <0x0003a208> { _put_nommu_region + 0x14 }

     Source : <0x0019cbbe> { ___down_write_nested + 0xd2 } RTS

   7 Target : <0x0019cba8> { ___down_write_nested + 0xbc }

     Source : <0x0019cb04> { ___down_write_nested + 0x18 } IF CC JUMP

   8 Target : <0x0019caec> { ___down_write_nested + 0x0 }

     Source : <0x0019cbc2> { ___down_write + 0x2 } JUMP.L

   9 Target : <0x0019cbc0> { ___down_write + 0x0 }

     Source : <0x0019c8c0> { _down_write + 0x14 } JUMP.L

  10 Target : <0x0019c8b8> { _down_write + 0xc }

     Source : <0x0019bcea> { __cond_resched + 0x1a } RTS

  11 Target : <0x0019bcd0> { __cond_resched + 0x0 }

     Source : <0x0019c8b4> { _down_write + 0x8 } CALL pcrel

  12 Target : <0x0019c8ac> { _down_write + 0x0 }

     Source : <0x0003a204> { _put_nommu_region + 0x10 } CALL pcrel

  13 Target : <0x0003a1f4> { _put_nommu_region + 0x0 }

     Source : <0x0003a24e> { _delete_vma + 0x3a } CALL pcrel

  14 Target : <0x0003a24a> { _delete_vma + 0x36 }

     Source : <0x0003a238> { _delete_vma + 0x24 } IF !CC JUMP

  15 Target : <0x0003a232> { _delete_vma + 0x1e }

     Source : <0x0003a224> { _delete_vma + 0x10 } IF !CC JUMP

Stack info:

SP: [0x006edc94] <0x006edc94> /* kernel dynamic memory */

FP: (0x006edcf4)

Memory from 0x006edc90 to 006ee000

006edc90: 03d88380 [001e31c8]<0000f598> 0023dd7c  001e31c8  002396be  002396be  002396be

006edcb0: 006edcd0  006edcd0 <00005322> 006edd7c  ffe02014  03d88380  00008008  006edd74

006edcd0: 0024a364  0000003f  0023ffe8  0023ffe8 <0004bb94> 00ed6730  006eef54  00ed679c

006edcf0: 006edd74 (00000000)<0005387c> 006eef54  006eef54 <00045398> 0025f130  0025f154

006edd10: 00000000  0025f130  0025f130  00000000 <000453fc> 03b38470  006ede40 <00031958>

006edd30: 00000000  006eddcc <0002ec0c> 006ede9c  03b3ebe8  00b62860  00000000 <0002eb7a>

006edd50: 00000000  000000f8 <ffa00634> 00236000  00008008  00002021  00000000  00000002

006edd70: 006eddcc  006ede60  00000480  00000480  00008008  00002021  00000000  006ede58

006edd90: 00000480  0003a1ee <0003a252> 00000000  02003025  0058889d  0058d1ff  0058889c

006eddb0: 0058d1fe  00000000  00000000  00000000  00000000  00000000  00000000  00000000

006eddd0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

006eddf0: 00000000  00000000  00000000  00000000  00000000  00000039  005cd18c  005e9e3c

006ede10: 005e9e48  00ec545c  00ecd4e0  03d88380  0023fb18  002518c8  002518cc  00ecd4e0

006ede30: 00000000  00000000  00000002  00000000  00ecd4e4  00000000  00000000  00000000

006ede50: 002518cc  00000006 <0004ae30> 00ec6f3c <00039f64><0003a252> 00ec6f3c  00d6eab4

006ede70:<0004bd88><0003af60><0003af60> 00ec6f3c  00ecd514  03df07a0 <0003fc86> 03b3eb50

006ede90:<0000e0a4> 00ecd4e0  00ecd4e0  00ecd4e0  03d88380 <00010fd6><00010fdc> 00000000

006edeb0: 0000000b  00000000  005e8c90 <00021308> 0086d240 <000122b0> 03d88380  00248b5c

006eded0: 00000039  00000001  00000100  00000000  00001000 <0003d6da><00012460> 00012454

006edef0: 00000001  00000000  ffffe000  00047334 <ffa0082c> 0003d678 <ffa0082c> 005e8db0

006edf10: 005da908  00000000  00000003  00000002  00000000  00582042  00008000  00002000

006edf30: 00000000  006ee000  00582042  00582042 <00594bb4><ffa00f34> 02002021  0058889d

006edf50: 0058d1ff  0058889c  0058d1fe  00000000  00000000  00000000  00000000  00000000

006edf70: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

006edf90: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000039

006edfb0: 005cd18c  005e9e3c  005e9e48  005e0938  005e9f38  00000039  00000000  00000005

006edfd0: 00000001  005e9e68  00000001  00000000  00000002  00000003  00000000  00000000

006edff0: 00000000  00000000  00000001  00000006

Return addresses in stack:

    address : <0x0000f598> { _panic + 0x4c }

    address : <0x00005322> { _trap_c + 0x392 }

    address : <0x0004bb94> { _d_alloc + 0x1c }

   frame  1 : <0x0005387c> { _simple_lookup + 0x30 }

    address : <0x00045398> { _real_lookup + 0x78 }

    address : <0x000453fc> { _do_lookup + 0x14 }

    address : <0x00031958> { _rmqueue_bulk + 0x2c }

    address : <0x0002ec0c> { _do_generic_file_read + 0x1fc }

    address : <0x0002eb7a> { _do_generic_file_read + 0x16a }

    address : <0xffa00634> { _exception_to_level5 + 0xa8 }

    address : <0x0003a252> { _delete_vma + 0x3e }

    address : <0x0004ae30> { _d_kill + 0x38 }

    address : <0x00039f64> { _delete_vma_from_mm + 0x3c }

    address : <0x0003a252> { _delete_vma + 0x3e }

    address : <0x0004bd88> { _dput + 0x44 }

    address : <0x0003af60> { _exit_mmap + 0x30 }

    address : <0x0003af60> { _exit_mmap + 0x30 }

    address : <0x0003fc86> { ___fput + 0x56 }

    address : <0x0000e0a4> { _mmput + 0x44 }

    address : <0x00010fd6> { _exit_mm + 0xd2 }

    address : <0x00010fdc> { _exit_mm + 0xd8 }

    address : <0x00021308> { _hrtimer_cancel + 0x10 }

    address : <0x000122b0> { _do_exit + 0xc8 }

    address : <0x0003d6da> { _sys_close + 0x62 }

    address : <0x00012460> { _complete_and_exit + 0x0 }

    address : <0xffa0082c> { _system_call + 0x68 }

    address : <0xffa0082c> { _system_call + 0x68 }

    address : <0x00594bb4> /* kernel dynamic memory */

    address : <0xffa00f34> { _evt_system_call + 0x64 }

--

 

Follow-ups

 

--- Michael Hennerich                                        2009-09-04 06:48:43

I think this bug is related to:

 

[uclinux-dist Bugs Item #5360] using nano-x in trunk results in BUG() at

mm/nommu.c:531

[uclinux-dist Bugs Item #5510] audio test failed on bf527-ezkit with ssm2602

 

-Michael

 

--- Michael Hennerich                                        2009-09-24 07:34:02

[Linux-kernel-commits] [7449] trunk/mm/nommu.c: for bug [#5446], the new

vm_region codes break some mmap

Revision 7449

Author gyang

Date 2009-09-24 07:15:00 -0400 (Thu, 24 Sep 2009)

 

Fixed also this bug.

 

--- Vivi Li                                                  2009-09-24 23:08:21

OK now. Close it.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

config.tftlcd    application/octet-stream    44153    Vivi Li

Attachments

Outcomes