From d8b5de76a20770200881b6a34449a2d8f5fb2c8d Mon Sep 17 00:00:00 2001 From: kathrynsuraya Date: Mon, 10 Feb 2025 15:45:15 -0600 Subject: [PATCH 1/2] Update HSR_Offload.rst Kathryn Kalouf - PME supporting AM64/AM243 with Sitara. Updating the introduction and supported features. Signed-off-by: kathrynsuraya --- .../Kernel_Drivers/Network/HSR_Offload.rst | 22 +++++++++++++------ 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/source/linux/Foundational_Components/Kernel/Kernel_Drivers/Network/HSR_Offload.rst b/source/linux/Foundational_Components/Kernel/Kernel_Drivers/Network/HSR_Offload.rst index 0480ddb9a..f04594fb5 100644 --- a/source/linux/Foundational_Components/Kernel/Kernel_Drivers/Network/HSR_Offload.rst +++ b/source/linux/Foundational_Components/Kernel/Kernel_Drivers/Network/HSR_Offload.rst @@ -4,15 +4,23 @@ HSR Offload .. rubric:: **Introduction** -HSR framework in linux allows offloading below functionalities to the -device -hsr-fwd-offload: For forwarding HSR frames one port to another i.e port-to-port -forwarding +Redundant and reliable communication is necessary for the highly critical nature of grid infrastructure where network failures can lead to a disruption in electricity distribution. The international standard IEC 61850 addresses this importance and defines communication protocols that provide this redundancy and reliability needed within these grid substations. High-availability Seamless Redundancy (HSR) and Parallel Redundancy Protocol (PRP) are communication protocols defined by this standard, and they are the preferred protocols in today’s industry because there is no downtime or packet loss when a link failure occurs. In terms of current offload support, HSR will be the main focus. HSR is a protocol that supports redundant network connections, usually configured as a ring with Ethernet frames being sent in both directions. If one path around the ring fails, the other duplicated packet will still reach the intended destination. -hsr-dup-offload: Duplicate the outgoing HSR frame +When implementing HSR solutions in grid substations, traditionally, FPGAs and ASICs were used to support the HSR standard, but with modern processors and hardware accelerators, the AM64x provides a more cost-effective solution for implementing substation requirements, including HSR. Offloading is the process of transferring tasks away from the CPU to another processing unit. In the case of the AM64x Sitara Processor, HSR tasks can be offloaded from the A53 cores to the PRU_ICSSG. -The ICSSG HSR firmware supports port-to-port forwarding, Tx packet duplication -and this allows to offload these capabilities from HSR driver in software to the PRU-ICSSG. +.. rubric:: **Linux HSR Offload Support** + +HSR framework in Linux allows offloading below functionalities to the device: + +• hsr-fwd-offload: For forwarding HSR frames one port to another i.e. port-to-port forwarding + +• hsr-dup-offload: Duplicate the outgoing HSR frame + +• hsr-tag-ins-offload: Unique tag to identify HSR frames + +• hsr-tag-rm-offload: Removes the HSR tags + +The ICSSG HSR firmware supports these features which offloads these capabilities from the HSR driver in software to the PRU-ICSSG. Cut-through switching improves HSR latency but would need to be implemented separately. To enable offloading using below commands To enable port-to-port offload From 917bab5f33df1d7dcbe5746ee09e72bc4988c6b7 Mon Sep 17 00:00:00 2001 From: kathrynsuraya Date: Tue, 11 Feb 2025 09:23:13 -0600 Subject: [PATCH 2/2] Update source/linux/Foundational_Components/Kernel/Kernel_Drivers/Network/HSR_Offload.rst Co-authored-by: Chirag Shilwant <115738422+cshilwant@users.noreply.github.com> Signed-off-by: kathrynsuraya --- .../Kernel/Kernel_Drivers/Network/HSR_Offload.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/linux/Foundational_Components/Kernel/Kernel_Drivers/Network/HSR_Offload.rst b/source/linux/Foundational_Components/Kernel/Kernel_Drivers/Network/HSR_Offload.rst index f04594fb5..c7174b1d0 100644 --- a/source/linux/Foundational_Components/Kernel/Kernel_Drivers/Network/HSR_Offload.rst +++ b/source/linux/Foundational_Components/Kernel/Kernel_Drivers/Network/HSR_Offload.rst @@ -8,7 +8,7 @@ Redundant and reliable communication is necessary for the highly critical nature When implementing HSR solutions in grid substations, traditionally, FPGAs and ASICs were used to support the HSR standard, but with modern processors and hardware accelerators, the AM64x provides a more cost-effective solution for implementing substation requirements, including HSR. Offloading is the process of transferring tasks away from the CPU to another processing unit. In the case of the AM64x Sitara Processor, HSR tasks can be offloaded from the A53 cores to the PRU_ICSSG. -.. rubric:: **Linux HSR Offload Support** +.. rubric:: Linux HSR Offload Support HSR framework in Linux allows offloading below functionalities to the device: