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

hx5_sanity.soc (6049B)


      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 # Helix5 Sanity
      7 #
      8 # Script to run all available tests as quickly as possible.
      9 # For testing basic sanity of new drivers, simulators, chips, etc.
     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 counter off
     23 l2mode off
     24 
     25 # We need to print out port status since any cabling effects results.
     26 *:ps
     27 
     28 if $?1 'local full_test 1'
     29 
     30 # Avoid link messages while testing
     31 linkscan off
     32 
     33 init soc
     34 local done 'echo "   Done"'
     35 
     36 #Display some useful information
     37 date
     38 ver
     39 soc
     40 
     41 #bb voltage core 0.92
     42 
     43 #Start Test
     44 
     45 echo "tr 1: Running Register reset defaults ..."
     46 tr 1
     47 $done
     48 date
     49 
     50 if !$?ihost_mode \
     51     'echo "tr 2: Running PCI Compliance ...";\
     52      tr 2;\
     53      $done;\
     54      date'
     55 
     56 # tr 3 needs init-soc/misc to be run, hence it start below with the rest.
     57 
     58 echo "tr 4: Running PCI S-Channel Buf ..."
     59 tr 4
     60 $done
     61 date
     62 
     63 init soc
     64 cancun load cmh
     65 cancun load cch
     66 init misc
     67 echo "tr 3: Running Register read/write ..."
     68 tr 3 mask64
     69 $done
     70 date
     71 
     72 # Re-initialize to clean up of various read/writes to MMU memories
     73 set rct=true
     74 rcload rc.soc
     75 counter off
     76 l2mode off
     77 linkscan off
     78 memscan off
     79 date
     80 
     81 echo "tr 17: Testing CPU DMA loopback ..."
     82 tr 17
     83 $done
     84 date
     85 
     86 #MAC Loopback
     87 echo "Testing MAC Loopback"
     88 tr 18 PortBitMap=e,hg
     89 $done
     90 
     91 #PHY Loopback
     92 echo "tr 19: Testing PHY Loopback"
     93 tr 19 PortBitMap=e,hg
     94 $done
     95 date
     96 
     97 rcload rc.soc
     98 counter off
     99 l2mode off
    100 linkscan off
    101 memscan off
    102 
    103 echo "tr 21: Running CPU Benchmarks ..."
    104 tr 21
    105 $done
    106 date
    107 
    108 #echo "tr 22: Testing CPU DMA, Scatter/Gather Reload ..."
    109 #tr 22 (Replaced by 500 series of tests)
    110 #$done
    111 date
    112 
    113 #echo "tr 23: Testing CPU DMA, Scatter/Gather Simple ..."
    114 #tr 23 (Replaced by 500 series of tests)
    115 #$done
    116 date
    117 
    118 #echo "tr 24: Testing CPU DMA, Scatter/Gather Random ..."
    119 #tr 24 (Replaced by 500 series of tests)
    120 #$done
    121 date
    122 
    123 echo "tr 30: Running counter width verification test ..."
    124 tr 30
    125 $done
    126 date
    127 
    128 echo "tr 31: Running Counter/MIB test ..."
    129 tr 31
    130 $done
    131 date
    132 
    133 echo "tr 32: Running XGS L2 Ins/Lookup/Del test ..."
    134 tr 32
    135 $done
    136 date
    137 
    138 echo "tr 33: Running XGS L2 Overflow Ins test ..."
    139 tr 33
    140 $done
    141 date
    142 
    143 echo "tr 34: Running XGS L2 Hashing test ..."
    144 tr 34
    145 $done
    146 date
    147 
    148 echo "tr 35: Running XGS L2 Delete by Port test ..."
    149 tr 35
    150 $done
    151 date
    152 
    153 echo "tr 36: Running XGS L2 Delete by VLAN test ..."
    154 tr 36
    155 $done
    156 date
    157 
    158 
    159 #Internal snake Loopback
    160 echo "tr 39: Running internal snake on all E ports, MAC loopback ..."
    161 tr 39 LoopbackMode=MAC snakepath=TWOways PortBitMap=e Count=1
    162 $done
    163 date
    164 
    165 echo "tr 39: Running internal snake on all E ports, PHY loopback ..."
    166 tr 39 LoopbackMode=PHY snakepath=TWOways PortBitMap=e Count=1
    167 $done
    168 date
    169 
    170 echo "tr 40: Running BCM Packet Send test ..."
    171 tr 40
    172 $done
    173 date
    174 
    175 echo "tr 41: Running BCM Packet Receive test ..."
    176 tr 41
    177 $done
    178 date
    179 
    180 set rct=false
    181 echo "Running Memory Tests..."
    182 rcload trall_bcm56370_a0.soc
    183 $done
    184 
    185 set rct=true
    186 echo "tr 48: Running MAC loopback  - Mark 2 test ..."
    187 tr 48 pbm=e
    188 $done
    189 date
    190 
    191 echo "Running PHY loopback V2 on all ports ..."
    192 tr 49 PortBitMap=e
    193 $done
    194 
    195 echo "tr 60: Running MDIO Linkscan test ..."
    196 tr 60
    197 $done
    198 date
    199 
    200 #Traffic Test
    201 echo "tr 72: Running Traffic Test in MAC mode on E ports..."
    202 tr 72 RunMode=MAC PortBitMap=e TimeInSeconds=3
    203 $done
    204 
    205 echo "tr 72: Running Traffic Test in PHY mode on E ports..."
    206 tr 72 RunMode=PHY PortBitMap=e TimeInSeconds=3
    207 $don
    208 
    209 echo "tr 85: Running L3 IPV6 Overflow Ins test ..."
    210 tr 85
    211 $done
    212 date
    213 
    214 echo "tr 86: Running L3 IPV6 Hashing test ..."
    215 tr 86
    216 $done
    217 date
    218 
    219 echo "tr 87: L3 IPV4 Overflow Ins test ..."
    220 tr 87
    221 $done
    222 date
    223 
    224 echo "tr 88: L3 IPV4 Hashing test ..."
    225 tr 88
    226 $done
    227 date
    228 
    229 #echo "tr 90: TX Reload Test ..."
    230 #tr 90
    231 #$done
    232 #date
    233 
    234 #echo "tr 91: RX Reload Test ..."
    235 #tr 91
    236 #$done
    237 #date
    238 
    239 #echo "tr 100: VLAN xlate Overflow Ins Test ..."
    240 #tr 100
    241 #$done
    242 #date
    243 
    244 #echo "tr 101: VLAN xlate Hashing Test ..."
    245 #tr 101
    246 #$done
    247 #date
    248 
    249 #echo "tr 102: Egr VLAN xlate Ovrflw Ins Test ..."
    250 #tr 102
    251 #$done
    252 #date
    253 
    254 #echo "tr 103: Egr VLAN xlate Hashing Test ..."
    255 #tr 103
    256 #$done
    257 #date
    258 
    259 #echo "tr 104: MPLS Overflow Ins Test ..."
    260 #tr 104
    261 #$done
    262 #date
    263 
    264 echo "tr 105: MPLS Hashing Test ..."
    265 tr 105
    266 $done
    267 date
    268 
    269 #echo "tr 201: Simple CMICx Sim Test Test ..."
    270 #tr 201
    271 #$done
    272 #date
    273 
    274 #echo "tr 501: Streaming test ..."
    275 #tr 501
    276 #$done
    277 #date
    278 
    279 echo "tr 500: Running Traffic Test in PHY mode on XE ports test ..."
    280 tr 500
    281 $done
    282 date
    283 
    284 echo "tr 502: Running SBUS DMA Performance test ..."
    285 tr 502
    286 $done
    287 date
    288 
    289 echo "tr 503: Running CCM DMA functionality test ..."
    290 tr 503
    291 $done
    292 date
    293 
    294 echo "tr 504: Running FIFO DMA functionality test ..."
    295 tr 504
    296 $done
    297 date
    298 
    299 #echo "tr 505: Running SCHAN DMA functionality test ..."
    300 #tr 505
    301 #$done
    302 #date
    303 
    304 #echo "tr 506: SBUS DMA stress test ..."
    305 #tr 506
    306 $done
    307 date
    308 
    309 #echo "tr 507: Latency test ..."
    310 #tr 507
    311 #$done
    312 #date
    313 
    314 #echo "tr 510: L2UC test ..."
    315 #tr 510
    316 #$done
    317 #date
    318 
    319 #echo "tr 511: L2MC test ..."
    320 #tr 511
    321 #$done
    322 #date
    323 
    324 #echo "tr 512: L3UC test ..."
    325 #tr 512
    326 #$done
    327 #date
    328 
    329 #echo "tr 513: IPMC test ..."
    330 #tr 513
    331 #$done
    332 #date
    333 
    334 #echo "tr 514: Flexport test ..."
    335 #tr 514
    336 #$done
    337 #date
    338 
    339 # Not supported on Helix-5
    340 #echo "tr 515: MBIST test ..."
    341 #tr 515
    342 #$done
    343 #date
    344 
    345 #echo "tr 516: CAMBIST test ..."
    346 tr 516
    347 #$done
    348 #date
    349 
    350 #echo "tr 517: TD3 Power test ..."
    351 #tr 517
    352 #$done
    353 #date
    354 
    355 #echo "tr 901: SER In-House Test ..."
    356 #tr 901
    357 #$done
    358 #date
    359 
    360 #echo "tr 903: ECC Parity test ..."
    361 #tr 903
    362 #$done
    363 #date
    364 
    365 echo "Running Software Error Recovery Test ..."
    366 linkscan off
    367 tr 144
    368 $done
    369 
    370 # Show status
    371 date
    372 tl
    373 local returnCode $?
    374 
    375 echo Tests Complete.  Reinitializing ...
    376 config refresh
    377 rcload rc.soc
    378 counter off
    379 l2mode off
    380 
    381 # We want to show the return code from the tl command which
    382 # lists the results. The automated test infrastructure keys off of this
    383 # value
    384 echo "testsuite: finished: sanity: $returnCode"