Hi:
1: For xavier nx In our custom board, NIC extended from PCIE1, Schematic diagram is as follows

2: RTL8111G driver is NX primary driver. After open C4 Controller and commnet nvidia,enable-power-down ,
lspci -vvv
0004:00:00.0 PCI bridge: NVIDIA Corporation Device 1ad1 (rev a1) (prog-if 00 [Normal decode])
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- SERR- <PERR- INTx-
Latency: 0
Interrupt: pin A routed to IRQ 33
Bus: primary=00, secondary=01, subordinate=ff, sec-latency=0
I/O behind bridge: 0000f000-00000fff
Memory behind bridge: fff00000-000fffff
Prefetchable memory behind bridge: 00000000fff00000-00000000000fffff
Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort+ <SERR- Reset- FastB2B-
PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
Capabilities:
Kernel driver in use: pcieport
0004:01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0c)
Subsystem: Realtek Semiconductor Co., Ltd. RTL8111/8168 PCI Express Gigabit Ethernet controller
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 64 bytes
Interrupt: pin A routed to IRQ 555
Region 0: I/O ports at 1000 [size=256]
Region 2: Memory at 1740000000 (64-bit, non-prefetchable) [size=4K]
Region 4: Memory at 1400000000 (64-bit, prefetchable) [size=16K]
Capabilities:
Kernel driver in use: r8168
0005:00:00.0 PCI bridge: NVIDIA Corporation Device 1ad0 (rev a1) (prog-if 00 [Normal decode])
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- SERR- <PERR- INTx-
Latency: 0
Interrupt: pin A routed to IRQ 35
Bus: primary=00, secondary=01, subordinate=ff, sec-latency=0
I/O behind bridge: 0000f000-00000fff
Memory behind bridge: fff00000-000fffff
Prefetchable memory behind bridge: 00000000fff00000-00000000000fffff
Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- <SERR- Reset- FastB2B-
PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
Capabilities:
Kernel driver in use: pcieport
3:But eth1 cann`t get ip address. Analyze dmesg, no error or warning message. IRQ is unique, and even if close aspm, the problem is not getting better
dmesg
[ 94.934121] r8168 0004:01:00.0: enabling device (0000 → 0003)
[ 94.934247] r8168 Gigabit Ethernet driver 8.045.08-NAPI loaded
[ 94.934527] unknown chip version (7c800000)
[ 94.976649] r8168 0004:01:00.0 (unnamed net_device) (uninitialized): Invalid ethernet address ff:ff:ff:ff:ff:ff, trying device tree node
[ 94.976759] r8168 0004:01:00.0 (unnamed net_device) (uninitialized): bad mac address at /chosen/nvidia,ethernet-mac: missing.
[ 94.977027] r8168 0004:01:00.0 (unnamed net_device) (uninitialized): Assigning random ethernet address 7e:52:e9:a0:cc:0d
[ 94.979196] r8168: This product is covered by one or more of the following patents: US6,570,884, US6,115,776, and US6,327,625.
[ 94.979240] r8168 Copyright (C) 2017 Realtek NIC software team nicfae@realtek.com
This program comes with ABSOLUTELY NO WARRANTY; for details, please see http://www.gnu.org/licenses/.
This is free software, and you are welcome to redistribute it under certain conditions; see http://www.gnu.org/licenses/.
[ 95.038345] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[ 95.040563] eth1: 0xffffff800d30d000, aa:97:a0:b6:ae:97, IRQ 555
[ 97.962651] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[ 98.977017] r8168: eth1: link up
[ 98.977096] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
ethtool eth1
Settings for eth1:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised pause frame use: Symmetric Receive-only
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Speed: 1000Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
MDI-X: Unknown
Cannot get wake-on-lan settings: Operation not permitted
Current message level: 0x00000033 (51)
drv probe ifdown ifup
Link detected: yes
4: else, we find a stange phenomenon, RTL8111 have two interface : wired connection1 and wired connection2 as follow
5.1: We have update RTL8111G driver, but seem that driver is normally from dmesg. and use static IP without any help.
Why eth1 cann`t get ip address? How to fix this problem? Thanks very much.

