On Tue, Apr 07, 2015 at 10:34:29PM +0200, Daniel Jakots wrote:
> Hi,
> 
> I bought recently a D-Link DGE-528T because it was said in re(4)
> that it is working. 

this is probably due to my jumbo diff. i can't repro this problem on
my re(4)s, but could you try it with the following patch applied? i
missed fixing up RL_JUMBO_MTU_7K and i think your chip will use it.

Index: rtl81x9reg.h
===================================================================
RCS file: /cvs/src/sys/dev/ic/rtl81x9reg.h,v
retrieving revision 1.93
diff -u -p -u -r1.93 rtl81x9reg.h
--- rtl81x9reg.h        20 Mar 2015 12:04:09 -0000      1.93
+++ rtl81x9reg.h        8 Apr 2015 09:52:10 -0000
@@ -751,7 +751,7 @@ struct rl_stats {
 #define RL_JUMBO_MTU_6K                \
        ((6 * 1024) - ETHER_HDR_LEN - ETHER_CRC_LEN - ETHER_VLAN_ENCAP_LEN)
 #define RL_JUMBO_MTU_7K                \
-       (RL_JUMBO_FRAMELEN - ETHER_HDR_LEN - ETHER_CRC_LEN - 
ETHER_VLAN_ENCAP_LEN)
+       ((7 * 1024) - ETHER_HDR_LEN - ETHER_CRC_LEN - ETHER_VLAN_ENCAP_LEN)
 #define RL_JUMBO_MTU_9K                \
        ((9 * 1024) - ETHER_HDR_LEN - ETHER_CRC_LEN - ETHER_VLAN_ENCAP_LEN)
 #define RL_MTU                 ETHERMTU

> 
> I can get a lease dhcp but then connection doesn't work reliably.
> For instance, if I go with firefox on www.openbsd.org, all I get is:
> 
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
> <html>
> <head>
>     <title>OpenBSD</title>
>     <meta name="resource-type" content="document">
>     <meta http-equiv="Content-Type" content="text/html;
> charset=iso-8859-1"> <meta name="description" content="the main OpenBSD
> page"> <meta name="keywords" content="openbsd,main">
>     <meta name="distribution" content="global">
>     <meta name="copyright" content="This document copyright 1999-2014
> by OpenBSD."> <link rel="shortcut icon" HREF="/favicon.ico"
> TYPE="image/x-icon"> </head>
> <body text="#000000" bgcolor="#ffffff" topmargin=0 leftmargin=0
> marginheight=0 marginwidth=0> <table width="10
> 
> then there's some garbage and that's all that 'view source' shows.
> 
> If I ssh my server running amd64 5.6 -stable, I get:
> 
> ssh_dispatch_run_fatal: message authentication code incorrect
> 
> but strangely enough, if I ssh my router (pcengines apu) running also
> amd64 5.6 -stable it works, the only difference is there I use ed25519
> keys whereas on my server it's a RSA key.
> 
> I tested some kernel to see when the problem appears:
> - bsd.mp 19-Mar-2015 is working correctly (I mean, I don't have these
>   problems at least)
> - bsd.mp 26-Mar-2015 isn't working
> 
> The dmesg while I'm still running bsd.mp from 26t March snapshot
> (hint, it's re1, not re0, I don't use re0 because I have problem with
> that NIC):
> 
> OpenBSD 5.7-current (GENERIC.MP) #896: Thu Mar 26 14:56:12 MDT 2015
>     t...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> real mem = 2129526784 (2030MB)
> avail mem = 2061189120 (1965MB)
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf0100 (39 entries)
> bios0: vendor Award Software International, Inc. version "F6" date
> 09/07/2007 bios0: Gigabyte Technology Co., Ltd. P35-DS3R
> acpi0 at bios0: rev 0
> acpi0: sleep states S0 S3 S4 S5
> acpi0: tables DSDT FACP HPET MCFG APIC SSDT SSDT
> acpi0: wakeup devices PEX0(S5) PEX1(S5) PEX2(S5) PEX3(S5) PEX4(S5)
> PEX5(S5) HUB0(S5) UAR1(S3) IGBE(S4) USB0(S3) USB1(S3) USB2(S3) USB3(S3)
> US31(S3) USB4(S3) USB5(S3) [...] acpitimer0 at acpi0: 3579545 Hz, 24
> bits acpihpet0 at acpi0: 14318179 Hz acpimcfg0 at acpi0 addr
> 0xf0000000, bus 0-63 acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: Intel(R) Core(TM)2 Duo CPU E6850 @ 3.00GHz, 3000.42 MHz
> cpu0:
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,NXE,LONG,LAHF,PERF
> cpu0: 4MB 64b/line 16-way L2 cache cpu0: smt 0, core 0, package 0
> mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
> cpu0: apic clock running at 333MHz
> cpu0: mwait min=64, max=64, C-substates=0.2.2.0.0, IBE
> cpu1 at mainbus0: apid 1 (application processor)
> cpu1: Intel(R) Core(TM)2 Duo CPU E6850 @ 3.00GHz, 3000.01 MHz
> cpu1:
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,NXE,LONG,LAHF,PERF
> cpu1: 4MB 64b/line 16-way L2 cache cpu1: smt 0, core 1, package 0
> ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 24 pins
> ioapic0: misconfigured as apic 0, remapped to apid 2
> acpiprt0 at acpi0: bus 0 (PCI0)
> acpiprt1 at acpi0: bus 2 (PEX0)
> acpiprt2 at acpi0: bus -1 (PEX1)
> acpiprt3 at acpi0: bus -1 (PEX2)
> acpiprt4 at acpi0: bus 3 (PEX3)
> acpiprt5 at acpi0: bus 4 (PEX4)
> acpiprt6 at acpi0: bus -1 (PEX5)
> acpiprt7 at acpi0: bus 5 (HUB0)
> acpicpu0 at acpi0: FVS, 3000, 2000 MHz
> acpicpu1 at acpi0: FVS, 3000, 2000 MHz
> acpibtn0 at acpi0: PWRB
> pci0 at mainbus0 bus 0
> pchb0 at pci0 dev 0 function 0 "Intel 82G33 Host" rev 0x02
> ppb0 at pci0 dev 1 function 0 "Intel 82G33 PCIE" rev 0x02: msi
> pci1 at ppb0 bus 1
> radeondrm0 at pci1 dev 0 function 0 "ATI Radeon HD 4850" rev 0x00
> drm0 at radeondrm0
> radeondrm0: msi
> azalia0 at pci1 dev 0 function 1 "ATI Radeon HD 48xx HD Audio" rev
> 0x00: msi azalia0: no supported codecs
> uhci0 at pci0 dev 26 function 0 "Intel 82801I USB" rev 0x02: apic 2 int
> 16 uhci1 at pci0 dev 26 function 1 "Intel 82801I USB" rev 0x02: apic 2
> int 21 uhci2 at pci0 dev 26 function 2 "Intel 82801I USB" rev 0x02:
> apic 2 int 18 ehci0 at pci0 dev 26 function 7 "Intel 82801I USB" rev
> 0x02: apic 2 int 18 usb0 at ehci0: USB revision 2.0
> uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
> azalia1 at pci0 dev 27 function 0 "Intel 82801I HD Audio" rev 0x02: msi
> azalia1: codecs: Realtek ALC885
> audio0 at azalia1
> ppb1 at pci0 dev 28 function 0 "Intel 82801I PCIE" rev 0x02: msi
> pci2 at ppb1 bus 2
> ppb2 at pci0 dev 28 function 3 "Intel 82801I PCIE" rev 0x02: msi
> pci3 at ppb2 bus 3
> jmb0 at pci3 dev 0 function 0 "JMicron JMB363 IDE/SATA" rev 0x02
> ahci0 at jmb0: apic 2 int 19, AHCI 1.0
> scsibus1 at ahci0: 32 targets
> pciide0 at jmb0: DMA, channel 0 wired to native-PCI, channel 1 wired to
> native-PCI pciide0: using apic 2 int 19 for native-PCI interrupt
> pciide0: channel 0 disabled (no drives)
> pciide0: channel 1 disabled (no drives)
> ppb3 at pci0 dev 28 function 4 "Intel 82801I PCIE" rev 0x02: msi
> pci4 at ppb3 bus 4
> re0 at pci4 dev 0 function 0 "Realtek 8168" rev 0x01: RTL8168 2
> (0x3800), msi, address 00:1a:4d:5a:71:ae rgephy0 at re0 phy 7:
> RTL8169S/8110S PHY, rev. 2 uhci3 at pci0 dev 29 function 0 "Intel
> 82801I USB" rev 0x02: apic 2 int 23 uhci4 at pci0 dev 29 function 1
> "Intel 82801I USB" rev 0x02: apic 2 int 19 uhci5 at pci0 dev 29
> function 2 "Intel 82801I USB" rev 0x02: apic 2 int 18 ehci1 at pci0 dev
> 29 function 7 "Intel 82801I USB" rev 0x02: apic 2 int 23 usb1 at ehci1:
> USB revision 2.0 uhub1 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr
> 1 ppb4 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0x92
> pci5 at ppb4 bus 5
> re1 at pci5 dev 0 function 0 "D-Link DGE-528T" rev 0x10: RTL8169/8110SB
> (0x1000), apic 2 int 20, address 6c:19:8f:9a:4b:ea rgephy1 at re1 phy
> 7: RTL8169S/8110S PHY, rev. 3 pcib0 at pci0 dev 31 function 0 "Intel
> 82801IR LPC" rev 0x02 pciide1 at pci0 dev 31 function 2 "Intel 82801I
> SATA" rev 0x02: DMA, channel 0 configured to native-PCI, channel 1
> configured to native-PCI pciide1: using apic 2 int 19 for native-PCI
> interrupt wd0 at pciide1 channel 0 drive 0: <WDC WD10EZEX-00BN5A0> wd0:
> 16-sector PIO, LBA48, 953869MB, 1953525168 sectors wd0(pciide1:0:0):
> using PIO mode 4, Ultra-DMA mode 6 wd1 at pciide1 channel 1 drive 0:
> <WDC WD5001AALS-00L3B2> wd1: 16-sector PIO, LBA48, 476938MB, 976771055
> sectors wd1(pciide1:1:0): using PIO mode 4, Ultra-DMA mode 6
> ichiic0 at pci0 dev 31 function 3 "Intel 82801I SMBus" rev 0x02: apic 2
> int 18 iic0 at ichiic0
> spdmem0 at iic0 addr 0x50: 1GB DDR2 SDRAM non-parity PC2-5300CL5
> spdmem1 at iic0 addr 0x52: 1GB DDR2 SDRAM non-parity PC2-5300CL5
> pciide2 at pci0 dev 31 function 5 "Intel 82801I SATA" rev 0x02: DMA,
> channel 0 wired to native-PCI, channel 1 wired to native-PCI pciide2:
> using apic 2 int 19 for native-PCI interrupt usb2 at uhci0: USB
> revision 1.0 uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1
> usb3 at uhci1: USB revision 1.0
> uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1
> usb4 at uhci2: USB revision 1.0
> uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1
> usb5 at uhci3: USB revision 1.0
> uhub5 at usb5 "Intel UHCI root hub" rev 1.00/1.00 addr 1
> usb6 at uhci4: USB revision 1.0
> uhub6 at usb6 "Intel UHCI root hub" rev 1.00/1.00 addr 1
> usb7 at uhci5: USB revision 1.0
> uhub7 at usb7 "Intel UHCI root hub" rev 1.00/1.00 addr 1
> isa0 at pcib0
> isadma0 at isa0
> com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
> pckbc0 at isa0 port 0x60/5
> pckbc0: using irq 12 for aux slot
> pckbd0 at pckbc0 (kbd slot)
> pckbc0: using irq 1 for kbd slot
> wskbd0 at pckbd0: console keyboard
> pcppi0 at isa0 port 0x61
> spkr0 at pcppi0
> lpt0 at isa0 port 0x378/4 irq 7
> it0 at isa0 port 0x2e/2: IT8718F rev 4, EC port 0x290
> axe0 at uhub0 port 4 configuration 1 interface 0 "ASIX Electronics
> AX88772" rev 2.00/0.01 addr 2 axe0: AX88772, address 00:14:d1:b0:d0:a2
> ukphy0 at axe0 phy 16: Generic IEEE 802.3u media interface, rev. 1: OUI
> 0x000ec6, model 0x0006 uhidev0 at uhub2 port 2 configuration 1
> interface 0 "Razer Razer DeathAdder" rev 2.00/1.00 addr 2 uhidev0:
> iclass 3/1 ums0 at uhidev0: 7 buttons, Z dir
> wsmouse0 at ums0 mux 0
> uhidev1 at uhub3 port 1 configuration 1 interface 0 "CM Storm Keyboard
> -- QuickFire XT" rev 1.10/1.04 addr 2 uhidev1: iclass 3/1
> ukbd0 at uhidev1: 8 variable keys, 6 key codes
> wskbd1 at ukbd0 mux 1
> uhidev2 at uhub3 port 1 configuration 1 interface 1 "CM Storm Keyboard
> -- QuickFire XT" rev 1.10/1.04 addr 2 uhidev2: iclass 3/1, 2 report ids
> uhid0 at uhidev2 reportid 1: input=6, output=0, feature=0
> uhid1 at uhidev2 reportid 2: input=1, output=0, feature=0
> vscsi0 at root
> scsibus2 at vscsi0: 256 targets
> softraid0 at root
> scsibus3 at softraid0: 256 targets
> sd0 at scsibus3 targ 1 lun 0: <OPENBSD, SR CRYPTO, 005> SCSI2 0/direct
> fixed sd0: 471814MB, 512 bytes/sector, 966277092 sectors
> root on sd0a (384c27964f6e987d.a) swap on sd0b dump on sd0b
> radeondrm0: 1680x1050
> wsdisplay0 at radeondrm0 mux 1: console (std, vt100 emulation), using
> wskbd0 wskbd1: connecting to wsdisplay0
> wsdisplay0: screen 1-5 added (std, vt100 emulation)
> sd1 at scsibus3 targ 2 lun 0: <OPENBSD, SR CRYPTO, 005> SCSI2 0/direct
> fixed sd1: 953869MB, 512 bytes/sector, 1953524640 sectors
> 

Reply via email to