FAQ: [#6959] kgdb test fails during testing on bf561 SMP kenrel(2012)

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

[#6959] kgdb test fails during testing on bf561 SMP kenrel

Submitted By: Mingquan Pan

Open Date

2012-01-19 03:43:51    

Priority:

Medium     Assignee:

Sonic Zhang

Status:

Open     Fixed In Release:

N/A

Found In Release:

N/A     Release:

Category:

Tests     Board:

N/A

Processor:

BF561     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Fixed

Uboot version or rev.:

    Toolchain version or rev.:

gcc4.3-2012_Feb_15

App binary format:

N/A     

Summary: kgdb test fails during testing on bf561 SMP kenrel

Details:

 

kgdb test fails during testing on bf561 SMP kenrel.

 

## Booting kernel from Legacy Image at 02000000 ...

   Image Name:   bf561-0.5-3.2.0-ADI-2012R1-pre-s

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    3946485 Bytes = 3.8 MiB

   Load Address: 00001000

   Entry Point:  001db31c

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 001db31c

console [ttyBF0] enabled, bootconsole disabled

Calibrating delay loop... 1185.79 BogoMIPS (lpj=2371584)

pid_max: default: 32768 minimum: 301

Mount-cache hash table entries: 512

Booting Core B.

Brought up 2 CPUs

Instruction Cache Enabled for CPU1

  External memory: cacheable in instruction cache

  L2 SRAM        : uncacheable in instruction cache

Data Cache Enabled for CPU1

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

  L2 SRAM        : uncacheable in data cache

SMP: Total of 2 processors activated (2371.58 BogoMIPS).

Blackfin Scratchpad data SRAM: 4 KB

Blackfin Scratchpad data SRAM: 4 KB

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

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

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

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

Blackfin L1 Instruction SRAM: 16 KB (15 KB free)

Blackfin L1 Instruction SRAM: 16 KB (15 KB free)

Blackfin L2 SRAM: 128 KB (127 KB free)

NET: Registered protocol family 16

Blackfin DMA Controller

ezkit_init(): registering device resources

bio: create slab <bio-0> at 0

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

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: 2, 16384 bytes)

TCP: Hash tables configured (established 2048 bind 2048)

TCP reno registered

UDP hash table entries: 128 (order: 0, 4096 bytes)

UDP-Lite hash table entries: 128 (order: 0, 4096 bytes)

NET: Registered protocol family 1

debug-mmrs: setting up Blackfin MMR debugfs

msgmni has been set to 109

io scheduler noop registered (default)

bfin-uart: Blackfin serial driver

bfin-uart.0: ttyBF0 at MMIO 0xffc00400 (irq = 35) is a BFIN-UART

brd: module loaded

physmap platform flash device: 00800000 at 20000000

physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x000020 Chip ID 0x0022ed

Amd/Fujitsu Extended Query Table at 0x0040

  Amd/Fujitsu Extended Query version 1.3.

physmap-flash.0: Swapping erase regions for top-boot CFI table.

number of CFI chips: 1

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

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

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

0x000000200000-0x0000007f0000 : "file system(nor)"

0x0000007f0000-0x0000007fe000 : "config(nor)"

0x0000007fe000-0x000000800000 : "u-boot env(nor)"

smc91x.c: v1.1, sep 22 2004 by Nicolas Pitre <nico@fluxnic.net>

eth0: SMC91C11xFD (rev 2) at 2c010300 IRQ 82 [nowait]

eth0: Ethernet addr: 00:e0:22:fe:ba:29

kgdboe: local port 6443

kgdboe: local IP 10.100.4.50

kgdboe: interface 'eth0'

kgdboe: remote port 6442

kgdboe: remote IP 10.100.4.174

kgdboe: remote ethernet address ff:ff:ff:ff:ff:ff

kgdboe: device eth0 not up yet, forcing it

smc91x smc91x.0: eth0: link down

smc91x smc91x.0: eth0: link up, 100Mbps, full-duplex, lpa 0x41E1

kgdb: Registered I/O driver kgdboe.

kgdboe: debugging over ethernet enabled

TCP cubic registered

NET: Registered protocol family 17

console [netcon0] enabled

netconsole: network logging started

dma_alloc_init: dma_page @ 0x0284d000 - 256 pages at 0x03f00000

Freeing unused kernel memory: 5852k 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.18.4 (2012-01-18 16:52:33 GMT) hush - the humble shell

 

root:/> version

kernel:    Linux release 3.2.0-ADI-2012R1-pre-svn10315, build #6 SMP Thu Jan 19 04:37:16 GMT 2012

toolchain: bfin-uclinux-gcc release gcc version 4.3.5 (ADI-2011R1-RC4)

user-dist: release svn-10626, build #40 Thu Jan 19 04:36:12 GMT 2012

root:/> successful boot attempt

************** STEP 3: Start KGDB TEST (SMP) (ethernet)

 

ifconfig eth0 10.100.4.50

root:/> spawn bfin-uclinux-gdb /home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/vmlinux

GNU gdb 6.6

Copyright (C) 2006 Free Software Foundation, Inc.

GDB is free software, covered by the GNU General Public License, and you are

welcome to change it and/or distribute copies of it under certain conditions.

Type "show copying" to see the conditions.

There is absolutely no warranty for GDB.  Type "show warranty" for details.

This GDB was configured as "--host=i686-pc-linux-gnu --target=bfin-uclinux"...

(gdb)

Case 1 ...PASS

 

Case 1 ...PASS

target remote udp:10.100.4.50:6443

warning: The remote protocol may be unreliable over UDP.

Some events may be lost, rendering further debugging impossible.

Remote debugging using udp:10.100.4.50:6443

 

Case 2 ...PASS

 

Case 2 ...PASS

kgdb_breakpoint () at kernel/debug/debug_core.c:993

993        wmb(); /* Sync point after breakpoint */

(gdb) break kgdb_test

Breakpoint 1 at 0x903e: file arch/blackfin/kernel/kgdb_test.c, line 54.

 

Case 3 ...PASS

 

Case 3 ...PASS

(gdb) c

Continuing.

 

Case 4 ...PASS

 

Case 4 ...PASS

 

root:/> [New Thread 187]

[Switching to Thread 187]

 

Breakpoint 1, kgdb_test (name=0x178630 "hello world!", len=12, count=85, z=16)

 

Case 5 ...PASS

 

Case 5 ...PASS

    at arch/blackfin/kernel/kgdb_test.c:54

54    {

(gdb) hbreak 58

Hardware assisted breakpoint 2 at 0x905e: file arch/blackfin/kernel/kgdb_test.c, line 58.

(gdb)

Case 6 ...PASS

 

Case 6 ...PASS

info b

Num Type           Disp Enb Address    What

1   breakpoint     keep y   0x0000903e in kgdb_test

                                       at arch/blackfin/kernel/kgdb_test.c:54

    breakpoint already hit 1 time

2   hw breakpoint  keep y   0x0000905e in kgdb_test

 

Case 7 ...PASS

 

Case 7 ...PASS

                                       at arch/blackfin/kernel/kgdb_test.c:58

(gdb) list

49    }

50   

51    #endif

52   

53    noinline int kgdb_test(char *name, int len, int count, int z)

54    {

55        pr_alert("kgdb name(%d): %s, %d, %d\n", len, name, count, z);

56        count = z;

57        return count;

58    }

(gdb)

Case 8 ...PASS

 

Case 8 ...PASS

bt

#0  kgdb_test (name=0x178630 "hello world!", len=12, count=85, z=16)

 

Case 9 ...PASS

 

Case 9 ...PASS

    at arch/blackfin/kernel/kgdb_test.c:54

#1  0x00009088 in kgdb_test_proc_read (file=<value optimized out>,

    buf=<value optimized out>, count=<value optimized out>, ppos=0x2077eec)

    at arch/blackfin/kernel/kgdb_test.c:64

#2  0x0008f7aa in proc_reg_read (file=0x2a0ad60, buf=0x2b73e88 "", count=4096,

    ppos=0x2077eec) at fs/proc/inode.c:178

#3  0x00060108 in vfs_read (file=0x2a0ad60, buf=0x2b73e88 "",

    count=<value optimized out>, pos=0x2077eec) at fs/read_write.c:379

#4  0x0006021c in sys_read (fd=<value optimized out>, buf=0x2b73e88 "",

    count=4096) at fs/read_write.c:469

#5  0x0000c21e in system_call ()

    at /home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/cplb.h:128

(gdb) c

Continuing.

 

Breakpoint 2, kgdb_test (name=<value optimized out>,

 

Case 10 ...PASS

 

Case 10 ...PASS

    len=<value optimized out>, count=<value optimized out>, z=16)

    at arch/blackfin/kernel/kgdb_test.c:58

58    }

(gdb) cat /proc/kgdbtest

kgdb name(12): hello world!, 85, 16

 

Case 10 ...PASS

 

Case 10 ...PASS

print z

$1 = 16

Case 12 ...PASS

 

Case 12 ...PASS

 

(gdb) c

Continuing.

L2(before change) : data variable addr = 0xfeb00050, data value is 0

L2 : code function addr = 0xfeb00000

L2(after change) : data variable addr = 0xfeb00050, data value is 20

root:/>

Case 12 ...PASS

 

Case 12 ...PASS

[New Thread 188]

[Switching to Thread 188]

 

Breakpoint 1, kgdb_test (name=0x178630 "hello world!", len=12, count=85, z=16)

    at arch/blackfin/kernel/kgdb_test.c:54

54    {

(gdb) info thread

  33 Thread 181 (klogd)  0x0000c2f4 in resume ()

    at /home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/cplb.h:128

  32 Thread 180 (syslogd)  0x0000c2f4 in resume ()

    at /home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/cplb.h:128

  31 Thread 179 (inetd)  0x0000c2f4 in resume ()

    at /home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/cplb.h:128

  30 Thread 178 (sh)  0x0000c2f4 in resume ()

    at /home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/cplb.h:128

  29 Thread 154 (kworker/1:1)  0x0000c2f4 in resume ()

    at /home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/cplb.h:128

  28 Thread 153 (kworker/0:1)  0x0000c2f4 in resume ()

    at /home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/cplb.h:128

  27 Thread 147 (mtdblock4)  0x0000c2f4 in resume ()

    at /home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/cplb.h:128

  26 Thread 142 (mtdblock3)  0x0000c2f4 in resume ()

    at /home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/i---Type <return> to continue, or q <return> to quit---

nclude/asm/cplb.h:128

  25 Thread 137 (mtdblock2)  0x0000c2f4 in resume ()

    at /home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/cplb.h:128

  24 Thread 132 (mtdblock1)  0x0000c2f4 in resume ()

    at /home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/cplb.h:128

  23 Thread 127 (mtdblock0)  0x0000c2f4 in resume ()

    at /home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/cplb.h:128

  22 Thread 81 (fsnotify_mark)  0x0000c2f4 in resume ()

    at /home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/cplb.h:128

  21 Thread 80 (kswapd0)  0x0000c2f4 in resume ()

    at /home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/cplb.h:128

  20 Thread 79 (khungtaskd)  0x0000c2f4 in resume ()

    at /home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/cplb.h:128

  19 Thread 60 (bfin-spi.0)  0x0000c2f4 in resume ()

    at /home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/cplb.h:128

  18 Thread 58 (kblockd)  0x0000c2f4 in resume ()

---Type <return> to continue, or q <return> to quit---

    at /home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/cplb.h:128

  17 Thread 56 (bdi-default)  0x0000c2f4 in resume ()

    at /home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/cplb.h:128

  16 Thread 54 (sync_supers)  0x0000c2f4 in resume ()

    at /home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/cplb.h:128

  15 Thread 11 (kworker/u:1)  0x0000c2f4 in resume ()

    at /home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/cplb.h:128

  14 Thread 10 (khelper)  0x0000c2f4 in resume ()

    at /home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/cplb.h:128

  13 Thread 9 (ksoftirqd/1)  0x0000c2f4 in resume ()

    at /home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/cplb.h:128

  12 Thread 8 (kworker/1:0)  0x0000c2f4 in resume ()

    at /home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/cplb.h:128

  11 Thread 7 (migration/1)  0x0000c2f4 in resume ()

    at /home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/cplb.h:128

---Type <return> to continue, or q <return> to quit---

  10 Thread 6 (migration/0)  0x0000c2f4 in resume ()

    at /home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/cplb.h:128

  9 Thread 5 (kworker/u:0)  0x0000c2f4 in resume ()

    at /home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/cplb.h:128

  8 Thread 4 (kworker/0:0)  0x0000c2f4 in resume ()

    at /home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/cplb.h:128

  7 Thread 3 (ksoftirqd/0)  0x0000c2f4 in resume ()

    at /home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/cplb.h:128

  6 Thread 2 (kthreadd)  0x0000c2f4 in resume ()

    at /home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/cplb.h:128

  5 Thread 1 (init)  0x0000c2f4 in resume ()

    at /home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/cplb.h:128

  4 Thread -3 (shadowCPU1)  default_idle ()

    at /home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/processor.h:134

  3 Thread -2 (shadowCPU0)  kgdb_test (name=0x178630 "hello world!", len=12,

    count=85, z=16) at arch/blackfin/kernel/kgdb_test.c:54

---Type <return> to continue, or q <return> to quit---

* 2 Thread 188 (cat)  kgdb_test (name=0x178630 "hello world!", len=12,

    count=85, z=16) at arch/blackfin/kernel/kgdb_test.c:54

(gdb)

Case 13 ...PASS

 

Case 13 ...PASS

thread 4

[Switching to thread 4 (Thread -3)]#0  kgdb_breakpoint ()

 

Case 14 ...PASS

 

Case 14 ...PASS

    at kernel/debug/debug_core.c:993

993        wmb(); /* Sync point after breakpoint */

(gdb)  x/1xw 0xffe05000

0xffe05000:    0xe5040501

 

Case 15 ...PASS

 

Case 15 ...PASS

(gdb) thread 3

Ignoring packet error, continuing...

spawn /bin/sh

grep bfin-uclinux-gdbrk/cruise/checkouts/uclinux-dist/testsuites/kgdb> ps aux |

test     26641  1.0  3.1  38372 32428 pts/4    Ss+  04:38   0:00 bfin-uclinux-gdb /home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/vmlinux

test     26652  0.0  0.0   5236   828 pts/6    S+   04:39   0:00 grep bfin-uclinux-gdb

`pidof  bfin-uclinux-gdb`cruise/checkouts/uclinux-dist/testsuites/kgdb> kill -9 

uclinux65-561-SMP:~/work/cruise/checkouts/uclinux-dist/testsuites/kgdb>

Last passed time: 2011_May_31_21_51.

Uclinux-dist version: 10185.

Kernel verion: 9909, Git-id is not found!

 

Case 16 ...FAIL

 

Follow-ups

 

--- Vivi Li                                                  2012-05-07 04:14:27

Still fails in trunk.

 

--- Vivi Li                                                  2012-06-05 03:52:22

Now error log changes to bellow:

--

root:/> version

kernel:    Linux release 3.3.0-ADI-2012R1-pre-00705-g385282d, build #602 SMP

Mon Jun 4 17:50:53 CST 2012

toolchain: bfin-uclinux-gcc release gcc version 4.3.5 (ADI-trunk/svn-5764)

user-dist: release svn-10686, build #6781 Mon Jun 4 17:49:52 CST 2012

root:/>

************** STEP 3: Start KGDB TEST (SMP) (ethernet)

 

6nifconfig eth0 10.100.4.50

root:/>

 

spawn bfin-uclinux-gdb

/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/vmlinux

GNU gdb 6.6

Copyright (C) 2006 Free Software Foundation, Inc.

GDB is free software, covered by the GNU General Public License, and you are

welcome to change it and/or distribute copies of it under certain conditions.

Type "show copying" to see the conditions.

There is absolutely no warranty for GDB.  Type "show warranty" for

details.

This GDB was configured as "--host=i686-pc-linux-gnu

--target=bfin-uclinux"...

(gdb)

Case 1 ...PASS

 

Case 1 ...PASS

target remote udp:10.100.4.50:6443

warning: The remote protocol may be unreliable over UDP.

Some events may be lost, rendering further debugging impossible.

Remote debugging using udp:10.100.4.50:6443

 

Case 2 ...PASS

 

Case 2 ...PASS

kgdb_breakpoint () at kernel/debug/debug_core.c:993

993             wmb(); /* Sync point after breakpoint */

(gdb) break kgdb_test

Breakpoint 1 at 0x9096: file arch/blackfin/kernel/kgdb_test.c, line 53.

(gdb)

Case 3 ...PASS

 

Case 3 ...PASS

c

Continuing.

 

Case 4 ...PASS

 

Case 4 ...PASS

 

root:/> [New Thread 190]

[Switching to Thread 190]

 

Breakpoint 1, kgdb_test (name=0x17dff4 "hello world!", len=12,

count=85, z=16) at arch/blackfin/kernel/kgdb_test.c:53

 

Case 5 ...PASS

 

Case 5 ...PASS

53      {

(gdb) hbreak 57

Hardware assisted breakpoint 2 at 0x90b6: file

arch/blackfin/kernel/kgdb_test.c, line 57.

(gdb)

Case 6 ...PASS

 

Case 6 ...PASS

info b

Num Type           Disp Enb Address    What

1   breakpoint     keep y   0x00009096 in kgdb_test at

arch/blackfin/kernel/kgdb_test.c:53

        breakpoint already hit 1 time

2   hw breakpoint  keep y   0x000090b6 in kgdb_test at

arch/blackfin/kernel/kgdb_test.c:57

(gdb)

Case 7 ...PASS

 

Case 7 ...PASS

list

48      }

49

50      #endif

51

52      noinline int kgdb_test(char *name, int len, int count, int z)

53      {

54              pr_alert("kgdb name(%d): %s, %d, %d\n", len, name,

count, z);

55              count = z;

56              return count;

57      }

(gdb)

Case 8 ...PASS

 

Case 8 ...PASS

bt

#0  kgdb_test (name=0x17dff4 "hello world!", len=12, count=85, z=16)

at arch/blackfin/kernel/kgdb_test.c:53

 

Case 9 ...PASS

 

Case 9 ...PASS

#1  0x000090e0 in kgdb_test_proc_read (file=<value optimized out>,

buf=<value optimized out>, count=<value optimized out>,

ppos=0x20c5eec) at arch/blackfin/kernel/kgdb_test.c:63

#2  0x00091a7e in proc_reg_read (file=0x20ae960, buf=0x2b73e88 "",

count=4096, ppos=0x20c5eec) at fs/proc/inode.c:195

#3  0x0006165c in vfs_read (file=0x20ae960, buf=0x2b73e88 "",

count=<value optimized out>, pos=0x20c5eec) at fs/read_write.c:379

#4  0x00061770 in sys_read (fd=<value optimized out>, buf=0x2b73e88

"", count=4096) at fs/read_write.c:469

#5  0x0000c276 in system_call () at

/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/cplb.h:132

(gdb) c

Continuing.

 

Breakpoint 2, kgdb_test (name=<value optimized out>, len=<value

optimized out>, count=<value optimized out>, z=16) at

arch/blackfin/kernel/kgdb_test.c:57

57      }

(gdb)

Case 10 ...PASS

 

Case 10 ...PASS

cat /proc/kgdbtest

kgdb name(12): hello world!, 85, 16

 

Case 10 ...PASS

 

Case 10 ...PASS

print z

$1 = 16

(gdb)

Case 12 ...PASS

 

Case 12 ...PASS

c

Continuing.

L2(before change) : data variable addr = 0xfeb00050, data value is 0

L2 : code function addr = 0xfeb00000

L2(after change) : data variable addr = 0xfeb00050, data value is 20

root:/>

Case 12 ...PASS

 

Case 12 ...PASS

[New Thread 191]

[Switching to Thread 191]

 

Breakpoint 1, kgdb_test (name=0x17dff4 "hello world!", len=12,

count=85, z=16) at arch/blackfin/kernel/kgdb_test.c:53

53      {

(gdb) info thread

  33 Thread 184 (klogd)  0x0000c34c in resume () at

/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/cplb.h:132

  32 Thread 183 (syslogd)  0x0000c34c in resume () at

/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/cplb.h:132

  31 Thread 182 (inetd)  0x0000c34c in resume () at

/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/cplb.h:132

  30 Thread 181 (sh)  0x0000c34c in resume () at

/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/cplb.h:132

  29 Thread 157 (kworker/1:1)  0x0000c34c in resume () at

/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/cplb.h:132

  28 Thread 156 (kworker/0:1)  0x0000c34c in resume () at

/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/cplb.h:132

  27 Thread 149 (mtdblock4)  0x0000c34c in resume () at

/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/cplb.h:132

  26 Thread 144 (mtdblock3)  0x0000c34c in resume () at

/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/cplb.h:132

  25 Thread 139 (mtdblock2)  0x0000c34c in resume () at

/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/cplb.h:132

  24 Thread 134 (mtdblock1)  0x0000c34c in resume () at

/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/cplb.h:132

  23 Thread 129 (mtdblock0)  0x0000c34c in resume () at

/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/cplb.h:132

  22 Thread 83 (fsnotify_mark)  0x0000c34c in resume () at

/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/cplb.h:132

  21 Thread 82 (kswapd0)  0x0000c34c in resume () at

/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/cplb.h:132

  20 Thread 81 (khungtaskd)  0x0000c34c in resume () at

/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/cplb.h:132

  19 Thread 61 (bfin-spi.0)  0x0000c34c in resume () at

/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/cplb.h:132

  18 Thread 59 (kblockd)  0x0000c34c in resume () at

/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/cplb.h:132

  17 Thread 57 (bdi-default)  0x0000c34c in resume () at

/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/cplb.h:132

  16 Thread 55 (sync_supers)  0x0000c34c in resume () at

/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/cplb.h:132

  15 Thread 11 (kworker/u:1)  0x0000c34c in resume () at

/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/cplb.h:132

  14 Thread 10 (khelper)  0x0000c34c in resume () at

/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/cplb.h:132

  13 Thread 9 (ksoftirqd/1)  0x0000c34c in resume () at

/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/cplb.h:132

  12 Thread 8 (kworker/1:0)  0x0000c34c in resume () at

/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/cplb.h:132

  11 Thread 7 (migration/1)  0x0000c34c in resume () at

/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/cplb.h:132

  10 Thread 6 (migration/0)  0x0000c34c in resume () at

/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/cplb.h:132

  9 Thread 5 (kworker/u:0)  0x0000c34c in resume () at

/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/cplb.h:132

  8 Thread 4 (kworker/0:0)  0x0000c34c in resume () at

/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/cplb.h:132

  7 Thread 3 (ksoftirqd/0)  0x0000c34c in resume () at

/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/cplb.h:132

  6 Thread 2 (kthreadd)  0x0000c34c in resume () at

/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/cplb.h:132

  5 Thread 1 (init)  0x0000c34c in resume () at

/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/cplb.h:132

  4 Thread -3 (shadowCPU1)  kgdb_test (name=0x17dff4 "hello world!",

len=12, count=85, z=16) at arch/blackfin/kernel/kgdb_test.c:53

  3 Thread -2 (shadowCPU0)  default_idle () at

/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/processor.h:134

* 2 Thread 191 (cat)  kgdb_test (name=0x17dff4 "hello world!",

len=12, count=85, z=16) at arch/blackfin/kernel/kgdb_test.c:53

(gdb)

Case 13 ...PASS

 

Case 13 ...PASS

thread 4

[Switching to thread 4 (Thread -3)]#0  kgdb_test (name=0x17dff4 "hello

world!", len=12, count=85, z=16) at arch/blackfin/kernel/kgdb_test.c:53

53      {

 

Case 14 ...PASS

 

Case 14 ...PASS

(gdb)  x/1xw 0xffe05000

0xffe05000:     0xe5040501

 

Case 15 ...PASS

 

Case 15 ...PASS

(gdb) thread 3

[Switching to thread 3 (Thread -2)]#0  kgdb_breakpoint () at

kernel/debug/debug_core.c:993

993             wmb(); /* Sync point after breakpoint */

(gdb)

Case 16 ...PASS

 

Case 16 ...PASS

x/1xw 0xffe05000

0xffe05000:     0xe5040500

 

Case 17 ...PASS

 

Case 17 ...PASS

(gdb) thread 4

Ignoring packet error, continuing...

spawn /bin/sh

linux66-561-jtag-capture:~/work/cruise/checkouts/uclinux-dist/testsuites/kgdb>

ps aux | grep bfin-uclinux-gdb

test      7853  1.1  3.3  39824 33228 pts/1    Ss+  17:52   0:00

bfin-uclinux-gdb

/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/vmlinux

test      7864  0.0  0.0   3596   736 pts/3    S+   17:52   0:00 grep

bfin-uclinux-gdb

linux66-561-jtag-capture:~/work/cruise/checkouts/uclinux-dist/testsuites/kgdb>

kill -9 `pidof  bfin-uclinux-gdb`

linux66-561-jtag-capture:~/work/cruise/checkouts/uclinux-dist/testsuites/kgdb>

--

 

--- Vivi Li                                                  2012-09-04 02:34:50

Still fails in latest trunk with following error message:

--

Starting Kernel at = 001f33bc

console [ttyBF0] enabled, bootconsole disabled

Calibrating delay loop... 1185.79 BogoMIPS (lpj=2371584)

pid_max: default: 32768 minimum: 301

Mount-cache hash table entries: 512

Booting Core B.

Instruction Cache Enabled for CPU1

  External memory: cacheable in instruction cache

  L2 SRAM        : uncacheable in instruction cache

Data Cache Enabled for CPU1

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

  L2 SRAM        : uncacheable in data cache

Brought up 2 CPUs

SMP: Total of 2 processors activated (2371.58 BogoMIPS).

Blackfin Scratchpad data SRAM: 4 KB

Blackfin Scratchpad data SRAM: 4 KB

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

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

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

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

Blackfin L1 Instruction SRAM: 16 KB (15 KB free)

Blackfin L1 Instruction SRAM: 16 KB (15 KB free)

Blackfin L2 SRAM: 128 KB (127 KB free)

NET: Registered protocol family 16

Blackfin DMA Controller

ezkit_init(): registering device resources

bio: create slab <bio-0> at 0

bfin-spi bfin-spi.0: master is unqueued, this is deprecated

bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0,

regs@ffc00500, dma channel@16

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: 2, 16384 bytes)

TCP: Hash tables configured (established 2048 bind 2048)

TCP: reno registered

UDP hash table entries: 256 (order: 1, 8192 bytes)

UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)

NET: Registered protocol family 1

debug-mmrs: setting up Blackfin MMR debugfs

msgmni has been set to 109

io scheduler noop registered (default)

bfin-uart: Blackfin serial driver

bfin-uart.0: ttyBF0 at MMIO 0xffc00400 (irq = 35) is a BFIN-UART

brd: module loaded

physmap platform flash device: 00800000 at 20000000

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

0x000020 Chip ID 0x0022ed

Amd/Fujitsu Extended Query Table at 0x0040

  Amd/Fujitsu Extended Query version 1.3.

physmap-flash.0: Swapping erase regions for top-boot CFI table.

number of CFI chips: 1

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

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

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

0x000000200000-0x0000007f0000 : "file system(nor)"

0x0000007f0000-0x0000007fe000 : "config(nor)"

0x0000007fe000-0x000000800000 : "u-boot env(nor)"

smc91x.c: v1.1, sep 22 2004 by Nicolas Pitre <nico@fluxnic.net>

eth0: SMC91C11xFD (rev 1) at 2c010300 IRQ 82 [nowait]

eth0: Ethernet addr: 00:e0:22:fe:b1:3c

netpoll: kgdboe: local port 6443

netpoll: kgdboe: local IP 10.100.4.50

netpoll: kgdboe: interface 'eth0'

netpoll: kgdboe: remote port 6442

netpoll: kgdboe: remote IP 10.100.4.174

netpoll: kgdboe: remote ethernet address ff:ff:ff:ff:ff:ff

netpoll: kgdboe: device eth0 not up yet, forcing it

smc91x smc91x.0: eth0: link down

smc91x smc91x.0: eth0: link up, 100Mbps, full-duplex, lpa 0x41E1

kgdb: Registered I/O driver kgdboe.

kgdboe: debugging over ethernet enabled

TCP: cubic registered

NET: Registered protocol family 17

console [netcon0] enabled

netconsole: network logging started

dma_alloc_init: dma_page @ 0x02836000 - 256 pages at 0x03f00000Freeing unused

kernel memory: 5784k 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.18.4 (2012-09-02 13:46:01 CST) hush - the humble shell

 

root:/> ^[[6nversion

kernel:    Linux release 3.5.0-ADI-2012R1-pre-00831-g3fee378, build #132 SMP

Mon Sep 3 01:40:38 CST 2012

toolchain: bfin-uclinux-gcc release gcc version 4.3.5 (ADI-2012R1-RC2)

user-dist: release svn-10788, build #1518 Mon Sep 3 01:39:29 CST 2012

root:/> ^[[6nsuccessful boot attempt

************** STEP 3: Start KGDB TEST (SMP) (ethernet)

 

ifconfig eth0 10.100.4.50

root:/> ^[[6nspawn bfin-uclinux-gdb

/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/vmlinux

^[[?1034hGNU gdb 6.6

Copyright (C) 2006 Free Software Foundation, Inc.

GDB is free software, covered by the GNU General Public License, and you are

welcome to change it and/or distribute copies of it under certain conditions.

Type "show copying" to see the conditions.

There is absolutely no warranty for GDB.  Type "show warranty" for

details.

This GDB was configured as "--host=i686-pc-linux-gnu

--target=bfin-uclinux"...

(gdb)

Case 1 ...PASS

 

Case 1 ...PASS

target remote udp:10.100.4.50:6443

warning: The remote protocol may be unreliable over UDP.

Some events may be lost, rendering further debugging impossible.

Remote debugging using udp:10.100.4.50:6443

 

Case 2 ...PASS

 

Case 2 ...PASS

break kgdb_test

Ignoring packet error, continuing...

warning: unrecognized item "timeout" in "qSupported"

response

spawn /bin/sh

linux66-561-jtag-capture:~/work/cruise/checkouts/uclinux-dist/testsuites/kgdb>

p s aux | grep bfin-uclinux-gdb

test     17032  1.3  3.1  37108 30628 pts/3    Ss+  01:41   0:00

bfin-uclinux-gdb

/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/vmlinux

test     17043  0.0  0.0   3596   732 pts/5    S+   01:42   0:00 grep

bfin-uclinux-gdb

linux66-561-jtag-capture:~/work/cruise/checkouts/uclinux-dist/testsuites/kgdb>

k ill -9 `pidof  bfin-uclinux-gdb`

linux66-561-jtag-capture:~/work/cruise/checkouts/uclinux-dist/testsuites/kgdb>

Last passed test result is not found!!

--

 

--- Sonic Zhang                                              2012-11-01 06:02:37

fixed.

New smp_call_function_single won't raise IPI on the same core. So, call

generic_exec_single directly.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes