This is a real shot in the dark, it should only work if your
BIOS has screwed interrupt routing for the realtek, but, try
changing the MSI exclusion in /usr/src/sys/dev/pci/if_re_pci.c

change PCI_PRODUCT_REALTEK_RT8101E to PCI_PRODUCT_REALTEK_8168

as in:
        if (PCI_VENDOR(pa->pa_id) != PCI_VENDOR_REALTEK ||
            PCI_PRODUCT(pa->pa_id) != PCI_PRODUCT_REALTEK_RT8168)
                pa->pa_flags &= ~PCI_FLAGS_MSI_ENABLED;

if this works then MSI may be perferrable on more of the
newer chips like the 8101E, 8168, 8169, 8169SC ???

A B [damnitiwantm...@gmail.com] wrote:
> Sure, here it is:
> 
> OpenBSD 5.4-current (GENERIC.MP) #2: Sat Oct 26 02:39:36 ART 2013
>     r...@foo.coredump.com.ar:/usr/src/sys/arch/i386/compile/GENERIC.MP
> cpu0: Intel(R) Core(TM) i3-3240 CPU @ 3.40GHz ("GenuineIntel" 686-class)
> 3.40 GHz
> cpu0:
> FPU,V86,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,NXE,LONG,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,POPCNT,DEADLINE,XSAVE,AVX,F16C,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS
> real mem  = 3651227648 (3482MB)
> avail mem = 3579801600 (3413MB)
> mainbus0 at root
> bios0 at mainbus0: AT/286+ BIOS, date 12/22/11, SMBIOS rev. 2.7 @ 0xe96e0
> (74 entries)
> bios0: vendor American Megatrends Inc. version "F11" date 07/31/2013
> bios0: Gigabyte Technology Co., Ltd. H77M-D3H
> acpi0 at bios0: rev 2
> acpi0: sleep states S0 S3 S4 S5
> acpi0: tables DSDT FACP APIC MCFG HPET SSDT SSDT SSDT
> acpi0: wakeup devices PS2K(S3) PS2M(S3) P0P1(S4) USB1(S3) USB2(S3) USB3(S3)
> USB4(S3) USB5(S3) USB6(S3) USB7(S3) PXSX(S4) RP01(S4) PXSX(S4) RP02(S4)
> PXSX(S4) RP03(S4) [...]
> acpitimer0 at acpi0: 3579545 Hz, 24 bits
> acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: apic clock running at 99MHz
> cpu0: mwait min=64, max=64, C-substates=0.2.1.1.0, IBE
> cpu1 at mainbus0: apid 2 (application processor)
> cpu1: Intel(R) Core(TM) i3-3240 CPU @ 3.40GHz ("GenuineIntel" 686-class)
> 3.40 GHz
> cpu1:
> FPU,V86,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,NXE,LONG,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,POPCNT,DEADLINE,XSAVE,AVX,F16C,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS
> cpu2 at mainbus0: apid 1 (application processor)
> cpu2: Intel(R) Core(TM) i3-3240 CPU @ 3.40GHz ("GenuineIntel" 686-class)
> 3.40 GHz
> cpu2:
> FPU,V86,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,NXE,LONG,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,POPCNT,DEADLINE,XSAVE,AVX,F16C,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS
> cpu3 at mainbus0: apid 3 (application processor)
> cpu3: Intel(R) Core(TM) i3-3240 CPU @ 3.40GHz ("GenuineIntel" 686-class)
> 3.40 GHz
> cpu3:
> FPU,V86,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,NXE,LONG,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,POPCNT,DEADLINE,XSAVE,AVX,F16C,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS
> ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 24 pins
> acpimcfg0 at acpi0 addr 0xf8000000, bus 0-63
> acpihpet0 at acpi0: 14318179 Hz
> acpiprt0 at acpi0: bus 0 (PCI0)
> acpiprt1 at acpi0: bus -1 (P0P1)
> acpiprt2 at acpi0: bus 1 (RP01)
> acpiprt3 at acpi0: bus -1 (RP02)
> acpiprt4 at acpi0: bus -1 (RP03)
> acpiprt5 at acpi0: bus -1 (RP04)
> acpiprt6 at acpi0: bus 2 (RP05)
> acpiprt7 at acpi0: bus -1 (RP06)
> acpiprt8 at acpi0: bus 3 (RP07)
> acpiprt9 at acpi0: bus -1 (RP08)
> acpiprt10 at acpi0: bus -1 (PEG0)
> acpiprt11 at acpi0: bus -1 (PEG1)
> acpiprt12 at acpi0: bus -1 (PEG2)
> acpiprt13 at acpi0: bus -1 (PEG3)
> acpiec0 at acpi0: Failed to read resource settings
> acpicpu0 at acpi0: C3, C1, PSS
> acpicpu1 at acpi0: C3, C1, PSS
> acpicpu2 at acpi0: C3, C1, PSS
> acpicpu3 at acpi0: C3, C1, PSS
> acpipwrres0 at acpi0: FN00
> acpipwrres1 at acpi0: FN01
> acpipwrres2 at acpi0: FN02
> acpipwrres3 at acpi0: FN03
> acpipwrres4 at acpi0: FN04
> acpitz0 at acpi0: critical temperature is 106 degC
> acpitz1 at acpi0: critical temperature is 106 degC
> acpibat0 at acpi0: BAT0 not present
> acpibat1 at acpi0: BAT1 not present
> acpibat2 at acpi0: BAT2 not present
> acpibtn0 at acpi0: PWRB
> acpibtn1 at acpi0: LID0
> acpivideo0 at acpi0: GFX0
> acpivout0 at acpivideo0: DD02
> bios0: ROM list: 0xc0000/0xe800
> cpu0: Enhanced SpeedStep 3393 MHz: speeds: 3400, 3300, 3200, 3000, 2900,
> 2800, 2700, 2600, 2400, 2300, 2200, 2100, 2000, 1800, 1700, 1600 MHz
> pci0 at mainbus0 bus 0: configuration mode 1 (bios)
> pchb0 at pci0 dev 0 function 0 "Intel Core 3G Host" rev 0x09
> vga1 at pci0 dev 2 function 0 "Intel HD Graphics 2500" rev 0x09
> intagp0 at vga1
> agp0 at intagp0: aperture at 0xe0000000, size 0x10000000
> inteldrm0 at vga1
> drm0 at inteldrm0
> inteldrm0: 640x480
> wsdisplay0 at vga1 mux 1: console (std, vt100 emulation)
> wsdisplay0: screen 1-5 added (std, vt100 emulation)
> "Intel 7 Series xHCI" rev 0x04 at pci0 dev 20 function 0 not configured
> "Intel 7 Series MEI" rev 0x04 at pci0 dev 22 function 0 not configured
> ehci0 at pci0 dev 26 function 0 "Intel 7 Series USB" rev 0x04: apic 2 int 16
> usb0 at ehci0: USB revision 2.0
> uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
> azalia0 at pci0 dev 27 function 0 "Intel 7 Series HD Audio" rev 0x04: msi
> azalia0: codecs: VIA/0x0441, Intel/0x2806, using VIA/0x0441
> audio0 at azalia0
> ppb0 at pci0 dev 28 function 0 "Intel 7 Series PCIE" rev 0xc4: apic 2 int 16
> pci1 at ppb0 bus 1
> re0 at pci1 dev 0 function 0 "Realtek 8168" rev 0x06: RTL8168E/8111E
> (0x2c00), apic 2 int 16, address f8:1a:67:04:2f:48
> rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 4
> ppb1 at pci0 dev 28 function 4 "Intel 7 Series PCIE" rev 0xc4: apic 2 int 16
> pci2 at ppb1 bus 2
> "Attansic Technology L1F" rev 0x10 at pci2 dev 0 function 0 not configured
> ppb2 at pci0 dev 28 function 6 "Intel 82801BA Hub-to-PCI" rev 0xc4: apic 2
> int 18
> pci3 at ppb2 bus 3
> ppb3 at pci3 dev 0 function 0 "Intel 82801BA Hub-to-PCI" rev 0x41
> pci4 at ppb3 bus 4
> ehci1 at pci0 dev 29 function 0 "Intel 7 Series USB" rev 0x04: 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
> pcib0 at pci0 dev 31 function 0 "Intel H77 LPC" rev 0x04
> pciide0 at pci0 dev 31 function 2 "Intel 7 Series SATA" rev 0x04: DMA,
> channel 0 configured to native-PCI, channel 1 configured to native-PCI
> pciide0: using apic 2 int 19 for native-PCI interrupt
> wd0 at pciide0 channel 0 drive 0: <WDC WD10EZEX-60ZF5A0>
> wd0: 16-sector PIO, LBA48, 953869MB, 1953525168 sectors
> atapiscsi0 at pciide0 channel 0 drive 1
> scsibus0 at atapiscsi0: 2 targets
> cd0 at scsibus0 targ 0 lun 0: <HL-DT-ST, DVDRAM GH24NS95, RN01> ATAPI
> 5/cdrom removable
> wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
> cd0(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 6
> wd1 at pciide0 channel 1 drive 0: <WDC WD10EZEX-60ZF5A0>
> wd1: 16-sector PIO, LBA48, 953869MB, 1953525168 sectors
> wd1(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 5
> ichiic0 at pci0 dev 31 function 3 "Intel 7 Series SMBus" rev 0x04: apic 2
> int 18
> iic0 at ichiic0
> spdmem0 at iic0 addr 0x53: 4GB DDR3 SDRAM PC3-10600
> pciide1 at pci0 dev 31 function 5 "Intel 7 Series SATA" rev 0x04: DMA,
> channel 0 wired to native-PCI, channel 1 wired to native-PCI
> pciide1: using apic 2 int 19 for native-PCI interrupt
> isa0 at pcib0
> isadma0 at isa0
> com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
> pckbc0 at isa0 port 0x60/5
> pckbd0 at pckbc0 (kbd slot)
> pckbc0: using irq 1 for kbd slot
> wskbd0 at pckbd0: console keyboard, using wsdisplay0
> pcppi0 at isa0 port 0x61
> spkr0 at pcppi0
> lpt0 at isa0 port 0x378/4 irq 7
> it0 at isa0 port 0x2e/2: IT8728F rev 1, EC port 0xa30
> npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
> mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
> uhub2 at uhub0 port 1 "Intel Rate Matching Hub" rev 2.00/0.00 addr 2
> uhidev0 at uhub2 port 5 configuration 1 interface 0 "vendor 0x04f3 product
> 0x0103" rev 2.00/1.07 addr 3
> uhidev0: iclass 3/1
> ukbd0 at uhidev0: 8 variable keys, 6 key codes
> wskbd1 at ukbd0 mux 1
> wskbd1: connecting to wsdisplay0
> uhidev1 at uhub2 port 5 configuration 1 interface 1 "vendor 0x04f3 product
> 0x0103" rev 2.00/1.07 addr 3
> uhidev1: iclass 3/0, 2 report ids
> uhid0 at uhidev1 reportid 1: input=2, output=0, feature=0
> uhid1 at uhidev1 reportid 2: input=1, output=0, feature=0
> uhub3 at uhub1 port 1 "Intel Rate Matching Hub" rev 2.00/0.00 addr 2
> vscsi0 at root
> scsibus1 at vscsi0: 256 targets
> softraid0 at root
> scsibus2 at softraid0: 256 targets
> root on wd0a (464a6bfc0fac6077.a) swap on wd0b dump on wd0b
> 
> 
> and here's pcidump for the nic:
> 
>  1:0:0: Realtek 8168
>         0x0000: Vendor ID: 10ec Product ID: 8168
>         0x0004: Command: 0007 Status: 0010
>         0x0008: Class: 02 Subclass: 00 Interface: 00 Revision: 06
>         0x000c: BIST: 00 Header Type: 00 Latency Timer: 00 Cache Line Size:
> 10
>         0x0010: BAR io addr: 0x0000e000/0x0100
>         0x0014: BAR empty (00000000)
>         0x0018: BAR mem 64bit addr: 0x00000000f7d00000/0x00001000
>         0x0020: BAR mem prefetchable 64bit addr:
> 0x00000000f0000000/0x00004000
>         0x0028: Cardbus CIS: 00000000
>         0x002c: Subsystem Vendor ID: 7470 Product ID: 3468
>         0x0030: Expansion ROM Base Address: 00000000
>         0x0038: 00000000
>         0x003c: Interrupt Pin: 01 Line: 0b Min Gnt: 00 Max Lat: 00
>         0x0040: Capability 0x01: Power Management
>         0x0050: Capability 0x05: Message Signaled Interrupts (MSI)
>         0x0070: Capability 0x10: PCI Express
>                 Link Speed: 2.5 / 2.5 GT/s Link Width: x1 / x1
>         0x00b0: Capability 0x11: Extended Message Signaled Interrupts
> (MSI-X)
>         0x00d0: Capability 0x03: Vital Product Data (VPD)

-- 
It was the Nicolatians who first coined the separation between lay and clergy.

Reply via email to