This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/AM6548: Dhrystone result

Genius 5785 points
Part Number: AM6548
Other Parts Discussed in Thread: TMDSLCD1EVM

Tool/software: Linux

Hi Experts,

I've run Matrix GUI on TMDX654GPEVM and TMDSLCD1EVM.

When I press the Dhrystone icon, the following result is displayed at the bottom of the LCD.

  CPU clock = 400 MHz
  Dhrystone DMIPS/MHz = 5.9

Is this result correct? I think Cortex-A53 should be 2.3 DMIPS/MHz. Additionally, CPU clock is 400 MHz.

According to the top command, it seems that the Dhrystone calculation is processed on cpu2 or cpu3.

Also, the same result is obtained with the included SD card and the rebuilt SD card by PSDK-Linux v5.1.

Please give me some advice.

Regards,
Kzk

  • Hi,

    I see the same result, but note that this is done for CPU clock 400MHz, you should also compare the conditions under which ARM provides their benchmark.

    See the documentation about system benchmarks from TI:
    software-dl.ti.com/.../Release_Specific_Performance_Guide.html

    Specifically 2.2.1.1.2. Dhrystone.

    Best Regards,
    Yordan
  • Hi Yordan,

    Thank you for your information. Do you think my AM654x is operating at 800 MHz?

    I tried Dhystone several times and I also saw 6.1 points. This is exactly 2 times the table of 3.05 you presented.

    Please check the following file.
    /usr/bin/runDhrystone

    echo ""
    echo "Dhrystone running ..."
    echo ""
    echo "Execution time 10 seconds or longer depending on your CPU clock speed"
    if test -e /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq; then
    CPUFREQ=`cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq`
    else if test -e /proc/cpuinfo; then
            a=(`cat /proc/cpuinfo | grep Bogo | awk '{print $3}'`)
            b=`echo "($a+5)/10*10" | bc`
            let CPUFREQ=b*1000
        fi
    fi
    dhrystone 200000000 $CPUFREQ
    echo ""

    Since the following directories are not available during target operation, the CPU speed is obtained from BogoMIPS.
    /sys/devices/system/cpu/cpu0/cpufreq

    I checked cpuinfo.

    root@am65xx-evm:~# cat /proc/cpuinfo

    processor : 0
    BogoMIPS : 400.00
    Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
    CPU implementer : 0x41
    CPU architecture: 8
    CPU variant : 0x0
    CPU part : 0xd03
    CPU revision : 4

    I don't think the CPU speed from BogoMIPS is correct. However, I could not find the command to check CPU speed from u-boot help.

    I also referred to the following threads.
    https://e2e.ti.com/support/processors/f/791/t/711230

    Please give me some advice.

    Regards,
    Kzk

  • Hi,

    Arm is running at 800MHz, see:
    software-dl.ti.com/.../Release_Specific_Performance_Guide.html

    Best Regards,
    Yordan