PCIe x1 Ethernet card is not identified on PCIe x4 slot

Dear,

According to

  • Jetson TX1 OEM Product Design Guide
  • PLATFORM ADAPTATION AND BRING-UP GUIDE, “R28 Required Device Tree Changes” - R28 Example 2

want use PCIe 1x1, 1x4 to 1x1, 1x1.

When DTS is configured PCIe x4, Ethernet Card is recognized.
But configured to PCIe x1, the card is not recognized.

DrivePackage is R28.1 and the Ethernet Card works pretty well at Windows.

Would you share sample DTS file to enable PCIe x1 ?

Thanks

nvdpx2,

Please share your boot up log and devicetree first (dmesg).

Hello WayneWWW,

I attach boot log as follow;

ubuntu@tegra-ubuntu:~/Desktop$ cat 1x1 | grep -e "pci"
[    0.267506] platform 1003000.pcie-controller: domain=ffffffc0fa254e18 allocat
es as[0]=ffffffc0fa14c4b8
[    0.487024] tegra21x-padctl-uphy 7009f000.pinctrl: uphy_lane = 4, set pcie_la
nes = 0x10
[    0.490415] Adding domain pcie-pd to PM domain mc-clk-pd
[    0.494957] tegra-pcie 1003000.pcie-controller: wrong configuration updated i
n DT, switching to default 4x1, 1x1 configuration
[    0.495039] tegra-pcie 1003000.pcie-controller: failed to get PHY: -517
[    0.495068] tegra-pcie 1003000.pcie-controller: failed to get PHYs: -517
[    3.683680] tegra21x-padctl-uphy 7009f000.pinctrl: uphy_lane = 4, set pcie_la
nes = 0x10
[    3.689737] tegra-pcie 1003000.pcie-controller: wrong configuration updated i
n DT, switching to default 4x1, 1x1 configuration
[    3.689971] tegra-pcie 1003000.pcie-controller: PCIE: Enable power rails
[    3.691064] tegra-pcie 1003000.pcie-controller: probing port 0, using 4 lanes
[    3.797097] tegra-pcie 1003000.pcie-controller: probing port 1, using 1 lanes
[    4.329910] tegra-pcie 1003000.pcie-controller: link 0 down, retrying
[    4.740756] tegra-pcie 1003000.pcie-controller: link 0 down, retrying
[    5.150466] tegra-pcie 1003000.pcie-controller: link 0 down, retrying
[    5.152516] tegra-pcie 1003000.pcie-controller: link 0 down, ignoring
[    5.557154] tegra-pcie 1003000.pcie-controller: link 1 down, retrying
[    6.110978] tegra-pcie 1003000.pcie-controller: link 1 down, retrying
[    6.523097] tegra-pcie 1003000.pcie-controller: link 1 down, retrying
[    6.534045] tegra-pcie 1003000.pcie-controller: link 1 down, ignoring
[    6.551556] tegra-pcie 1003000.pcie-controller: PCIE: no end points detected
[    6.576779] tegra-pcie 1003000.pcie-controller: PCIE: Disable power rails

Looks like the dt is not correct, could you share your device tree?

[    3.689737] tegra-pcie 1003000.pcie-controller: wrong configuration updated i
n DT, switching to default 4x1, 1x1 configuration

This thread may help. Could you try this:
https://devtalk.nvidia.com/default/topic/1025927

I post DTS file here, file ext was changed to TXT.

Thanks WayneWWW,
tegra210-jetson-cv-base-p2597-2180-a00.dts.txt (26 KB)

nvdpx2,

Please directly follow sample in adaptation guide or the thread I posted to you.

This is not correct to use <TEGRA_PADCTL_PCIE_LANE_X1> here, though I understand that it is more straightforward…

pcie {
			//sdw 180314 enter	
			//	 nvidia,lanes =	"uphy-lane-1", "uphy-lane-2",
			//			"uphy-lane-3", "uphy-lane-4";
				 nvidia,lanes =	"uphy-lane-4";
				 nvidia,function = "pcie";
				 nvidia,pcie-controller = <0>;
				 nvidia,pcie-lane-select =
					<TEGRA_PADCTL_PCIE_LANE_X1>;  ---> This is wrong
			//		<TEGRA_PADCTL_PCIE_LANE_X4>;  ---> Please still use this.			 		
			//sdw leave
			};
			pcie-m {
				nvidia,lanes = "uphy-lane-0";
				nvidia,function = "pcie";
				nvidia,pcie-controller = <1>;
				nvidia,pcie-lane-select =
					<TEGRA_PADCTL_PCIE_LANE_X1>;
			//sdw 180308 enter
			//	status = "disabled";
			};