From nobody@FreeBSD.org  Fri Jul 22 15:24:02 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 749861065673
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 22 Jul 2011 15:24:02 +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 643B18FC08
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 22 Jul 2011 15:24:02 +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 p6MFO0If016084
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 22 Jul 2011 15:24:00 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p6MFO04e016075;
	Fri, 22 Jul 2011 15:24:00 GMT
	(envelope-from nobody)
Message-Id: <201107221524.p6MFO04e016075@red.freebsd.org>
Date: Fri, 22 Jul 2011 15:24:00 GMT
From: Rob Viau <rob@ipninja.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: New D-Link DGE-530T revision not supported by sk(4)
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         159116
>Category:       kern
>Synopsis:       [sk] New D-Link DGE-530T revision not supported by sk(4)
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    yongari
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 22 15:30:10 UTC 2011
>Closed-Date:    Mon Aug 15 17:44:05 UTC 2011
>Last-Modified:  Mon Aug 15 17:44:05 UTC 2011
>Originator:     Rob Viau
>Release:        8.2-RELEASE
>Organization:
>Environment:
FreeBSD storm.ipninja.net 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Fri Feb 18 02:24:46 UTC 2011     root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
D-Link DGE-530T (which is on the HCL) is visible in pciconf but not being recognized by sk(4).  Possibly a new hardware revision?  Here is the `pciconf -lv` output -

none2@pci0:3:1:0:       class=0x020000 card=0x43021186 chip=0x43021186 rev=0x10 hdr=0x00
    vendor     = 'D-Link System Inc'
    class      = network
    subclass   = ethernet
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:

From: "Rob V" <rob@ipninja.net>
To: <bug-followup@FreeBSD.org>
Cc:  
Subject: Re: kern/159116: New D-Link DGE-530T revision not supported by sk(4)
Date: Fri, 22 Jul 2011 11:44:50 -0400

 This is a multi-part message in MIME format.
 
 ------=_NextPart_000_0039_01CC4864.C8B42380
 Content-Type: text/plain;
 	charset="us-ascii"
 Content-Transfer-Encoding: 7bit
 
 Confirmed that it is a new hardware version.  sk(4) appears to support A1
 and B1, the box for this card says "H/W Ver.:C1".
 
 ------=_NextPart_000_0039_01CC4864.C8B42380--
 
Responsible-Changed-From-To: freebsd-bugs->freebsd-net 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Fri Jul 22 20:24:10 UTC 2011 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=159116 
State-Changed-From-To: open->feedback 
State-Changed-By: yongari 
State-Changed-When: Fri Jul 22 20:46:35 UTC 2011 
State-Changed-Why:  
Please apply patch at the following URL and rebuild your kernel. 
http://people.freebsd.org/~yongari/sk/sk.dge530.diff 
Let me know it goes on your box. 


Responsible-Changed-From-To: freebsd-net->yongari 
Responsible-Changed-By: yongari 
Responsible-Changed-When: Fri Jul 22 20:46:35 UTC 2011 
Responsible-Changed-Why:  
Grab. 

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

From: "Rob V" <rob@ipninja.net>
To: <bug-followup@FreeBSD.org>, <rob@ipninja.net>
Cc:  
Subject: Re: kern/159116: [sk] New D-Link DGE-530T revision not supported by sk(4)
Date: Fri, 22 Jul 2011 17:14:22 -0400

 Applied the patch, rebuilt and installed GENERIC, getting an error during
 boot -
 
 
 dmesg -
 
 skc0: <D-Link DGE-530T Gigabit Ethernet> port 0xe800-0xe8ff mem
 0xfebffc00-0xfebffcff irq 17 at device 1.0 on pci3
 skc0: couldn't allocate I/O resources
 device_attach: skc0 attach returned 6
 
 
 ifconfig -l -
 
 rob@storm:~$ ifconfig -l
 re0 usbus0 usbus1 usbus2 usbus3 usbus4 lo0
 rob@storm:~$
 
 
 pciconf -
 
 skc0@pci0:3:1:0:        class=0x020000 card=0x43021186 chip=0x43021186
 rev=0x10 hdr=0x00
     vendor     = 'D-Link System Inc'
     class      = network
     subclass   = ethernet
 

From: YongHyeon PYUN <pyunyh@gmail.com>
To: Rob V <rob@ipninja.net>
Cc: yongari@freebsd.org, bug-followup@FreeBSD.org
Subject: Re: kern/159116: [sk] New D-Link DGE-530T revision not supported by sk(4)
Date: Fri, 22 Jul 2011 14:41:50 -0700

 On Fri, Jul 22, 2011 at 09:20:16PM +0000, Rob V wrote:
 > The following reply was made to PR kern/159116; it has been noted by GNATS.
 > 
 > From: "Rob V" <rob@ipninja.net>
 > To: <bug-followup@FreeBSD.org>, <rob@ipninja.net>
 > Cc:  
 > Subject: Re: kern/159116: [sk] New D-Link DGE-530T revision not supported by sk(4)
 > Date: Fri, 22 Jul 2011 17:14:22 -0400
 > 
 >  Applied the patch, rebuilt and installed GENERIC, getting an error during
 >  boot -
 >  
 >  
 >  dmesg -
 >  
 >  skc0: <D-Link DGE-530T Gigabit Ethernet> port 0xe800-0xe8ff mem
 >  0xfebffc00-0xfebffcff irq 17 at device 1.0 on pci3
 >  skc0: couldn't allocate I/O resources
 >  device_attach: skc0 attach returned 6
 >  
 
 Hmm, this looks strange. Could you show me full dmesg and "pciconf -lcbv" output?
 
 >  
 >  ifconfig -l -
 >  
 >  rob@storm:~$ ifconfig -l
 >  re0 usbus0 usbus1 usbus2 usbus3 usbus4 lo0
 >  rob@storm:~$
 >  
 >  
 >  pciconf -
 >  
 >  skc0@pci0:3:1:0:        class=0x020000 card=0x43021186 chip=0x43021186
 >  rev=0x10 hdr=0x00
 >      vendor     = 'D-Link System Inc'
 >      class      = network
 >      subclass   = ethernet
 >  

From: "Rob V" <rob@ipninja.net>
To: <pyunyh@gmail.com>
Cc: <yongari@freebsd.org>, <bug-followup@freebsd.org>
Subject: RE: kern/159116: [sk] New D-Link DGE-530T revision not supported by sk(4)
Date: Fri, 22 Jul 2011 18:39:25 -0400

 Full dmesg -
 
 Copyright (c) 1992-2011 The FreeBSD Project.
 Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
         The Regents of the University of California. All rights reserved.
 FreeBSD is a registered trademark of The FreeBSD Foundation.
 FreeBSD 8.2-STABLE #2: Fri Jul 22 18:03:21 EDT 2011
     rob@storm.ipninja.net:/usr/obj/usr/src/sys/GENERIC i386
 Timecounter "i8254" frequency 1193182 Hz quality 0
 CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (2999.94-MHz 686-class CPU)
   Origin = "GenuineIntel"  Id = 0xf29  Family = f  Model = 2  Stepping = 9
  
 Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA
 ,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
   Features2=0x4400<CNXT-ID,xTPR>
 real memory  = 2147483648 (2048 MB)
 avail memory = 2077077504 (1980 MB)
 ACPI APIC Table: <080510 APIC1418>
 FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 FreeBSD/SMP: 1 package(s) x 1 core(s) x 2 HTT threads
  cpu0 (BSP): APIC ID:  0
  cpu1 (AP/HT): APIC ID:  1
 ioapic0: Changing APIC ID to 2
 ioapic0 <Version 2.0> irqs 0-23 on motherboard
 kbd1 at kbdmux0
 acpi0: <080510 RSDT1418> on motherboard
 acpi0: [ITHREAD]
 acpi0: Power Button (fixed)
 acpi0: reservation of 0, a0000 (3) failed
 acpi0: reservation of 100000, 7f600000 (3) failed
 Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
 cpu0: <ACPI CPU> on acpi0
 cpu1: <ACPI CPU> on acpi0
 pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
 pci0: <ACPI PCI bus> on pcib0
 vgapci0: <VGA-compatible display> port 0xcc00-0xcc07 mem
 0xfe980000-0xfe9fffff,0xd0000000-0xdfffffff,0xfe800000-0xfe8fffff irq 16 at
 device 2.0 on pci0
 agp0: <Intel G33 SVGA controller> on vgapci0
 agp0: aperture size is 256M, detected 7164k stolen memory
 pci0: <multimedia, HDA> at device 27.0 (no driver attached)
 pcib1: <ACPI PCI-PCI bridge> irq 16 at device 28.0 on pci0
 pci1: <ACPI PCI bus> on pcib1
 pcib2: <ACPI PCI-PCI bridge> irq 17 at device 28.1 on pci0
 pci2: <ACPI PCI bus> on pcib2
 re0: <RealTek 810xE PCIe 10/100baseTX> port 0xd800-0xd8ff mem
 0xfdfff000-0xfdffffff,0xfdfe0000-0xfdfeffff irq 17 at device 0.0 on pci2
 re0: Using 1 MSI-X message
 re0: Chip rev. 0x24800000
 re0: MAC rev. 0x00000000
 miibus0: <MII bus> on re0
 rlphy0: <RTL8201L 10/100 media interface> PHY 1 on miibus0
 rlphy0:  10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX,
 100baseTX-FDX-flow, auto, auto-flow
 re0: Ethernet address: 00:30:67:b9:a3:d1
 re0: [ITHREAD]
 uhci0: <Intel 82801G (ICH7) USB controller USB-A> port 0xc880-0xc89f irq 23
 at device 29.0 on pci0
 uhci0: [ITHREAD]
 uhci0: LegSup = 0x2f00
 usbus0: <Intel 82801G (ICH7) USB controller USB-A> on uhci0
 uhci1: <Intel 82801G (ICH7) USB controller USB-B> port 0xc800-0xc81f irq 19
 at device 29.1 on pci0
 uhci1: [ITHREAD]
 uhci1: LegSup = 0x2f00
 usbus1: <Intel 82801G (ICH7) USB controller USB-B> on uhci1
 uhci2: <Intel 82801G (ICH7) USB controller USB-C> port 0xc480-0xc49f irq 18
 at device 29.2 on pci0
 uhci2: [ITHREAD]
 uhci2: LegSup = 0x2f00
 usbus2: <Intel 82801G (ICH7) USB controller USB-C> on uhci2
 uhci3: <Intel 82801G (ICH7) USB controller USB-D> port 0xc400-0xc41f irq 16
 at device 29.3 on pci0
 uhci3: [ITHREAD]
 uhci3: LegSup = 0x2f00
 usbus3: <Intel 82801G (ICH7) USB controller USB-D> on uhci3
 ehci0: <Intel 82801GB/R (ICH7) USB 2.0 controller> mem 0xfe977c00-0xfe977fff
 irq 23 at device 29.7 on pci0
 ehci0: [ITHREAD]
 usbus4: EHCI version 1.0
 usbus4: <Intel 82801GB/R (ICH7) USB 2.0 controller> on ehci0
 pcib3: <ACPI PCI-PCI bridge> at device 30.0 on pci0
 pci3: <ACPI PCI bus> on pcib3
 skc0: <D-Link DGE-530T Gigabit Ethernet> port 0xe800-0xe8ff mem
 0xfebffc00-0xfebffcff irq 17 at device 1.0 on pci3
 skc0: couldn't allocate I/O resources
 device_attach: skc0 attach returned 6
 isab0: <PCI-ISA bridge> at device 31.0 on pci0
 isa0: <ISA bus> on isab0
 atapci0: <Intel ICH7 UDMA100 controller> port
 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xffa0-0xffaf at device 31.1 on pci0
 ata0: <ATA channel 0> on atapci0
 ata0: [ITHREAD]
 atapci1: <Intel ICH7 SATA300 controller> port
 0xc080-0xc087,0xc000-0xc003,0xbc00-0xbc07,0xb880-0xb883,0xb800-0xb80f irq 19
 at device 31.2 on pci0
 atapci1: [ITHREAD]
 ata2: <ATA channel 0> on atapci1
 ata2: [ITHREAD]
 ata3: <ATA channel 1> on atapci1
 ata3: [ITHREAD]
 pci0: <serial bus, SMBus> at device 31.3 (no driver attached)
 acpi_button0: <Power Button> on acpi0
 acpi_tz0: <Thermal Zone> on acpi0
 atrtc0: <AT realtime clock> port 0x70-0x71 irq 8 on acpi0
 uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
 uart0: [FILTER]
 fdc0: <floppy drive controller (FDE)> port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on
 acpi0
 fdc0: [FILTER]
 pmtimer0 on isa0
 sc0: <System console> at flags 0x100 on isa0
 sc0: VGA <16 virtual consoles, flags=0x300>
 vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
 atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
 atkbd0: <AT Keyboard> irq 1 on atkbdc0
 kbd0 at atkbd0
 atkbd0: [GIANT-LOCKED]
 atkbd0: [ITHREAD]
 ppc0: parallel port not found.
 p4tcc0: <CPU Frequency Thermal Control> on cpu0
 p4tcc1: <CPU Frequency Thermal Control> on cpu1
 ZFS filesystem version 5
 ZFS storage pool version 28
 Timecounters tick every 1.000 msec
 usbus0: 12Mbps Full Speed USB v1.0
 usbus1: 12Mbps Full Speed USB v1.0
 usbus2: 12Mbps Full Speed USB v1.0
 usbus3: 12Mbps Full Speed USB v1.0
 usbus4: 480Mbps High Speed USB v2.0
 acd0: DVDROM <IDE DVD-ROM 16X/VER 2.21> at ata0-master UDMA33
 ugen0.1: <Intel> at usbus0
 uhub0: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
 ugen1.1: <Intel> at usbus1
 uhub1: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus1
 ugen2.1: <Intel> at usbus2
 uhub2: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus2
 ugen3.1: <Intel> at usbus3
 uhub3: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus3
 ugen4.1: <Intel> at usbus4
 uhub4: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus4
 ad4: 76319MB <WDC WD800JB-00ETA0 77.07W77> at ata2-master UDMA100 SATA
 ad6: 152627MB <WDC WD1600JD-00HBB0 08.02D08> at ata3-master UDMA100 SATA
 SMP: AP CPU #1 Launched!
 Root mount waiting for: usbus4 usbus3 usbus2 usbus1 usbus0
 uhub0: 2 ports with 2 removable, self powered
 uhub1: 2 ports with 2 removable, self powered
 uhub2: 2 ports with 2 removable, self powered
 uhub3: 2 ports with 2 removable, self powered
 Root mount waiting for: usbus4
 Root mount waiting for: usbus4
 Root mount waiting for: usbus4
 uhub4: 8 ports with 8 removable, self powered
 Trying to mount root from zfs:zroot
 ugen1.2: <Microsoft> at usbus1
 ukbd0: <Microsoft Comfort Curve Keyboard 2000, class 0/0, rev 2.00/1.73,
 addr 2> on usbus1
 kbd2 at ukbd0
 uhid0: <Microsoft Comfort Curve Keyboard 2000, class 0/0, rev 2.00/1.73,
 addr 2> on usbus1
 storm#
 
 
 Full pciconf -lcbv -
 
 storm# pciconf -lcbv
 hostb0@pci0:0:0:0:      class=0x060000 card=0x29c08086 chip=0x29c08086
 rev=0x10 hdr=0x00
     vendor     = 'Intel Corporation'
     device     = 'P35/G33 (Bearlake) Processor to I/O Controller'
     class      = bridge
     subclass   = HOST-PCI
     cap 09[e0] = vendor (length 11) Intel cap 11 version 1
 vgapci0@pci0:0:2:0:     class=0x030000 card=0x31031565 chip=0x29c28086
 rev=0x10 hdr=0x00
     vendor     = 'Intel Corporation'
     device     = 'P35/G33 (Bearlake) Integrated Graphics Controller'
     class      = display
     subclass   = VGA
     bar   [10] = type Memory, range 32, base 0xfe980000, size 524288,
 enabled
     bar   [14] = type I/O Port, range 32, base 0xcc00, size  8, enabled
     bar   [18] = type Prefetchable Memory, range 32, base 0xd0000000, size
 268435456, enabled
     bar   [1c] = type Memory, range 32, base 0xfe800000, size 1048576,
 enabled
     cap 05[90] = MSI supports 1 message
     cap 01[d0] = powerspec 2  supports D0 D3  current D0
 none0@pci0:0:27:0:      class=0x040300 card=0x821e1565 chip=0x27d88086
 rev=0x01 hdr=0x00
     vendor     = 'Intel Corporation'
     device     = 'IDT High Definition Audio Driver  (BA101897)'
     class      = multimedia
     subclass   = HDA
     bar   [10] = type Memory, range 64, base 0xfe978000, size 16384, enabled
     cap 01[50] = powerspec 2  supports D0 D3  current D0
     cap 05[60] = MSI supports 1 message, 64 bit
     cap 10[70] = PCI-Express 1 root endpoint max data 128(128) link x0(x0)
 ecap 0002[100] = VC 1 max VC1
 ecap 0005[130] = unknown 1
 pcib1@pci0:0:28:0:      class=0x060400 card=0x31031565 chip=0x27d08086
 rev=0x01 hdr=0x01
     vendor     = 'Intel Corporation'
     device     = '82801G (ICH7 Family) PCIe Root Port'
     class      = bridge
     subclass   = PCI-PCI
     cap 10[40] = PCI-Express 1 root port max data 128(128) link x0(x1)
     cap 05[80] = MSI supports 1 message
     cap 0d[90] = PCI Bridge card=0x31031565
     cap 01[a0] = powerspec 2  supports D0 D3  current D0
 ecap 0002[100] = VC 1 max VC1
 ecap 0005[180] = unknown 1
 pcib2@pci0:0:28:1:      class=0x060400 card=0x31031565 chip=0x27d28086
 rev=0x01 hdr=0x01
     vendor     = 'Intel Corporation'
     device     = '82801G (ICH7 Family) PCIe Root Port'
     class      = bridge
     subclass   = PCI-PCI
     cap 10[40] = PCI-Express 1 root port max data 128(128) link x1(x1)
     cap 05[80] = MSI supports 1 message
     cap 0d[90] = PCI Bridge card=0x31031565
     cap 01[a0] = powerspec 2  supports D0 D3  current D0
 ecap 0002[100] = VC 1 max VC1
 ecap 0005[180] = unknown 1
 uhci0@pci0:0:29:0:      class=0x0c0300 card=0x31031565 chip=0x27c88086
 rev=0x01 hdr=0x00
     vendor     = 'Intel Corporation'
     device     = '82801G (ICH7 Family) USB Universal Host Controller'
     class      = serial bus
     subclass   = USB
     bar   [20] = type I/O Port, range 32, base 0xc880, size 32, enabled
 uhci1@pci0:0:29:1:      class=0x0c0300 card=0x31031565 chip=0x27c98086
 rev=0x01 hdr=0x00
     vendor     = 'Intel Corporation'
     device     = '82801G (ICH7 Family) USB Universal Host Controller'
     class      = serial bus
     subclass   = USB
     bar   [20] = type I/O Port, range 32, base 0xc800, size 32, enabled
 uhci2@pci0:0:29:2:      class=0x0c0300 card=0x31031565 chip=0x27ca8086
 rev=0x01 hdr=0x00
     vendor     = 'Intel Corporation'
     device     = '82801G (ICH7 Family) USB Universal Host Controller'
     class      = serial bus
     subclass   = USB
     bar   [20] = type I/O Port, range 32, base 0xc480, size 32, enabled
 uhci3@pci0:0:29:3:      class=0x0c0300 card=0x31031565 chip=0x27cb8086
 rev=0x01 hdr=0x00
     vendor     = 'Intel Corporation'
     device     = '82801G (ICH7 Family) USB Universal Host Controller'
     class      = serial bus
     subclass   = USB
     bar   [20] = type I/O Port, range 32, base 0xc400, size 32, enabled
 ehci0@pci0:0:29:7:      class=0x0c0320 card=0x31031565 chip=0x27cc8086
 rev=0x01 hdr=0x00
     vendor     = 'Intel Corporation'
     device     = '82801G (ICH7 Family) USB 2.0 Enhanced Host Controller'
     class      = serial bus
     subclass   = USB
     bar   [10] = type Memory, range 32, base 0xfe977c00, size 1024, enabled
     cap 01[50] = powerspec 2  supports D0 D3  current D0
     cap 0a[58] = EHCI Debug Port at offset 0xa0 in map 0x14
 pcib3@pci0:0:30:0:      class=0x060401 card=0x31031565 chip=0x244e8086
 rev=0xe1 hdr=0x01
     vendor     = 'Intel Corporation'
     device     = '82801 Family (ICH2/3/4/5/6/7/8/9,63xxESB) Hub Interface to
 PCI Bridge'
     class      = bridge
     subclass   = PCI-PCI
     cap 0d[50] = PCI Bridge card=0x31031565
 isab0@pci0:0:31:0:      class=0x060100 card=0x31031565 chip=0x27b88086
 rev=0x01 hdr=0x00
     vendor     = 'Intel Corporation'
     device     = 'Intel 82801GB/GR (ICH7 Family) LPC Interface Controller -
 27B8 (945GL)'
     class      = bridge
     subclass   = PCI-ISA
     cap 09[e0] = vendor (length 12) Intel cap 1 version 0
                  features: Quick Resume, SATA RAID-5, 6 PCI-e x1 slots, SATA
 RAID-0/1/10, SATA AHCI
 atapci0@pci0:0:31:1:    class=0x01018a card=0x31031565 chip=0x27df8086
 rev=0x01 hdr=0x00
     vendor     = 'Intel Corporation'
     device     = '82801G (ICH7 Family) Ultra ATA Storage Controller'
     class      = mass storage
     subclass   = ATA
     bar   [10] = type I/O Port, range 32, base 0x1f0, size  8, enabled
     bar   [14] = type I/O Port, range 32, base 0x3f4, size  1, enabled
     bar   [18] = type I/O Port, range 32, base 0x170, size  8, enabled
     bar   [1c] = type I/O Port, range 32, base 0x374, size  1, enabled
     bar   [20] = type I/O Port, range 32, base 0xffa0, size 16, enabled
 atapci1@pci0:0:31:2:    class=0x01018f card=0x52021565 chip=0x27c08086
 rev=0x01 hdr=0x00
     vendor     = 'Intel Corporation'
     device     = '82801GB/GR/GH (ICH7 Family) Serial ATA Storage Controller'
     class      = mass storage
     subclass   = ATA
     bar   [10] = type I/O Port, range 32, base 0xc080, size  8, enabled
     bar   [14] = type I/O Port, range 32, base 0xc000, size  4, enabled
     bar   [18] = type I/O Port, range 32, base 0xbc00, size  8, enabled
     bar   [1c] = type I/O Port, range 32, base 0xb880, size  4, enabled
     bar   [20] = type I/O Port, range 32, base 0xb800, size 16, enabled
     cap 01[70] = powerspec 2  supports D0 D3  current D0
 none1@pci0:0:31:3:      class=0x0c0500 card=0x31031565 chip=0x27da8086
 rev=0x01 hdr=0x00
     vendor     = 'Intel Corporation'
     device     = 'Intel[R] 82801G (ICH7 Family) C- 27DA (82801G)'
     class      = serial bus
     subclass   = SMBus
     bar   [20] = type I/O Port, range 32, base 0x400, size 32, enabled
 re0@pci0:2:0:0: class=0x020000 card=0x23081565 chip=0x813610ec rev=0x02
 hdr=0x00
     vendor     = 'Realtek Semiconductor'
     device     = 'Realtek 10/100/1000 PCI-E NIC Family all in one NDIS
 Driver v5.728.0604.2009 06/04/2009 (Rtl8023)'
     class      = network
     subclass   = ethernet
     bar   [10] = type I/O Port, range 32, base 0xd800, size 256, enabled
     bar   [18] = type Prefetchable Memory, range 64, base 0xfdfff000, size
 4096, enabled
     bar   [20] = type Prefetchable Memory, range 64, base 0xfdfe0000, size
 65536, enabled
     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 2 max data 128(256) link x1(x1)
     cap 11[ac] = MSI-X supports 2 messages in map 0x20 enabled
     cap 03[cc] = VPD
 ecap 0001[100] = AER 1 0 fatal 0 non-fatal 2 corrected
 ecap 0002[140] = VC 1 max VC0
 ecap 0003[160] = Serial 1 4d010000ffff0000
 skc0@pci0:3:1:0:        class=0x020000 card=0x43021186 chip=0x43021186
 rev=0x10 hdr=0x00
     vendor     = 'D-Link System Inc'
     class      = network
     subclass   = ethernet
     bar   [10] = type I/O Port, range 32, base 0xe800, size 256, enabled
     bar   [14] = type Memory, range 32, base 0xfebffc00, size 256, enabled
     cap 01[dc] = powerspec 2  supports D0 D1 D2 D3  current D0
 storm#
 

From: YongHyeon PYUN <pyunyh@gmail.com>
To: Rob V <rob@ipninja.net>
Cc: yongari@freebsd.org, bug-followup@freebsd.org
Subject: Re: kern/159116: [sk] New D-Link DGE-530T revision not supported by sk(4)
Date: Fri, 22 Jul 2011 16:26:26 -0700

 On Fri, Jul 22, 2011 at 06:39:25PM -0400, Rob V wrote:
 > Full dmesg -
 > 
 
 [...]
 
 > Full pciconf -lcbv -
 > 
 > storm# pciconf -lcbv
 > hostb0@pci0:0:0:0:      class=0x060000 card=0x29c08086 chip=0x29c08086
 > rev=0x10 hdr=0x00
 >     vendor     = 'Intel Corporation'
 >     device     = 'P35/G33 (Bearlake) Processor to I/O Controller'
 >     class      = bridge
 >     subclass   = HOST-PCI
 >     cap 09[e0] = vendor (length 11) Intel cap 11 version 1
 
 [...]
 
 > skc0@pci0:3:1:0:        class=0x020000 card=0x43021186 chip=0x43021186
 > rev=0x10 hdr=0x00
 >     vendor     = 'D-Link System Inc'
 >     class      = network
 >     subclass   = ethernet
 >     bar   [10] = type I/O Port, range 32, base 0xe800, size 256, enabled
 >     bar   [14] = type Memory, range 32, base 0xfebffc00, size 256, enabled
 >     cap 01[dc] = powerspec 2  supports D0 D1 D2 D3  current D0
 
 Now I can see why the vendor changed revision number. Now BAR1 is
 memory mapping.
 Would you back out changes made in previous patch and try the
 following diff again?
 http://people.freebsd.org/~yongari/sk/sk.dge530.diff2
 
 Thanks.

From: "Rob V" <rob@ipninja.net>
To: <pyunyh@gmail.com>
Cc: <yongari@freebsd.org>, <bug-followup@freebsd.org>
Subject: RE: kern/159116: [sk] New D-Link DGE-530T revision not supported by sk(4)
Date: Fri, 22 Jul 2011 22:38:05 -0400

 That caused a - page fault, panic, reboot - loop which took me about 3 hours
 to recover from ... and from that I learned I should always have a known
 good and stable kernel somewhere handy during this process :-)
 
 I'm afraid the best I could do is a picture of the screen with my digital
 camera as I don't have a serial port on that box yet to use for the console
 ...
 
 http://s1108.photobucket.com/albums/h417/robatipninjadotnet/?action=view&cur
 rent=M2680001.jpg
 
 
 
 -----Original Message-----
 From: YongHyeon PYUN [mailto:pyunyh@gmail.com] 
 Sent: July-22-11 7:26 PM
 To: Rob V
 Cc: yongari@freebsd.org; bug-followup@freebsd.org
 Subject: Re: kern/159116: [sk] New D-Link DGE-530T revision not supported by
 sk(4)
 
 On Fri, Jul 22, 2011 at 06:39:25PM -0400, Rob V wrote:
 > Full dmesg -
 > 
 
 [...]
 
 > Full pciconf -lcbv -
 > 
 > storm# pciconf -lcbv
 > hostb0@pci0:0:0:0:      class=0x060000 card=0x29c08086 chip=0x29c08086
 > rev=0x10 hdr=0x00
 >     vendor     = 'Intel Corporation'
 >     device     = 'P35/G33 (Bearlake) Processor to I/O Controller'
 >     class      = bridge
 >     subclass   = HOST-PCI
 >     cap 09[e0] = vendor (length 11) Intel cap 11 version 1
 
 [...]
 
 > skc0@pci0:3:1:0:        class=0x020000 card=0x43021186 chip=0x43021186
 > rev=0x10 hdr=0x00
 >     vendor     = 'D-Link System Inc'
 >     class      = network
 >     subclass   = ethernet
 >     bar   [10] = type I/O Port, range 32, base 0xe800, size 256, enabled
 >     bar   [14] = type Memory, range 32, base 0xfebffc00, size 256, enabled
 >     cap 01[dc] = powerspec 2  supports D0 D1 D2 D3  current D0
 
 Now I can see why the vendor changed revision number. Now BAR1 is
 memory mapping.
 Would you back out changes made in previous patch and try the
 following diff again?
 http://people.freebsd.org/~yongari/sk/sk.dge530.diff2
 
 Thanks.
 

From: "Rob V" <rob@ipninja.net>
To: <pyunyh@gmail.com>
Cc: <yongari@freebsd.org>, <bug-followup@freebsd.org>
Subject: RE: kern/159116: [sk] New D-Link DGE-530T revision not supported by sk(4)
Date: Wed, 27 Jul 2011 13:43:20 -0400

 Found the additional crash info I was unable to get from the screen in dmesg
 -
 
 Copyright (c) 1992-2011 The FreeBSD Project.
 Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
         The Regents of the University of California. All rights reserved.
 FreeBSD is a registered trademark of The FreeBSD Foundation.
 FreeBSD 8.2-STABLE #2: Wed Jul 27 11:29:33 EDT 2011
     rob@storm.ipninja.net:/usr/src/sys/i386/compile/GENERIC i386
 Timecounter "i8254" frequency 1193182 Hz quality 0
 CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (2999.95-MHz 686-class CPU)
   Origin = "GenuineIntel"  Id = 0xf29  Family = f  Model = 2  Stepping = 9
  
 Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA
 ,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
   Features2=0x4400<CNXT-ID,xTPR>
 real memory  = 2147483648 (2048 MB)
 avail memory = 2084290560 (1987 MB)
 ACPI APIC Table: <080510 APIC1418>
 FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 FreeBSD/SMP: 1 package(s) x 1 core(s) x 2 HTT threads
  cpu0 (BSP): APIC ID:  0
  cpu1 (AP/HT): APIC ID:  1
 ioapic0: Changing APIC ID to 2
 ioapic0 <Version 2.0> irqs 0-23 on motherboard
 kbd1 at kbdmux0
 acpi0: <080510 RSDT1418> on motherboard
 acpi0: [ITHREAD]
 acpi0: Power Button (fixed)
 acpi0: reservation of 0, a0000 (3) failed
 acpi0: reservation of 100000, 7fd00000 (3) failed
 Timecounter "ACPI-safe" frequency 3579545 Hz quality 850
 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
 cpu0: <ACPI CPU> on acpi0
 cpu1: <ACPI CPU> on acpi0
 pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
 pci0: <ACPI PCI bus> on pcib0
 vgapci0: <VGA-compatible display> port 0xcc00-0xcc07 mem
 0xfe980000-0xfe9fffff,0xd0000000-0xdfffffff,0xfe800000-0xfe8fffff irq 16 at
 device 2.0 on pci0
 agp0: <Intel G33 SVGA controller> on vgapci0
 agp0: aperture size is 256M, detected 4194300k stolen memory
 pcib1: <ACPI PCI-PCI bridge> irq 16 at device 28.0 on pci0
 pci1: <ACPI PCI bus> on pcib1
 pcib2: <ACPI PCI-PCI bridge> irq 17 at device 28.1 on pci0
 pci2: <ACPI PCI bus> on pcib2
 re0: <RealTek 810xE PCIe 10/100baseTX> port 0xd800-0xd8ff mem
 0xfdfff000-0xfdffffff,0xfdfe0000-0xfdfeffff irq 17 at device 0.0 on pci2
 re0: Using 1 MSI-X message
 re0: Chip rev. 0x24800000
 re0: MAC rev. 0x00000000
 miibus0: <MII bus> on re0
 rlphy0: <RTL8201L 10/100 media interface> PHY 1 on miibus0
 rlphy0:  10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX,
 100baseTX-FDX-flow, auto, auto-flow
 re0: Ethernet address: 00:30:67:b9:a3:d1
 re0: [ITHREAD]
 uhci0: <Intel 82801G (ICH7) USB controller USB-A> port 0xc880-0xc89f irq 23
 at device 29.0 on pci0
 uhci0: [ITHREAD]
 uhci0: LegSup = 0x2f00
 usbus0: <Intel 82801G (ICH7) USB controller USB-A> on uhci0
 uhci1: <Intel 82801G (ICH7) USB controller USB-B> port 0xc800-0xc81f irq 19
 at device 29.1 on pci0
 uhci1: [ITHREAD]
 uhci1: LegSup = 0x2f00
 usbus1: <Intel 82801G (ICH7) USB controller USB-B> on uhci1
 uhci2: <Intel 82801G (ICH7) USB controller USB-C> port 0xc480-0xc49f irq 18
 at device 29.2 on pci0
 uhci2: [ITHREAD]
 uhci2: LegSup = 0x2f00
 usbus2: <Intel 82801G (ICH7) USB controller USB-C> on uhci2
 uhci3: <Intel 82801G (ICH7) USB controller USB-D> port 0xc400-0xc41f irq 16
 at device 29.3 on pci0
 uhci3: [ITHREAD]
 uhci3: LegSup = 0x2f00
 usbus3: <Intel 82801G (ICH7) USB controller USB-D> on uhci3
 ehci0: <Intel 82801GB/R (ICH7) USB 2.0 controller> mem 0xfe97bc00-0xfe97bfff
 irq 23 at device 29.7 on pci0
 ehci0: [ITHREAD]
 usbus4: EHCI version 1.0
 usbus4: <Intel 82801GB/R (ICH7) USB 2.0 controller> on ehci0
 pcib3: <ACPI PCI-PCI bridge> at device 30.0 on pci0
 pci3: <ACPI PCI bus> on pcib3
 skc0: <D-Link DGE-530T Gigabit Ethernet> port 0xe800-0xe8ff mem
 0xfebffc00-0xfebffcff irq 17 at device 1.0 on pci3
 
 
 Fatal trap 12: page fault while in kernel mode
 cpuid = 0; apic id = 00
 fault virtual address   = 0xfc49fb10
 fault code              = supervisor write, page not present
 instruction pointer     = 0x20:0xc074df92
 stack pointer           = 0x28:0xc1420854
 frame pointer           = 0x28:0xc1420864
 code segment            = base 0x0, limit 0xfffff, type 0x1b
                         = DPL 0, pres 1, def32 1, gran 1
 processor eflags        = interrupt enabled, resume, IOPL = 0
 current process         = 0 (swapper)
 trap number             = 12
 panic: page fault
 cpuid = 0
 KDB: stack backtrace:
 #0 0xc08c93e9 at kdb_backtrace+0x43
 #1 0xc089ac8e at panic+0x114
 #2 0xc0bb73bc at trap_fatal+0x320
 #3 0xc0bb762c at trap_pfault+0x264
 #4 0xc0bb7b3b at trap+0x44a
 #5 0xc0b9f7bc at calltrap+0x6
 #6 0xc0753fa1 at skc_attach+0x40e
 #7 0xc08c3ac4 at device_attach+0x36a
 #8 0xc08c4cca at device_probe_and_attach+0x2d
 #9 0xc08c4ce9 at bus_generic_attach+0x19
 #10 0xc04e4387 at acpi_pci_attach+0x193
 #11 0xc08c3ac4 at device_attach+0x36a
 #12 0xc08c4cca at device_probe_and_attach+0x2d
 #13 0xc08c4ce9 at bus_generic_attach+0x19
 #14 0xc04e6141 at acpi_pcib_attach+0x18f
 #15 0xc04e7003 at acpi_pcib_pci_attach+0x97
 #16 0xc08c3ac4 at device_attach+0x36a
 
 
 
 -----Original Message-----
 From: YongHyeon PYUN [mailto:pyunyh@gmail.com] 
 Sent: July-22-11 7:26 PM
 To: Rob V
 Cc: yongari@freebsd.org; bug-followup@freebsd.org
 Subject: Re: kern/159116: [sk] New D-Link DGE-530T revision not supported by
 sk(4)
 
 On Fri, Jul 22, 2011 at 06:39:25PM -0400, Rob V wrote:
 > Full dmesg -
 > 
 
 [...]
 
 > Full pciconf -lcbv -
 > 
 > storm# pciconf -lcbv
 > hostb0@pci0:0:0:0:      class=0x060000 card=0x29c08086 chip=0x29c08086
 > rev=0x10 hdr=0x00
 >     vendor     = 'Intel Corporation'
 >     device     = 'P35/G33 (Bearlake) Processor to I/O Controller'
 >     class      = bridge
 >     subclass   = HOST-PCI
 >     cap 09[e0] = vendor (length 11) Intel cap 11 version 1
 
 [...]
 
 > skc0@pci0:3:1:0:        class=0x020000 card=0x43021186 chip=0x43021186
 > rev=0x10 hdr=0x00
 >     vendor     = 'D-Link System Inc'
 >     class      = network
 >     subclass   = ethernet
 >     bar   [10] = type I/O Port, range 32, base 0xe800, size 256, enabled
 >     bar   [14] = type Memory, range 32, base 0xfebffc00, size 256, enabled
 >     cap 01[dc] = powerspec 2  supports D0 D1 D2 D3  current D0
 
 Now I can see why the vendor changed revision number. Now BAR1 is
 memory mapping.
 Would you back out changes made in previous patch and try the
 following diff again?
 http://people.freebsd.org/~yongari/sk/sk.dge530.diff2
 
 Thanks.
 

From: "Rob V" <rob@ipninja.net>
To: <bug-followup@freebsd.org>
Cc:  
Subject: RE: kern/159116: [sk] New D-Link DGE-530T revision not supported by sk(4)
Date: Wed, 27 Jul 2011 16:31:39 -0400

 On suspicion that this wasn't an sk supported controller yongari asked me to
 take a picture of the card and then sent me a patch for re that appears to
 work perfectly -
 
 re1: <D-Link DGE-530(T) Gigabit Ethernet Adapter> port 0xe800-0xe8ff mem
 0xfebffc00-0xfebffcff irq 17 at device 1.0 on pci3
 re1: Chip rev. 0x10000000
 re1: MAC rev. 0x00000000
 miibus1: <MII bus> on re1
 rgephy0: <RTL8169S/8110S/8211B media interface> PHY 1 on miibus1
 rgephy0:  10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX,
 100baseTX-FDX-flow, 1000baseT, 1000baseT-master, 1000baseT-FDX,
 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto,
 auto-flow
 re1: Ethernet address: 5c:d9:98:ae:37:39
 re1: [FILTER]
 
 re1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
  
 options=389b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_UCAST,WOL
 _MCAST,WOL_MAGIC>
         ether 5c:d9:98:ae:37:39
         inet 172.30.0.50 netmask 0xffffff00 broadcast 172.30.0.255
         inet6 fe80::5ed9:98ff:feae:3739%re1 prefixlen 64 scopeid 0x7
         inet6 2001:<snip>:cafa prefixlen 64
         nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
         media: Ethernet autoselect (1000baseT <full-duplex>)
         status: active
 
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/159116: commit references a PR
Date: Sat, 30 Jul 2011 01:06:26 +0000 (UTC)

 Author: yongari
 Date: Sat Jul 30 01:06:12 2011
 New Revision: 224506
 URL: http://svn.freebsd.org/changeset/base/224506
 
 Log:
   Add new device id of D-Link DGE-530T Rev. C controller.  DGE-503T
   Rev A1 and B1 is supported by sk(4) but the DGE-530T Rev. C
   controller is re-branded RealTek 8169 controller.
   
   PR:	kern/159116
   Approved by:	re (kib)
 
 Modified:
   head/sys/dev/re/if_re.c
   head/sys/pci/if_rlreg.h
 
 Modified: head/sys/dev/re/if_re.c
 ==============================================================================
 --- head/sys/dev/re/if_re.c	Sat Jul 30 00:52:13 2011	(r224505)
 +++ head/sys/dev/re/if_re.c	Sat Jul 30 01:06:12 2011	(r224506)
 @@ -174,6 +174,8 @@ TUNABLE_INT("hw.re.prefer_iomap", &prefe
  static struct rl_type re_devs[] = {
  	{ DLINK_VENDORID, DLINK_DEVICEID_528T, 0,
  	    "D-Link DGE-528(T) Gigabit Ethernet Adapter" },
 +	{ DLINK_VENDORID, DLINK_DEVICEID_530T_REVC, 0,
 +	    "D-Link DGE-530(T) Gigabit Ethernet Adapter" },
  	{ RT_VENDORID, RT_DEVICEID_8139, 0,
  	    "RealTek 8139C+ 10/100BaseTX" },
  	{ RT_VENDORID, RT_DEVICEID_8101E, 0,
 
 Modified: head/sys/pci/if_rlreg.h
 ==============================================================================
 --- head/sys/pci/if_rlreg.h	Sat Jul 30 00:52:13 2011	(r224505)
 +++ head/sys/pci/if_rlreg.h	Sat Jul 30 01:06:12 2011	(r224506)
 @@ -1042,6 +1042,7 @@ struct rl_softc {
   * D-Link DFE-5280T device ID
   */
  #define	DLINK_DEVICEID_528T			0x4300
 +#define	DLINK_DEVICEID_530T_REVC		0x4302
  
  /*
   * D-Link DFE-690TXD device ID
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: feedback->patched 
State-Changed-By: yongari 
State-Changed-When: Sat Jul 30 01:14:24 UTC 2011 
State-Changed-Why:  
Fixed in HEAD(r224506). 
Thanks for testing and reporting! 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/159116: commit references a PR
Date: Mon, 15 Aug 2011 17:09:09 +0000 (UTC)

 Author: yongari
 Date: Mon Aug 15 17:08:54 2011
 New Revision: 224891
 URL: http://svn.freebsd.org/changeset/base/224891
 
 Log:
   MFC r224506:
     Add new device id of D-Link DGE-530T Rev. C controller.  DGE-503T
     Rev A1 and B1 is supported by sk(4) but the DGE-530T Rev. C
     controller is re-branded RealTek 8169 controller.
   
     PR:	kern/159116
 
 Modified:
   stable/8/sys/dev/re/if_re.c
   stable/8/sys/pci/if_rlreg.h
 Directory Properties:
   stable/8/sys/   (props changed)
   stable/8/sys/amd64/include/xen/   (props changed)
   stable/8/sys/cddl/contrib/opensolaris/   (props changed)
   stable/8/sys/contrib/dev/acpica/   (props changed)
   stable/8/sys/contrib/pf/   (props changed)
 
 Modified: stable/8/sys/dev/re/if_re.c
 ==============================================================================
 --- stable/8/sys/dev/re/if_re.c	Mon Aug 15 16:06:28 2011	(r224890)
 +++ stable/8/sys/dev/re/if_re.c	Mon Aug 15 17:08:54 2011	(r224891)
 @@ -174,6 +174,8 @@ TUNABLE_INT("hw.re.prefer_iomap", &prefe
  static struct rl_type re_devs[] = {
  	{ DLINK_VENDORID, DLINK_DEVICEID_528T, 0,
  	    "D-Link DGE-528(T) Gigabit Ethernet Adapter" },
 +	{ DLINK_VENDORID, DLINK_DEVICEID_530T_REVC, 0,
 +	    "D-Link DGE-530(T) Gigabit Ethernet Adapter" },
  	{ RT_VENDORID, RT_DEVICEID_8139, 0,
  	    "RealTek 8139C+ 10/100BaseTX" },
  	{ RT_VENDORID, RT_DEVICEID_8101E, 0,
 
 Modified: stable/8/sys/pci/if_rlreg.h
 ==============================================================================
 --- stable/8/sys/pci/if_rlreg.h	Mon Aug 15 16:06:28 2011	(r224890)
 +++ stable/8/sys/pci/if_rlreg.h	Mon Aug 15 17:08:54 2011	(r224891)
 @@ -1042,6 +1042,7 @@ struct rl_softc {
   * D-Link DFE-5280T device ID
   */
  #define	DLINK_DEVICEID_528T			0x4300
 +#define	DLINK_DEVICEID_530T_REVC		0x4302
  
  /*
   * D-Link DFE-690TXD device ID
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/159116: commit references a PR
Date: Mon, 15 Aug 2011 17:10:33 +0000 (UTC)

 Author: yongari
 Date: Mon Aug 15 17:10:23 2011
 New Revision: 224892
 URL: http://svn.freebsd.org/changeset/base/224892
 
 Log:
   MFC r224506:
     Add new device id of D-Link DGE-530T Rev. C controller.  DGE-503T
     Rev A1 and B1 is supported by sk(4) but the DGE-530T Rev. C
     controller is re-branded RealTek 8169 controller.
   
     PR:	kern/159116
 
 Modified:
   stable/7/sys/dev/re/if_re.c
   stable/7/sys/pci/if_rlreg.h
 Directory Properties:
   stable/7/sys/   (props changed)
   stable/7/sys/cddl/contrib/opensolaris/   (props changed)
   stable/7/sys/contrib/dev/acpica/   (props changed)
   stable/7/sys/contrib/pf/   (props changed)
 
 Modified: stable/7/sys/dev/re/if_re.c
 ==============================================================================
 --- stable/7/sys/dev/re/if_re.c	Mon Aug 15 17:08:54 2011	(r224891)
 +++ stable/7/sys/dev/re/if_re.c	Mon Aug 15 17:10:23 2011	(r224892)
 @@ -174,6 +174,8 @@ TUNABLE_INT("hw.re.prefer_iomap", &prefe
  static struct rl_type re_devs[] = {
  	{ DLINK_VENDORID, DLINK_DEVICEID_528T, 0,
  	    "D-Link DGE-528(T) Gigabit Ethernet Adapter" },
 +	{ DLINK_VENDORID, DLINK_DEVICEID_530T_REVC, 0,
 +	    "D-Link DGE-530(T) Gigabit Ethernet Adapter" },
  	{ RT_VENDORID, RT_DEVICEID_8139, 0,
  	    "RealTek 8139C+ 10/100BaseTX" },
  	{ RT_VENDORID, RT_DEVICEID_8101E, 0,
 
 Modified: stable/7/sys/pci/if_rlreg.h
 ==============================================================================
 --- stable/7/sys/pci/if_rlreg.h	Mon Aug 15 17:08:54 2011	(r224891)
 +++ stable/7/sys/pci/if_rlreg.h	Mon Aug 15 17:10:23 2011	(r224892)
 @@ -1042,6 +1042,7 @@ struct rl_softc {
   * D-Link DFE-5280T device ID
   */
  #define	DLINK_DEVICEID_528T			0x4300
 +#define	DLINK_DEVICEID_530T_REVC		0x4302
  
  /*
   * D-Link DFE-690TXD device ID
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: patched->closed 
State-Changed-By: yongari 
State-Changed-When: Mon Aug 15 17:43:22 UTC 2011 
State-Changed-Why:  
MFC to stable/8 and stable/7 done. 
Thanks for testing! 

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