XFI connect to switch, and report error when init

we use XFI connect to switch, config as follow:

    ethernet@6810000 {
            status = "okay";
            nvidia,mac-addr-idx = <0>;
            nvidia,max-platform-mtu = <16383>;
            /* 0=enable, 1=disable */
            nvidia,pause_frames = <0>;
            phy-mode = "5gbase-r";
             /* 1:10G, 0:5G */
            nvidia,uphy-gbe-mode  = <0>;
            /* 0:XFI 10G, 1:XFI 5G, 2:USXGMII 10G, 3:USXGMII 5G */
            nvidia,phy-iface-mode = <1>;
            nvidia,phy-reset-gpio = <&tegra_main_gpio TEGRA234_MAIN_GPIO(Y, 1) 0>;

            fixed-link{
                    speed = <5000>;
                    full-duplex;
            };

}
and driver report error when boot up:

[ 1448.561594] [xpcs_lane_bring_up][436][type:0x4][loga-0x0] Failed to get PCS block lock
[ 1448.569758] [xpcs_init][472][type:0x4][loga-0x0] TX/RX lane bring-up failed
[ 1448.576939] [mgbe_set_speed][4520][type:0x4][loga-0x0] xpcs_init failed
[ 1450.641711] [xpcs_lane_bring_up][436][type:0x4][loga-0x0] Failed to get PCS block lock
[ 1450.649883] [xpcs_init][472][type:0x4][loga-0x0] TX/RX lane bring-up failed

could you provide any suggestion?

please follow the document and only gives the necessary info to DT.

https://docs.nvidia.com/jetson/archives/r35.4.1/DeveloperGuide/text/HR/JetsonModuleAdaptationAndBringUp/JetsonAgxOrinSeries.html?highlight=mgbe#for-switch

I copy the config following the guide,but still report error.

ethernet@6810000 {
status = “okay”;
/* 0=enable, 1=disable /
/
1:10G, 0:5G /
nvidia,uphy-gbe-mode = <0>;
/
0:XFI 10G, 1:XFI 5G, 2:USXGMII 10G, 3:USXGMII 5G */
nvidia,phy-iface-mode = <1>;
nvidia,max-platform-mtu = <16383>;

            fixed-link{
                    speed = <5000>;
                    full-duplex;
            };
    };

confirm one thing: all these are modified in kernel device-tree?

please share full dmesg.

confirm one thing: all these are modified in kernel device-tree?

Don’t know what is the point of this question. Please elaborate.

I mean do I just need to modify the kernel device-tree, not dts files in bootloader?
attachment is dmsg and dts :
dmesg.txt (93.9 KB)
dtb.txt (515.9 KB)

kernel dts shall be sufficient.

Please also make sure hardware connection and switch firmware is correct.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.