Article [#7282] run whetstone on SMP 561 Kernel stucks

[#7282] run whetstone on SMP 561 Kernel stucks

Submitted By: Mingquan Pan

Open Date

2012-08-23 03:06:21     Close Date

2012-09-06 22:17:48

Priority:

Medium     Assignee:

steven miao

Status:

Closed     Fixed In Release:

N/A

Found In Release:

N/A     Release:

Category:

N/A     Board:

N/A

Processor:

BF561     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Fixed

Uboot version or rev.:

    Toolchain version or rev.:

ADI-2011R1-RC2

App binary format:

N/A     

Summary: run whetstone on SMP 561 Kernel stucks

Details:

run whetstone on SMP 561 Kernel stucks.

Case 1 ...PASS

spawn /bin/bash^M

^[[?1034htest@uclinux65-561-SMP:..testsuites/whetstone> cd /home/test/work/cruise/checkou ^Mts/uclinux-dist^M

test@uclinux65-561-SMP:..checkouts/uclinux-dist>

Case 2 ...PASS

Case 2 ...PASS

time make user/whetstone_only T ^MONLY=results IP=10.100.4.50^M

make[1]: Entering directory `/home/test/work/cruise/checkouts/uclinux-dist/user'^M

touch whetstone/.sgbuilt_user && make -C whetstone -j4 results^M

make[2]: Entering directory `/home/test/work/cruise/checkouts/uclinux-dist/user/whetstone'^M

echo "^ Flags  ^  size  ^  Loops  ^  Duration (seconds) ^  Double Precision Whetstones MIPS  ^";\^M

        ( for level in -O{s,0,1,2,3}{" "," -fomit-frame-pointer"}{" "," -ffast-math"}{" "," -mfast-fp"} ; do \^M

                echo -n "| ''${level}'' " | sed 's/ [ ]*/ /g' | sed "s/ '' /''/" ; \^M

                bfin-uclinux-gcc -pipe -Wall -g -O2      -mcpu=bf561-0.5 -DNO_PROTOTYPES=1  -Wl,-elf2flt    -mcpu=bf561-0.5 ${level} whetstone.c -o whetstone -lm ; \^M

                ls -l whetstone | awk '{ORS = ""; print "  | " $5 "  | 30000  |  "}' ; \^M

                rcp whetstone root@10.100.4.50:/var/. ; \^M

                tmp=`rsh -l root 10.100.4.50 /var/whetstone 30000` ;\^M

                echo $tmp | awk '{print $6 "  |  " $13 "  |"}'; \^M

        done; \^M

        )^M

^ Flags  ^  size  ^  Loops  ^  Duration (seconds) ^  Double Precision Whetstones MIPS  ^^M

| ''-Os''  | 26632  | 30000  |  54  |  55.6  |^M

| ''-Os -mfast-fp''   | 19420  | 30000  |

Follow-ups

--- Mingquan Pan                                             2012-08-23 04:07:19

dhrystone on this board fails alike:

^[[?1034htest@uclinux65-561-SMP:..testsuites/dhrystone> cd

/home/test/work/cruise/checkou ^Mts/uclinux-dist^M

test@uclinux65-561-SMP:..checkouts/uclinux-dist>

Case 2 ...PASS

Case 2 ...PASS

time make user/dhrystone_only T ^MONLY=results IP=10.100.4.50^M

make[1]: Entering directory

`/home/test/work/cruise/checkouts/uclinux-dist/user'^M

touch dhrystone/.sgbuilt_user && make -C dhrystone -j4 results^M

make[2]: Entering directory

`/home/test/work/cruise/checkouts/uclinux-dist/user/dhrystone'^M

cpu=`rsh -l root 10.100.4.50 'grep "cpu MHz" /proc/cpuinfo' | awk -F

":" '{print $2}' | awk -F "/" '{print $1}' | sed 's/^[

\t]*//;s/[ \t]*$//'` ;\^M

        echo "testing on $cpu MHz with $CC" ;\^M

        cflags=`echo -pipe -Wall -g -O2      -mcpu=bf561-0.5 -DNO_PROTOTYPES=1

| sed -e 's:-O[0-3s]::g' -e 's/[[:space:]][[:space:]]*/ /g'`; \^M

        echo "^ Flags ((standard ''CFLAGS'' include ''${cflags}''))  ^

size (bytes)  ^  Loops  ^  Dhrystones per Second ((Based on bfin-uclinux-gcc)) ^

Dhrystone MIPS ((DMIPS is obtained when the Dhrystone score is divided by 1,757

(the number of Dhrystones per second obtained on the VAX 11/780, nominally a 1

MIPS machine))  ^  DMIPS/MHz  ^";\^M

        ( for level in -O{s,0,1,2,3}{" ","

-fomit-frame-pointer"}{" ","

-static"}{""," -ffast-math"}{"","

-funroll-loops"}{""," -funsafe-loop-optimizations"} ;

do \^M

            if [ -z "${CONFIG_FMT_USE_FDPIC_ELF}" -a `echo ${level} |

grep static | wc -l` -eq 1 ] ; then \^M

                continue; \^M

            fi; \^M

            echo -n "| ''${level}'' " | sed 's/ [ ]*/ /g' | sed

"s/ '' /''/" ; \^M

            touch dhry.h;\^M

            make -s --no-print-directory all CFLAGS="${cflags} ${level}

-w" ;\^M

            if [ -n "${CONFIG_FMT_USE_FDPIC_ELF}" ] ; then \^M

                bfin-uclinux-strip dhrystone; \^M

            fi;\^M

            find ./ -name dhrystone -printf " |  %s  |  " ;\^M

            tmp=`md5sum dhrystone | awk '{print $1}'`;\^M

            printf " $tmp |  10000000  |  " ; \^M

            rcp dhrystone root@10.100.4.50:/var/dhrystone ; \^M

            tmp=`rsh -l root 10.100.4.50 /var/dhrystone 10000000` ;\^M

            echo $cpu $tmp | awk '{print $NF "  |  " $NF/1757 "

|  " $NF/(1757*$1) "  |" }' ; \^M

          done; \^M

        )^M

testing on 600.000000^M

600.000000 MHz with bfin-uclinux-gcc^M

^ Flags ((standard ''CFLAGS'' include ''-pipe -Wall -g -mcpu=bf561-0.5

-DNO_PROTOTYPES=1''))  ^  size (bytes)  ^  Loops  ^  Dhrystones per Second

((Based on bfin-uclinux-gcc)) ^  Dhrystone MIPS ((DMIPS is obtained when the

Dhrystone score is divided by 1,757 (the number of Dhrystones per second

obtained on the VAX 11/780, nominally a 1 MIPS machine))  ^  DMIPS/MHz  ^^M

| ''-Os'' |  36856  |   5ac007fd7ff76d0b64c09e6bd172dd6f |  10000000  |

378214.8  |  215.262  |  0.358769  |^M

| ''-Os -funsafe-loop-optimizations''  |  36856  | 

13f75d6ab1b301418ebf30ff28e706ef |  10000000  |

Last passed time: 2012_Jul_25_13_56.

Uclinux-dist version: 10742.

Kernel verion: , Git-id is not found!

--- steven miao                                              2012-08-31 01:39:24

same as 7263

--- Vivi Li                                                  2012-09-03 06:02:01

New bug 7306 will make this test fail.

Need to recheck test result after bug 7306 is fixed.

--- Mingquan Pan                                             2012-09-06 23:17:57

It can pass smoothly now.Close.

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

File Name     File Type     File Size     Posted By

No Files Were Found

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.