byte loss in multiple uart external loopback test simultaneously

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Medium
    • Linux Core SDK
    • LCPD-44703
    • 10.01
    • 12.01.00
    • am62xx_sk-fs

      A byte would be lost when using serialcheck program testing multiple UART external loopback simultaneously, along with a network interface link up and down.

      For example, mcu_uart0, main_uart1, and main_uart5 on SK-AM62B-P1 are enabled and aliased to ttyS1, ttyS3, and ttyS7 respectively. Using the following command sequence to start UART transfers simultaneously.

      gpioset 2 21=0 # route mcu_uart0 to header J9

      serialcheck -b 460800 -d /dev/ttyS1 -f 15MB.data -l 300001 -m r &
      serialcheck -b 460800 -d /dev/ttyS1 -f 15MB.data -l 300001 -m t &
      serialcheck -b 460800 -d /dev/ttyS3 -f 15MB.data -l 300003 -m r &
      serialcheck -b 460800 -d /dev/ttyS3 -f 15MB.data -l 300003 -m t &
      serialcheck -b 460800 -d /dev/ttyS7 -f 15MB.data -l 300007 -m r &
      serialcheck -b 460800 -d /dev/ttyS7 -f 15MB.data -l 300007 -m t &

      while true; do ifconfig eth1 up && sleep 1 && ifconfig eth1 down && sleep 1; done

      After a while, the following error happens, byte 0x9e80d is lost in RX.

      [  699.845546] am65-cpsw-nuss 8000000.ethernet eth1: configuring for phy/rgmii-rxid link mode
      Needed 239443 reads 0 writes Oh oh, inconsistency at pos 15329293 (0xe9e80d).
      
      Original sample:
      00e9e7d0: e5 39 1e 2f 5e d0 5c b3  57 f1 58 79 8c d6 e2 7d   .9./^.\.W.Xy...}
      00e9e7e0: b9 0a c2 cb d4 9e dc cd  52 47 90 81 b3 f2 41 92   ........RG....A.
      00e9e7f0: ad 30 64 1e 8c 5f 92 2d  33 64 e7 29 be 3a 92 2d   .0d.._.-3d.).:.-
      00e9e800: 11 59 09 8d 2d c8 31 0e  07 eb f6 e4 02 cc 9b 3b   .Y..-.1........;
      00e9e810: 9c f5 59 c3 d9 e3 a4 3b  48 ba 7e c9 63 3f e5 f1   ..Y....;H.~.c?..
      00e9e820: 53 82 0f a8 bd b9 63 17  0a 79 fa 0d e1 03 a4 7b   S.....c..y.....{
      
      Received sample:
      00e9e7d0: e5 39 1e 2f 5e d0 5c b3  57 f1 58 79 8c d6 e2 7d   .9./^.\.W.Xy...}
      00e9e7e0: b9 0a c2 cb d4 9e dc cd  52 47 90 81 b3 f2 41 92   ........RG....A.
      00e9e7f0: ad 30 64 1e 8c 5f 92 2d  33 64 e7 29 be 3a 92 2d   .0d.._.-3d.).:.-
      00e9e800: 11 59 09 8d 2d c8 31 0e  07 eb f6 e4 02 9b 3b 9c   .Y..-.1.......;.
      00e9e810: f5 59 c3 d9 e3 a4 3b 48  ba 7e c9 63 3f e5 f1 53   .Y....;H.~.c?..S
      00e9e820: 82 0f a8 bd b9 63 17 0a  79 fa 0d e1 03 a4 7b 2d   .....c..y.....{-
      loops 2 / 300007
      
      cts: 0 dsr: 0 rng: 0 dcd: 0 rx: 30668991 tx: 30668992 frame 0 ovr 0 par: 0 brk: 0 buf_ovrr: 0
      [  701.895331] am65-cpsw-nuss 8000000.ethernet eth1: PHY [8000f00.mdio:01] driver [TI DP83867] (irq=POLL) 

            Assignee:
            TI User
            Reporter:
            TI User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                Connection: Intermediate to External PROD System
                EXTSYNC-6583 - byte loss in multiple uart external...
                SYNCHRONIZED
                • Last Sync Date: