<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic network interface not working properly in ls1028a with specific serdes configuration in Layerscape</title>
    <link>https://community.nxp.com/t5/Layerscape/network-interface-not-working-properly-in-ls1028a-with-specific/m-p/1741228#M13491</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We are currently using the layerscape module &lt;STRONG&gt;ls1028a&lt;/STRONG&gt; in our custom board these are the network configuration that we are interested to use in our project.&lt;/P&gt;&lt;P&gt;SRDS_PRTCL_S1 = 0x9999&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Hamza_0-1697537193086.png" style="width: 668px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/245516iF5AB32D2FE992380/image-dimensions/668x122?v=v2" width="668" height="122" role="button" title="Hamza_0-1697537193086.png" alt="Hamza_0-1697537193086.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;Reset Configuration Word (RCW):
       00000000: 34004010 00000030 00000000 00000000
       00000010: 00000000 008e0000 0030c000 00000000
       00000020: 01403150 00002580 00000000 000080de
       00000030: 00000000 00000010 00000000 00000000
       00000040: 00000000 00000000 00000000 00000000
       00000050: 00000000 00000000 00000000 00000000
       00000060: 00000000 00000000 000e7000 00000000
       00000070: 99990000 03000000
Using SERDES1 Protocol: 39321 (0x9999)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Device tree:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;&amp;amp;enetc_port0 {
status = "disabled";
};

&amp;amp;enetc_port1 {
status = "disabled";
};

&amp;amp;enetc_mdio_pf3 {
mdio1_sgmii_phy01: ethernet-phy@1 {
reg = &amp;lt;0x01&amp;gt;;
};
};

/* l2switch ports */
mxl8153_port0: &amp;amp;mscc_felix_port0 {
status = "okay";
phy-mode = "sgmii";
fixed-link {
speed = &amp;lt;1000&amp;gt;;
full-duplex;
};
};

rj45_port1: &amp;amp;mscc_felix_port1{
status = "okay";
phy-mode = "sgmii";
phy-handle = &amp;lt;&amp;amp;mdio1_sgmii_phy01&amp;gt;;
};

sfp_port3: &amp;amp;mscc_felix_port2 {
status = "okay";
phy-mode = "1000base-x";
sfp = &amp;lt;&amp;amp;sfp_neta&amp;gt;;
fixed-link {
speed = &amp;lt;1000&amp;gt;;
full-duplex;
};
};

&amp;amp;mscc_felix_port3{
status = "disabled";
phy-mode = "sgmii";
};&lt;/LI-CODE&gt;&lt;LI-CODE lang="c"&gt;~# ip a
1: lo: &amp;lt;LOOPBACK,UP,LOWER_UP&amp;gt; mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: sit0@NONE: &amp;lt;NOARP&amp;gt; mtu 1480 qdisc noop state DOWN group default qlen 1000
    link/sit 0.0.0.0 brd 0.0.0.0
3: eno2: &amp;lt;BROADCAST,MULTICAST,UP,LOWER_UP&amp;gt; mtu 1520 qdisc mq state UP group default qlen 1000
    link/ether 00:d0:93:5a:58:89 brd ff:ff:ff:ff:ff:ff
    altname enp0s0f2
    inet6 fe80::2d0:93ff:fe5a:5889/64 scope link
       valid_lft forever preferred_lft forever
4: swp0@eno2: &amp;lt;BROADCAST,MULTICAST,UP,LOWER_UP&amp;gt; mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 00:d0:93:5a:58:89 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.99/24 brd 192.168.1.255 scope global swp0
       valid_lft forever preferred_lft forever
    inet6 fe80::2d0:93ff:fe5a:5889/64 scope link
       valid_lft forever preferred_lft forever
5: swp1@eno2: &amp;lt;BROADCAST,MULTIpiCAST,UP,LOWER_UP&amp;gt; mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 00:d0:93:5a:58:89 brd ff:ff:ff:ff:ff:ff
    inet 192.168.3.99/24 brd 192.168.3.255 scope global swp1
       valid_lft forever preferred_lft forever
    inet6 fe80::2d0:93ff:fe5a:5889/64 scope link
       valid_lft forever preferred_lft forever
6: swp2@eno2: &amp;lt;BROADCAST,MULTICAST,UP,LOWER_UP&amp;gt; mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 00:d0:93:5a:58:89 brd ff:ff:ff:ff:ff:ff
    inet 192.168.2.99/24 brd 192.168.2.255 scope global swp2
       valid_lft forever preferred_lft forever
    inet6 fe80::2d0:93ff:fe5a:5889/64 scope link
       valid_lft forever preferred_lft forever&lt;/LI-CODE&gt;&lt;LI-CODE lang="c"&gt;~# dmesg | grep felix
[    2.878838] mscc_felix 0000:00:00.5: Adding to iommu group 0
[    3.938295] mscc_felix 0000:00:00.5: Found PCS at internal MDIO address 0
[    3.945147] mscc_felix 0000:00:00.5: Found PCS at internal MDIO address 1
[    3.951985] mscc_felix 0000:00:00.5: Found PCS at internal MDIO address 2
[    3.982181] mscc_felix 0000:00:00.5: configuring for fixed/internal link mode
[    3.989402] mscc_felix 0000:00:00.5: Link is Up - 2.5Gbps/Full - flow control rx/tx
[    4.016168] mscc_felix 0000:00:00.5 swp1 (uninitialized): PHY [0000:00:00.3:01] driver [RTL8211F Gigabit Ethernet] (irq=POLL)
[    4.028004] mscc_felix 0000:00:00.5 swp2 (uninitialized): switched to inband/1000base-x link mode
[    7.462744] mscc_felix 0000:00:00.5 swp0: configuring for fixed/sgmii link mode
[    7.482654] mscc_felix 0000:00:00.5 swp0: Link is Up - 1Gbps/Full - flow control off
[    7.531142] mscc_felix 0000:00:00.5 swp1: configuring for phy/sgmii link mode
[    7.586585] mscc_felix 0000:00:00.5 swp2: configuring for inband/1000base-x link mode
[    7.663844] mscc_felix 0000:00:00.5 swp2: Link is Up - 1Gbps/Full - flow control rx/tx
[   10.629362] mscc_felix 0000:00:00.5 swp1: Link is Up - 1Gbps/Full - flow control rx/tx
~# dmesg | grep enetc
[    0.788902] pci 0000:00:00.0: enetc_fixup_clear_rss_rfs+0x0/0x5c took 105157 usecs
[    0.896919] pci 0000:00:00.1: enetc_fixup_clear_rss_rfs+0x0/0x5c took 105457 usecs
[    1.004395] pci 0000:00:00.6: enetc_fixup_clear_rss_rfs+0x0/0x5c took 104925 usecs
[    2.885141] fsl_enetc 0000:00:00.2: Adding to iommu group 1
[    2.891055] fsl_enetc_mdio 0000:00:00.3: Adding to iommu group 2
[    3.004108] fsl_enetc_mdio 0000:00:00.3: enabling device (0400 -&amp;gt; 0402)
[    3.014087] fsl_enetc_ptp 0000:00:00.4: Adding to iommu group 3
[    3.020113] fsl_enetc_ptp 0000:00:00.4: enabling device (0404 -&amp;gt; 0406)
[    3.544114] fsl_enetc 0000:00:00.2: enabling device (0400 -&amp;gt; 0402)
[    4.037412] fsl_enetc 0000:00:00.2 eth0: entered promiscuous mode
[    7.215724] fsl_enetc 0000:00:00.2 eno2: renamed from eth0
[    7.427418] fsl_enetc 0000:00:00.2 eno2: configuring for fixed/internal link mode
[    7.442037] fsl_enetc 0000:00:00.2 eno2: Link is Up - 1Gbps/Full - flow control rx/tx&lt;/LI-CODE&gt;&lt;LI-CODE lang="javascript"&gt;~# ethtool swp1
Settings for swp1:
        Supported ports: [ TP    MII ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Supported pause frame use: Symmetric Receive-only
        Supports auto-negotiation: Yes
        Supported FEC modes: Not reported
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Advertised pause frame use: Symmetric Receive-only
        Advertised auto-negotiation: Yes
        Advertised FEC modes: Not reported
        Link partner advertised link modes:  10baseT/Half 10baseT/Full
                                             100baseT/Half 100baseT/Full
                                             1000baseT/Full
        Link partner advertised pause frame use: Symmetric Receive-only
        Link partner advertised auto-negotiation: Yes
        Link partner advertised FEC modes: Not reported
        Speed: 1000Mb/s
        Duplex: Full
        Auto-negotiation: on
        master-slave cfg: preferred slave
        master-slave status: slave
        Port: Twisted Pair
        PHYAD: 1
        Transceiver: external
        MDI-X: Unknown
        Supports Wake-on: d
        Wake-on: d
        Link detected: yes&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem that I’m facing is that I’m not able to ping (send/receive data) using the interface swp1 (RJ45).&lt;/P&gt;&lt;P&gt;We tried to remove the &lt;SPAN&gt;flow control rx/tx&lt;/SPAN&gt; using the ethtool using the following command before assigning an ip address to the interface and I was able to ping :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;~# ethtool -A swp1 autoneg off rx off tx off
~# [ 128.775236] mscc_felix 0000:00:00.5 swp1: Link is Down
[ 131.557587] mscc_felix 0000:00:00.5 swp1: Link is Up - 1Gbps/Full - flow control off ping 192.168.3.222
PING 192.168.3.222 (192.168.3.222): 56 data bytes
64 bytes from 192.168.3.222: seq=0 ttl=128 time=0.861 ms
64 bytes from 192.168.3.222: seq=1 ttl=128 time=0.674 ms&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, I lose the connection (ping) if I remove and replug the cable, if I try to test the interface from ethtool&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;~# ethtool -t swp1
The test result is FAIL
The test extra info:
 1. Carrier                      0
 2. PHY dev is present           0
 3. PHY internal loopback, enab  0
 4. PHY internal loopback, UDP   -110
 5. PHY internal loopback, MTU   -110
 6. PHY internal loopback, TCP   -110
 7. PHY internal loopback, disa  0 &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;This behavior is the same for linux kernel version 5.15 , 6.1.35 and 6.5.7 (we wanted to make sure that it was not a driver issue that is fixed in a newer version)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Oct 2023 10:19:00 GMT</pubDate>
    <dc:creator>Hamza</dc:creator>
    <dc:date>2023-10-17T10:19:00Z</dc:date>
    <item>
      <title>network interface not working properly in ls1028a with specific serdes configuration</title>
      <link>https://community.nxp.com/t5/Layerscape/network-interface-not-working-properly-in-ls1028a-with-specific/m-p/1741228#M13491</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We are currently using the layerscape module &lt;STRONG&gt;ls1028a&lt;/STRONG&gt; in our custom board these are the network configuration that we are interested to use in our project.&lt;/P&gt;&lt;P&gt;SRDS_PRTCL_S1 = 0x9999&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Hamza_0-1697537193086.png" style="width: 668px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/245516iF5AB32D2FE992380/image-dimensions/668x122?v=v2" width="668" height="122" role="button" title="Hamza_0-1697537193086.png" alt="Hamza_0-1697537193086.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;Reset Configuration Word (RCW):
       00000000: 34004010 00000030 00000000 00000000
       00000010: 00000000 008e0000 0030c000 00000000
       00000020: 01403150 00002580 00000000 000080de
       00000030: 00000000 00000010 00000000 00000000
       00000040: 00000000 00000000 00000000 00000000
       00000050: 00000000 00000000 00000000 00000000
       00000060: 00000000 00000000 000e7000 00000000
       00000070: 99990000 03000000
Using SERDES1 Protocol: 39321 (0x9999)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Device tree:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;&amp;amp;enetc_port0 {
status = "disabled";
};

&amp;amp;enetc_port1 {
status = "disabled";
};

&amp;amp;enetc_mdio_pf3 {
mdio1_sgmii_phy01: ethernet-phy@1 {
reg = &amp;lt;0x01&amp;gt;;
};
};

/* l2switch ports */
mxl8153_port0: &amp;amp;mscc_felix_port0 {
status = "okay";
phy-mode = "sgmii";
fixed-link {
speed = &amp;lt;1000&amp;gt;;
full-duplex;
};
};

rj45_port1: &amp;amp;mscc_felix_port1{
status = "okay";
phy-mode = "sgmii";
phy-handle = &amp;lt;&amp;amp;mdio1_sgmii_phy01&amp;gt;;
};

sfp_port3: &amp;amp;mscc_felix_port2 {
status = "okay";
phy-mode = "1000base-x";
sfp = &amp;lt;&amp;amp;sfp_neta&amp;gt;;
fixed-link {
speed = &amp;lt;1000&amp;gt;;
full-duplex;
};
};

&amp;amp;mscc_felix_port3{
status = "disabled";
phy-mode = "sgmii";
};&lt;/LI-CODE&gt;&lt;LI-CODE lang="c"&gt;~# ip a
1: lo: &amp;lt;LOOPBACK,UP,LOWER_UP&amp;gt; mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: sit0@NONE: &amp;lt;NOARP&amp;gt; mtu 1480 qdisc noop state DOWN group default qlen 1000
    link/sit 0.0.0.0 brd 0.0.0.0
3: eno2: &amp;lt;BROADCAST,MULTICAST,UP,LOWER_UP&amp;gt; mtu 1520 qdisc mq state UP group default qlen 1000
    link/ether 00:d0:93:5a:58:89 brd ff:ff:ff:ff:ff:ff
    altname enp0s0f2
    inet6 fe80::2d0:93ff:fe5a:5889/64 scope link
       valid_lft forever preferred_lft forever
4: swp0@eno2: &amp;lt;BROADCAST,MULTICAST,UP,LOWER_UP&amp;gt; mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 00:d0:93:5a:58:89 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.99/24 brd 192.168.1.255 scope global swp0
       valid_lft forever preferred_lft forever
    inet6 fe80::2d0:93ff:fe5a:5889/64 scope link
       valid_lft forever preferred_lft forever
5: swp1@eno2: &amp;lt;BROADCAST,MULTIpiCAST,UP,LOWER_UP&amp;gt; mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 00:d0:93:5a:58:89 brd ff:ff:ff:ff:ff:ff
    inet 192.168.3.99/24 brd 192.168.3.255 scope global swp1
       valid_lft forever preferred_lft forever
    inet6 fe80::2d0:93ff:fe5a:5889/64 scope link
       valid_lft forever preferred_lft forever
6: swp2@eno2: &amp;lt;BROADCAST,MULTICAST,UP,LOWER_UP&amp;gt; mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 00:d0:93:5a:58:89 brd ff:ff:ff:ff:ff:ff
    inet 192.168.2.99/24 brd 192.168.2.255 scope global swp2
       valid_lft forever preferred_lft forever
    inet6 fe80::2d0:93ff:fe5a:5889/64 scope link
       valid_lft forever preferred_lft forever&lt;/LI-CODE&gt;&lt;LI-CODE lang="c"&gt;~# dmesg | grep felix
[    2.878838] mscc_felix 0000:00:00.5: Adding to iommu group 0
[    3.938295] mscc_felix 0000:00:00.5: Found PCS at internal MDIO address 0
[    3.945147] mscc_felix 0000:00:00.5: Found PCS at internal MDIO address 1
[    3.951985] mscc_felix 0000:00:00.5: Found PCS at internal MDIO address 2
[    3.982181] mscc_felix 0000:00:00.5: configuring for fixed/internal link mode
[    3.989402] mscc_felix 0000:00:00.5: Link is Up - 2.5Gbps/Full - flow control rx/tx
[    4.016168] mscc_felix 0000:00:00.5 swp1 (uninitialized): PHY [0000:00:00.3:01] driver [RTL8211F Gigabit Ethernet] (irq=POLL)
[    4.028004] mscc_felix 0000:00:00.5 swp2 (uninitialized): switched to inband/1000base-x link mode
[    7.462744] mscc_felix 0000:00:00.5 swp0: configuring for fixed/sgmii link mode
[    7.482654] mscc_felix 0000:00:00.5 swp0: Link is Up - 1Gbps/Full - flow control off
[    7.531142] mscc_felix 0000:00:00.5 swp1: configuring for phy/sgmii link mode
[    7.586585] mscc_felix 0000:00:00.5 swp2: configuring for inband/1000base-x link mode
[    7.663844] mscc_felix 0000:00:00.5 swp2: Link is Up - 1Gbps/Full - flow control rx/tx
[   10.629362] mscc_felix 0000:00:00.5 swp1: Link is Up - 1Gbps/Full - flow control rx/tx
~# dmesg | grep enetc
[    0.788902] pci 0000:00:00.0: enetc_fixup_clear_rss_rfs+0x0/0x5c took 105157 usecs
[    0.896919] pci 0000:00:00.1: enetc_fixup_clear_rss_rfs+0x0/0x5c took 105457 usecs
[    1.004395] pci 0000:00:00.6: enetc_fixup_clear_rss_rfs+0x0/0x5c took 104925 usecs
[    2.885141] fsl_enetc 0000:00:00.2: Adding to iommu group 1
[    2.891055] fsl_enetc_mdio 0000:00:00.3: Adding to iommu group 2
[    3.004108] fsl_enetc_mdio 0000:00:00.3: enabling device (0400 -&amp;gt; 0402)
[    3.014087] fsl_enetc_ptp 0000:00:00.4: Adding to iommu group 3
[    3.020113] fsl_enetc_ptp 0000:00:00.4: enabling device (0404 -&amp;gt; 0406)
[    3.544114] fsl_enetc 0000:00:00.2: enabling device (0400 -&amp;gt; 0402)
[    4.037412] fsl_enetc 0000:00:00.2 eth0: entered promiscuous mode
[    7.215724] fsl_enetc 0000:00:00.2 eno2: renamed from eth0
[    7.427418] fsl_enetc 0000:00:00.2 eno2: configuring for fixed/internal link mode
[    7.442037] fsl_enetc 0000:00:00.2 eno2: Link is Up - 1Gbps/Full - flow control rx/tx&lt;/LI-CODE&gt;&lt;LI-CODE lang="javascript"&gt;~# ethtool swp1
Settings for swp1:
        Supported ports: [ TP    MII ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Supported pause frame use: Symmetric Receive-only
        Supports auto-negotiation: Yes
        Supported FEC modes: Not reported
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Advertised pause frame use: Symmetric Receive-only
        Advertised auto-negotiation: Yes
        Advertised FEC modes: Not reported
        Link partner advertised link modes:  10baseT/Half 10baseT/Full
                                             100baseT/Half 100baseT/Full
                                             1000baseT/Full
        Link partner advertised pause frame use: Symmetric Receive-only
        Link partner advertised auto-negotiation: Yes
        Link partner advertised FEC modes: Not reported
        Speed: 1000Mb/s
        Duplex: Full
        Auto-negotiation: on
        master-slave cfg: preferred slave
        master-slave status: slave
        Port: Twisted Pair
        PHYAD: 1
        Transceiver: external
        MDI-X: Unknown
        Supports Wake-on: d
        Wake-on: d
        Link detected: yes&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem that I’m facing is that I’m not able to ping (send/receive data) using the interface swp1 (RJ45).&lt;/P&gt;&lt;P&gt;We tried to remove the &lt;SPAN&gt;flow control rx/tx&lt;/SPAN&gt; using the ethtool using the following command before assigning an ip address to the interface and I was able to ping :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;~# ethtool -A swp1 autoneg off rx off tx off
~# [ 128.775236] mscc_felix 0000:00:00.5 swp1: Link is Down
[ 131.557587] mscc_felix 0000:00:00.5 swp1: Link is Up - 1Gbps/Full - flow control off ping 192.168.3.222
PING 192.168.3.222 (192.168.3.222): 56 data bytes
64 bytes from 192.168.3.222: seq=0 ttl=128 time=0.861 ms
64 bytes from 192.168.3.222: seq=1 ttl=128 time=0.674 ms&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, I lose the connection (ping) if I remove and replug the cable, if I try to test the interface from ethtool&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;~# ethtool -t swp1
The test result is FAIL
The test extra info:
 1. Carrier                      0
 2. PHY dev is present           0
 3. PHY internal loopback, enab  0
 4. PHY internal loopback, UDP   -110
 5. PHY internal loopback, MTU   -110
 6. PHY internal loopback, TCP   -110
 7. PHY internal loopback, disa  0 &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;This behavior is the same for linux kernel version 5.15 , 6.1.35 and 6.5.7 (we wanted to make sure that it was not a driver issue that is fixed in a newer version)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 10:19:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/network-interface-not-working-properly-in-ls1028a-with-specific/m-p/1741228#M13491</guid>
      <dc:creator>Hamza</dc:creator>
      <dc:date>2023-10-17T10:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: network interface not working properly in ls1028a with specific serdes configuration</title>
      <link>https://community.nxp.com/t5/Layerscape/network-interface-not-working-properly-in-ls1028a-with-specific/m-p/1744772#M13523</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;" This behavior is the same for linux kernel version 5.15 , 6.1.35 and 6.5.7 (we wanted to make sure that it was not a driver issue that is fixed in a newer version) " - It isn't a driver issue, did you follow the steps in chapter&amp;nbsp;29.7.1.1 1G SGMII in the ls1028ARM? it looks like an issue related to the Auto-N.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2023 20:56:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/network-interface-not-working-properly-in-ls1028a-with-specific/m-p/1744772#M13523</guid>
      <dc:creator>Oswalag</dc:creator>
      <dc:date>2023-10-23T20:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: network interface not working properly in ls1028a with specific serdes configuration</title>
      <link>https://community.nxp.com/t5/Layerscape/network-interface-not-working-properly-in-ls1028a-with-specific/m-p/1757720#M13656</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/199933"&gt;@Oswalag&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I confirm that this is issue is related to auto negotiation in fact, the uboot driver is setting up everything correctly but the problem starts when booting to kernel.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;affected registers
29.6.9.2 SGMII Control (SGMII_CR)
29.6.9.18 SGMII IF Mode (SGMII_IF_MODE)&lt;/LI-CODE&gt;&lt;P&gt;before enabling the network interface both registers&amp;nbsp;values are the same as the uboot initialization.&lt;/P&gt;&lt;P&gt;After enabling the network interface both registers values changes and the interface became unusable.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; ip link set dev &amp;lt;interface&amp;gt; up
or 
 ip link set dev &amp;lt;interface&amp;gt; down&lt;/LI-CODE&gt;&lt;P&gt;when we restart the service systemd-networkd we lost the connection with the interface.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;systemclt restart systemd-networkd&lt;/LI-CODE&gt;&lt;P&gt;to restore the interface we need to launch these commands which basically reinitialize the values into the registers as described in (&lt;SPAN&gt;29.7.1.1 1G SGMII)&lt;/SPAN&gt;.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;devmem2 0x1f8148034 w 0x34
devmem2 0x1f8148038 w 0x3
devmem2 0x1f8148034 w 0x20
devmem2 0x1f8148038 w 0x1200&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have any idea what is the reason behind this behavior ? if so, I would appreciate it if you can share some the solution to solve it.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 15:14:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/network-interface-not-working-properly-in-ls1028a-with-specific/m-p/1757720#M13656</guid>
      <dc:creator>Hamza</dc:creator>
      <dc:date>2023-11-15T15:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: network interface not working properly in ls1028a with specific serdes configuration</title>
      <link>https://community.nxp.com/t5/Layerscape/network-interface-not-working-properly-in-ls1028a-with-specific/m-p/1759199#M13671</link>
      <description>&lt;P&gt;Please check the configuration of the registers,&lt;/P&gt;
&lt;P style="font-weight: 400;"&gt;&lt;SPAN&gt;This initialization says that there are 2 processes A and B. A is auto-negation process itself as discovering counterparts capabilities and B process as serdes PCS configuration for SGMII in accordance to the result of A process.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-weight: 400;"&gt;&lt;SPAN&gt;So when USE_SGMII_AN=0 &amp;nbsp;the PCS operation should be programmed with the register bit SGMII_SPEED and SGMII_DUPLEX. When set to 1, the PCS operation is automatically programmed with the Partner abilities advertised during Auto-Negotiation.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2023 19:17:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/network-interface-not-working-properly-in-ls1028a-with-specific/m-p/1759199#M13671</guid>
      <dc:creator>Oswalag</dc:creator>
      <dc:date>2023-11-17T19:17:15Z</dc:date>
    </item>
  </channel>
</rss>

