Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Dec 2008 00:50:07 +0000
From:      Andrew <andrewwtulloch@gmail.com>
To:        pyunyh@gmail.com
Cc:        freebsd-net@freebsd.org
Subject:   Re: re0: Unknown H/W revision: 0x28000000 device_attach: re0 attach returned 6
Message-ID:  <54854a7a0812011650i345884f5t257c066604d42e65@mail.gmail.com>
In-Reply-To: <20081201043218.GB1082@cdnetworks.co.kr>
References:  <54854a7a0811291918s7affc753k998607f2529e7c2e@mail.gmail.com> <20081201043218.GB1082@cdnetworks.co.kr>

next in thread | previous in thread | raw e-mail | index | archive | help
------=_Part_78654_23757889.1228179007280
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

2008/12/1 Pyun YongHyeon <pyunyh@gmail.com>:
> On Sun, Nov 30, 2008 at 03:18:41AM +0000, Andrew Tulloch wrote:
>  > I've just installed from the FreeBSD 7.1-BETA1 iso and get the
>  > following when the re driver attempts to attach to the two onboard
>  > NICs found on a Gigabyte GA-EX58-UD5 motherboard:
>  >
>  > re0: <RealTek 8168/8168B/8168C/8168CP/8111B/8111C/8111CP PCIe Gigabit
>  > Ethernet> port 0x9e00-0x9eff mem
>  > 0xfd3ff000-0xfd3fffff,0xfd3f8000-0xfd3fbfff irq 16 at device 0.0 on
>  > pci8
>  > re0: Chip rev. 0x28000000
>  > re0: MAC rev. 0x00100000
>  > re0: Unknown H/W revision: 0x28000000
>  > device_attach: re0 attach returned 6
>  > pcib9: <ACPI PCI-PCI bridge> irq 17 at device 28.5 on pci0
>  > pci9: <ACPI PCI bus> on pcib9
>  > re1: <RealTek 8168/8168B/8168C/8168CP/8111B/8111C/8111CP PCIe Gigabit
>  > Ethernet> port 0x8e00-0x8eff mem
>  > 0xfd1ff000-0xfd1fffff,0xfd1f8000-0xfd1fbfff irq 17 at device 0.0 on
>  > pci9
>  > re1: Chip rev. 0x28000000
>  > re1: MAC rev. 0x00100000
>  > re1: Unknown H/W revision: 0x28000000
>  > device_attach: re1 attach returned 6
>  >
>  > pciconf -lvc extract:
>  > re0@pci0:8:0:0:      class=0x020000 card=0xe0001458 chip=0x816810ec rev=0x03 hdr=0x00
>  >     vendor     = 'Realtek Semiconductor'
>  >     device     = 'RTL8168/8111 PCI-E Gigabit Ethernet NIC'
>  >     class      = network
>  >     subclass   = ethernet
>  >     cap 01[40] = powerspec 3  supports D0 D1 D2 D3  current D0
>  >     cap 05[50] = MSI supports 1 message, 64 bit
>  >     cap 10[70] = PCI-Express 2 endpoint IRQ 0
>  >     cap 11[ac] = MSI-X supports 4 messages in map 0x20
>  >     cap 03[cc] = VPD
>  > re1@pci0:9:0:0:      class=0x020000 card=0xe0001458 chip=0x816810ec rev=0x03 hdr=0x00
>  >     vendor     = 'Realtek Semiconductor'
>  >     device     = 'RTL8168/8111 PCI-E Gigabit Ethernet NIC'
>  >     class      = network
>  >     subclass   = ethernet
>  >     cap 01[40] = powerspec 3  supports D0 D1 D2 D3  current D0
>  >     cap 05[50] = MSI supports 1 message, 64 bit
>  >     cap 10[70] = PCI-Express 2 endpoint IRQ 0
>  >     cap 11[ac] = MSI-X supports 4 messages in map 0x20
>  >     cap 03[cc] = VPD
>  >
>  >
>  > Is there any simple patch I can apply to get the driver to attach,
>  > assuming it should work?
>  >
>
> This controller seems to support MSI-X with 4 messages.
> Unfortunately previous PCIe controllers from RealTek were notorious
> for MSI issues so it's hard to know this revision really works with
> MSI-X. I guess it was added to support RSS(receive-side scaling of
> MS NDIS 6.0).
> As sephe said if the controller configuration is the same as 8168C
> family, the attached patch would make re(4) work as expected.
>
> --
> Regards,
> Pyun YongHyeon
>

Pyun,
I applied the patch, but it didn't attach initially, I added an extra
entry to re_hwrevs as that seemed to be what was missing and it
attached and seems to function (as far as a quick ping test and make
update). Changes I made to if_re.c attached. If you have anything to
try for MSI-X I can probably test those.

Thanks,
Andrew

------=_Part_78654_23757889.1228179007280
Content-Type: application/octet-stream; name=re.patch
Content-Transfer-Encoding: base64
X-Attachment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IAljYXNlIFJMX0hXUkVWXzgxNjhD
OgogCWNhc2UgUkxfSFdSRVZfODE2OENfU1BJTjI6CiAJY2FzZSBSTF9IV1JFVl84MTY4Q1A6CisJ
Y2FzZSBSTF9IV1JFVl84MTY4RDoKIAkJc2MtPnJsX2ZsYWdzIHw9IFJMX0ZMQUdfSU5WTUFSIHwg
UkxfRkxBR19QSFlXQUtFIHwKIAkJICAgIFJMX0ZMQUdfUEFSIHwgUkxfRkxBR19ERVNDVjIgfCBS
TF9GTEFHX01BQ1NUQVQ7CiAJCS8qCg==
------=_Part_78654_23757889.1228179007280--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?54854a7a0812011650i345884f5t257c066604d42e65>