From nobody@FreeBSD.org  Fri May  6 11:25:56 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 3DC08106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  6 May 2011 11:25:56 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 2BDF78FC0A
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  6 May 2011 11:25:56 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p46BPt7O052881
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 6 May 2011 11:25:55 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p46BPt7T052880;
	Fri, 6 May 2011 11:25:55 GMT
	(envelope-from nobody)
Message-Id: <201105061125.p46BPt7T052880@red.freebsd.org>
Date: Fri, 6 May 2011 11:25:55 GMT
From: Anton Legchenkov <antonav@mail.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Driver update request for RTL 8105EL
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         156845
>Category:       kern
>Synopsis:       [re] Driver update request for RTL 8105EL
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    yongari
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 06 11:30:07 UTC 2011
>Closed-Date:    Wed May 11 17:00:24 UTC 2011
>Last-Modified:  Wed May 11 17:00:24 UTC 2011
>Originator:     Anton Legchenkov
>Release:        FreeBSD 8.2-RELEASE
>Organization:
GEK
>Environment:
FreeBSD Anton 8.2-RELEASE FreeBSD 8.2-RELEASE #2: Thu May  5 16:58:57 EEST 2011     Anton@Anton:/usr/src/sys/amd64/compile/Anton  amd64
>Description:
Motherboard Asrock 785GM-S3
Windows info:
PCI\VEN_10EC&DEV_8136&SUBSYS_81361849&REV_05
PCI\VEN_10EC&DEV_8136&SUBSYS_81361849
PCI\VEN_10EC&DEV_8136&CC_020000
PCI\VEN_10EC&DEV_8136&CC_0200

oem4.inf:Realtek.NTx86:RTL8105.ndi:7.23.623.2010:pci\ven_10ec&dev_8136&rev_05

FreeBSD info with native driver:
re0: <RealTek 8101E/8102E/8102EL/8103E PCIe 10/100baseTX> port 0xd800-0xd8ff mem 0xfbfff000-0xfbffffff,0xfbff8000-0xfbffbfff irq 17 at device 0.0 on pci2
re0: Using 1 MSI messages
re0: Chip rev. 0x40800000
re0: MAC rev. 0x00000000
re0: Unknown H/W revision: 0x40800000
device_attach: re0 attach returned 6

FreeBSD info with Realtek driver installed:
re0: <Realtek PCIe FE Family Controller> port 0xe800-0xe8ff mem 0xfbfff000-0xfbffffff,0xfbff8000-0xfbffbfff irq 17 at device 0.0 on pci2
re0: version:1.80
re0: Ethernet address: 00:25:22:89:df:3e

This product is covered by one or more of the following patents: US5,307,459, US5,434,872, US5,732,094, US6,570,884, US6,115,776, and US6,327,625.
40a00000        re0: unknown device
device_attach: re0 attach returned 6
>How-To-Repeat:
This is permanent problem.
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-net 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Fri May 6 14:39:24 UTC 2011 
Responsible-Changed-Why:  
reclassify. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=156845 
State-Changed-From-To: open->feedback 
State-Changed-By: yongari 
State-Changed-When: Fri May 6 19:15:50 UTC 2011 
State-Changed-Why:  
RTL8105E support is already in HEAD and merged to both stable/8 and 
stable/7. Please update your source tree to stable/8 or use 
re(4)/rl(4) driver in stable/8. 


Responsible-Changed-From-To: freebsd-net->yongari 
Responsible-Changed-By: yongari 
Responsible-Changed-When: Fri May 6 19:15:50 UTC 2011 
Responsible-Changed-Why:  
Track. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=156845 

From: Anton Legchenkov <antonav@mail.ru>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/156845: [re] Driver update request for RTL 8105EL
Date: Tue, 10 May 2011 20:38:03 +0300

 Hello Bug-followup,
 
   My network card is RTL8105EL. Not RTL8105E.
   I  tried to download new sources today and compiling the driver, but resul is the same.
 
 re0: <RealTek 8101E/8102E/8102EL/8103E PCIe 10/100baseTX> port 0xe800-0xe8ff mem 0xfbfff000-0xfbffffff,0xfbff8000-0xfbffbfff irq 17 at device 0.0 on pci2
 re0: Using 1 MSI messages
 re0: Chip rev. 0x40800000
 re0: MAC rev. 0x00000000
 re0: Unknown H/W revision: 0x40800000
 device_attach: re0 attach returned 6
 
 There is Ubuntu kernel output
 [    3.261895] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
 [    3.261916] r8169 0000:02:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
 [    3.261947] r8169 0000:02:00.0: setting latency timer to 64
 [    3.261951] r8169 0000:02:00.0: (unregistered net_device): unknown MAC, using family default
 [    3.261992] r8169 0000:02:00.0: irq 42 for MSI/MSI-X
 [    3.262319] r8169 0000:02:00.0: eth0: RTL8101e at 0xffffc9000031c000, 00:25:22:89:df:3e, XID 00a00000 IRQ 42
 
   Maybe i'm doing something wrong, but i don't understand what.
 

From: YongHyeon PYUN <pyunyh@gmail.com>
To: Anton Legchenkov <antonav@mail.ru>
Cc: yongari@freebsd.org, bug-followup@FreeBSD.org
Subject: Re: kern/156845: [re] Driver update request for RTL 8105EL
Date: Tue, 10 May 2011 11:15:55 -0700

 On Tue, May 10, 2011 at 06:00:23PM +0000, Anton Legchenkov wrote:
 > The following reply was made to PR kern/156845; it has been noted by GNATS.
 > 
 > From: Anton Legchenkov <antonav@mail.ru>
 > To: bug-followup@FreeBSD.org
 > Cc:  
 > Subject: Re: kern/156845: [re] Driver update request for RTL 8105EL
 > Date: Tue, 10 May 2011 20:38:03 +0300
 > 
 >  Hello Bug-followup,
 >  
 >    My network card is RTL8105EL. Not RTL8105E.
 
 Minor revision could be different but core MAC is RTL8105E.
 
 >    I  tried to download new sources today and compiling the driver, but resul is the same.
 >  
 
 This makes no sense unless you downloaded re(4) source from
 stable/8. Your pasted output also indicates you're still using old
 re(4) driver so it's normal to see ENXIO in driver attachment.
 Since you're using 8.2-RELEASE, try download the following files
 and copy if_re.c to /usr/src/sys/dev/re directory and copy
 if_rlreg.h to /usr/src/sys/pci directory and then rebuild kernel.
 re(4) should recognize your controller.
 http://people.freebsd.org/~yongari/re/8.2R/if_re.c
 http://people.freebsd.org/~yongari/re/8.2R/if_rlreg.h
 
 >  re0: <RealTek 8101E/8102E/8102EL/8103E PCIe 10/100baseTX> port 0xe800-0xe8ff mem 0xfbfff000-0xfbffffff,0xfbff8000-0xfbffbfff irq 17 at device 0.0 on pci2
 >  re0: Using 1 MSI messages
 >  re0: Chip rev. 0x40800000
 >  re0: MAC rev. 0x00000000
 >  re0: Unknown H/W revision: 0x40800000
 >  device_attach: re0 attach returned 6
 >  
 >  There is Ubuntu kernel output
 
 Linux output does not help here.
 
 >  [    3.261895] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
 >  [    3.261916] r8169 0000:02:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
 >  [    3.261947] r8169 0000:02:00.0: setting latency timer to 64
 >  [    3.261951] r8169 0000:02:00.0: (unregistered net_device): unknown MAC, using family default
 >  [    3.261992] r8169 0000:02:00.0: irq 42 for MSI/MSI-X
 >  [    3.262319] r8169 0000:02:00.0: eth0: RTL8101e at 0xffffc9000031c000, 00:25:22:89:df:3e, XID 00a00000 IRQ 42
 >  
 >    Maybe i'm doing something wrong, but i don't understand what.
 >  
State-Changed-From-To: feedback->closed 
State-Changed-By: yongari 
State-Changed-When: Wed May 11 16:59:03 UTC 2011 
State-Changed-Why:  
Support for RTL8105 was already implemented in both stable/8 and 
stable/7. 

Thanks for confirmation. Actuallt the ukphy(4) may not be the right 
PHY driver so you may need to apply additional patch made in 
r217910. But I guess it wouldn't be big problem for most cases. 
Thanks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=156845 
>Unformatted:
