tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Trouble with re driver



	Hello,

	I have a server with a lot of wm interfaces and one re.

	With last -10.0-RC1 kernel, this ethernet adapter is not configured and
dmesg contains :

ov 18 16:28:08 legendre /netbsd: [   1.0066881] pci5 at ppb4 bus 5
Nov 18 16:28:08 legendre /netbsd: [   1.0066881] pci5: i/o space, memory
space enabled, rd/line, wr/inv ok
Nov 18 16:28:08 legendre /netbsd: [   1.0066881] re0 at pci5 dev 0
function 0pci_mem_find: expected mem type 00000004, found 00000000
Nov 18 16:28:08 legendre /netbsd: [   1.0066881] autoconfiguration
error: : can't map registers

	Of course, adapter doesn't run as expected. This adapter is a Netgear
PCI device with a RTL8169S-32. NetBSD-10.0-Beta ran fine with this
adapter. I have just replaced whit adapter by another one with the same
chipset and it runs as expected :

Nov 18 19:53:32 legendre /netbsd: [   1.0019962] pci5 at ppb4 bus 5
Nov 18 19:53:32 legendre /netbsd: [   1.0019962] pci5: i/o space, memory
space enabled, rd/line, wr/inv ok
Nov 18 19:53:32 legendre /netbsd: [   1.0019962] re0 at pci5 dev 0
function 0: D-Link DGE-528T Gigabit Ethernet (rev. 0x10)
Nov 18 19:53:32 legendre /netbsd: [   1.0019962] re0: interrupting at
ioapic0 pin 19
Nov 18 19:53:32 legendre /netbsd: [   1.0019962] re0: RTL8169S (0x0400)
Nov 18 19:53:32 legendre /netbsd: [   1.0019962] re0: Ethernet address
00:13:46:3a:b3:0a
Nov 18 19:53:32 legendre /netbsd: [   1.0019962] re0: using 256 tx
descriptors
Nov 18 19:53:32 legendre /netbsd: [   1.0019962] rgephy0 at re0 phy 7:
RTL8211 1000BASE-T media interface
Nov 18 19:53:32 legendre /netbsd: [   1.0019962] rgephy0: 10baseT,
10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
Nov 18 19:53:32 legendre /netbsd: [   1.0019962] ppb5 at pci0 dev 28
function 4: Intel 9 Series PCIe (rev. 0xd0)

	If I restart this server with a -10.0-Beta kernel, faulty ethernet
adapter is autoconfigured without trouble.

	lspci -vvv returns on adapter that doesn't run:
05:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8169 PCI
Gigabit Ethernet Controller (rev 10)
    Subsystem: Netgear GA311
    Control: I/O- Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B- DisINTx-
    Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR- INTx-
    Latency: 0 (8000ns min, 16000ns max)
    Interrupt: pin A routed to IRQ 3
    Region 0: I/O ports at <unassigned> [disabled]
    Expansion ROM at fffe0000 [disabled]
    Capabilities: [dc] Power Management version 2
        Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=375mA
PME(D0-,D1+,D2+,D3hot+,D3cold+)
        Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-


	Same command on adapter that runs:

05:00.0 Ethernet controller: D-Link System Inc DGE-528T Gigabit Ethernet
Adapter (rev 10)
        Subsystem: D-Link System Inc DGE-528T PCI Gigabit Ethernet Adapter
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 32 (8000ns min, 16000ns max), Cache Line Size: 64 bytes
        Interrupt: pin A routed to IRQ 3
        Region 0: I/O ports at e000
        Region 1: Memory at f7e20000 (32-bit, non-prefetchable)
        Expansion ROM at f7e00000 [disabled]
        Capabilities: [dc] Power Management version 2
                Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=375mA
PME(D0-,D1+,D2+,D3hot+,D3cold+)
                Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-

	Maybe something is broken in recent changes in
src/sys/dev/pci/pci_resource.c, pcidevs_data.h or pcidevs.h.

	Best regards,

	JB

Attachment: signature.asc
Description: OpenPGP digital signature



Home | Main Index | Thread Index | Old Index