连接 2 条 LAN 电缆,1 条 PCI 总线,反之亦然

连接 2 条 LAN 电缆,1 条 PCI 总线,反之亦然

当我的电脑连接 2 根 LAN 电缆时,仅注册一个接口。

03:00.0 和 04:00.0

$ dmesg | grep -P '0(3|4):00.0'
[    0.180140] pci 0000:04:00.0: [11ab:4362] type 00 class 0x020000
[    0.180181] pci 0000:04:00.0: reg 0x10: [mem 0xfa8fc000-0xfa8fffff 64bit]
[    0.180193] pci 0000:04:00.0: reg 0x18: [io  0xb800-0xb8ff]
[    0.180233] pci 0000:04:00.0: reg 0x30: [mem 0xfa8c0000-0xfa8dffff pref]
[    0.180277] pci 0000:04:00.0: supports D1 D2
[    0.180279] pci 0000:04:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[    0.180337] pci 0000:04:00.0: disabling ASPM on pre-1.1 PCIe device.  You can enable it with 'pcie_aspm=force'
[    2.077454] sky2 0000:04:00.0: Yukon-2 EC chip revision 2
[    2.080310] sky2 0000:04:00.0 eth0: addr 00:00:00:00:66:b6
[    2.147949] sky2 0000:04:00.0 enp4s0: renamed from eth0
[   18.815400] sky2 0000:04:00.0 enp4s0: enabling interface
[   21.829377] sky2 0000:04:00.0 enp4s0: Link is up at 1000 Mbps, full duplex, flow control both

当我用一根电缆启动服务器时,两个接口都会被发现,并且可以通过插入第二根电缆来使用。

$ dmesg | grep -P '0(3|4):00.0'
[    0.180140] pci 0000:04:00.0: [11ab:4362] type 00 class 0x020000
[    0.180182] pci 0000:04:00.0: reg 0x10: [mem 0xfa8fc000-0xfa8fffff 64bit]
[    0.180193] pci 0000:04:00.0: reg 0x18: [io  0xb800-0xb8ff]
[    0.180233] pci 0000:04:00.0: reg 0x30: [mem 0xfa8c0000-0xfa8dffff pref]
[    0.180277] pci 0000:04:00.0: supports D1 D2
[    0.180280] pci 0000:04:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[    0.180338] pci 0000:04:00.0: disabling ASPM on pre-1.1 PCIe device.  You can enable it with 'pcie_aspm=force'
[    0.180424] pci 0000:03:00.0: [11ab:4362] type 00 class 0x020000
[    0.180465] pci 0000:03:00.0: reg 0x10: [mem 0xfa7fc000-0xfa7fffff 64bit]
[    0.180476] pci 0000:03:00.0: reg 0x18: [io  0xa800-0xa8ff]
[    0.180516] pci 0000:03:00.0: reg 0x30: [mem 0xfa7c0000-0xfa7dffff pref]
[    0.180559] pci 0000:03:00.0: supports D1 D2
[    0.180562] pci 0000:03:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[    0.180620] pci 0000:03:00.0: disabling ASPM on pre-1.1 PCIe device.  You can enable it with 'pcie_aspm=force'
[    2.062437] sky2 0000:04:00.0: Yukon-2 EC chip revision 2
[    2.064723] sky2 0000:04:00.0 eth0: addr 00:00:00:00:66:b6
[    2.068332] sky2 0000:03:00.0: Yukon-2 EC chip revision 2
[    2.070348] sky2 0000:03:00.0 eth1: addr 00:00:00:00:62:84
[    2.140054] sky2 0000:04:00.0 enp4s0: renamed from eth0
[    2.256554] sky2 0000:03:00.0 enp3s0: renamed from eth1
[   19.799013] sky2 0000:04:00.0 enp4s0: enabling interface
[   19.801113] sky2 0000:03:00.0 enp3s0: enabling interface
[   22.727625] sky2 0000:04:00.0 enp4s0: Link is up at 1000 Mbps, full duplex, flow control both
[  412.644094] sky2 0000:03:00.0 enp3s0: Link is up at 1000 Mbps, full duplex, flow control both

我可以采取哪些步骤来进一步调试?

Extra info:
Motherboard: Asus P5W
Chipset: marvell Yukon 88E8053 
Drivers used(auto): sky2

$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.5 LTS"
Kernel: 4.4.0-138-generic

编辑1:我比较了两个 dmesg 日志,有一些有趣的事情:

当插入 1 根电缆时:

Base memory trampoline at [        (ptrval)] 99000 size 24576
BRK [0x1a3d3f000, 0x1a3d3ffff] PGTABLE
BRK [0x1a3d40000, 0x1a3d40fff] PGTABLE
BRK [0x1a3d41000, 0x1a3d41fff] PGTABLE
BRK [0x1a3d42000, 0x1a3d42fff] PGTABLE
BRK [0x1a3d43000, 0x1a3d43fff] PGTABLE
BRK [0x1a3d44000, 0x1a3d44fff] PGTABLE
BRK [0x1a3d45000, 0x1a3d45fff] PGTABLE
BRK [0x1a3d46000, 0x1a3d46fff] PGTABLE
BRK [0x1a3d47000, 0x1a3d47fff] PGTABLE
BRK [0x1a3d48000, 0x1a3d48fff] PGTABLE

但当插入 2 根电缆时,这些线就会减少:

Base memory trampoline at [        (ptrval)] 99000 size 24576
BRK [0x0bd3f000, 0x0bd3ffff] PGTABLE
BRK [0x0bd40000, 0x0bd40fff] PGTABLE
BRK [0x0bd41000, 0x0bd41fff] PGTABLE
BRK [0x0bd42000, 0x0bd42fff] PGTABLE
BRK [0x0bd43000, 0x0bd43fff] PGTABLE
BRK [0x0bd44000, 0x0bd44fff] PGTABLE
BRK [0x0bd45000, 0x0bd45fff] PGTABLE

之后,唯一的区别发生在初始化 PCI 总线时:

pci 0000:03:00.0: [11ab:4362] type 00 class 0x020000
pci 0000:03:00.0: reg 0x10: [mem 0xfa7fc000-0xfa7fffff 64bit]
pci 0000:03:00.0: reg 0x18: [io  0xa800-0xa8ff]
pci 0000:03:00.0: reg 0x30: [mem 0xfa7c0000-0xfa7dffff pref]
pci 0000:03:00.0: supports D1 D2
pci 0000:03:00.0: PME# supported from D0 D1 D2 D3hot D3cold
pci 0000:03:00.0: disabling ASPM on pre-1.1 PCIe device.  You can enable it with 'pcie_aspm=force'
pci 0000:00:1c.4: PCI bridge to [bus 03]

其余部分实际上是相同的。

我越深入地研究这个问题,就越认为这是一个硬件问题。或者也许是 BIOS 中的一个我不知道的选项,并且与 LAN 功能没有直接关联。然而,当与一根电缆一起使用时,这两个端口确实可以正常运行,或者在启动后插入一根额外的电缆时,这两个端口可以正常运行。

编辑2: https://www.neoseeker.com/Articles/Hardware/Reviews/asus_p5wdh/3.html

我已添加带有 BIOS 屏幕截图的外部链接。我尝试阅读所有内容,但可以找到有关 LAN 的任何内容,除了:

Onboard PCIE GbE LAN_1   **ENABLED**/DISABLED
Onboard PCIE GbE LAN_2   **ENABLED**/DISABLED
  LAN Option ROM         ENABLED/**DISABLED**
POST Check LAN Cable     **ENABLED**/DISABLED

我已经使用了这些设置但没有结果。

相关内容