Switch TSN test on ls1028ardb with LSDK1909

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Switch TSN test on ls1028ardb with LSDK1909

1,685 Views
hittzt
Contributor V

Hi experts,

I am going to do some switch tsn testing on ls1028ardb based on the section 4.2.13.4 Basic TSN configure examples on switch from "Layerscape Software Development Kit User Guide (LSDK 19.09-update-311219)".

I found that the tsn test need a testcenter. The testcenter is a specific machine or anything else? If there is no testcenter, how to do the tsn test? And is there anymore detailed docs for test tsn feature?

 

Any comments are welcome.

 

Regards,

Zhantao

0 Kudos
14 Replies

1,446 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please refer to section "8.7 Time Sensitive Networking (TSN)" for details.

You could use another board to generate packets flow, use iperf or pktgen. 

You could refer to "8.7.1.3.2.3 Qbv performance test" and "8.7.1.3.4 Qbu test".

0 Kudos

1,446 Views
hittzt
Contributor V

Hi Yiping,

Now I use two boards to test tsn qbvset case,  following the "8.7.1.3.2.1 Basic gates closing" steps.

After I input "tsntool> qbvset --device eth0 --entryfile ./qbv0.txt" in interactive mode, the command did not respond anything, even waiting for more 30 secs. 

Log as following:

root@nxp-ls1028:/home/tsntest# tsntool
tsn generic netlink receive echo mesg test netlink
tsn generic netlink receive echo data 1
echo reply:test netlink
echo reply:1
tsntool V0.3
Copyright 2018-2019 NXP

Interactive mode

tsntool> qbvset --device eth0 --entryfile qbv0.txt


ethtool -S th^H^He^H^H^H^H^H^H^H


^H^H^H^Hsdf


^C
tsntool> nonfatal reply error: errno -1
tsntool> quit

root@nxp-ls1028:/home/tsntest#

And dmesg related with tsn as follows:

root@nxp-ls1028:/home/tsntest# dmesg | tail
[ 2284.152206] tsn generic netlink receive echo mesg test netlink
[ 2284.156816] tsn generic netlink receive echo data 1
[ 2299.284153] tsn generic netlink receive echo mesg test netlink
[ 2299.288761] tsn generic netlink receive echo data 1
[ 3261.148221] tsn generic netlink receive echo mesg test netlink
[ 3261.152835] tsn generic netlink receive echo data 1
[ 3459.672142] tsn generic netlink receive echo mesg test netlink
[ 3459.676787] tsn generic netlink receive echo data 1
[ 3672.744192] tsn generic netlink receive echo mesg test netlink
[ 3672.748805] tsn generic netlink receive echo data 1

Is this right? Or is there anything else should be configured?

Thanks,

Zhantao

0 Kudos

1,446 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please refer to the following log from the testing team.

Welcome to NXP LSDK 1909 devel (GNU/Linux 4.14.140-01403-gd87c9479be36 aarch64)

 

 * Support:        https://www.nxp.com/lsdk

 * Documentation:  https://lsdk.github.io/document

 * Licensing:      https://lsdk.github.io/eula

Last login: Thu Jul  2 23:42:21 2020

 

root@LS1028ARDB:~#

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

root@LS1028ARDB:~# devmem 0x1fc0900a0 w 0x00000004 && devmem 0x1fc0900c4

tsntool0x000000C4

root@LS1028ARDB:~# tsntool

echo reply:test netlink

echo reply:1

tsntool V0.2

Copyright 2018 NXP

 

 

 

Interactive mode

 

tsntool>

 

tsntool> qbvset --device eno0 --entryfile basic_gates_close_cfg

 

echo reply:eno0

echo reply:0

tsntool> qbvset --device eno0 --entryfile basic_gates_close_cfg

 

root@LS1028ARDB:~# devmem 0x1fc0900a0 w 0x00000004 && devmem 0x1fc0900c4 tsntool0x000000C4 root@LS1028ARDB:~# tsntool echo reply:test netlink echo reply:1 tsntool V0.2 Copyright 2018 NXP Interactive mode tsntool> tsntool> qbvset --device eno0 --entryfile basic_gates_close_cfg echo reply:eno0 echo reply:0 tsntool> qbvset --device eno0 --entryfile basic_gates_close_cfg
0 Kudos

1,446 Views
hittzt
Contributor V

Hi Yiping,

Thanks for you reply, I have known the reason.

By the way, the current tsntool is tested on higher kernel?

0 Kudos

1,446 Views
yipingwang
NXP TechSupport
NXP TechSupport

You could try the latest LSDK 20.04  which includes  Linux Kernel 5.x.

0 Kudos

1,446 Views
hittzt
Contributor V

I just see the LSDK 20.04 user manual, the tsn section says:

   • Tsntool supports only the LS1028ARDB platform. Other hardware platforms might be supported in future.

   • Current tsntool binary and lib are default for kernel version v4.19. If you want to use kernel v4.13, you need to clone the tsntool source code, and compile the tag point v0.2 source code.

It is all the same as LSDK 19.09 user manual.

I am now working on v5.2 linux kernel, while the tsntool seems unusable as I asked yestoday.

Would you please help to verify this issue?

Thanks,

Zhantao

0 Kudos

1,446 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Zhantao,

You could use ubuntu rootfs and Linux Kernel 5.4 provided in LSDK 20.04.

Thanks,

Yiping

0 Kudos

1,446 Views
hittzt
Contributor V

BTW, the tsn feature on switch is verified on dsa or mscc?

Thanks,

Zhantao

0 Kudos

1,446 Views
hittzt
Contributor V

Thanks a lot.

I verified the lsdk2004 tsntool on lsdk2004 kernel image, it works.

But my local tsntool can not work on lsdk2004 image. And I found that the tsntool git repo: git://source.codeaurora.org/external/qoriq/qoriq-components/tsntool.git

did not contain the new patches on lsdk20.04 for tsntool. When will these patches push to the git repo?

0 Kudos

1,446 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please refer to the following command to download and use tsntool source code.
$ git clone https://source.codeaurora.org/external/qoriq/qoriq-components/tsntool.git
$ git checkout tags/LSDK-20.04 -b LSDK-20.04

0 Kudos

1,446 Views
hittzt
Contributor V

Hello Yiping,

I have another query that do you have tested the tsn feature of nxp-ls1028 by other tools like tc rather than tsntool?

0 Kudos

1,446 Views
yipingwang
NXP TechSupport
NXP TechSupport

No, we don't use other tool rather than tsntool.

0 Kudos

1,446 Views
hittzt
Contributor V

Thanks a lot for your help. I will check it.

0 Kudos

1,446 Views
hittzt
Contributor V

Thanks for your responds, I will try the method you suggested.

Regards,

Zhantao

0 Kudos