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/AM5728: About DSP function off issue

Part Number: AM5728

Tool/software: Linux

Hi Sir 

we followed the suggestion as below 

       e2e.ti.com/.../745243

1. removed the dra7-dspX-fw.xe66 files from the filesystem.

2. After that we re-tried  the ltp test, it still failed.

root@am57xx-evm:/opt/ltp# 
root@am57xx-evm:/opt/ltp# /opt/ltp/runltp -P am57xx-evm -f ddt/memtest -t 1h
INFO: creating /opt/ltp/results directory
INFO: Filtering testscenarios based on am57xx-evm capabilities
Checking for required user/group ids

'nobody' user id and group found.
'bin' user id and group found.
'daemon' user id and group found.
Users group found.
Sys group found.
Required users/groups exist.
If some fields are empty or look unusual you may have an old version.
Compare to the current minimal requirements in Documentation/Changes.
 
ID="arago"
NAME="Arago"
VERSION="2018.08"
VERSION_ID="2018.08"
PRETTY_NAME="Arago 2018.08"
Linux am57xx-evm 4.14.67-gd315a9bb00 #1 SMP PREEMPT Sat Oct 6 02:39:21 UTC 2018 armv7l GNU/Linux
 
Gnu C                  gcc (Linaro GCC 7.2-2017.11) 7.2.1 20171011
Gnu make               4.2.1
util-linux             linux 2.30
mount                  linux 2.30 (libmount 2.30.0: btrfs, assert, debug)
modutils               24
e2fsprogs              1.43.5
Linux C Library        > libc.2.25
Dynamic linker (ldd)   2.25
Linux C++ Library      /../lib/libstdc++
Procps                 3.3.12
iproute2               iproute2-ss170501
iputils                'V'
Kbd                    2.0.4
Sh-utils               --v
Modules Loaded         sha512_generic sha512_arm sha256_generic sha1_generic sha1_arm_neon sha1_arm md5 cbc aes_arm_bs crypto_simd cryptd xfrm_user xfrm4_tunnel ipcomp xfrm_ipcomp esp4 ah4 af_key xfrm_algk

free reports:
              total        used        free      shared  buff/cache   available
Mem:        1866020      118048     1618744       20088      129228     1702900
Swap:             0           0           0

/proc/cpuinfo
processor       : 0
model name      : ARMv7 Processor rev 2 (v7l)
BogoMIPS        : 18.44
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm 
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x2
CPU part        : 0xc0f
CPU revision    : 2

processor       : 1
model name      : ARMv7 Processor rev 2 (v7l)
BogoMIPS        : 18.44
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm 
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x2
CPU part        : 0xc0f
CPU revision    : 2

Hardware        : Generic DRA74X (Flattened Device Tree)
Revision        : 0000
Serial          : 0800300c317200e2
no big block device was specified on commandline.
Tests which require a big block device are disabled.
You can specify it with option -z
COMMAND:    /opt/ltp/bin/ltp-pan   -e -S  -t 1h -a 1739     -n 1739 -p -f /tmp/ltp-XXXXLNPtvs/alltests -l /tmp/tmp.tUiZds  -C /opt/ltp/output/LTP_RUN_ON-tmp.tUiZds.fai[ 1423.785762] LTP: starting MEMORY_S)
led -T /opt/ltp/output/LTP_RUN_ON-tmp.tUiZds.tconf
LOG File: /tmp/tmp.tUiZds
FAILED COMMAND File: /opt/ltp/output/LTP_RUN_ON-tmp.tUiZds.failed
TCONF COMMAND File: /opt/ltp/output/LTP_RUN_ON-tmp.tUiZds.tconf
Running tests.......
PAN will run for 3600 seconds
<<<test_start>>>
tag=MEMORY_S_FUNC_CHECKSIZE stime=1548734020
cmdline="source 'board_requirements.sh'; get_acceptable_[ 1423.837449] LTP: starting MEMORY_S_FUNC_MEMTESTER_1pct_1time (source 'functions.sh'; run_memtest 1 1)
memory_size; min_mem_size=`echo "$expected_memory * 0.95 / 1" |bc`; [ $(free | grep Mem:| awk '{print $2};') -gt $min_mem_size ]"
contacts=""
analysis=exit
<<<test_output>>>
<<<execution_status>>>
initiation_status="ok"
duration=0 termination_type=exited termination_id=1 corefile=no
cutime=2 cstime=0
<<<test_end>>>
<<<test_start>>>
tag=MEMORY_S_FUNC_MEMTESTER_1pct_1time stime=1548734020
cmdline="source 'functions.sh'; run_memtest 1 1"
contacts=""
analysis=exit
<<<test_output>>>
sh2185:1548734020->1548734020(0):: Testing 18M of memory 1 times
memtester version 4.3.0 (32-bit)
Copyright (C) 2001-2012 Charles Cazabon.
Licensed under the GNU General Public License version 2 (only).

pagesize is 4096
pagesizemask is 0xfffff000
want 18MB (18874368 bytes)
got  18MB (18874368 bytes), trying mlock ...locked.
Loop 1/1:
  Stuck Address       : ok         
  Random Value        : ok
  Compare XOR         : ok
  Compare SUB         : ok
  Compare MUL         : ok
  Compare DIV         : ok
  Compare OR          : ok
  Compare AND         : ok
  Sequential Increment: ok
  Solid Bits          : ok         
  Block Sequential    : ok         
  Checkerboard        : ok         
  Bit Spread          : ok         
  Bit Flip            : ok         
  Walking Ones        : ok         
  Walking Zeroes      : ok         

Done.
sh2185:1548734020->1548734047(27):: killed cpuloadgen
sh2185:1548734020->1548734049(29):: killed memtest
[ 1453.178352] LTP: starting MEMORY_M_FUNC_MEMTESTER_10pct_1time (source 'functions.sh'; run_memtest 10 1)
<<<execution_status>>>
initiation_status="ok"
duration=29 termination_type=exited termination_id=0 corefile=no
cutime=2208 cstime=9
<<<test_end>>>
<<<test_start>>>
tag=MEMORY_M_FUNC_MEMTESTER_10pct_1time stime=1548734049
cmdline="source 'functions.sh'; run_memtest 10 1"
contacts=""
analysis=exit
<<<test_output>>>
sh2224:1548734049->1548734049(0):: Testing 182M of memory 1 times
memtester version 4.3.0 (32-bit)
Copyright (C) 2001-2012 Charles Cazabon.
Licensed under the GNU General Public License version 2 (only).

pagesize is 4096
pagesizemask is 0xfffff000
want 182MB (190840832 bytes)
got  182MB (190840832 bytes), trying mlock ...locked.
Loop 1/1:
  Stuck Address       : ok         
  Random Value        : ok
  Compare XOR         : ok
  Compare SUB         : ok
  Compare MUL         : ok
  Compare DIV         : ok
  Compare OR          : ok
  Compare AND         : ok
  Sequential Increment: ok
  Solid Bits          : ok         
  Block Sequential    : ok         
  Checkerboard        : ok         
  Bit Spread          : ok         
  Bit Flip            : ok         
  Walking Ones        : ok         
  Walking Zeroes      : ok         

Done.
sh2224:1548734049->1548734285(236):: killed cpuloadgen
sh2224:1548734049->1548734287(238):: killed memtest
[ 1690.662236] LTP: starting MEMORY_L_FUNC_MEMTESTER_50pct_1time (source 'functions.sh'; run_memtest 50 1)
<<<execution_status>>>
initiation_status="ok"
duration=238 termination_type=exited termination_id=0 corefile=no
cutime=22977 cstime=43
<<<test_end>>>
<<<test_start>>>
tag=MEMORY_L_FUNC_MEMTESTER_50pct_1time stime=1548734287
cmdline="source 'functions.sh'; run_memtest 50 1"
contacts=""
analysis=exit
<<<test_output>>>
sh2263:1548734287->1548734287(0):: Testing 911M of memory 1 times
memtester version 4.3.0 (32-bit)
Copyright (C) 2001-2012 Charles Cazabon.
Licensed under the GNU General Public License version 2 (only).

pagesize is 4096
pagesizemask is 0xfffff000
want 911MB (955252736 bytes)
got  911MB (955252736 bytes), trying mlock ...locked.
Loop 1/1:
  Stuck Address       : ok         
  Random Value        : ok
  Compare XOR         : ok
  Compare SUB         : ok
  Compare MUL         : ok
  Compare DIV         : ok
  Compare OR          : ok
  Compare AND         : ok
  Sequential Increment: ok
  Solid Bits          : ok         
  Block Sequential    : ok         
  Checkerboard        : ok         
  Bit Spread          : ok         
  Bit Flip            : ok         
  Walking Ones        : ok         
  Walking Zeroes      : ok         

Done.
sh2263:1548734287->1548735460(1173):: killed cpuloadgen
sh2263:1548734287->1548735462(1175):: killed memtest
[ 2865.678712] LTP: starting MEMORY_L_FUNC_MEMTESTER_66pct_1time (source 'functions.sh'; run_memtest 66 1)
<<<execution_status>>>
initiation_status="ok"
duration=1175 termination_type=exited termination_id=0 corefile=no
cutime=116350 cstime=203
<<<test_end>>>
<<<test_start>>>
tag=MEMORY_L_FUNC_MEMTESTER_66pct_1time stime=1548735462
cmdline="source 'functions.sh'; run_memtest 66 1"
contacts=""
analysis=exit
<<<test_output>>>
sh2305:1548735462->1548735462(0):: Testing 1202M of memory 1 times
memtester version 4.3.0 (32-bit)
Copyright (C) 2001-2012 Charles Cazabon.
Licensed under the GNU General Public License version 2 (only).

pagesize is 4096
pagesizemask is 0xfffff000
want 1202MB (1260388352 bytes)
got  1202MB (1260388352 bytes), trying mlock ...locked.
Loop 1/1:
  Stuck Address       : ok         
  Random Value        : ok
  Compare XOR         : ok
  Compare SUB         : ok
  Compare MUL         : ok
  Compare DIV         : ok
  Compare OR          : ok
  Compare AND         : ok
  Sequential Increment: ok
  Solid Bits          : ok         
  Block Sequential    : ok         
  Checkerboard        : ok         
  Bit Spread          : testing  56[ 3661.653110] cpsw 48484000.ethernet eth0: Link is Down
setting  58[ 3663.734252] cpsw 48484000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
ok         
  Bit Flip            : ok         
  Walking Ones        : ok         
  Walking Zeroes      : ok         

Done.
sh2305:1548735462->1548736890(1428):: killed cpuloadgen
sh2305:1548735462->1548736892(1430):: killed memtest
[ 4295.845363] LTP: starting MEMORY_L_STRESS_MEMTESTER_80pct_1time (source 'functions.sh'; run_memtest 80 1)
<<<execution_status>>>
initiation_status="ok"
duration=1430 termination_type=exited termination_id=0 corefile=no
cutime=141827 cstime=247
<<<test_end>>>
<<<test_start>>>
tag=MEMORY_L_STRESS_MEMTESTER_80pct_1time stime=1548736892
cmdline="source 'functions.sh'; run_memtest 80 1"
contacts=""
analysis=exit
<<<test_output>>>
sh2351:1548736892->1548736892(0):: Testing 1457M of memory 1 times
memtester version 4.3.0 (32-bit)
Copyright (C) 2001-2012 Charles Cazabon.
Licensed under the GNU General Public License version 2 (only).

pagesize is 4096
pagesizemask is 0xfffff000
want 1457MB (1527775232 bytes)
got  1457MB (1527775232 bytes), trying mlock ...locked.
Loop 1/1:
  Stuck Address       : ok         
  Random Value        : ok
  Compare XOR         : ok
  Compare SUB         : ok
  Compare MUL         : ok
  Compare DIV         : ok
  Compare OR          : ok
  Compare AND         : ok
  Sequential Increment: ok
  Solid Bits          : ok         
  Block Sequential    : ok         
  Checkerboard        : testing   7PAN stop Alarm was received
/opt/ltp/testcases/bin/ddt/common/functions.sh: line 346:  2370 Alarm clock             memtester $m$m2 $2
sh2351:1548736892->1548737625(733):: killed cpuloadgen
sh2351:1548736892->1548737627(735):: killed memtest
<<<execution_status>>>
initiation_status="ok"
duration=735 termination_type=driver_interrupt termination_id=14 corefile=no
cutime=72295 cstime=294
<<<test_end>>>
INFO: ltp-pan reported all tests PASS
LTP Version: 20180118
        
       ###############################################################"
        
            Done executing testcases."
            LTP Version:  20180118
            Result log is in the /tmp/tmp.tUiZds "
       ###############################################################"
       
Test Start Time: Tue Jan 29 03:53:40 2019
-----------------------------------------
Testcase                       Result     Exit Value
--------                       ------     ----------
MEMORY_S_FUNC_CHECKSIZE        FAIL       1    
MEMORY_S_FUNC_MEMTESTER_1pct_1 PASS       0    
MEMORY_M_FUNC_MEMTESTER_10pct_ PASS       0    
MEMORY_L_FUNC_MEMTESTER_50pct_ PASS       0    
MEMORY_L_FUNC_MEMTESTER_66pct_ PASS       0    
MEMORY_L_STRESS_MEMTESTER_80pc FAIL       14   

-----------------------------------------------
Total Tests: 13
Total Skipped Tests: 0
Total Failures: 2
Kernel Version: 4.14.67-gd315a9bb00
Machine Architecture: armv7l
Hostname: am57xx-evm

root@am57xx-evm:/opt/ltp# [ 5581.634326] cpsw 48484000.ethernet eth0: Link is Down
[ 5603.475085] cpsw 48484000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
ls /lib/firmware/dra7-*  
/lib/firmware/dra7-ipu1-fw.xem4                 /lib/firmware/dra7-ipu2-fw.xem4                 /lib/firmware/dra7-ipu2-fw.xem4.map
/lib/firmware/dra7-ipu1-fw.xem4.opencl-monitor  /lib/firmware/dra7-ipu2-fw.xem4.ipumm-fw
root@am57xx-evm:/opt/ltp# 

And then the result is still failed. the log message is attached

please advise 

BR

Yimin

  • Hi, Yimin,

    Ok. The failure doesn't have anything to do with DSP is running or not. It simply means the free memory isn't enough. You can take a look at the script files and it is also shown in the log that the script checks if $expected_memory is greater than $min_mem_size. It not, it terminates and hence failed.

    cmdline="source 'board_requirements.sh'; get_acceptable_[ 1423.837449] LTP: starting MEMORY_S_FUNC_MEMTESTER_1pct_1time (source 'functions.sh'; run_memtest 1 1)
    memory_size; min_mem_size=`echo "$expected_memory * 0.95 / 1" |bc`; [ $(free | grep Mem:| awk '{print $2};') -gt $min_mem_size ]"

    In our system test, we only test 3 cases: 1pct_1time, 10pct_1time, and 50pct_1time.

    In your logs, you failed when running 80pct_1time and got "stop alarm was received" message , but I am passing. I suspect it may have something to do with the "-t 1h" which I didn't specify.

    If you still have issues with running ltp test. I suggest you search on internet and send quetions to ltp open forum. TI doesn't own ltp test but take it from open source.

    If you don't have any issues wit TI software, please click "Resolved".

    Rex
  • Hi Sir

    You mentioned  “In our system test, we only test 3 cases: 1pct_1time, 10pct_1time, and 50pct_1time. ”

    I want to know how to do test the memory function in TI test plan.

    Would you give me the correct setting file and command by using LTP from TI?

    Then we can use the same test to test our AM57x board for memory function verification.

    Thanks

  • Hi, Yimin,

    As I memtioned TI only test 3 cases, and they are 1pct_1time, 10pct_10time (correction from my previous post), and 50pct_1time.
    We are using automation, so it isthe same commands as in the ltp script file, but different format. We execute each test separately and not in group in a file as what you did.

    We don't run CHECKSIZE test. I suspect your issue is because the free memory is less than expected minimal. If you want to run it, I suggest that you check if free memory is greater than the min_mem_size. I believe in the script file, the min_mem_size is set to $expected_memory. If you still have issue running CHECKSIZE, debug print these values in the script file always help. Once you find out the relationship between the values used in the script, you should know what value to use per your system environment.

    Rex