[#5831] set the performance register in kdgb testing fails

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

[#5831] set the performance register in kdgb testing fails

Submitted By: Mingquan Pan

Open Date

2010-01-14 22:47:54     Close Date

2010-02-03 02:40:28

Priority:

Medium     Assignee:

Sonic Zhang

Status:

Closed     Fixed In Release:

N/A

Found In Release:

2010R1     Release:

Category:

N/A     Board:

N/A

Processor:

BF537     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

N/A

Uboot version or rev.:

    Toolchain version or rev.:

4.3.4 (ADI-trunk/svn-3771)

App binary format:

N/A     

Summary: set the performance register in kdgb testing fails

Details:

 

set the performance register in kdgb testing fails now.

 

...

bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1^M

kgdboe: local port 6443^M

kgdboe: local IP 10.100.4.50^M

kgdboe: interface eth0^M

kgdboe: remote port 6442^M

kgdboe: remote IP 10.100.4.174^M

kgdboe: remote ethernet address ff:ff:ff:ff:ff:ff^M

kgdboe: device eth0 not up yet, forcing it^M

kgdboe: carrier detect appears untrustworthy, waiting 4 seconds^M

PHY: 0:01 - Link is Up - 100/Full^M

kgdb: Registered I/O driver kgdboe.^M

kgdboe: debugging over ethernet enabled^M

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

TCP cubic registered^M

NET: Registered protocol family 17^M

rtc-bfin rtc-bfin: setting system clock to 1971-07-20 22:57:37 UTC (48898657)^M

Freeing unused kernel memory: 7044k freed^M

dma_alloc_init: dma_page @ 0x028f1000 - 256 pages at 0x03f00000^M

                           _____________________________________^M

        a8888b.           / Welcome to the uClinux distribution \^M

       d888888b.         /       _     _                         \^M

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

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

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

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

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

     dP   .    Y8b.       \   For embedded processors including   |^M

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

   d8"         'Y88b        \___________________________________/^M

  :8P    '      :888^M

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

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

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

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

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

^M

Have a lot of fun...^M

^M

^M

BusyBox v1.15.3 (2010-01-10 21:13:26 CST) hush - the humble shell^M

^M

root:/> version^M

kernel:    Linux release 2.6.32.3-ADI-2010R1-pre-svn8139, build #16 Mon Jan 11 02:28:57 CST 2010^M

toolchain: bfin-uclinux-gcc release gcc version 4.3.4 (ADI-trunk/svn-3771) ^M

user-dist: release svn-9367, build #264 Mon Jan 11 02:27:27 CST 2010^M

root:/> successful boot attempt

************** STEP 3: Start KGDB TEST (ethernet)^M

...

Case 19 ...PASS

 

Case 19 ...PASS

(gdb) set *0xffe08100=0x456^M

Cannot access memory at address 0xffe08100^M

(gdb)  x/1xw 0xffe08100^M

0xffe08100:     0x00000000^M

(gdb) spawn /bin/sh^M

^[[?1034huclinux50-bf537-ad9960-ad1836:~/work/cruise/checkouts/uclinux-dist/testsuites/kgdb> ps aux | grep bfin-uclinux-gdb^M

test     30434  0.6  5.8  34712 29524 pts/3    Ss+  02:30   0:00 bfin-uclinux-gdb /home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/vmlinux^M

test     30445  0.0  0.1   3064   728 pts/4    S+   02:31   0:00 grep bfin-uclinux-gdb^M

uclinux50-bf537-ad9960-ad1836:~/work/cruise/checkouts/uclinux-dist/testsuites/kgdb> kill -9 `pidof  bfin-uclinux-gdb`^M

uclinux50-bf537-ad9960-ad1836:~/work/cruise/checkouts/uclinux-dist/testsuites/kgdb>

 

Last passed time: 2010_Jan_08_22_42, ucdist ver: 9367, kernel ver: 8134

 

Case 20 ...FAIL

 

 

Follow-ups

 

--- Sonic Zhang                                              2010-01-15 04:48:35

Fixed.

 

Don't write memory byte in kgdb_ebin2mem function one by one.

A bug occurred after we move to generic probe_kernel_read/write.

 

--- Mingquan Pan                                             2010-01-17 22:38:24

Yes,fixed. Close.

 

--- Mingquan Pan                                             2010-01-24 21:51:58

Reopen this bug for a similar issue show up again after that.

 

Case 19 ...PASS

(gdb) set *0xffe08100=0x456^M

(gdb)  x/1xw 0xffe08100^M

0xffe08100:     0xebeae9e8^M

(gdb) spawn /bin/sh^M

^[[?1034huclinux55-bf537-cf:~/work/cruise/checkouts/uclinux-dist/testsuites/kgdb>

ps aux  ^M| grep bfin-uclinux-gdb^M

test     30029  0.5  2.8  34760 29580 pts/5    Ss+  20:11   0:00

bfin-uclinux-gdb

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

test     30040  0.0  0.0   3064   732 pts/6    S+   20:12   0:00 grep

bfin-uclinux-gdb^M

uclinux55-bf537-cf:~/work/cruise/checkouts/uclinux-dist/testsuites/kgdb>

kill -9 ^M `pidof  bfin-uclinux-gdb`^M

uclinux55-bf537-cf:~/work/cruise/checkouts/uclinux-dist/testsuites/kgdb>

Last passed time: 2010_Jan_20_02_24, ucdist ver: 9394, kernel ver: 8197

 

 

--- Mingquan Pan                                             2010-02-03 02:39:59

It is ok now after checkin 8262 in linux.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes