openbcm

Git mirror of https://github.com/Broadcom-Network-Switching-Software/OpenBCM
git clone git://git.finwo.net/mirror/broadcom/openbcm
Log | Files | Refs | README

tr500_cmicx_stress.soc (4521B)


      1 # 
      2 # This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
      3 # 
      4 # Copyright 2007-2019 Broadcom Inc. All rights reserved.
      5 #
      6 # TR 500 cmicx Packetdma stress tests
      7 #
      8 # Script to run tr 500 stress tests for cmicx. Will be invoked by nightly regression
      9 # infrastructure to verify various tr tests across various cmcs.
     10 
     11 # Set run command script not to fail on errors reported by commands
     12 # this allows the script to continue if a test fails
     13 set rcerror=false
     14 
     15 # Set up test mode: don't stop on errors, show progress on each test
     16 tm -stoponerror +progress
     17 # Unselect all
     18 ts -*
     19 
     20 echo "testsuite: started: sanity"
     21 time 'rcload rc.soc'
     22 
     23 # We need to print out port status since any cabling effects results.
     24 *:ps
     25 
     26 #Display some useful information
     27 date
     28 ver
     29 soc
     30 
     31 # Re-initialize to clean up of various read/wrires to MMU memories
     32 set rct=true
     33 rcload rc.soc
     34 counter off
     35 l2mode off
     36 linkscan off
     37 memscan off
     38 sramscan off
     39 
     40 #TR500 with continuous dma and descriptor prefetch disabled
     41 echo "Testing TR500 with continuous dma and descriptor prefetch disabled"
     42 tr 500 streamtx=1 streamrx=1 testtypetx=4 testtyperx=4 txbitmap=0x0001 rxbitmap=0x0000 pktsize=1522 numpktstx=10 numpktsrx=10 pollintr=0 nlp=16
     43 tr 500 streamtx=1 streamrx=1 testtypetx=4 testtyperx=4 txbitmap=0x0001 rxbitmap=0x0002 pktsize=1522 numpktstx=10 numpktsrx=10 pollintr=0 nlp=16
     44 tr 500 streamtx=1 streamrx=1 testtypetx=4 testtyperx=4 txbitmap=0x0005 rxbitmap=0x000a pktsize=1522 numpktstx=10 numpktsrx=10 pollintr=0 nlp=16
     45 tr 500 streamtx=1 streamrx=1 testtypetx=4 testtyperx=4 txbitmap=0x0055 rxbitmap=0x00aa pktsize=1522 numpktstx=10 numpktsrx=10 pollintr=0 nlp=16
     46 tr 500 streamtx=1 streamrx=1 testtypetx=4 testtyperx=4 txbitmap=0x5555 rxbitmap=0xaaaa pktsize=1522 numpktstx=10 numpktsrx=10 pollintr=0 nlp=16
     47 $done
     48 
     49 #TR500 with continuous dma disabled and descriptor prefetch enabled
     50 config add pdma_descriptor_prefetch_enable=1
     51 
     52 echo "Testing TR500 with continuous dma disabled and descriptor prefetch enabled"
     53 tr 500 streamtx=1 streamrx=1 testtypetx=4 testtyperx=4 txbitmap=0x0001 rxbitmap=0x0002 pktsize=1522 numpktstx=10 numpktsrx=10 pollintr=0 nlp=16
     54 tr 500 streamtx=1 streamrx=1 testtypetx=4 testtyperx=4 txbitmap=0x0005 rxbitmap=0x000a pktsize=1522 numpktstx=10 numpktsrx=10 pollintr=0 nlp=16
     55 tr 500 streamtx=1 streamrx=1 testtypetx=4 testtyperx=4 txbitmap=0x0055 rxbitmap=0x00aa pktsize=1522 numpktstx=10 numpktsrx=10 pollintr=0 nlp=16
     56 tr 500 streamtx=1 streamrx=1 testtypetx=4 testtyperx=4 txbitmap=0x5555 rxbitmap=0xaaaa pktsize=1522 numpktstx=10 numpktsrx=10 pollintr=0 nlp=16
     57 tr 500 streamtx=1 streamrx=1 testtypetx=4 testtyperx=4 txbitmap=0x0001 rxbitmap=0x0002 pktsize=64 numpktstx=10 numpktsrx=10 pollintr=0 nlp=16
     58 tr 500 streamtx=1 streamrx=1 testtypetx=4 testtyperx=4 txbitmap=0x0005 rxbitmap=0x000a pktsize=64 numpktstx=10 numpktsrx=10 pollintr=0 nlp=16
     59 tr 500 streamtx=1 streamrx=1 testtypetx=4 testtyperx=4 txbitmap=0x0055 rxbitmap=0x00aa pktsize=64 numpktstx=10 numpktsrx=10 pollintr=0 nlp=16
     60 tr 500 streamtx=1 streamrx=1 testtypetx=4 testtyperx=4 txbitmap=0x5555 rxbitmap=0xaaaa pktsize=64 numpktstx=10 numpktsrx=10 pollintr=0 nlp=16
     61 tr 500 streamtx=1 streamrx=1 testtypetx=4 testtyperx=4 txbitmap=0x0001 rxbitmap=0x0002 pktsize=512 numpktstx=10 numpktsrx=10 pollintr=0 nlp=16
     62 tr 500 streamtx=1 streamrx=1 testtypetx=4 testtyperx=4 txbitmap=0x0005 rxbitmap=0x000a pktsize=512 numpktstx=10 numpktsrx=10 pollintr=0 nlp=16
     63 tr 500 streamtx=1 streamrx=1 testtypetx=4 testtyperx=4 txbitmap=0x0055 rxbitmap=0x00aa pktsize=512 numpktstx=10 numpktsrx=10 pollintr=0 nlp=16
     64 tr 500 streamtx=1 streamrx=1 testtypetx=4 testtyperx=4 txbitmap=0x0055 rxbitmap=0x00aa pktsize=128 numpktstx=10 numpktsrx=10 pollintr=0 nlp=16
     65 tr 500 streamtx=1 streamrx=1 testtypetx=4 testtyperx=4 txbitmap=0x0055 rxbitmap=0x00aa pktsize=129 numpktstx=10 numpktsrx=10 pollintr=0 nlp=16
     66 tr 500 streamtx=1 streamrx=1 testtypetx=4 testtyperx=4 txbitmap=0x0055 rxbitmap=0x00aa pktsize=1024 numpktstx=10 numpktsrx=10 pollintr=0 nlp=16
     67 tr 500 streamtx=1 streamrx=1 testtypetx=4 testtyperx=4 txbitmap=0x0055 rxbitmap=0x00aa pktsize=9216 numpktstx=10 numpktsrx=10 pollintr=0 nlp=16
     68 $done
     69 
     70 # Show status
     71 date
     72 tl
     73 local returnCode $?
     74 
     75 echo Tests Complete.  Reinitializing ...
     76 config refresh
     77 #rcload rc.soc
     78 #counter off
     79 #l2mode off
     80 
     81 # We want to show the return code from the tl command which
     82 # lists the results. The automated test infrastructure keys off of this
     83 # value
     84 echo "testsuite: finished: sanity: $returnCode"