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.

PROCESSOR-SDK-AM64X: VLAN and HSR support

Part Number: PROCESSOR-SDK-AM64X

Hi,

I am using latest TI SDK release www.ti.com/.../PROCESSOR-SDK-AM64X

PROCESSOR-SDK-LINUX-RT-AM64X — Processor SDK RT-Linux for AM64x  Version: 09.00.00.03

For HSR I am following next doc to setup HSR with Linux HSR Offload Support

https://software-dl.ti.com/processor-sdk-linux-rt/esd/AM64X/09_00_00_03/exports/docs/linux/Foundational_Components/Kernel/Kernel_Drivers/Network/HSR_PRP.html

There is an issue with VLAN in this configuration... By executing commands from this document for VLAN we have next error

Error: 8021q: VLANs not supported on device.

Is it VLAN over HSR supported in this SDK version? 

  • I'm assuming you created the hsr0 interface successfully, and the error

    Error: 8021q: VLANs not supported on device.

    comes as the command below?

    ip link add link hsr0 name hsr0.2 type vlan id 2

  • I've tested this VLAN command on a network of AM64x EVMs, one EVM with hardware offloading and the rest without offloading.

    Below are the outputs I am getting.

    AM64x EVM with hardware offloading (eth0 is CPSW ethernet port):

    root@am64xx-evm:~# ip link add link hsr0 name hsr0.2 type vlan id 2
    Error: 8021q: VLANs not supported on device.
    [ 1616.909587] 8021q: 802.1Q VLAN Support v1.8
    [ 1616.909668] 8021q: adding VLAN 0 to HW filter on device eth0
    [ 1616.911489] 8021q: VLANs not supported on hsr0
    

    AM64x EVM without hardware offloading:

    root@am64xx-evm:~# ip link add link hsr0 name hsr0.2 type vlan id 2                                                                                                                                         
    [ 7050.281014] 8021q: VLANs not supported on hsr0
    Error: 8021q: VLANs not supported on device.
    

    AM64x SK (no hardware offloading- both are CPSW ethernet ports):

    root@am64xx-evm:~# ip link add link hsr0 name hsr0.2 type vlan id 2
    Error: 8021q: VLANs not supported on device[ 6136.017110] 8021q: 802.1Q VLAN Support v1.8
    .
    [ 6136.017185] 8021q: adding VLAN 0 to HW filter on device eth0
    [ 6136.017285] 8021q: adding VLAN 0 to HW filter on device eth1
    [ 6136.019139] 8021q: VLANs not supported on hsr0
    

    Seems like this VLAN command does cause this error

    Error: 8021q: VLANs not supported on device.
  • yes these are commands that i did with exactly same result...

  • Hi Milan,

    We've reproduced this bug and are looking for a fix. We don't have a schedule for the fix yet.

    Best regards,

    Daolin

  • Hello Milan,

    I figured out how to unlock this thread. Recap of my email to you and your response:

    According to some feedback from the software team VLAN is not supported in the HSR stack neither in upstream nor in the SDK 9.2 (Linux Kernel v6.1) So this will need some time for implementation and testing. When do you need a fix for this issue by?

    We need this like other HSR features by end of April. Could you confirm if this is possible?

    Please allow me some time while I try to check with the team regarding this timeline. I'll reply with an update later this week.

    -Daolin

  • Milan,

    The team informed me that dropping this VLAN HSR feature as a patch by the end of April is possible but raised some concerns on how long releasing it as a patch will be active for the 6.1 kernel. I'm interpreting "active" as the patch will only be applicable for the 6.1 kernel and not the next long term support kernel. However, since I'm unclear on what this means I'm checking with the team about this.

    May I ask why this feature is required by the end of April (production timeline? development timeline?), is releasing it as a patch to SDK 9.2 acceptable even though it may not be "active" for long on the 6.1 kernel? 

    -Daolin

  • Hi,

    I assume you plan to have next release after SDK 9.2 as major one with new Linux kernel 6.6.. Probably this is reason why they have doubt about kernel 6.1

    By having your patch by end of April, we will need to deliver production release for our client by the end of May. 

  • Hi Milan,

    To reiterate some of my comments in the call earlier today, I was informed that SDK 10.0 will be released with the next kernel 6.6. This VLAN HSR feature will be implemented on that SDK release; however, to support your deadline of end of April, we will be able to release the feature as either a patch or CI/CD snapshot. Based on your response in the call, it seems like either method is okay with you.

    -Daolin

  • Patches or CI/CD snapshot are OK as we can take these patches from there and integrate and test on our side

  • Milan/Tianyi,

    Per the biweekly call on Thursday for an update on this:

    VLANs working on 2 board setup, we are still trying to get VLANs to work on 3 board setup. We are still confident that we can make the end of April requirement.

    -Daolin

  • Milan/Tianyi,

    Update:

    The VLAN bug on 3 board setup is a VLAN forwarding issue and could be related to the issue in https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1350947/processor-sdk-am64x-hsr-offload-pru-firmware-packet-lost. The sw team has communicated to me that "The debugging effort of (packet loss issue) in the other thread would also help root causing and fixing VLAN forwarding issue."

    As of yesterday, they are still focusing their efforts on debugging the issue in the other thread.

    -Daolin