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.

TDA4VM-Q1: serdes0/4 configured as SGMII interface in linux native driver mode

Part Number: TDA4VM-Q1

Tool/software:

Hi, ti exports

we are configured serdes0/4 as SGMII interface, and use cpsw9g in linux native driver mode, the Connection diagram as follows.

I modified DTS and RGMII4 is working now, but SGMII doesn't seem to be working,I have read many ticks on ti e2e,but still don't know how to solve the problem.

sdk version: ti-processor-sdk-linux-j7-evm-08_06_01_02

questions:

1、how to configuration SGMII in dts?

2、i saw some ticks mentioned that serdes0 is 2-Lane does not support single sgmii mode,so does we have a patch on sdk 8.6 about it(modify phy-cadence-sierra.c ?),and serdes4 also need to be modify?

3、we are used internal clock for serdes 0/4, does the clock configuration correct?

        Can you help me check the DTS content,and tell me what modifications should be do can make SGMII1/2/8 work, thanks.

some content in k3-j721e-main.dtsi

cpsw0: ethernet@c000000 {
		compatible = "ti,j721e-cpswxg-nuss";
		#address-cells = <2>;
		#size-cells = <2>;
		reg = <0x00 0xc000000 0x00 0x200000>;
		reg-names = "cpsw_nuss";
		ranges = <0x00 0x00 0x00 0xc000000 0x00 0x200000>;
		clocks = <&k3_clks 19 89>;
		clock-names = "fck";
		power-domains = <&k3_pds 19 TI_SCI_PD_EXCLUSIVE>;

		dmas = <&main_udmap 0xca00>,
		       <&main_udmap 0xca01>,
		       <&main_udmap 0xca02>,
		       <&main_udmap 0xca03>,
		       <&main_udmap 0xca04>,
		       <&main_udmap 0xca05>,
		       <&main_udmap 0xca06>,
		       <&main_udmap 0xca07>,
		       <&main_udmap 0x4a00>;
		dma-names = "tx0", "tx1", "tx2", "tx3",
			    "tx4", "tx5", "tx6", "tx7",
			    "rx";

		ethernet-ports {
			#address-cells = <1>;
			#size-cells = <0>;
			cpsw0_port1: port@1 {
				reg = <1>;
				ti,mac-only;
				label = "port1";
				// status = "disabled";
			};

			cpsw0_port2: port@2 {
				reg = <2>;
				ti,mac-only;
				label = "port2";
				// status = "disabled";
			};

			cpsw0_port3: port@3 {
				reg = <3>;
				ti,mac-only;
				label = "port3";
				status = "disabled";
			};

			cpsw0_port4: port@4 {
				reg = <4>;
				ti,mac-only;
				label = "port4";
				status = "disabled";
			};

			cpsw0_port5: port@5 {
				reg = <5>;
				ti,mac-only;
				label = "port5";
				status = "disabled";
			};

			cpsw0_port6: port@6 {
				reg = <6>;
				ti,mac-only;
				label = "port6";
				status = "disabled";
			};

			cpsw0_port7: port@7 {
				reg = <7>;
				ti,mac-only;
				label = "port7";
				status = "disabled";
			};

			cpsw0_port8: port@8 {
				reg = <8>;
				ti,mac-only;
				label = "port8";
				status = "disabled";
			};
		};

		cpsw9g_mdio: mdio@f00 {
			compatible = "ti,cpsw-mdio","ti,davinci_mdio";
			reg = <0x00 0xf00 0x00 0x100>;
			#address-cells = <1>;
			#size-cells = <0>;
			clocks = <&k3_clks 19 89>;
			clock-names = "fck";
			bus_freq = <1000000>;
		};

		cpts@3d000 {
			compatible = "ti,j721e-cpts";
			reg = <0x00 0x3d000 0x00 0x400>;
			clocks = <&k3_clks 19 16>;
			clock-names = "cpts";
			interrupts-extended = <&gic500 GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
			interrupt-names = "cpts";
			ti,cpts-ext-ts-inputs = <4>;
			ti,cpts-periodic-outputs = <2>;
		};
	};

serdes_wiz0: wiz@5000000 {
		compatible = "ti,j721e-wiz-16g";
		#address-cells = <1>;
		#size-cells = <1>;
		power-domains = <&k3_pds 292 TI_SCI_PD_EXCLUSIVE>;
		clocks = <&k3_clks 292 5>, <&k3_clks 292 11>, <&cmn_refclk>;
		clock-names = "fck", "core_ref_clk", "ext_ref_clk";
		assigned-clocks = <&k3_clks 292 11>, <&k3_clks 292 0>;
		assigned-clock-parents = <&k3_clks 292 15>, <&k3_clks 292 4>;
		num-lanes = <2>;
		#reset-cells = <1>;
		ranges = <0x5000000 0x0 0x5000000 0x10000>;

		wiz0_pll0_refclk: pll0-refclk {
			clocks = <&k3_clks 292 11>, <&cmn_refclk>;
			#clock-cells = <0>;
			assigned-clocks = <&wiz0_pll0_refclk>;
			assigned-clock-parents = <&k3_clks 292 11>;
		};

		wiz0_pll1_refclk: pll1-refclk {
			clocks = <&k3_clks 292 0>, <&cmn_refclk1>;
			#clock-cells = <0>;
			assigned-clocks = <&wiz0_pll1_refclk>;
			assigned-clock-parents = <&k3_clks 292 0>;
		};

		wiz0_refclk_dig: refclk-dig {
			clocks = <&k3_clks 292 11>, <&k3_clks 292 0>, <&cmn_refclk>, <&cmn_refclk1>;
			#clock-cells = <0>;
			assigned-clocks = <&wiz0_refclk_dig>;
			assigned-clock-parents = <&k3_clks 292 11>;
		};

		wiz0_cmn_refclk_dig_div: cmn-refclk-dig-div {
			clocks = <&wiz0_refclk_dig>;
			#clock-cells = <0>;
		};

		wiz0_cmn_refclk1_dig_div: cmn-refclk1-dig-div {
			clocks = <&wiz0_pll1_refclk>;
			#clock-cells = <0>;
		};

		serdes0: serdes@5000000 {
			compatible = "ti,sierra-phy-t0";
			reg-names = "serdes";
			reg = <0x5000000 0x10000>;
			#address-cells = <1>;
			#size-cells = <0>;
			#clock-cells = <1>;
			resets = <&serdes_wiz0 0>;
			reset-names = "sierra_reset";
			clocks = <&wiz0_cmn_refclk_dig_div>, <&wiz0_cmn_refclk1_dig_div>, <&wiz0_pll0_refclk>, <&wiz0_pll1_refclk>;
			clock-names = "cmn_refclk_dig_div", "cmn_refclk1_dig_div", "pll0_refclk", "pll1_refclk";
		};
	};
	
	serdes_wiz4: wiz@5050000 {
		compatible = "ti,j721e-wiz-10g";
		#address-cells = <1>;
		#size-cells = <1>;
		power-domains = <&k3_pds 297 TI_SCI_PD_EXCLUSIVE>;
		clocks = <&k3_clks 297 1>, <&k3_clks 297 9>, <&cmn_refclk>;
		clock-names = "fck", "core_ref_clk", "ext_ref_clk";
		assigned-clocks = <&k3_clks 297 9>;
		assigned-clock-parents = <&k3_clks 297 10>;
		assigned-clock-rates = <19200000>;
		num-lanes = <4>;
		#reset-cells = <1>;
		ranges = <0x5050000 0x0 0x5050000 0x10000>,
			<0xa030a00 0x0 0xa030a00 0x40>;

		wiz4_pll0_refclk: pll0-refclk {
			clocks = <&k3_clks 297 9>, <&cmn_refclk>;
			clock-output-names = "wiz4_pll0_refclk";
			#clock-cells = <0>;
			assigned-clocks = <&wiz4_pll0_refclk>;
			assigned-clock-parents = <&k3_clks 297 9>;
		};

		wiz4_pll1_refclk: pll1-refclk {
			clocks = <&k3_clks 297 9>, <&cmn_refclk>;
			clock-output-names = "wiz4_pll1_refclk";
			#clock-cells = <0>;
			assigned-clocks = <&wiz4_pll1_refclk>;
			assigned-clock-parents = <&k3_clks 297 9>;
		};

		wiz4_refclk_dig: refclk-dig {
			clocks = <&k3_clks 297 9>, <&cmn_refclk>;
			clock-output-names = "wiz4_refclk_dig";
			#clock-cells = <0>;
			assigned-clocks = <&wiz4_refclk_dig>;
			assigned-clock-parents = <&k3_clks 297 9>;
		};

		wiz4_cmn_refclk_dig_div: cmn-refclk-dig-div {
			clocks = <&wiz4_refclk_dig>;
			#clock-cells = <0>;
		};

		wiz4_cmn_refclk1_dig_div: cmn-refclk1-dig-div {
			clocks = <&wiz4_pll1_refclk>;
			#clock-cells = <0>;
		};

		serdes4: serdes@5050000 {
			/*
			 * Note: we also map DPTX PHY registers as the Torrent
			 * needs to manage those.
			 */
			compatible = "ti,j721e-serdes-10g";
			reg = <0x5050000 0x10000>,
			      <0xa030a00 0x40>; /* DPTX PHY */
			reg-names = "torrent_phy", "dptx_phy";

			resets = <&serdes_wiz4 0>;
			reset-names = "torrent_reset";
			clocks = <&wiz4_pll0_refclk>;
			clock-names = "refclk";
			#address-cells = <1>;
			#size-cells = <0>;
			// torrent_phy_dp: phy@0 {
			// 	reg = <0>;
			// 	resets = <&serdes_wiz4 1>;
			// 	cdns,phy-type = <PHY_TYPE_DP>;
			// 	cdns,num-lanes = <4>;
			// 	cdns,max-bit-rate = <5400>;
			// 	#phy-cells = <0>;
			// };
		};
	};

some content in k3-j721e-common-proc-board.dts

&serdes_ln_ctrl {
	idle-states = <J721E_SERDES0_LANE0_QSGMII_LANE1>, <J721E_SERDES0_LANE1_QSGMII_LANE2>,	/* port1, port2 */
		      <J721E_SERDES1_LANE0_PCIE1_LANE0>, <J721E_SERDES1_LANE1_PCIE1_LANE1>,
		      <J721E_SERDES2_LANE0_IP1_UNUSED>, <J721E_SERDES2_LANE1_USB3_1>,
		      <J721E_SERDES3_LANE0_IP1_UNUSED>, <J721E_SERDES3_LANE1_IP1_UNUSED>,
		      <J721E_SERDES4_LANE0_QSGMII_LANE5>, <J721E_SERDES4_LANE1_QSGMII_LANE6>,
		      <J721E_SERDES4_LANE2_QSGMII_LANE7>, <J721E_SERDES4_LANE3_QSGMII_LANE8>;	/* port 8 */
};

&cpsw0 {
	status = "okay";
	pinctrl-names = "default";
	pinctrl-0 = <&cpsw0_mdio_pins_default &cpsw0_rgmii_pins_default &cpsw0_phy_reset_pins_default>;
};

&cpsw9g_mdio {
	cpsw9g_phy1: ethernet-phy@1 {
		compatible = "ethernet-phy-id002b.0980", "ethernet-phy-ieee802.3-c45";
		reg = <0x1>;
		reset-gpios = <&main_gpio0 96 GPIO_ACTIVE_LOW>;
		reset-assert-us = <5000>;
    };
	cpsw9g_phy5: ethernet-phy@5 {
		compatible = "ethernet-phy-id002b.0980", "ethernet-phy-ieee802.3-c45";
		reg = <0x5>;
		reset-gpios = <&main_gpio0 94 GPIO_ACTIVE_LOW>;
		reset-assert-us = <5000>;
    };
	cpsw9g_phy6: ethernet-phy@6 {
		compatible = "ethernet-phy-id002b.0980", "ethernet-phy-ieee802.3-c45";
		reg = <0x6>;
		reset-gpios = <&main_gpio0 55 GPIO_ACTIVE_LOW>;
		reset-assert-us = <5000>;
    };
	cpsw9g_phy7: ethernet-phy@7 {
		compatible = "ethernet-phy-id002b.0980", "ethernet-phy-ieee802.3-c45";
		reg = <0x7>;
		reset-gpios = <&main_gpio0 56 GPIO_ACTIVE_LOW>;
		reset-assert-us = <5000>;
    };
};

&cpsw0_port1 {
	phy-handle = <&cpsw9g_phy1>;
    phy-mode = "sgmii";
	mac-address = [00 00 00 00 00 00];
	// phys = <&cpsw0_phy_gmii_sel 1>;
    phys = <&cpsw0_phy_gmii_sel 1>, <&serdes0_sgmii_link>;
	phy-names = "portmode";
	// phy-names = "portmode", "serdes-phy";
	// phy-names = "mac", "serdes";
};

&cpsw0_port2 {
	phy-handle = <&cpsw9g_phy5>;
    phy-mode = "sgmii";
	mac-address = [00 00 00 00 00 00];
	// phys = <&cpsw0_phy_gmii_sel 2>;
    phys = <&cpsw0_phy_gmii_sel 2>, <&serdes0_sgmii_link>;
	phy-names = "portmode";
	// phy-names = "portmode", "serdes-phy";
	// phy-names = "mac", "serdes";
};

&cpsw0_port4 {
	phy-handle = <&cpsw9g_phy7>;
    phy-mode = "rgmii-id";
	mac-address = [00 00 00 00 00 00];
    phys = <&cpsw0_phy_gmii_sel 4>;
	// phy-names = "portmode";
	// phy-names = "mac";
};

&cpsw0_port8 {
	phy-handle = <&cpsw9g_phy6>;
    phy-mode = "sgmii";
	mac-address = [00 00 00 00 00 00];
	phys = <&cpsw0_phy_gmii_sel 8>, <&serdes4_sgmii_link>;
	// phy-names = "portmode", "serdes-phy";
	// phy-names = "mac", "serdes";
};


&serdes0 {
	status = "okay";
	assigned-clocks = <&serdes0 CDNS_SIERRA_PLL_CMNLC>, <&serdes0 CDNS_SIERRA_PLL_CMNLC1>;
	assigned-clock-parents = <&wiz0_pll1_refclk>, <&wiz0_pll1_refclk>;
	
	serdes0_sgmii_link: phy@0 {
		reg = <0>;
		cdns,num-lanes = <2>;
		#phy-cells = <0>;
		cdns,phy-type = <PHY_TYPE_SGMII>;
		resets = <&serdes_wiz0 1>, <&serdes_wiz0 2>;
	};
};

&serdes4 {
	status = "okay";
	assigned-clocks = <&serdes4 CDNS_SIERRA_PLL_CMNLC>;
	assigned-clock-parents = <&wiz4_pll0_refclk>;
	
	serdes4_sgmii_link: phy@3 {
		reg = <3>;
		cdns,num-lanes = <1>;
		#phy-cells = <0>;
		cdns,phy-type = <PHY_TYPE_SGMII>;
		resets = <&serdes_wiz4 4>;
	};
};

ifconfig content:

root@j7-evm:~# ifconfig
docker0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500  metric 1
        inet 172.17.0.1  netmask 255.255.0.0  broadcast 172.17.255.255
        ether 02:42:d8:c0:a6:ac  txqueuelen 0  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500  metric 1
        inet6 fe80::3608:e1ff:fe58:fb10  prefixlen 64  scopeid 0x20<link>
        ether 34:08:e1:58:fb:10  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 166  bytes 48364 (47.2 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500  metric 1
        inet 192.168.2.21  netmask 255.255.255.0  broadcast 192.168.2.255
        inet6 fe80::3068:69ff:feff:93f4  prefixlen 64  scopeid 0x20<link>
        ether 32:68:69:ff:93:f4  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 2964  bytes 167688 (163.7 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eth2: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500  metric 1
        inet 192.168.2.22  netmask 255.255.255.0  broadcast 192.168.2.255
        ether fe:bb:cd:89:e5:54  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536  metric 1
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 5652  bytes 507520 (495.6 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 5652  bytes 507520 (495.6 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

ethtool eth1

root@j7-evm:~# ethtool eth1
Settings for eth1:
        Supported ports: [  ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
                                1000baseKX/Full
        Supported pause frame use: Symmetric
        Supports auto-negotiation: No
        Supported FEC modes: Not reported
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
                                1000baseKX/Full
        Advertised pause frame use: Symmetric
        Advertised auto-negotiation: No
        Advertised FEC modes: Not reported
        Speed: 1000Mb/s
        Duplex: Full
        Auto-negotiation: off
        Port: Twisted Pair
        PHYAD: 1
        Transceiver: external
        MDI-X: Unknown
        Supports Wake-on: d
        Wake-on: d
        Current message level: 0x000020f7 (8439)
                               drv probe link ifdown ifup rx_err tx_err hw
        Link detected: yes
        SQI: 15/15

  • Hi,
    SDK 8.6 needs changes to SerDes Driver for supporting SGMII along with am65-cpsw-nuss driver, and "phy-gmii-sel.c".

    We have tested SGMII link on Sierra 2L SerDes0.

    Please refer to below info for enabling SGMII on Sierra 2L SerDes.

    1. Update the SGMII support from Sierra SerDes & CPSW Driver and other.

    SGMII-Patches.zip

    2. U-Boot is configuring the SerDes in PCIe + QSGMII configuration.
    Due to this, since the SerDes has already been configured in U-Boot, the Linux SerDes driver will not configure the SerDes for the desired SGMII mode.

    When building U-Boot (u-boot.img), please ensure that the following configs are disabled:

    CONFIG_PHY_CADENCE_SIERRA=n
    CONFIG_PHY_J721E_WIZ=n

    Above is to ensure that U-Boot is not configuring the SerDes.

    3. Additionally, with the SDK, the Sierra driver which configures the SerDes supports "PCIe + SGMII" multilink configuration only. Therefore, with the default SDK, please modify the existing SerDes node to below.

    a) for SGMII + PCIe:

    &serdes0 {
    serdes0_sgmii_link: phy@0 {
    reg = <0>;
    cdns,num-lanes = <1>;
    #phy-cells = <0>;
    cdns,phy-type = <PHY_TYPE_SGMII>;
    resets = <&serdes_wiz0 1>; /* , <&serdes_wiz0 2>; */
    };
    
    serdes0_pcie_link: phy@1 {
    reg = <1>;
    cdns,num-lanes = <1>;
    #phy-cells = <0>;
    cdns,phy-type = <PHY_TYPE_PCIE>;
    resets = <&serdes_wiz0 2>;
    };
    };


    NOTE: While the above device-tree node change requests Serdes to be configured in PCIe + SGMII configuration, it is not necessary to enable the PCIe instance for the SerDes to be configured.

    b) for 2 SGMII Ports:

    The serdes0 device-tree node has to be modified to:

    &serdes0 {
    serdes0_sgmii_link: phy@0 {
    reg = <0>;
    cdns,num-lanes = <2>;
    #phy-cells = <0>;
    cdns,phy-type = <PHY_TYPE_SGMII>;
    resets = <&serdes_wiz0 1>, <&serdes_wiz0 2>;
    };
    };

    Also, the serdes_ln_ctrl device-tree node has to be modified to:

    &serdes_ln_ctrl {
    idle-states = <J721E_SERDES0_LANE0_QSGMII_LANE1>, <J721E_SERDES0_LANE1_QSGMII_LANE2>, /*<J721E_SERDES0_LANE1_QSGMII_LANE2>, */
    <J721E_SERDES1_LANE0_PCIE1_LANE0>, <J721E_SERDES1_LANE1_PCIE1_LANE1>,
    <J721E_SERDES2_LANE0_PCIE2_LANE0>, <J721E_SERDES2_LANE1_PCIE2_LANE1>,
    <MUX_IDLE_AS_IS>, <J721E_SERDES3_LANE1_USB3_0>,
    <J721E_SERDES4_LANE0_EDP_LANE0>, <J721E_SERDES4_LANE1_EDP_LANE1>,
    <J721E_SERDES4_LANE2_EDP_LANE2>, <J721E_SERDES4_LANE3_EDP_LANE3>;
    };

    And finally, the cpsw device-tree nodes have to be modified to:

    &cpsw0_port1 {
    phy-handle = <&debug_phy>;
    phy-mode = "sgmii";
    mac-address = [00 00 00 00 00 00];
    phys = <&cpsw0_phy_gmii_sel 1>, <&serdes0_sgmii_link>;
    phy-names = "portmode", "serdes-phy";
    };
    
    &cpsw0_port2 {
    phy-handle = <&anc_phy>;
    phy-mode = "sgmii";
    mac-address = [00 00 00 00 00 00];
    phys = <&cpsw0_phy_gmii_sel 2>;
    phy-names = "portmode";
    };

    In above only CPSW Port 1's device-tree node points to the SerDes and requests both lanes of the SerDes to be configured in SGMII mode, on behalf of CPSW Port 2 as well.


    For SerDes4, take care of below as well. SerDes4 bu default support SGMII configuration.

    You need to change the compatible name and parent-clock for SerDes4 as below from "k3-j721e-main.dtsi" file.

    1. Make the compatible string forserdes_wiz4 node as : "ti,j721e-wiz-10g"
    2. Make the compatible string for serdes as : "ti,j721e-serdes-10g"
    3. Change assigned clock parent as "assigned-clock-parents = <&k3_clks 297 13>;"
    4. Comment out "assigned-clock-rates = <19200000>;" from "serdes_wiz4" node.

    Please refer to above and update the device tree and Driver files for SGMII enable.

    Best Regards,
    Sudheer

  • Hi,Sudheer

    "3. Additionally, with the SDK, the Sierra driver which configures the SerDes supports "PCIe + SGMII" multilink configuration only."

    what's the meaning, serdes0 cannot configure as "sgmii+sgmii" mode?

    I have modified the drivers according to the patch you gave, use "b) for 2 SGMII Ports:" configuration.

    and there are some different, the tx_good_frames are increated(Before this it was always 0)

    root@j7-evm:~# ethtool -S eth1 | grep good
         p0_rx_good_frames: 348
         p0_tx_good_frames: 0
         rx_good_frames: 0
         tx_good_frames: 296
    root@j7-evm:~# ethtool -S eth1 | grep good
         p0_rx_good_frames: 349
         p0_tx_good_frames: 0
         rx_good_frames: 0
         tx_good_frames: 297
    root@j7-evm:~# ethtool -S eth1 | grep good
         p0_rx_good_frames: 350
         p0_tx_good_frames: 0
         rx_good_frames: 0
         tx_good_frames: 298
    

    some regs values:

     CPSW_SS_STATUS_SGMII_LINK_REG (0x0c000078) = 0x00000000
     CPSW_SGMII_CONTROL_REG_1 (0x0c000110) = 0x00000001
     CPSW_SGMII_STATUS_REG_1 (0x0c000114) = 0x0000003C
    
     SERDES0_CTRL (0x05000404) = 0x00000000
     SERDES0_TOP_CTRL (0x05000408) = 0x9A000000
     SERDES0_RST (0x0500040C) = 0xB1000000
     SERDES0_LANECTL0 (0x05000480) = 0x70800000
     SERDES0_LANEDIV0 (0x05000484) = 0x00010002
     SERDES0_LANEALIGN0 (0x05000488) = 0x00000000
     SERDES0_LANESTS0 (0x0500048C) = 0x00000003
     SERDES0_LANECTL1 (0x050004C0) = 0x70800000
     SERDES0_LANEDIV1 (0x050004C4) = 0x00010002
     SERDES0_LANEALIGN1 (0x050004C8) = 0x00000000
     SERDES0_LANESTS1 (0x050004CC) = 0x00000003
     SERDES0_PHY_PMA_CMN_CTRL (0x0500E000) = 0x00002435

  • Hi,add further progress

    sgmii1/sgmii2 on serdes0 are not available, sgmii8 on serdes4 is ok, it can ping outside, but some packets are lost,the ping information is as follows:

    root@j7-evm:~# ping 192.168.2.80
    PING 192.168.2.80 (192.168.2.80): 56 data bytes
    64 bytes from 192.168.2.80: seq=1 ttl=128 time=0.447 ms
    64 bytes from 192.168.2.80: seq=2 ttl=128 time=0.514 ms
    64 bytes from 192.168.2.80: seq=3 ttl=128 time=0.405 ms
    64 bytes from 192.168.2.80: seq=4 ttl=128 time=0.369 ms
    64 bytes from 192.168.2.80: seq=5 ttl=128 time=0.386 ms
    64 bytes from 192.168.2.80: seq=6 ttl=128 time=0.469 ms
    64 bytes from 192.168.2.80: seq=7 ttl=128 time=0.445 ms
    64 bytes from 192.168.2.80: seq=8 ttl=128 time=0.379 ms
    64 bytes from 192.168.2.80: seq=9 ttl=128 time=0.446 ms
    64 bytes from 192.168.2.80: seq=10 ttl=128 time=0.332 ms
    64 bytes from 192.168.2.80: seq=11 ttl=128 time=0.389 ms
    64 bytes from 192.168.2.80: seq=12 ttl=128 time=0.399 ms
    64 bytes from 192.168.2.80: seq=13 ttl=128 time=0.470 ms
    64 bytes from 192.168.2.80: seq=14 ttl=128 time=0.370 ms
    ^C
    --- 192.168.2.80 ping statistics ---
    15 packets transmitted, 14 packets received, 6% packet loss
    

    ping -n 30 192.168.2.23
    
    正在 Ping 192.168.2.23 具有 32 字节的数据:
    请求超时。
    来自 192.168.2.23 的回复: 字节=32 时间<1ms TTL=64
    来自 192.168.2.23 的回复: 字节=32 时间<1ms TTL=64
    来自 192.168.2.23 的回复: 字节=32 时间<1ms TTL=64
    来自 192.168.2.23 的回复: 字节=32 时间<1ms TTL=64
    来自 192.168.2.23 的回复: 字节=32 时间<1ms TTL=64
    来自 192.168.2.23 的回复: 字节=32 时间<1ms TTL=64
    来自 192.168.2.23 的回复: 字节=32 时间<1ms TTL=64
    来自 192.168.2.23 的回复: 字节=32 时间<1ms TTL=64
    来自 192.168.2.23 的回复: 字节=32 时间<1ms TTL=64
    来自 192.168.2.23 的回复: 字节=32 时间<1ms TTL=64
    来自 192.168.2.23 的回复: 字节=32 时间<1ms TTL=64
    来自 192.168.2.23 的回复: 字节=32 时间<1ms TTL=64
    来自 192.168.2.23 的回复: 字节=32 时间<1ms TTL=64
    来自 192.168.2.23 的回复: 字节=32 时间<1ms TTL=64
    来自 192.168.2.23 的回复: 字节=32 时间<1ms TTL=64
    来自 192.168.2.23 的回复: 字节=32 时间<1ms TTL=64
    来自 192.168.2.23 的回复: 字节=32 时间<1ms TTL=64
    来自 192.168.2.23 的回复: 字节=32 时间<1ms TTL=64
    来自 192.168.2.23 的回复: 字节=32 时间<1ms TTL=64
    来自 192.168.2.23 的回复: 字节=32 时间<1ms TTL=64
    来自 192.168.2.23 的回复: 字节=32 时间<1ms TTL=64
    来自 192.168.2.23 的回复: 字节=32 时间<1ms TTL=64
    来自 192.168.2.23 的回复: 字节=32 时间<1ms TTL=64
    来自 192.168.2.23 的回复: 字节=32 时间<1ms TTL=64
    来自 192.168.2.23 的回复: 字节=32 时间<1ms TTL=64
    来自 192.168.2.23 的回复: 字节=32 时间<1ms TTL=64
    来自 192.168.2.23 的回复: 字节=32 时间<1ms TTL=64
    来自 192.168.2.23 的回复: 字节=32 时间<1ms TTL=64
    来自 192.168.2.23 的回复: 字节=32 时间<1ms TTL=64
    
    192.168.2.23 的 Ping 统计信息:
        数据包: 已发送 = 30,已接收 = 29,丢失 = 1 (3% 丢失),
    往返行程的估计时间(以毫秒为单位):
        最短 = 0ms,最长 = 0ms,平均 = 0ms

    so is there anything else that needs to be modified here?

    for sgmii1/sgmii2 on serdes0, also anything else that needs to be modified?

  • Additionally,when i configured serdes0 as "SGMII + PCIe" mode(sgmii1- s0l0,pcie-s0l1),the sgmii1 working fine.

  • at the same time, sgmii8(serdes4) can not use iperf3 for test,sgmii1(serdes0) can when configured as "SGMII + PCIe" mode.

  • Hi,

    Can you please check is SerDes0 enabled at u-boot in your side, If so Linux will not configure the SerDes.

    Please disable SerDes from u-boot and check once.

    Best Regards,
    Sudheer

  • yes,i have already disable it

  • Hi,

    When you configured both lanes for SGMII, have you observing any error from Linux?

    Also, can you please confirm, changes in below patch are added to phy-cadence-sierra.c file.
    3542.0001-phy-cadence-Sierra-Add-Single-link-SGMII-PHY-configu.patch


    Best Regards,
    Sudheer

  • i don't find any error info. in boot log

    U-Boot SPL 2021.01 (Oct 16 2024 - 17:25:48 +0800)
    Model: Texas Instruments K3 J721E SoC
    SYSFW ABI: 3.1 (firmware rev 0x0008 '8.6.3--v08.06.03 (Chill Capybar')
    Trying to boot from MMC2
    Starting ATF on ARM64 core...
    
    NOTICE:  BL31: v2.8(release):v2.8-226-g2fcd408bb3-dirty
    NOTICE:  BL31: Built : 15:40:55, May  2 2023
    I/TC: 
    I/TC: OP-TEE version: 3.20.0 (gcc version 9.2.1 20191025 (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10))) #1 Tue May  2 15:41:00 U
    TC 2023 aarch64
    I/TC: WARNING: This OP-TEE configuration might be insecure!
    I/TC: WARNING: Please check https://optee.readthedocs.io/en/latest/architecture/porting_guidelines.html
    I/TC: Primary CPU initializing
    I/TC: SYSFW ABI: 3.1 (firmware rev 0x0008 '8.6.3--v08.06.03 (Chill Capybar')
    I/TC: HUK Initialized
    I/TC: Activated SA2UL device
    I/TC: Fixing SA2UL firewall owner for GP device
    I/TC: Enabled firewalls for SA2UL TRNG device
    I/TC: SA2UL TRNG initialized
    I/TC: SA2UL Drivers initialized
    I/TC: Primary CPU switching to normal world boot
    
    U-Boot SPL 2021.01 (Oct 16 2024 - 17:25:45 +0800)
    Model: Texas Instruments K3 J721E SoC
    SYSFW ABI: 3.1 (firmware rev 0x0008 '8.6.3--v08.06.03 (Chill Capybar')
    Trying to boot from MMC2
    
    
    U-Boot 2021.01 (Oct 16 2024 - 17:25:45 +0800)
    
    SoC:   J721E SR1.1 GP
    Model: Texas Instruments K3 J721E SoC
    DRAM:  4 GiB
    Flash: 0 Bytes
    MMC:   sdhci@4f80000: 0, sdhci@4fb0000: 1
    Loading Environment from FAT... *** Warning - bad CRC, using default environment
    
    In:    serial@2800000
    Out:   serial@2800000
    Err:   serial@2800000
    Net:   No ethernet found.
    Hit any key to stop autoboot:  0 
    switch to partitions #0, OK
    mmc1 is current device
    <DIR>       4096 .
    <DIR>       4096 ..
            19345920 Image
               84887 k3-j721e-common-proc-upai-box-SA.dtb
    SD/MMC found on device 1
    Failed to load 'boot.scr'
    638 bytes read in 9 ms (68.4 KiB/s)
    Loaded env from uEnv.txt
    Importing environment from mmc1 ...
    Running uenvcmd ...
    1 bytes read in 12 ms (0 Bytes/s)
    Already setup.
    k3_r5f_rproc r5f@41000000: Core 1 is already in use. No rproc commands work
    k3_r5f_rproc r5f@41400000: Core 2 is already in use. No rproc commands work
    Failed to load '/lib/firmware/j7-main-r5f0_0-fw'
    Failed to load '/lib/firmware/j7-main-r5f0_1-fw'
    Failed to load '/lib/firmware/j7-main-r5f1_0-fw'
    Failed to load '/lib/firmware/j7-main-r5f1_1-fw'
    144652 bytes read in 21 ms (6.6 MiB/s)
    Load Remote Processor 6 with data@addr=0x82000000 144652 bytes: Success!
    144652 bytes read in 21 ms (6.6 MiB/s)
    Load Remote Processor 7 with data@addr=0x82000000 144652 bytes: Success!
    10488888 bytes read in 449 ms (22.3 MiB/s)
    Load Remote Processor 8 with data@addr=0x82000000 10488888 bytes: Success!
    19345920 bytes read in 803 ms (23 MiB/s)
    84887 bytes read in 16 ms (5.1 MiB/s)
    ## Flattened Device Tree blob at 88000000
       Booting using the fdt blob at 0x88000000
       Loading Device Tree to 000000008fee8000, end 000000008fffffff ... OK
    
    Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0000000000 [0x411fd080]
    [    0.000000] Linux version 5.10.162 (xiongwei@xiongwei-PC) (aarch64-none-linux-gnu-gcc (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-
    9.10)) 9.2.1 20191025, GNU ld (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 2.33.1.20191209) #2 SMP PREEMPT Wed Oct 16 18:02:28 
    CST 2024
    [    0.000000] Machine model: Texas Instruments K3 J721E SoC
    [    0.000000] earlycon: ns16550a0 at MMIO32 0x0000000002800000 (options '')
    [    0.000000] printk: bootconsole [ns16550a0] enabled
    [    0.000000] efi: UEFI not found.
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a0000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-dma-memory@a0000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a0100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-memory@a0100000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a1000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-dma-memory@a1000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a1100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-memory@a1100000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a2000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-dma-memory@a2000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a2100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-memory@a2100000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a3000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-dma-memory@a3000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a3100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-memory@a3100000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a4000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-dma-memory@a4000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a4100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-memory@a4100000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a5000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-dma-memory@a5000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a5100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-memory@a5100000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a6000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node c66-dma-memory@a6000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a6100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node c66-memory@a6100000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a7000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node c66-dma-memory@a7000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a7100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node c66-memory@a7100000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a8000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node c71-dma-memory@a8000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a8100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node c71-memory@a8100000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000ac000000, size 2 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-virtual-eth-queues@ac000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000ac200000, size 30 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-virtual-eth-buffers@ac200000, compatible id shared-dma-pool
    [    0.000000] Zone ranges:
    [    0.000000]   DMA      [mem 0x0000000080000000-0x00000000ffffffff]
    [    0.000000]   DMA32    empty
    [    0.000000]   Normal   [mem 0x0000000100000000-0x00000008ffffffff]
    [    0.000000] Movable zone start for each node
    [    0.000000] Early memory node ranges
    [    0.000000]   node   0: [mem 0x0000000080000000-0x000000009e7fffff]
    [    0.000000]   node   0: [mem 0x000000009e800000-0x00000000a8ffffff]
    [    0.000000]   node   0: [mem 0x00000000a9000000-0x00000000a9ffffff]
    [    0.000000]   node   0: [mem 0x00000000aa000000-0x00000000abbfffff]
    [    0.000000]   node   0: [mem 0x00000000abc00000-0x00000000abffffff]
    [    0.000000]   node   0: [mem 0x00000000ac000000-0x00000000adffffff]
    [    0.000000]   node   0: [mem 0x00000000ae000000-0x00000000ffffffff]
    [    0.000000]   node   0: [mem 0x0000000880000000-0x00000008ffffffff]
    [    0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x00000008ffffffff]
    [    0.000000] cma: Reserved 512 MiB at 0x00000000e0000000
    [    0.000000] psci: probing for conduit method from DT.
    [    0.000000] psci: PSCIv1.1 detected in firmware.
    [    0.000000] psci: Using standard PSCI v0.2 function IDs
    [    0.000000] psci: Trusted OS migration not required
    [    0.000000] psci: SMC Calling Convention v1.2
    [    0.000000] percpu: Embedded 22 pages/cpu s50392 r8192 d31528 u90112
    [    0.000000] Detected PIPT I-cache on CPU0
    [    0.000000] CPU features: detected: GIC system register CPU interface
    [    0.000000] CPU features: detected: EL2 vector hardening
    [    0.000000] CPU features: detected: ARM errata 1165522, 1319367, or 1530923
    [    0.000000] CPU features: detected: Spectre-BHB
    [    0.000000] CPU features: detected: ARM erratum 1742098
    [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 1032192
    [    0.000000] Kernel command line: console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 root=PARTUUID=92c7334b-02 rw rootfstype=ext4 rootwait
    [    0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
    [    0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
    [    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
    [    0.000000] software IO TLB: mapped [mem 0x00000000dc000000-0x00000000e0000000] (64MB)
    [    0.000000] Memory: 3271128K/4194304K available (11328K kernel code, 1164K rwdata, 4340K rodata, 1920K init, 433K bss, 398888K reserved, 524288K cma-
    reserved)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
    [    0.000000] rcu: Preemptible hierarchical RCU implementation.
    [    0.000000] rcu:     RCU event tracing is enabled.
    [    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=2.
    [    0.000000]  Trampoline variant of Tasks RCU enabled.
    [    0.000000]  Tracing variant of Tasks RCU enabled.
    [    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
    [    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
    [    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
    [    0.000000] GICv3: GIC: Using split EOI/Deactivate mode
    [    0.000000] GICv3: 960 SPIs implemented
    [    0.000000] GICv3: 0 Extended SPIs implemented
    [    0.000000] GICv3: Distributor has no Range Selector support
    [    0.000000] GICv3: 16 PPIs implemented
    [    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x0000000001900000
    [    0.000000] ITS [mem 0x01820000-0x0182ffff]
    [    0.000000] GIC: enabling workaround for ITS: Socionext Synquacer pre-ITS
    [    0.000000] ITS@0x0000000001820000: Devices Table too large, reduce ids 20->19
    [    0.000000] ITS@0x0000000001820000: allocated 524288 Devices @880800000 (flat, esz 8, psz 64K, shr 0)
    [    0.000000] ITS: using cache flushing for cmd queue
    [    0.000000] GICv3: using LPI property table @0x0000000880030000
    [    0.000000] GIC: using cache flushing for LPI property table
    [    0.000000] GICv3: CPU0: using allocated LPI pending table @0x0000000880040000
    [    0.000000] arch_timer: cp15 timer(s) running at 200.00MHz (phys).
    [    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2e2049d3e8, max_idle_ns: 440795210634 ns
    [    0.000002] sched_clock: 56 bits at 200MHz, resolution 5ns, wraps every 4398046511102ns
    [    0.008381] Console: colour dummy device 80x25
    [    0.012942] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=800000)
    [    0.023613] pid_max: default: 32768 minimum: 301
    [    0.028368] LSM: Security Framework initializing
    [    0.033124] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
    [    0.040700] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
    [    0.049508] rcu: Hierarchical SRCU implementation.
    [    0.054571] Platform MSI: msi-controller@1820000 domain created
    [    0.060794] PCI/MSI: /bus@100000/interrupt-controller@1800000/msi-controller@1820000 domain created
    [    0.070090] EFI services will not be available.
    [    0.074807] smp: Bringing up secondary CPUs ...
    I/TC: Secondary CPU 1 initializing
    I/TC: Secondary CPU 1 switching to normal world boot
    [    0.088041] Detected PIPT I-cache on CPU1
    [    0.088065] GICv3: CPU1: found redistributor 1 region 0:0x0000000001920000
    [    0.088075] GICv3: CPU1: using allocated LPI pending table @0x0000000880050000
    [    0.088110] CPU1: Booted secondary processor 0x0000000001 [0x411fd080]
    [    0.088160] smp: Brought up 1 node, 2 CPUs
    [    0.117506] SMP: Total of 2 processors activated.
    [    0.122310] CPU features: detected: 32-bit EL0 Support
    [    0.127566] CPU features: detected: CRC32 instructions
    [    0.141641] CPU: All CPU(s) started at EL2
    [    0.145836] alternatives: patching kernel code
    [    0.150861] devtmpfs: initialized
    [    0.159229] KASLR disabled due to lack of seed
    [    0.163872] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
    [    0.173837] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
    [    0.186827] pinctrl core: initialized pinctrl subsystem
    [    0.192484] DMI not present or invalid.
    [    0.196726] NET: Registered protocol family 16
    [    0.201934] DMA: preallocated 512 KiB GFP_KERNEL pool for atomic allocations
    [    0.209240] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
    [    0.217285] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
    [    0.225591] thermal_sys: Registered thermal governor 'step_wise'
    [    0.225594] thermal_sys: Registered thermal governor 'power_allocator'
    [    0.232180] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
    [    0.245816] ASID allocator initialised with 65536 entries
    [    0.268219] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
    [    0.275075] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
    [    0.281926] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
    [    0.288773] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
    [    0.296249] cryptd: max_cpu_qlen set to 1000
    [    0.302308] k3-chipinfo 43000014.chipid: Family:J721E rev:SR2.0 JTAGID[0x1bb6402f] Detected
    [    0.311131] vsys_3v3: supplied by evm_12v0
    [    0.315528] vsys_5v0: supplied by evm_12v0
    [    0.319855] vdd_mmc1: supplied by vsys_3v3
    [    0.324478] iommu: Default domain type: Translated 
    [    0.329605] SCSI subsystem initialized
    [    0.333723] mc: Linux media interface: v0.10
    [    0.338097] videodev: Linux video capture interface: v2.00
    [    0.343728] pps_core: LinuxPPS API ver. 1 registered
    [    0.348797] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.358134] PTP clock support registered
    [    0.362153] EDAC MC: Ver: 3.0.0
    [    0.365933] FPGA manager framework
    [    0.369458] Advanced Linux Sound Architecture Driver Initialized.
    [    0.376064] clocksource: Switched to clocksource arch_sys_counter
    [    0.382387] VFS: Disk quotas dquot_6.6.0
    [    0.386419] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
    [    0.396115] NET: Registered protocol family 2
    [    0.400855] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
    [    0.409432] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear)
    [    0.418190] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
    [    0.426391] TCP bind hash table entries: 32768 (order: 7, 524288 bytes, linear)
    [    0.434193] TCP: Hash tables configured (established 32768 bind 32768)
    [    0.440989] UDP hash table entries: 2048 (order: 4, 65536 bytes, linear)
    [    0.447881] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes, linear)
    [    0.455287] NET: Registered protocol family 1
    [    0.460014] RPC: Registered named UNIX socket transport module.
    [    0.466068] RPC: Registered udp transport module.
    [    0.470873] RPC: Registered tcp transport module.
    [    0.475676] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.482259] NET: Registered protocol family 44
    [    0.486805] PCI: CLS 0 bytes, default 64
    [    0.491195] hw perfevents: enabled with armv8_cortex_a72 PMU driver, 7 counters available
    [    0.501570] Initialise system trusted keyrings
    [    0.506193] workingset: timestamp_bits=46 max_order=20 bucket_order=0
    [    0.514386] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.520613] NFS: Registering the id_resolver key type
    [    0.525793] Key type id_resolver registered
    [    0.530068] Key type id_legacy registered
    [    0.534191] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
    [    0.541041] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
    [    0.548681] 9p: Installing v9fs 9p2000 file system support
    [    0.573668] Key type asymmetric registered
    [    0.577854] Asymmetric key parser 'x509' registered
    [    0.582853] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 243)
    [    0.590412] io scheduler mq-deadline registered
    [    0.595038] io scheduler kyber registered
    [    0.600805] pinctrl-single 4301c000.pinctrl: 94 pins, size 376
    [    0.606987] pinctrl-single 11c000.pinctrl: 173 pins, size 692
    [    0.615710] ti-pat 31010000.pat: Found PAT Rev 1.0 with 16384 pages
    [    0.622150] debugfs: Directory '31010000.pat' with parent 'regmap' already present!
    [    0.630147] ti-pat 31011000.pat: Found PAT Rev 1.0 with 16384 pages
    [    0.636565] debugfs: Directory '31011000.pat' with parent 'regmap' already present!
    [    0.644503] ti-pat 31012000.pat: Found PAT Rev 1.0 with 16384 pages
    [    0.650921] debugfs: Directory '31012000.pat' with parent 'regmap' already present!
    [    0.658854] ti-pat 31013000.pat: Found PAT Rev 1.0 with 2048 pages
    [    0.665180] debugfs: Directory '31013000.pat' with parent 'regmap' already present!
    [    0.673127] ti-pat 31014000.pat: Found PAT Rev 1.0 with 2048 pages
    [    0.679454] debugfs: Directory '31014000.pat' with parent 'regmap' already present!
    [    0.689166] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled
    [    0.697352] arm-smmu-v3 36600000.iommu: ias 48-bit, oas 48-bit (features 0x00001faf)
    [    0.705570] arm-smmu-v3 36600000.iommu: allocated 65536 entries for cmdq
    [    0.712609] arm-smmu-v3 36600000.iommu: allocated 32768 entries for evtq
    [    0.721119] arm-smmu-v3 36600000.iommu: msi_domain absent - falling back to wired irqs
    [    0.734078] brd: module loaded
    [    0.740563] loop: module loaded
    [    0.744265] megasas: 07.714.04.00-rc1
    [    0.750004] tun: Universal TUN/TAP device driver, 1.6
    [    0.755460] igbvf: Intel(R) Gigabit Virtual Function Network Driver
    [    0.761868] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
    [    0.767955] sky2: driver version 1.30
    [    0.772448] VFIO - User Level meta-driver version: 0.3
    [    0.778212] i2c /dev entries driver
    [    0.782641] sdhci: Secure Digital Host Controller Interface driver
    [    0.788963] sdhci: Copyright(c) Pierre Ossman
    [    0.793608] sdhci-pltfm: SDHCI platform and OF driver helper
    [    0.793647] pinctrl-single 11c000.pinctrl: Invalid number of rows: -2
    [    0.805996] pinctrl-single 11c000.pinctrl: no pins entries for main-mmc2-pins-default
    [    0.805997] ledtrig-cpu: registered to indicate activity on CPUs
    [    0.806205] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
    [    0.814006] sdhci-am654: probe of 4f98000.mmc failed with error -22
    [    0.833879] optee: probing for conduit method.
    I/TC: Reserved shared memory is enabled
    I/TC: Dynamic shared memory is enabled
    I/TC: Normal World virtualization support is disabled
    I/TC: Asynchronous notifications are disabled
    [    0.838442] optee: revision 3.20 (8e74d476)
    [    0.854842] optee: dynamic shared memory is enabled
    [    0.864302] optee: initialized driver
    [    0.869339] NET: Registered protocol family 17
    [    0.873917] lib80211: common routines for IEEE802.11 drivers
    [    0.879754] 9pnet: Installing 9P2000 support
    [    0.884147] Key type dns_resolver registered
    [    0.888595] Loading compiled-in X.509 certificates
    [    0.901950] ti-sci 44083000.dmsc: ABI: 3.1 (firmware rev 0x0008 '8.6.3--v08.06.03 (Chill Capybar')
    [    0.958997] davinci-mcasp 2ba0000.mcasp: invalid tdm slots: 0
    [    0.964899] davinci-mcasp 2ba0000.mcasp: IRQ common not found
    [    0.972492] omap_i2c 40b00000.i2c: bus 0 rev0.12 at 100 kHz
    [    0.978602] omap_i2c 40b10000.i2c: bus 1 rev0.12 at 100 kHz
    [    0.984943] omap_i2c 42120000.i2c: bus 2 rev0.12 at 100 kHz
    [    0.991303] pca953x 3-0020: supply vcc not found, using dummy regulator
    [    0.998129] pca953x 3-0020: using no AI
    [    1.024109] pca953x 3-0020: failed writing register
    [    1.029145] pca953x: probe of 3-0020 failed with error -121
    [    1.034886] omap_i2c 2000000.i2c: bus 3 rev0.12 at 400 kHz
    [    1.041283] omap_i2c 2010000.i2c: bus 4 rev0.12 at 400 kHz
    [    1.050875] omap_i2c 2020000.i2c: bus 5 rev0.12 at 400 kHz
    [    1.057180] pca953x 6-0020: supply vcc not found, using dummy regulator
    [    1.063998] pca953x 6-0020: using no AI
    [    1.088722] omap_i2c 2030000.i2c: bus 6 rev0.12 at 400 kHz
    [    1.094803] omap_i2c 2040000.i2c: bus 7 rev0.12 at 100 kHz
    [    1.100768] omap_i2c 2050000.i2c: bus 8 rev0.12 at 100 kHz
    [    1.106979] pca953x 9-0020: supply vcc not found, using dummy regulator
    [    1.113794] pca953x 9-0020: using no AI
    [    1.140109] pca953x 9-0020: failed writing register
    [    1.145142] pca953x: probe of 9-0020 failed with error -121
    [    1.150889] omap_i2c 2060000.i2c: bus 9 rev0.12 at 400 kHz
    [    1.157355] ti-sci-intr bus@100000:bus@28380000:interrupt-controller2: Interrupt Router 137 domain created
    [    1.167332] ti-sci-intr bus@100000:interrupt-controller0: Interrupt Router 131 domain created
    [    1.176153] ti-sci-intr bus@100000:main-navss:interrupt-controller1: Interrupt Router 213 domain created
    [    1.186030] ti-sci-inta 33d00000.interrupt-controller: Interrupt Aggregator domain 209 created
    [    1.210707] k3-ringacc 2b800000.ringacc: Ring Accelerator probed rings:286, gp-rings[96,20] sci-dev-id:235
    [    1.220591] k3-ringacc 2b800000.ringacc: dma-ring-reset-quirk: disabled
    [    1.227351] k3-ringacc 2b800000.ringacc: RA Proxy rev. 66346100, num_proxies:64
    [    1.236428] k3-ringacc 3c000000.ringacc: Ring Accelerator probed rings:1024, gp-rings[440,150] sci-dev-id:211
    [    1.246583] k3-ringacc 3c000000.ringacc: dma-ring-reset-quirk: disabled
    [    1.253346] k3-ringacc 3c000000.ringacc: RA Proxy rev. 66346100, num_proxies:64
    [    1.261332] 40a00000.serial: ttyS1 at MMIO 0x40a00000 (irq = 15, base_baud = 6000000) is a 8250
    [    1.270715] 2800000.serial: ttyS2 at MMIO 0x2800000 (irq = 25, base_baud = 3000000) is a 8250
    [    1.279461] printk: console [ttyS2] enabled
    [    1.279461] printk: console [ttyS2] enabled
    [    1.287899] printk: bootconsole [ns16550a0] disabled
    [    1.287899] printk: bootconsole [ns16550a0] disabled
    [    1.298365] 2810000.serial: ttyS3 at MMIO 0x2810000 (irq = 26, base_baud = 3000000) is a 8250
    [    1.307305] 2840000.serial: ttyS6 at MMIO 0x2840000 (irq = 27, base_baud = 3000000) is a 8250
    [    1.317762] [drm] Initialized tidss 1.0.0 20180215 for 4a00000.dss on minor 0
    [    1.325661] cdns-ufshcd 4e84000.ufs: ufshcd_populate_vreg: Unable to find vdd-hba-supply regulator, assuming enabled
    [    1.336171] cdns-ufshcd 4e84000.ufs: ufshcd_populate_vreg: Unable to find vcc-supply regulator, assuming enabled
    [    1.346323] cdns-ufshcd 4e84000.ufs: ufshcd_populate_vreg: Unable to find vccq-supply regulator, assuming enabled
    [    1.356564] cdns-ufshcd 4e84000.ufs: ufshcd_populate_vreg: Unable to find vccq2-supply regulator, assuming enabled
    [    1.367724] scsi host0: ufshcd
    [    1.760082] davinci_mdio 46000f00.mdio: Configuring MDIO in manual mode
    [    1.778733] cdns-ufshcd 4e84000.ufs: link startup failed 1
    [    1.784210] cdns-ufshcd 4e84000.ufs: UFS Host state=0
    [    1.789249] cdns-ufshcd 4e84000.ufs: outstanding reqs=0x0 tasks=0x0
    [    1.795501] cdns-ufshcd 4e84000.ufs: saved_err=0x0, saved_uic_err=0x0
    [    1.801926] cdns-ufshcd 4e84000.ufs: Device power mode=1, UIC link state=0
    [    1.804069] davinci_mdio 46000f00.mdio: davinci mdio revision 9.7, bus freq 1000000
    [    1.808785] cdns-ufshcd 4e84000.ufs: PM in progress=0, sys. suspended=0
    [    1.808788] cdns-ufshcd 4e84000.ufs: Auto BKOPS=0, Host self-block=0
    [    1.816870] am65-cpsw-nuss 46000000.ethernet: initializing am65 cpsw nuss version 0x6BA00101, cpsw version 0x6BA80100 Ports: 2 quirks:00000000
    [    1.823037] cdns-ufshcd 4e84000.ufs: Clk gate=1
    [    1.829484] am65-cpsw-nuss 46000000.ethernet: initialized cpsw ale version 1.4
    [    1.842124] cdns-ufshcd 4e84000.ufs: last_hibern8_exit_tstamp at 0 us, hibern8_exit_cnt=0
    [    1.846649] am65-cpsw-nuss 46000000.ethernet: ALE Table size 64
    [    1.853855] cdns-ufshcd 4e84000.ufs: last intr at 1681560 us, last intr status=0x404
    [    1.862388] am65-cpsw-nuss 46000000.ethernet: CPTS ver 0x4e8a010a, freq:500000000, add_val:1 pps:0
    [    1.867910] cdns-ufshcd 4e84000.ufs: error handling flags=0x0, req. abort count=0
    [    1.867913] cdns-ufshcd 4e84000.ufs: hba->ufs_version=0x210, Host capabilities=0x1587031f, caps=0x0
    [    1.867915] cdns-ufshcd 4e84000.ufs: quirks=0x0, dev. quirks=0x0
    [    1.867918] cdns-ufshcd 4e84000.ufs: clk: core_clk, rate: 250000000
    [    1.867921] cdns-ufshcd 4e84000.ufs: clk: phy_clk, rate: 19200000
    [    1.919395] cdns-ufshcd 4e84000.ufs: clk: ref_clk, rate: 19200000
    [    1.925480] cdns-ufshcd 4e84000.ufs: ufshcd_print_pwr_info:[RX, TX]: gear=[0, 0], lane[0, 0], pwr[INVALID MODE, INVALID MODE], rate = 0
    [    1.937642] host_regs: 00000000: 1587031f 00000000 00000210 00000000
    [    1.943981] host_regs: 00000010: 00000000 00000000 00000000 00000000
    [    1.950319] host_regs: 00000020: 00000000 00000470 00000000 00000000
    [    1.956656] host_regs: 00000030: 00000008 00000001 00000000 00000000
    [    1.962994] host_regs: 00000040: 00000000 00000000 00000000 00000000
    [    1.969334] host_regs: 00000050: 00000000 00000000 00000000 00000000
    [    1.975671] host_regs: 00000060: 00000000 00000000 00000000 00000000
    [    1.982009] host_regs: 00000070: 00000000 00000000 00000000 00000000
    [    1.988346] host_regs: 00000080: 00000000 00000000 00000000 00000000
    [    1.994684] host_regs: 00000090: 00000000 00000000 00000000 00000000
    [    2.001022] cdns-ufshcd 4e84000.ufs: No record of pa_err
    [    2.006321] cdns-ufshcd 4e84000.ufs: No record of dl_err
    [    2.011620] cdns-ufshcd 4e84000.ufs: No record of nl_err
    [    2.016916] cdns-ufshcd 4e84000.ufs: No record of tl_err
    [    2.022215] cdns-ufshcd 4e84000.ufs: No record of dme_err
    [    2.027599] cdns-ufshcd 4e84000.ufs: No record of auto_hibern8_err
    [    2.033764] cdns-ufshcd 4e84000.ufs: No record of fatal_err
    [    2.039323] cdns-ufshcd 4e84000.ufs: link_startup_fail[0] = 0x1 at 1682673 us
    [    2.046444] cdns-ufshcd 4e84000.ufs: No record of resume_fail
    [    2.052176] cdns-ufshcd 4e84000.ufs: No record of suspend_fail
    [    2.057993] cdns-ufshcd 4e84000.ufs: No record of dev_reset
    [    2.063550] cdns-ufshcd 4e84000.ufs: No record of host_reset
    [    2.069194] cdns-ufshcd 4e84000.ufs: No record of task_abort
    [    2.256082] davinci_mdio c000f00.mdio: Configuring MDIO in manual mode
    [    2.300071] davinci_mdio c000f00.mdio: davinci mdio revision 9.7, bus freq 1000000
    [    2.325380] mdio_bus c000f00.mdio: MDIO device at address 1 is missing.
    [    2.349729] mdio_bus c000f00.mdio: MDIO device at address 5 is missing.
    [    2.374077] mdio_bus c000f00.mdio: MDIO device at address 6 is missing.
    [    2.398308] mdio_bus c000f00.mdio: MDIO device at address 7 is missing.
    [    2.404964] am65-cpsw-nuss c000000.ethernet: initializing am65 cpsw nuss version 0x6BA01901, cpsw version 0x6BA80101 Ports: 9 quirks:00000000
    [    2.418789] am65-cpsw-nuss c000000.ethernet: Use random MAC address
    [    2.425103] am65-cpsw-nuss c000000.ethernet: Use random MAC address
    [    2.432491] am65-cpsw-nuss c000000.ethernet: Use random MAC address
    [    2.438748] am65-cpsw-nuss c000000.ethernet: initialized cpsw ale version 1.4
    [    2.445866] am65-cpsw-nuss c000000.ethernet: ALE Table size 512
    [    2.452174] am65-cpsw-nuss c000000.ethernet: CPTS ver 0x4e8a010a, freq:200000000, add_val:4 pps:0
    [    2.463604] am65-cpts 310d0000.cpts: CPTS ver 0x4e8a010a, freq:200000000, add_val:4 pps:0
    [    2.573265] davinci-mcasp 2ba0000.mcasp: invalid tdm slots: 0
    [    2.579022] davinci-mcasp 2ba0000.mcasp: IRQ common not found
    [    2.584965] mmc0: CQHCI version 5.10
    [    2.584977] mmc1: CQHCI version 5.10
    [    2.598598] pca953x 4-0020: supply vcc not found, using dummy regulator
    [    2.605264] pca953x 4-0020: using no AI
    [    2.628076] mmc0: SDHCI controller on 4f80000.mmc [4f80000.mmc] using ADMA 64-bit
    [    2.632116] pca953x 4-0020: failed writing register
    [    2.640534] pca953x: probe of 4-0020 failed with error -121
    [    2.646580] omap-mailbox 31f80000.mailbox: omap mailbox rev 0x66fc7100
    [    2.653426] omap-mailbox 31f81000.mailbox: omap mailbox rev 0x66fc7100
    [    2.660386] omap-mailbox 31f82000.mailbox: omap mailbox rev 0x66fc7100
    [    2.667318] omap-mailbox 31f83000.mailbox: omap mailbox rev 0x66fc7100
    [    2.674177] omap-mailbox 31f84000.mailbox: omap mailbox rev 0x66fc7100
    [    2.684989] ti-udma 285c0000.dma-controller: Channels: 26 (tchan: 13, rchan: 13, gp-rflow: 8)
    [    2.695655] ti-udma 31150000.dma-controller: Channels: 122 (tchan: 61, rchan: 61, gp-rflow: 16)
    [    2.709247] spi-nor spi7.0: unrecognized JEDEC id bytes: 2c 5b 1b 10 41 00
    [    2.716132] spi-nor: probe of spi7.0 failed with error -2
    [    2.763679] mmc0: Command Queue Engine enabled
    [    2.768127] mmc0: new HS200 MMC card at address 0001
    [    2.773401] mmcblk0: mmc0:0001 G1M15L 29.6 GiB 
    [    2.778034] mmcblk0boot0: mmc0:0001 G1M15L partition 1 31.5 MiB
    [    2.784054] mmcblk0boot1: mmc0:0001 G1M15L partition 2 31.5 MiB
    [    2.790047] mmcblk0rpmb: mmc0:0001 G1M15L partition 3 4.00 MiB, chardev (237:0)
    [    2.798144]  mmcblk0: p1 p2
    [    3.100097] davinci_mdio 46000f00.mdio: Configuring MDIO in manual mode
    [    3.144067] davinci_mdio 46000f00.mdio: davinci mdio revision 9.7, bus freq 1000000
    [    3.160400] hwmon hwmon0: temp1_input not attached to any thermal zone
    [    3.176267] hwmon hwmon1: temp1_input not attached to any thermal zone
    [    3.192263] hwmon hwmon2: temp1_input not attached to any thermal zone
    [    3.198822] davinci_mdio 46000f00.mdio: phy[2]: device 46000f00.mdio:02, driver Marvell 88E1510
    [    3.207505] davinci_mdio 46000f00.mdio: phy[3]: device 46000f00.mdio:03, driver Marvell 88E1510
    [    3.216183] davinci_mdio 46000f00.mdio: phy[4]: device 46000f00.mdio:04, driver Marvell 88E1510
    [    3.224923] am65-cpsw-nuss 46000000.ethernet: initializing am65 cpsw nuss version 0x6BA00101, cpsw version 0x6BA80100 Ports: 2 quirks:00000000
    [    3.237777] am65-cpsw-nuss 46000000.ethernet: initialized cpsw ale version 1.4
    [    3.244983] am65-cpsw-nuss 46000000.ethernet: ALE Table size 64
    [    3.251261] am65-cpsw-nuss 46000000.ethernet: CPTS ver 0x4e8a010a, freq:500000000, add_val:1 pps:0
    [    3.261582] am65-cpsw-nuss 46000000.ethernet: set new flow-id-base 48
    [    3.636674] mmc1: SDHCI controller on 4fb0000.mmc [4fb0000.mmc] using ADMA 64-bit
    [    3.652080] davinci_mdio c000f00.mdio: Configuring MDIO in manual mode
    [    3.696081] davinci_mdio c000f00.mdio: davinci mdio revision 9.7, bus freq 1000000
    [    3.717876] [drivers/net/phy/marvell-88q2xxx.c:mv88q2xxx_get_features:321] mv88q2xxx_get_features genphy_c45_pma_baset1_read_abilities ret = 0  
    [    3.741558] mmc1: new high speed SDHC card at address aaaa
    [    3.741890] [drivers/net/phy/marvell-88q2xxx.c:mv88q2xxx_get_features:321] mv88q2xxx_get_features genphy_c45_pma_baset1_read_abilities ret = 0  
    [    3.747379] mmcblk1: mmc1:aaaa SC16G 14.8 GiB 
    [    3.768523]  mmcblk1: p1 p2
    [    3.773861] [drivers/net/phy/marvell-88q2xxx.c:mv88q2xxx_get_features:321] mv88q2xxx_get_features genphy_c45_pma_baset1_read_abilities ret = 0  
    [    3.797812] [drivers/net/phy/marvell-88q2xxx.c:mv88q2xxx_get_features:321] mv88q2xxx_get_features genphy_c45_pma_baset1_read_abilities ret = 0  
    [    3.810783] davinci_mdio c000f00.mdio: phy[1]: device c000f00.mdio:01, driver mv88q2110
    [    3.818774] davinci_mdio c000f00.mdio: phy[5]: device c000f00.mdio:05, driver mv88q2110
    [    3.826759] davinci_mdio c000f00.mdio: phy[6]: device c000f00.mdio:06, driver mv88q2110
    [    3.834749] davinci_mdio c000f00.mdio: phy[7]: device c000f00.mdio:07, driver mv88q2110
    [    3.842793] am65-cpsw-nuss c000000.ethernet: initializing am65 cpsw nuss version 0x6BA01901, cpsw version 0x6BA80101 Ports: 9 quirks:00000000
    [    3.855604] am65-cpsw-nuss c000000.ethernet: Use random MAC address
    [    3.861923] am65-cpsw-nuss c000000.ethernet: Use random MAC address
    [    3.868291] am65-cpsw-nuss c000000.ethernet: Use random MAC address
    [    3.874548] am65-cpsw-nuss c000000.ethernet: initialized cpsw ale version 1.4
    [    3.881666] am65-cpsw-nuss c000000.ethernet: ALE Table size 512
    [    3.887937] am65-cpsw-nuss c000000.ethernet: CPTS ver 0x4e8a010a, freq:200000000, add_val:4 pps:0
    [    3.899303] am65-cpsw-nuss c000000.ethernet: set new flow-id-base 140
    [    3.907995] davinci-mcasp 2ba0000.mcasp: invalid tdm slots: 0
    [    3.913751] davinci-mcasp 2ba0000.mcasp: IRQ common not found
    [    3.927473] debugfs: Directory 'pd:27' with parent 'pm_genpd' already present!
    [    3.934769] debugfs: Directory 'pd:26' with parent 'pm_genpd' already present!
    [    3.943143] debugfs: Directory 'pd:242' with parent 'pm_genpd' already present!
    [    3.950469] debugfs: Directory 'pd:241' with parent 'pm_genpd' already present!
    [    3.957775] debugfs: Directory 'pd:240' with parent 'pm_genpd' already present!
    [    3.965085] debugfs: Directory 'pd:239' with parent 'pm_genpd' already present!
    [    3.973525] input: gpio-keys as /devices/platform/gpio-keys/input/input0
    [    3.992692] ALSA device list:
    [    3.995648]   No soundcards found.
    [    4.022713] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null)
    [    4.030819] VFS: Mounted root (ext4 filesystem) on device 179:98.
    [    4.040719] devtmpfs: mounted
    [    4.044564] Freeing unused kernel memory: 1920K
    [    4.049179] Run /sbin/init as init process
    [    4.394669] systemd[1]: System time before build time, advancing clock.
    [    5.576932] NET: Registered protocol family 10
    [    5.582024] Segment Routing with IPv6
    [    5.627992] systemd[1]: systemd 244.5+ running in system mode. (+PAM -AUDIT -SELINUX +IMA -APPARMOR -SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT -GN
    UTLS +ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -IDN2 -IDN -PCRE2 default-hierarchy=hybrid)
    [    5.649722] systemd[1]: Detected architecture arm64.
    
    Welcome to Arago 2021.09!
    
    [    5.700217] systemd[1]: Set hostname to <j7-evm>.
    [    5.915414] systemd[1]: /lib/systemd/system/irqbalanced.service:6: Unknown key name 'ConditionCPUs' in section 'Unit', ignoring.
    [    5.941368] systemd[1]: /lib/systemd/system/docker.socket:6: ListenStream= references a path below legacy directory /var/run/, updating /var/run/dock
    er.sock �→ /run/docker.sock; please update the unit file accordingly.
    [    6.013130] random: systemd: uninitialized urandom read (16 bytes read)
    [    6.021435] systemd[1]: Created slice system-getty.slice.
    [  OK  ] Created slice system-getty.slice.
    [    6.044145] random: systemd: uninitialized urandom read (16 bytes read)
    [    6.051517] systemd[1]: Created slice system-serial\x2dgetty.slice.
    [  OK  ] Created slice system-serial\x2dgetty.slice.
    [    6.072141] random: systemd: uninitialized urandom read (16 bytes read)
    [    6.079424] systemd[1]: Created slice User and Session Slice.
    [  OK  ] Created slice User and Session Slice.
    [    6.100276] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
    [  OK  ] Started Dispatch Password �…ts to Console Directory Watch.
    [    6.124196] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
    [  OK  ] Started Forward Password R�…uests to Wall Directory Watch.
    [    6.148208] systemd[1]: Reached target Paths.
    [  OK  ] Reached target Paths.
    [    6.168132] systemd[1]: Reached target Remote File Systems.
    [  OK  ] Reached target Remote File Systems.
    [    6.188121] systemd[1]: Reached target Slices.
    [  OK  ] Reached target Slices.
    [    6.208124] systemd[1]: Reached target Swap.
    [  OK  ] Reached target Swap.
    [    6.244597] systemd[1]: Listening on RPCbind Server Activation Socket.
    [  OK  ] Listening on RPCbind Server Activation Socket.
    [    6.272201] systemd[1]: Reached target RPC Port Mapper.
    [  OK  ] Reached target RPC Port Mapper.
    [    6.296623] systemd[1]: Listening on Process Core Dump Socket.
    [  OK  ] Listening on Process Core Dump Socket.
    [    6.320280] systemd[1]: Listening on initctl Compatibility Named Pipe.
    [  OK  ] Listening on initctl Compatibility Named Pipe.
    [    6.345748] systemd[1]: Condition check resulted in Journal Audit Socket being skipped.
    [    6.354084] systemd[1]: Listening on Journal Socket (/dev/log).
    [  OK  ] Listening on Journal Socket (/dev/log).
    [    6.376378] systemd[1]: Listening on Journal Socket.
    [  OK  ] Listening on Journal Socket.
    [    6.392435] systemd[1]: Listening on Network Service Netlink Socket.
    [  OK  ] Listening on Network Service Netlink Socket.
    [    6.416332] systemd[1]: Listening on udev Control Socket.
    [  OK  ] Listening on udev Control Socket.
    [    6.436270] systemd[1]: Listening on udev Kernel Socket.
    [  OK  ] Listening on udev Kernel Socket.
    [    6.458298] systemd[1]: Mounting Huge Pages File System...
             Mounting Huge Pages File System...
    [    6.474382] systemd[1]: Mounting POSIX Message Queue File System...
             Mounting POSIX Message Queue File System...
    [    6.498331] systemd[1]: Mounting Kernel Debug File System...
             Mounting Kernel Debug File System...
    [    6.528910] systemd[1]: Mounting Temporary Directory (/tmp)...
             Mounting Temporary Directory (/tmp)...
    [    6.546480] systemd[1]: Starting Create list of static device nodes for the current kernel...
             Starting Create list of st�…odes for the current kernel...
    [    6.590268] systemd[1]: Starting Start psplash boot splash screen...
             Starting Start psplash boot splash screen...
    [    6.614541] systemd[1]: Starting RPC Bind...
             Starting RPC Bind...
    [    6.628295] systemd[1]: Condition check resulted in File System Check on Root Device being skipped.
    [    6.640470] systemd[1]: Starting Journal Service...
             Starting Journal Service...
    [    6.674097] systemd[1]: Starting Load Kernel Modules...
             Starting Load Kernel Modules...
    [    6.690538] systemd[1]: Starting Remount Root and Kernel File Systems...
             Starting Remount Root and Kernel File Systems...
    [    6.714584] EXT4-fs (mmcblk1p2): re-mounted. Opts: (null)
    [    6.722606] systemd[1]: Starting udev Coldplug all Devices...
             Starting udev Coldplug all Devices...
    [    6.747233] systemd[1]: Started RPC Bind.
    [  OK  ] Started RPC Bind.
    [    6.764476] systemd[1]: Started Journal Service.
    [  OK  ] Started Journal Service.
    [  OK  ] Mounted Huge Pages File System.
    [  OK  ] Mounted POSIX Message Queue File System.
    [  OK  ] Mounted Kernel Debug File System.
    [  OK  ] Mounted Temporary Directory (/tmp).
    [  OK  ] Started Create list of sta�… nodes for the current kernel.
    [FAILED] Failed to start Start psplash boot splash screen.
    See 'systemctl status psplash-start.service' for details.
    [DEPEND] Dependency failed for Star�…progress communication helper.
    [  OK  ] Started Load Kernel Modules.
    [  OK  ] Started Remount Root and Kernel File Systems.
             Mounting Kernel Configuration File System...
             Starting Flush Journal to Persistent Storage...
             Starting Apply Kernel Variables...[    7.000502] systemd-journald[207]: Received client request to flush runtime journal.
    
    [    7.020340] random: systemd: uninitialized urandom read (16 bytes read)
    [    7.027615] random: systemd-journal: uninitialized urandom read (16 bytes read)
             Starting Create Static Device Nodes in /dev    7.038561] random: systemd-journal: uninitialized urandom read (16 bytes read)
    m...
    [  OK  ] Mounted Kernel Configuration File System.
    [  OK  ] Started Flush Journal to Persistent Storage.
    [  OK  ] Started Apply Kernel Variables.
    [  OK  ] Started udev Coldplug all Devices.
    [  OK  ] Started Create Static Device Nodes in /dev.
    [  OK  ] Reached target Local File Systems (Pre).
             Mounting /media/ram...
             Mounting /var/volatile...
             Starting udev Wait for Complete Device Initialization...
             Starting udev Kernel Device Manager...
    [  OK  ] Mounted /media/ram.
    [  OK  ] Mounted /var/volatile.
             Starting Load/Save Random Seed...
    [  OK  ] Reached target Local File Systems.
             Starting Create Volatile Files and Directories...
    [  OK  ] Started Create Volatile Files and Directories.
             Starting Network Time Synchronization...
             Starting Update UTMP about System Boot/Shutdown...
    [  OK  ] Started Update UTMP about System Boot/Shutdown.
    [  OK  ] Started udev Kernel Device Manager.
    [  OK  ] Started Network Time Synchronization.
    [  OK  ] Reached target System Time Set.
    [  OK  ] Reached target System Time Synchronized.
    [    7.674713] random: crng init done
    [    7.678482] random: 66 urandom warning(s) missed due to ratelimiting
    [  OK  ] Started Load/Save Random Seed.
    [    7.717183] ina2xx 5-0040: error configuring the device: -121
    [    7.724731] ina2xx 5-0041: error configuring the device: -121
    [    7.732394] ina2xx 5-0042: error configuring the device: -121
    [    7.739764] ina2xx 5-0043: error configuring the device: -121
    [    7.746866] ina2xx 5-0044: error configuring the device: -121
    [    7.753466] ina2xx 5-0045: error configuring the device: -121
    [    7.760303] ina2xx 5-0046: error configuring the device: -121
    [    7.766918] ina2xx 5-0047: error configuring the device: -121
    [    7.773587] ina2xx 5-0048: error configuring the device: -121
    [    7.780055] ina2xx 5-0049: error configuring the device: -121
    [    7.786536] ina2xx 5-004a: error configuring the device: -121
    [    7.798943] ina2xx 5-004b: error configuring the device: -121
    [    7.812244] ina2xx 5-004c: error configuring the device: -121
    [    7.818396] ina2xx 5-004d: error configuring the device: -121
    [    7.825241] ina2xx 5-004e: error configuring the device: -121
    [    7.831946] ina2xx 5-004f: error configuring the device: -121
    [    8.066566] k3-dsp-rproc 4d80800000.dsp: assigned reserved memory node c66-dma-memory@a7000000
    [    8.079164] k3-dsp-rproc 4d80800000.dsp: configured DSP for IPC-only mode
    [    8.088803] remoteproc remoteproc0: 4d80800000.dsp is available
    [    8.095566] platform 41000000.r5f: R5F core may have been powered on by a different host, programmed state (0) != actual state (1)
    [    8.108605] remoteproc remoteproc0: attaching to 4d80800000.dsp
    [    8.119598] k3-dsp-rproc 4d80800000.dsp: DSP initialized in IPC-only mode
    [    8.126448] platform 41000000.r5f: configured R5F for IPC-only mode
    [    8.126530] platform 41000000.r5f: assigned reserved memory node r5f-dma-memory@a0000000
    [    8.141127]  remoteproc0#vdev0buffer: assigned reserved memory node c66-dma-memory@a7000000
    [    8.152615] remoteproc remoteproc1: 41000000.r5f is available
    [    8.158512] remoteproc remoteproc1: attaching to 41000000.r5f
    [    8.166562] platform 41000000.r5f: R5F core initialized in IPC-only mode
    [    8.168802] virtio_rpmsg_bus virtio0: rpmsg host is online
    [    8.175057]  remoteproc1#vdev0buffer: assigned reserved memory node r5f-dma-memory@a0000000
    [    8.187240] virtio_rpmsg_bus virtio0: creating channel ti.ipc4.ping-pong addr 0xd
    [    8.195052] virtio_rpmsg_bus virtio0: creating channel rpmsg_chrdev addr 0xe
    [    8.202603]  remoteproc0#vdev0buffer: registered virtio0 (type 7)
    [    8.209040] remoteproc remoteproc0: remote processor 4d80800000.dsp is now attached
    [    8.217308] virtio_rpmsg_bus virtio1: rpmsg host is online
    [    8.220813] k3-dsp-rproc 4d81800000.dsp: assigned reserved memory node c66-dma-memory@a6000000
    [    8.222947]  remoteproc1#vdev0buffer: registered virtio1 (type 7)
    [    8.237566] virtio_rpmsg_bus virtio1: creating channel ti.ipc4.ping-pong addr 0xd
    [    8.245221] virtio_rpmsg_bus virtio1: creating channel rpmsg_chrdev addr 0xe
    [    8.248553] remoteproc remoteproc1: remote processor 41000000.r5f is now attached
    [    8.260084] k3-dsp-rproc 4d81800000.dsp: configured DSP for IPC-only mode
    [    8.267003] remoteproc remoteproc2: 4d81800000.dsp is available
    [    8.273008] remoteproc remoteproc2: attaching to 4d81800000.dsp
    [    8.279084] k3-dsp-rproc 4d81800000.dsp: DSP initialized in IPC-only mode
    [    8.285931]  remoteproc2#vdev0buffer: assigned reserved memory node c66-dma-memory@a6000000
    [    8.294635] virtio_rpmsg_bus virtio2: rpmsg host is online
    [    8.300200]  remoteproc2#vdev0buffer: registered virtio2 (type 7)
    [    8.306313] platform 5c00000.r5f: configured R5F for remoteproc mode
    [    8.312736] virtio_rpmsg_bus virtio2: creating channel ti.ipc4.ping-pong addr 0xd
    [    8.320345] virtio_rpmsg_bus virtio2: creating channel rpmsg_chrdev addr 0xe
    [    8.327438] remoteproc remoteproc2: remote processor 4d81800000.dsp is now attached
    [    8.335403] platform 5c00000.r5f: assigned reserved memory node r5f-dma-memory@a2000000
    [    8.340204] k3-dsp-rproc 64800000.dsp: assigned reserved memory node c71-dma-memory@a8000000
    [    8.353662] remoteproc remoteproc3: 5c00000.r5f is available
    [    8.359503] k3-dsp-rproc 64800000.dsp: configured DSP for IPC-only mode
    [    8.366225] remoteproc remoteproc4: 64800000.dsp is available
    [    8.372042] remoteproc remoteproc4: attaching to 64800000.dsp
    [    8.380783] platform 5d00000.r5f: configured R5F for remoteproc mode
    [    8.383191] remoteproc remoteproc4: unsupported resource 65538
    [    8.393166] k3-dsp-rproc 64800000.dsp: DSP initialized in IPC-only mode
    [    8.399830]  remoteproc4#vdev0buffer: assigned reserved memory node c71-dma-memory@a8000000
    [    8.417715] virtio_rpmsg_bus virtio3: rpmsg host is online
    [    8.423296]  remoteproc4#vdev0buffer: registered virtio3 (type 7)
    [    8.429499] virtio_rpmsg_bus virtio3: creating channel ti.ipc4.ping-pong addr 0xd
    [    8.437104] virtio_rpmsg_bus virtio3: creating channel rpmsg_chrdev addr 0xe
    [    8.446406] remoteproc remoteproc4: remote processor 64800000.dsp is now attached
    [    8.454530] platform 5d00000.r5f: assigned reserved memory node r5f-dma-memory@a3000000
    [    8.472276] remoteproc remoteproc5: 5d00000.r5f is available
    [    8.479100] remoteproc remoteproc5: Direct firmware load for j7-main-r5f0_1-fw failed with error -2
    [    8.490706] remoteproc remoteproc5: powering up 5d00000.r5f
    [    8.496380] remoteproc remoteproc5: Direct firmware load for j7-main-r5f0_1-fw failed with error -2
    [    8.505961] remoteproc remoteproc5: request_firmware failed: -2
    [    8.510019] platform 5e00000.r5f: configured R5F for remoteproc mode
    [    8.523894] platform 5e00000.r5f: assigned reserved memory node r5f-dma-memory@a4000000
    [    8.544771] remoteproc remoteproc6: 5e00000.r5f is available
    [    8.551430] remoteproc remoteproc6: Direct firmware load for j7-main-r5f1_0-fw failed with error -2
    [    8.562834] platform 5f00000.r5f: configured R5F for remoteproc mode
    [    8.569318] remoteproc remoteproc6: powering up 5e00000.r5f
    [    8.574924] remoteproc remoteproc6: Direct firmware load for j7-main-r5f1_0-fw failed with error -2
    [    8.587495] remoteproc remoteproc6: request_firmware failed: -2
    [    8.594958] platform 5f00000.r5f: assigned reserved memory node r5f-dma-memory@a5000000
    [    8.604956] remoteproc remoteproc7: 5f00000.r5f is available
    [    8.611908] remoteproc remoteproc7: Direct firmware load for j7-main-r5f1_1-fw failed with error -2
    [    8.625091] remoteproc remoteproc7: powering up 5f00000.r5f
    [    8.634323] remoteproc remoteproc7: Direct firmware load for j7-main-r5f1_1-fw failed with error -2
    [    8.649470] remoteproc remoteproc7: request_firmware failed: -2
    [    8.660874] remoteproc remoteproc3: powering up 5c00000.r5f
    [    8.666512] remoteproc remoteproc3: Booting fw image pdk-ipc/ipc_echo_test_mcu2_0_release_strip.xer5f, size 98828
    [    8.686175]  remoteproc3#vdev0buffer: assigned reserved memory node r5f-dma-memory@a2000000
    [    8.694919] virtio_rpmsg_bus virtio4: rpmsg host is online
    [    8.703104]  remoteproc3#vdev0buffer: registered virtio4 (type 7)
    [    8.705044] virtio_rpmsg_bus virtio4: creating channel ti.ipc4.ping-pong addr 0xd
    [    8.709217] remoteproc remoteproc3: remote processor 5c00000.r5f is now up
    [    8.720951] virtio_rpmsg_bus virtio4: creating channel rpmsg_chrdev addr 0xe
    [    9.130270] img_enc 4200000.video-encoder: vxe_enc_probe: using heap 1 for internal alloc
    [    9.143448] img_enc 4200000.video-encoder: encoder registered as /dev/video0
    [    9.616851] img_dec 4300000.video-decoder: decoder registered as /dev/video1
    [   10.135407] remoteproc remoteproc8: b034000.pru is available
    [   10.141579] remoteproc remoteproc9: b004000.rtu is available
    [   10.147528] remoteproc remoteproc10: b00a000.txpru is available
    [   10.153683] remoteproc remoteproc11: b038000.pru is available
    [   10.159800] remoteproc remoteproc12: b006000.rtu is available
    [   10.165832] remoteproc remoteproc13: b00c000.txpru is available
    [   10.173489] remoteproc remoteproc14: b134000.pru is available
    [   10.182559] remoteproc remoteproc15: b104000.rtu is available
    [   10.188656] remoteproc remoteproc16: b10a000.txpru is available
    [   10.194902] remoteproc remoteproc17: b138000.pru is available
    [   10.200975] remoteproc remoteproc18: b106000.rtu is available
    [   10.206999] remoteproc remoteproc19: b10c000.txpru is available
    [   10.424499] omap_rng 4e10000.rng: Random Number Generator ver. 241b34c
    [   10.530198] cdns-csi2rx: probe of 4504000.csi-bridge failed with error -22
    [   10.537708] cdns-csi2rx: probe of 4514000.csi-bridge failed with error -22
    [   10.607182] usbcore: registered new interface driver usbfs
    [   10.615318] usbcore: registered new interface driver hub
    [   10.623530] usbcore: registered new device driver usb
    [  OK  ] Created slice system-systemd\x2dfsck.slice.
    [  OK  ] Found device /dev/mmcblk0p2.
             Starting File System Check on /dev/mmcblk0p2...
    [  OK  ] Found device /dev/mmcblk0p1.
             Starting File System Check on /dev/mmcblk0p1...
    [  OK  ] Started File System Check on /dev/mmcblk0p1.
             Mounting /run/media/mmcblk0p1...
    [  OK  ] Mounted /run/media/mmcblk0p1.
    [  OK  ] Started File System Check on /dev/mmcblk0p2.
             Mounting /run/media/mmcblk0p2...
    [   11.051794] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
    [  OK  ] Mounted /run/media/mmcblk0p2.
    [  OK  ] Found device /dev/mmcblk1p1.
             Starting File System Check on /dev/mmcblk1p1...
    [  OK  ] Started File System Check on /dev/mmcblk1p1.
             Mounting /run/media/mmcblk1p1...
    [  OK  ] Mounted /run/media/mmcblk1p1.
    [   12.556370] xhci-hcd xhci-hcd.2.auto: xHCI Host Controller
    [   12.561872] xhci-hcd xhci-hcd.2.auto: new USB bus registered, assigned bus number 1
    [   ***] A start job is running for udev Wai�…ce Initialization (12s / 2min 56s)
    [   22.569552] xhci-hcd xhci-hcd.2.auto: can't setup: -110
    [   22.574774] xhci-hcd xhci-hcd.2.auto: USB bus 1 deregistered
    [   22.580472] xhci-hcd: probe of xhci-hcd.2.auto failed with error -110
    [   22.587022] xhci-hcd xhci-hcd.3.auto: xHCI Host Controller
    [ ***  ] A start job is running for udev Wai�…ce Initialization (21s / 2min 56s)
    [   32.600189] xhci-hcd xhci-hcd.3.auto: can't setup: -110
    [   32.605409] xhci-hcd xhci-hcd.3.auto: USB bus 1 deregistered
    [  OK  ] Started udev Wait for Complete Device Initialization.
    [  OK  ] Started Hardware RNG Entropy Gatherer Daemon.
    [  OK  ] Reached target System Initialization.
    [  OK  ] Started Daily rotation of log files.
    [  OK  ] Started Daily Cleanup of Temporary Directories.
    [  OK  ] Reached target Timers.
    [  OK  ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
    [  OK  ] Listening on D-Bus System Message Bus Socket.
             Starting Docker Socket for the API.
    [  OK  ] Listening on dropbear.socket.
             Starting Reboot and dump vmcore via kexec...
    [  OK  ] Listening on Docker Socket for the API.
    [  OK  ] Started Reboot and dump vmcore via kexec.
    [  OK  ] Reached target Sockets.
    [  OK  ] Reached target Basic System.
    [  OK  ] Started Job spooling tools.
    [  OK  ] Started Periodic Command Scheduler.
    [  OK  ] Started D-Bus System Message Bus.
             Starting Print notice about GPLv3 packages...
             Starting set host name as per compatible name...
             Starting IPv6 Packet Filtering Framework...
             Starting IPv4 Packet Filtering Framework...
    [  OK  ] Started irqbalance daemon.
             Starting Telephony service...
             Starting Update pmic regis�…fety feature on power rails...
             Starting rc.pvr.service...
             Starting startwlanap...
             Starting startwlansta...
             Starting Login Service...
    [  OK  ] Started TEE Supplicant.
             Starting Update weston ini�… based on the platform name...
    [  OK  ] Started IPv6 Packet Filtering Framework.
    [  OK  ] Started IPv4 Packet Filtering Framework.
    [  OK  ] Started startwlansta.
    [  OK  ] Reached target Network (Pre).
             Starting Network Service...
    [  OK  ] Started set host name as per compatible name.
    [  OK  ] Started Update pmic regist�…safety feature on power rails.
    [  OK  ] Started startwlanap.
    [  OK  ] Started Update weston ini �…ge based on the platform name.
    [  OK  ] Started Telephony service.
    [  OK  ] Started Network Service.
             Starting Wait for Network to be Configured...
             Starting Network Name Resolution...
    [  OK  ] Listening on Load/Save RF �…itch S[   33.385858] [drivers/net/phy/marvell-88q2xxx.c:mv88q2xxx_soft_reset:103] mv88q2xxx_soft_reset ret  = 0 
    tatus /dev/rfkill Watch.
    [   33.468413] [drivers/net/phy/marvell-88q2xxx.c:mv88q2xxx_config_init:446] mv88q2xxx_config_init ......... 
    [   33.484086] am65-cpsw-nuss c000000.ethernet eth3: PHY [c000f00.mdio:06] driver [mv88q2110] (irq=POLL)
    [   33.499942] am65-cpsw-nuss c000000.ethernet eth3: configuring for phy/sgmii link mode
    [   33.526080] [drivers/net/phy/marvell-88q2xxx.c:mv88q2xxx_config_aneg:343] mv88q2xxx_config_aneg ret = 0  ......... 
    [   33.537413] [drivers/net/phy/marvell-88q2xxx.c:mv88q2xxx_soft_reset:103] mv88q2xxx_soft_reset ret  = 0 
    [  OK  ] Started Login Service.
    [   33.588412] [drivers/net/phy/marvell-88q2xxx.c:mv88q2xxx_soft_reset:103] mv88q2xxx_soft_reset ret  = 0 
    [   33.652341] [drivers/net/phy/marvell-88q2xxx.c:mv88q2xxx_config_init:446] mv88q2xxx_config_init ......... 
    [   33.668090] am65-cpsw-nuss c000000.ethernet eth2: PHY [c000f00.mdio:05] driver [mv88q2110] (irq=POLL)
    [   33.680099] am65-cpsw-nuss c000000.ethernet eth2: configuring for phy/sgmii link mode
    [   33.710447] [drivers/net/phy/marvell-88q2xxx.c:mv88q2xxx_config_aneg:343] mv88q2xxx_config_aneg ret = 0  ......... 
    [   33.721145] [drivers/net/phy/marvell-88q2xxx.c:mv88q2xxx_soft_reset:103] mv88q2xxx_soft_reset ret  = 0 
    [  OK  ] Started Network Name Resolution.
    [  OK  ] Reached target Network.
    [  OK  ] Reached target Host and Network Name Lookups.
             Starting Avahi mDNS/DNS-SD Stack...
             Starting Enable and configure wl18xx b[   33.804696] [drivers/net/phy/marvell-88q2xxx.c:mv88q2xxx_soft_reset:103] mv88q2xxx_soft_reset ret  = 0
     
    luetooth stack...
    [  OK  ] Started NFS status monitor for NFSv2/3 locking..
             Starting Simple Network Ma�…ent Protocol (SNMP) Daemon....
             Starting Permit User Sessions...
    [  OK  ] Started Enable and configure wl18xx bluetooth stack.
    [   33.872363] [drivers/net/phy/marvell-88q2xxx.c:mv88q2xxx_config_init:446] mv88q2xxx_config_init ......... 
    [  OK  ] Started Permit User Sessions.
    [  OK  ] Started Getty on tty1.
    [  OK  ] Started Serial Getty on ttyS2.
    [  OK  ] Started Serial Getty on ttyS3.[   33.900250] am65-cpsw-nuss c000000.ethernet eth1: PHY [c000f00.mdio:01] driver [mv88q2110] (irq=POLL)
    
    [  OK  ] Reached target Login Prompts.
             Starting Synchronize System and HW clocks...
    [   33.928101] am65-cpsw-nuss c000000.ethernet eth1: configuring for phy/sgmii link mode
    [   33.958412] [drivers/net/phy/marvell-88q2xxx.c:mv88q2xxx_config_aneg:343] mv88q2xxx_config_aneg ret = 0  ......... 
    [   33.969139] [drivers/net/phy/marvell-88q2xxx.c:mv88q2xxx_soft_reset:103] mv88q2xxx_soft_reset ret  = 0 
    [FAILED] Failed to start Synchronize System and HW clocks.
    See 'systemctl status sync-clocks.service' for details.
    [   34.026502] am65-cpsw-nuss 46000000.ethernet eth0: configuring for fixed/rgmii-id link mode
    [   34.044172] am65-cpsw-nuss 46000000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
    [   34.273435] Bluetooth: Core ver 2.22
    [   34.279108] NET: Registered protocol family 31
    [   34.285368] Bluetooth: HCI device and connection manager initialized
    [   34.294533] Bluetooth: HCI socket layer initialized
    [   34.300571] Bluetooth: L2CAP socket layer initialized
    [   34.308137] Bluetooth: SCO socket layer initialized
    [  OK  ] Started Avahi mDNS/DNS-SD Stack.
    [   34.621154] am65-cpsw-nuss c000000.ethernet eth3: Link is Up - 1Gbps/Full - flow control off
    [   34.629629] IPv6: ADDRCONF(NETDEV_CHANGE): eth3: link becomes ready
    [  OK  ] Started Simple Network Man�…ement Protocol (SNMP) Daemon..
    [   35.911829] vdd_mmc1: disabling
    [   35.914982] tlv71033: disabling
    
     _____                    _____           _         _   
    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_ 
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|  
                  |___|                    |___|            
    
    Arago Project j7-evm ttyS2
    
    Arago 2021.09 j7-evm ttyS2
    
    j7-evm login: ***************************************************************
    ***************************************************************
    NOTICE: This file system contains the following GPLv3 packages:
            autoconf
            bash-dev
            bash
            bc
            binutils
            cifs-utils
            coreutils-stdbuf
            coreutils
            cpio
            cpp-symlinks
            cpp
            dosfstools
            elfutils
            g++-symlinks
            g++
            gawk
            gcc-symlinks
            gcc
            gdb
            gdbserver
            gettext
            glmark2
            gstreamer1.0-libav-dev
            gstreamer1.0-libav
            gzip
            less
            libasm1
            libbfd
            libdw1
            libelf1
            libgdbm-compat4
            libgdbm-dev
            libgdbm6
            libgettextlib
            libgettextsrc
            libgmp-dev
            libgmp10
            libgmpxx4
            libidn2-0
            libidn2-dev
            libmpc3
            libmpfr6
            libreadline-dev
            libreadline8
            libunistring-dev
            libunistring2
            m4-dev
            m4
            make
            nettle-dev
            nettle
            parted
            python3-rfc3987
            python3-strict-rfc3339
            tar
            which
            zeromq
    
    If you do not wish to distribute GPLv3 components please remove
    the above packages prior to distribution.  This can be done using
    the opkg remove command.  i.e.:
        opkg remove <package>
    Where <package> is the name printed in the list above
    
    NOTE: If the package is a dependency of another package you
          will be notified of the dependent packages.  You should
          use the --force-removal-of-dependent-packages option to
          also remove the dependent packages as well
    ***************************************************************
    ***************************************************************

  • This is new patch?Should I  make changes based on the original or the modified version? does this patch suitable for 1000M network? we don't use 100M.

  • Hi,

    This is new patch?Should I  make changes based on the original or the modified version? does this patch suitable for 1000M network? we don't use 100M.

    I hope, it was part of above Zip files shared.

    Can you please check changes present in phy-cadence-sierra.c file or not?

    oes this patch suitable for 1000M network? we don't use 100M.

    It is not for Link speed, SerDes clock frequency of 100MHz.

    Best Regards,
    Sudheer

  • Hi,Sudheer,

    Thanks very much, the serdes0 sgmii1/sgmii2 both ok, the patch you gave me twice are different,the second one is ok.

    So another issue still needs your help, the sgmii8 on serdes4 can ping each other with external computer,but i can't use iperf3 to test the network,also i can't transmit files use scp command.

    test case:

    server(computer): iperf3 -s

    client(tda4): iperf3 -c 192.168.2.80

    There is no output on client side.

    i use wireshark to capture packages on server side,there are some prompts as follows:

  • Hi, 

    Thanks very much, the serdes0 sgmii1/sgmii2 both ok, the patch you gave me twice are different,the second one is ok

    Thanks for the update. 

    server(computer): iperf3 -s

    client(tda4): iperf3 -c 192.168.2.80

    There is no output on client side

    There is nothing related to this in driver. 

    Can you please use iperf and check once. Also make sure that port used will be open or not in client machine. 

    You can specify port number like 9000 using -p 9000.

    Best Regards, 

    Sudheer

  • Hi,

    I specified the test port to "-p 9000" and the result was the same.

    I think may be some different with the driver(like phy-cadence-sierra.c and phy-cadence-torrent.c ?), because i do the same test on sgmii1/sgmii2(serdes0), the test result are all passed,only sgmii8(serdes4) not ok.

  • Hi,Sudheer,

    I use this patch solved this issue, but i don't know why. Could you please check if this patch is safe?

    From 0badc8f20da335c699895cb92353e10f9f6dc109 Mon Sep 17 00:00:00 2001
    From: Tanmay Patil <t-patil@ti.com>
    Date: Mon, 24 Apr 2023 14:28:24 +0530
    Subject: [PATCH] net: ethernet: ti: cpsw_ale: Fix ale field set and get
    
    CPSW ALE has 75 bit ALE entries which is are stored in 3
    32 bit words. With Read/Write using cpsw_ale_get_field()/
    cpsw_ale_set_field(), the function assumes that the field
    will be strictly contained within one word. This is not
    the case and ALE field entries can span upto two words.
    
    This commit adds the support for reading/writing ALE
    fields which span two words.
    
    Signed-off-by: Tanmay Patil <t-patil@ti.com>
    ---
     drivers/net/ethernet/ti/cpsw_ale.c | 22 +++++++++++++++++-----
     1 file changed, 17 insertions(+), 5 deletions(-)
    
    diff --git a/drivers/net/ethernet/ti/cpsw_ale.c b/drivers/net/ethernet/ti/cpsw_ale.c
    index 6d60373d15e0..dc8d6f8e7dda 100644
    --- a/drivers/net/ethernet/ti/cpsw_ale.c
    +++ b/drivers/net/ethernet/ti/cpsw_ale.c
    @@ -106,23 +106,35 @@ struct cpsw_ale_dev_id {
     
     static inline int cpsw_ale_get_field(u32 *ale_entry, u32 start, u32 bits)
     {
    -	int idx;
    +	int idx, idx2;
    +	u32 hi_val = 0;
     
     	idx    = start / 32;
    +	idx2 = (start + bits - 1) / 32;
    +	if (idx != idx2) {
    +		idx2 = 2 - idx2; /* flip */
    +		hi_val = ale_entry[idx2] << ((idx2 * 32) - start);
    +	}
     	start -= idx * 32;
     	idx    = 2 - idx; /* flip */
    -	return (ale_entry[idx] >> start) & BITMASK(bits);
    +	return (hi_val + (ale_entry[idx] >> start)) & BITMASK(bits);
     }
     
     static inline void cpsw_ale_set_field(u32 *ale_entry, u32 start, u32 bits,
     				      u32 value)
     {
    -	int idx;
    +	int idx, idx2;
     
     	value &= BITMASK(bits);
    -	idx    = start / 32;
    +	idx = start / 32;
    +	idx2 = (start + bits - 1) / 32;
    +	if (idx != idx2) {
    +		idx2 = 2 - idx2; /* flip */
    +		ale_entry[idx2] &= ~(BITMASK(bits + start - (idx2 * 32)));
    +		ale_entry[idx2] |= (value >> ((idx2 * 32) - start));
    +	}
     	start -= idx * 32;
    -	idx    = 2 - idx; /* flip */
    +	idx = 2 - idx; /* flip */
     	ale_entry[idx] &= ~(BITMASK(bits) << start);
     	ale_entry[idx] |=  (value << start);
     }
    -- 
    2.25.1
    

  • Hi,

    I use this patch solved this issue, but i don't know why. Could you please check if this patch is safe?

    This is valid change needed in drivers while enabling 8th port.

    If above patch is not there Port-8 may not be part of VLAN mask, by default VLAN-0 enabled in Linux Ethernet Driver.
    May be you can observe packets Drop at Port-8 statistics due to ALE.

    Best Regards,
    Sudheer