我在c6678的pcie上接了一块pcie网卡,网卡驱动后但是不能收发数据,可以配置ip,可以ping通自己,用另外一台机器ping开发板时,始终收不到数据,执行ifconfig,看到RX TX一直是0,请赐教!
RIO: [keystone_rio_probe] keystone_rio_probe in platform rio.c
KeyStone RapidIO driver v1.1
RIO: [keystone_rio_setup_controller] size = 0, hostid = 101, ports = 0xf, init = 2, mode = 1
RIO: register sRIO controller for hostid 101
RIO: port 0 not ready
RIO: port 1 not ready
RIO: port 2 not ready
RIO: port 3 not ready
keystone-pcie: Invoking PCI BIOS …
*********************pcie.c keystone_pcie_setup******************
keystone-pcie: Setting up Host Controller…
@@@@@@@@@@@@X1 Pattern@@@@@@@@@@@@@@@
keystone-pcie: Starting PCI scan…
PCI: bus0: Fast back to back transfers disabled
pci 0000:01:00.0: disabling ASPM on pre-1.1 PCIe device. You can enable it with 'pcie_aspm=force'
PCI: bus1: Fast back to back transfers disabled
pci 0000:00:00.0: BAR 14: assigned [mem 0x60000000-0x600fffff]
pci 0000:00:00.0: BAR 13: assigned [io 0x70000000-0x70000fff]
pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x6001ffff]
pci 0000:01:00.0: BAR 0: set to [mem 0x60000000-0x6001ffff] (PCI address [0x60000000-0x6001ffff]
pci 0000:01:00.0: BAR 2: assigned [io 0x70000000-0x7000001f]
pci 0000:01:00.0: BAR 2: set to [io 0x70000000-0x7000001f] (PCI address [0x70000000-0x7000001f]
pci 0000:00:00.0: PCI bridge to [bus 01-01]
pci 0000:00:00.0: bridge window [io 0x70000000-0x70000fff]
pci 0000:00:00.0: bridge window [mem 0x60000000-0x600fffff]
pci 0000:00:00.0: bridge window [mem pref disabled]
PCI: enabling device 0000:00:00.0 (0000 -> 0003)
SSSSS __pci_set_master 11 3
SSSSS __pci_set_master 22 7
Switching to clocksource TSC64
NET: Registered protocol family 2
IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
TCP established hash table entries: 16384 (order: 5, 131072 bytes)
TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 16384 bind 16384)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
msgmni has been set to 1005
alg: No test for stdrng (krng)
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
SSSSS __pci_set_master 11 7
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x2540000 (irq = 276) is a 16550A
console [ttyS0] enabled
brd: module loaded
loop: module loaded
uclinux[mtd]: RAM probe address=0x804ca9c0 size=0xc8a95000
Creating 1 MTD partitions on "RAM":
0x000000000000-0x0000c8a95000 : "ROMfs"
Generic platform RAM MTD, (c) 2004 Simtec Electronics
No NAND device found.
spi_davinci spi_davinci.0: Controller at 0x20bf0000
spi_davinci spi_davinci.0: Operating in interrupt mode using IRQ 182
eth1: TI KeyStone NetCP Driver v1.4 on SGMII0
e1000e: Intel(R) PRO/1000 Network Driver – 1.0.2-k2
e1000e: Copyright (c) 1999 – 2009 Intel Corporation.
***************the value of vendor is : 8086********************
***************the value of device is : 109a********************
***************the value of driver_data is : 2********************
***********the value of ei->flags2 is :0********************
PCI: enabling device 0000:01:00.0 (0000 -> 0002)
SSSSS __pci_set_master 11 2
SSSSS __pci_set_master 22 6
e1000e 0000:01:00.0: Disabling ASPM L0s
0000:01:00.0: eth2: (PCI Express:2.5GB/s:Width x1) 00:08:60:00:3e:7a
0000:01:00.0: eth2: Intel(R) PRO/1000 Network Connection
0000:01:00.0: eth2: MAC: 2, PHY: 2, PBA No: 800fff-0ff
############__init ehci_hcd_ini_XTKJ############
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
usbcore: registered new interface driver usbtmc
pktgen 2.72: Packet Generator for packet performance testing.
TCP cubic registered
NET: Registered protocol family 17
SSSSS netcp_ndo_open 11
net eth0: initialized CPSW ALE revision 1.3
keystone-pcie: Invoking PCI BIOS …
*********************pcie.c keystone_pcie_setup******************
keystone-pcie: Setting up Host Controller…
@@@@@@@@@@@@X1 Pattern@@@@@@@@@@@@@@@
keystone-pcie: Starting PCI scan…
pci_bus 0000:00: scanning bus
pci 0000:00:00.0: found [104c:b005] class 000604 header type 01
pci 0000:00:00.0: calling quirk_resource_alignment+0x0/0x2f4
pci_bus 0000:00: fixups for bus
PCI: bus0: Fast back to back transfers disabled
pci 0000:00:00.0: scanning [bus 00-00] behind bridge, pass 0
pci 0000:00:00.0: bus configuration invalid, reconfiguring
pci 0000:00:00.0: scanning [bus 00-00] behind bridge, pass 1
pci_bus 0000:01: scanning bus
pci 0000:01:00.0: found [8086:109a] class 000200 header type 00
pci 0000:01:00.0: reg 10: [mem 0x00000000-0x0001ffff]
pci 0000:01:00.0: reg 18: [io 0x0000-0x001f]
pci 0000:01:00.0: calling quirk_resource_alignment+0x0/0x2f4
pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
pci 0000:01:00.0: PME# disabled
pci 0000:01:00.0: disabling ASPM on pre-1.1 PCIe device. You can enable it with 'pcie_aspm=force'
pci_bus 0000:01: fixups for bus
PCI: bus1: Fast back to back transfers disabled
pci_bus 0000:01: bus scan returning with max=01
pci_bus 0000:00: bus scan returning with max=01
pci 0000:00:00.0: fixup irq: got 178
pci 0000:01:00.0: fixup irq: got 178
pci 0000:00:00.0: BAR 14: assigned [mem 0x60000000-0x600fffff]
pci 0000:00:00.0: BAR 13: assigned [io 0x70000000-0x70000fff]
pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x6001ffff]
pci 0000:01:00.0: BAR 0: set to [mem 0x60000000-0x6001ffff] (PCI address [0x60000000-0x6001ffff]
pci 0000:01:00.0: BAR 2: assigned [io 0x70000000-0x7000001f]
pci 0000:01:00.0: BAR 2: set to [io 0x70000000-0x7000001f] (PCI address [0x70000000-0x7000001f]
pci 0000:00:00.0: PCI bridge to [bus 01-01]
pci 0000:00:00.0: bridge window [io 0x70000000-0x70000fff]
pci 0000:00:00.0: bridge window [mem 0x60000000-0x600fffff]
pci 0000:00:00.0: bridge window [mem pref disabled]
PCI: enabling device 0000:00:00.0 (0000 -> 0003)
SSSSS __pci_set_master 11 3
pci 0000:00:00.0: enabling bus mastering
SSSSS __pci_set_master 22 7
pci_bus 0000:00: resource 0 [mem 0x60000000-0x6fffffff]
pci_bus 0000:00: resource 1 [io 0x70000000-0x70003fff]
pci_bus 0000:01: resource 0 [io 0x70000000-0x70000fff]
pci_bus 0000:01: resource 1 [mem 0x60000000-0x600fffff]
Switching to clocksource TSC64
NET: Registered protocol family 2
IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
TCP established hash table entries: 16384 (order: 5, 131072 bytes)
TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 16384 bind 16384)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
pci 0000:00:00.0: calling quirk_limit_readrequest+0x0/0x24
pci 0000:00:00.0: calling quirk_cardbus_legacy+0x0/0x64
pci 0000:00:00.0: calling quirk_usb_early_handoff+0x0/0xa20
pci 0000:01:00.0: calling quirk_limit_readrequest+0x0/0x24
pci 0000:01:00.0: calling quirk_e100_interrupt+0x0/0x338
pci 0000:01:00.0: calling quirk_cardbus_legacy+0x0/0x64
pci 0000:01:00.0: calling quirk_usb_early_handoff+0x0/0xa20
PCI: CLS 128 bytes, default 128
不知道是不是PCIE配置问题?
Allen35065:
你的log里有两个网卡,你用的是哪个版本的内核,据我所知PCIE网卡没有测试过