Dear Tech reader, I am recently working on Intel(R) Atom(TM) CPU C3758 intel devices. SFP Intel card are not working in 6.3/current openBSD base
I did patch intel driver reading netbsd, freebsd and intel code of ixgbe driver. I am now transferring data between two openBSD at ~1.50 Gb/s for more than 48 hours ( been looping all week end ) First, i d like to find other user with ix card to check for regression ! Secondly, can i get some feedback on how to test 10Gb /s transfer - i usually download ramfs file through nginx or use iperf . Third, how can i get a patch accepted into base : ie, how do i clean this work ? - - - - - Patch : 17 K lines OOPS Find the patch here : https://github.com/dohnuts/wip/blob/master/ixgbe.diff - - - - dmesg: OpenBSD 6.3-stable (ACPI.MP) #10: Fri Sep 14 14:54:51 EDT 2018 root@futur:/usr/src/sys/arch/amd64/compile/ACPI.MP real mem = 17130721280 (16337MB) avail mem = 16604413952 (15835MB) mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root bios0 at mainbus0: SMBIOS rev. 3.0 @ 0x7f1fc000 (18 entries) bios0: vendor American Megatrends Inc. version "0ACHIA01" date 06/14/2018 bios0: NF699 NF699 acpi0 at bios0: rev 2 #please dont mind this acpi0: sleep states S0 S4 S5acpi_enable: 0000000C, 000000A0, 00000010, 00000001, 000000B2, 15 (15), acpi_writepm: smi = 00b2:0000 a0 check acpi_enable, PM1, 00000000, 00000001, 00000010 check acpi_enable, PM1, 00000000, 00000001, 00000010 check acpi_enable, PM1, 00000000, 00000001, 00000010 check acpi_enable, PM1, 00000000, 00000001, 00000010 check acpi_enable, PM1, 00000000, 00000001, 00000010 check acpi_enable, PM1, 00000000, 00000001, 00000010 check acpi_enable, PM1, 00000000, 00000001, 00000010 check acpi_enable, PM1, 00000000, 00000001, 00000010 check acpi_enable, PM1, 00000000, 00000001, 00000010 check acpi_enable, PM1, 00000000, 00000001, 00000010 check acpi_enable, PM1, 00000000, 00000001, 00000010 check acpi_enable, PM1, 00000000, 00000001, 00000010 check acpi_enable, PM1, 00000000, 00000001, 00000010 check acpi_enable, PM1, 00000000, 00000001, 00000010 check acpi_enable, PM1, 00000000, 00000001, 00000010 check acpi_enable, PM1, 00000000, 00000001, 00000010 check acpi_enable, PM1, 00000000, 00000001, 00000010, can't enable ACPI #please dont mind this acpi0: tables DSDT FACP FPDT FIDT MCFG WDAT APIC BDAT HPET UEFI SSDT DMAR HEST BERT ERST EINJ WSMT acpi0: wakeup devices PEX0(S4) PEX1(S4) PEX2(S4) PEX3(S4) PEX4(S4) PEX5(S4) PEX6(S4) PEX7(S4) XHC1(S4) LAN0(S4) LAN1(S4) LAN2(S4) LAN3(S4) acpitimer0 at acpi0: 3579545 Hz, 24 bits acpimcfg0 at acpi0 addr 0xe0000000, bus 0-255 acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: Intel(R) Atom(TM) CPU C3758 @ 2.20GHz, 2200.41 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,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,CX16,xTPR,PDCM,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,3DNOWP,PERF,ITSC,FSGSBASE,SMEP,ERMS,MPX,RDSEED,SMAP,CLFLUSHOPT,PT,SHA,IBRS,IBPB,STIBP,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES cpu0: 2MB 64b/line 16-way L2 cache cpu0: smt 0, core 0, package 0 mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges cpu0: apic clock running at 24MHz cpu0: mwait min=64, max=64, C-substates=0.2.0.2, IBE cpu1 at mainbus0: apid 4 (application processor) cpu1: Intel(R) Atom(TM) CPU C3758 @ 2.20GHz, 2200.00 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,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,CX16,xTPR,PDCM,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,3DNOWP,PERF,ITSC,FSGSBASE,SMEP,ERMS,MPX,RDSEED,SMAP,CLFLUSHOPT,PT,SHA,IBRS,IBPB,STIBP,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES cpu1: 2MB 64b/line 16-way L2 cache cpu1: smt 0, core 2, package 0 cpu2 at mainbus0: apid 8 (application processor) cpu2: Intel(R) Atom(TM) CPU C3758 @ 2.20GHz, 2200.00 MHz cpu2: 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,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,CX16,xTPR,PDCM,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,3DNOWP,PERF,ITSC,FSGSBASE,SMEP,ERMS,MPX,RDSEED,SMAP,CLFLUSHOPT,PT,SHA,IBRS,IBPB,STIBP,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES cpu2: 2MB 64b/line 16-way L2 cache cpu2: smt 0, core 4, package 0 cpu3 at mainbus0: apid 12 (application processor) cpu3: Intel(R) Atom(TM) CPU C3758 @ 2.20GHz, 2200.00 MHz cpu3: 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,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,CX16,xTPR,PDCM,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,3DNOWP,PERF,ITSC,FSGSBASE,SMEP,ERMS,MPX,RDSEED,SMAP,CLFLUSHOPT,PT,SHA,IBRS,IBPB,STIBP,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES cpu3: 2MB 64b/line 16-way L2 cache cpu3: smt 0, core 6, package 0 cpu4 at mainbus0: apid 16 (application processor) cpu4: Intel(R) Atom(TM) CPU C3758 @ 2.20GHz, 2200.00 MHz cpu4: 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,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,CX16,xTPR,PDCM,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,3DNOWP,PERF,ITSC,FSGSBASE,SMEP,ERMS,MPX,RDSEED,SMAP,CLFLUSHOPT,PT,SHA,IBRS,IBPB,STIBP,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES cpu4: 2MB 64b/line 16-way L2 cache cpu4: smt 0, core 8, package 0 cpu5 at mainbus0: apid 20 (application processor) cpu5: Intel(R) Atom(TM) CPU C3758 @ 2.20GHz, 2200.00 MHz cpu5: 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,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,CX16,xTPR,PDCM,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,3DNOWP,PERF,ITSC,FSGSBASE,SMEP,ERMS,MPX,RDSEED,SMAP,CLFLUSHOPT,PT,SHA,IBRS,IBPB,STIBP,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES cpu5: 2MB 64b/line 16-way L2 cache cpu5: smt 0, core 10, package 0 cpu6 at mainbus0: apid 24 (application processor) cpu6: Intel(R) Atom(TM) CPU C3758 @ 2.20GHz, 2200.00 MHz cpu6: 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,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,CX16,xTPR,PDCM,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,3DNOWP,PERF,ITSC,FSGSBASE,SMEP,ERMS,MPX,RDSEED,SMAP,CLFLUSHOPT,PT,SHA,IBRS,IBPB,STIBP,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES cpu6: 2MB 64b/line 16-way L2 cache cpu6: smt 0, core 12, package 0 cpu7 at mainbus0: apid 28 (application processor) cpu7: Intel(R) Atom(TM) CPU C3758 @ 2.20GHz, 2200.00 MHz cpu7: 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,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,CX16,xTPR,PDCM,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,3DNOWP,PERF,ITSC,FSGSBASE,SMEP,ERMS,MPX,RDSEED,SMAP,CLFLUSHOPT,PT,SHA,IBRS,IBPB,STIBP,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES cpu7: 2MB 64b/line 16-way L2 cache cpu7: smt 0, core 14, package 0 ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 24 pins acpihpet0 at acpi0: 23999999 Hz 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 -1 (PEX3) acpiprt5 at acpi0: bus 3 (PEX4) acpiprt6 at acpi0: bus 4 (PEX5) acpiprt7 at acpi0: bus 5 (PEX6) acpiprt8 at acpi0: bus 6 (PEX7) acpiprt9 at acpi0: bus 7 (BR38) acpiprt10 at acpi0: bus 1 (VRP2) acpiprt11 at acpi0: bus 8 (VRP0) acpiprt12 at acpi0: bus 9 (VRP1) acpicpu0 at acpi0: C2(10@50 mwait.1@0x21), C1(1000@1 mwait.1@0x1), PSS acpicpu1 at acpi0: C2(10@50 mwait.1@0x21), C1(1000@1 mwait.1@0x1), PSS acpicpu2 at acpi0: C2(10@50 mwait.1@0x21), C1(1000@1 mwait.1@0x1), PSS acpicpu3 at acpi0: C2(10@50 mwait.1@0x21), C1(1000@1 mwait.1@0x1), PSS acpicpu4 at acpi0: C2(10@50 mwait.1@0x21), C1(1000@1 mwait.1@0x1), PSS acpicpu5 at acpi0: C2(10@50 mwait.1@0x21), C1(1000@1 mwait.1@0x1), PSS acpicpu6 at acpi0: C2(10@50 mwait.1@0x21), C1(1000@1 mwait.1@0x1), PSS acpicpu7 at acpi0: C2(10@50 mwait.1@0x21), C1(1000@1 mwait.1@0x1), PSS acpitz0 at acpi0: critical temperature is 100 degC acpitz1 at acpi0: critical temperature is 93 degC "PNP0003" at acpi0 not configured "PNP0C33" at acpi0 not configured cpu0: Enhanced SpeedStep 2200 MHz: speeds: 2200, 2100, 2000, 1900, 1800, 1700, 1600, 1500, 1400, 1300, 1200, 1100, 1000, 900, 800 MHz pci0 at mainbus0 bus 0 0:31:5: mem address conflict 0xfe010000/0x1000 pchb0 at pci0 dev 0 function 0 "Intel C3000 System Agent" rev 0x11 pchb1 at pci0 dev 4 function 0 "Intel C3000 GLREG" rev 0x11 "Intel C3000 RCEC" rev 0x11 at pci0 dev 5 function 0 not configured ppb0 at pci0 dev 6 function 0 "Intel C3000 PCIe Root Port for QAT" rev 0x11 pci1 at ppb0 bus 1 "Intel C3000 QAT" rev 0x11 at pci1 dev 0 function 0 not configured ppb1 at pci0 dev 9 function 0 "Intel C3000 PCIe 0-0" rev 0x11 pci2 at ppb1 bus 2 ppb2 at pci0 dev 14 function 0 "Intel C3000 PCIe 1-0" rev 0x11 pci3 at ppb2 bus 3 em0 at pci3 dev 0 function 0 "Intel I210" rev 0x03: msi, address 00:30:18:0b:4a:7f ppb3 at pci0 dev 15 function 0 "Intel C3000 PCIe 1-1" rev 0x11 pci4 at ppb3 bus 4 em1 at pci4 dev 0 function 0 "Intel I210" rev 0x03: msi, address 00:30:18:0b:4a:80 ppb4 at pci0 dev 16 function 0 "Intel C3000 PCIe 1-2" rev 0x11 pci5 at ppb4 bus 5 ppb5 at pci0 dev 17 function 0 "Intel C3000 PCIe 1-3" rev 0x11 pci6 at ppb5 bus 6 ppb6 at pci6 dev 0 function 0 "ASPEED Technology AST1150 PCI" rev 0x04 pci7 at ppb6 bus 7 "ASPEED Technology AST2000" rev 0x41 at pci7 dev 0 function 0 not configured "Intel C3000 SMBUS" rev 0x11 at pci0 dev 18 function 0 not configured ahci0 at pci0 dev 19 function 0 "Intel C3000 Sata 0" rev 0x11: msi, AHCI 1.3.1 ahci0: port 5: 3.0Gb/s scsibus1 at ahci0: 32 targets sd0 at scsibus1 targ 5 lun 0: <ATA, ST3250310NS, SN04> SCSI3 0/direct fixed naa.5000c5000b84e6bd sd0: 238475MB, 512 bytes/sector, 488397168 sectors ahci1 at pci0 dev 20 function 0 "Intel C3000 Sata 1" rev 0x11: msi, AHCI 1.3.1 ahci1: port 1: 3.0Gb/s scsibus2 at ahci1: 32 targets sd1 at scsibus2 targ 1 lun 0: <ATA, ST9250410AS, 0002> SCSI3 0/direct fixed naa.5000c5002fd76acd sd1: 238475MB, 512 bytes/sector, 488397168 sectors xhci0 at pci0 dev 21 function 0 "Intel C3000 USB 2.0/3.0" rev 0x11: msi usb0 at xhci0: USB revision 3.0 uhub0 at usb0 configuration 1 interface 0 "Intel xHCI root hub" rev 3.00/1.00 addr 1 ppb7 at pci0 dev 22 function 0 "Intel C3000 PCIe Root Port for LAN 0" rev 0x11 pci8 at ppb7 bus 8 ix0 at pci8 dev 0 function 0 "Intel X553 SFP+" rev 0x11: msi, address 00:30:18:0b:4a:81 ix1 at pci8 dev 0 function 1 "Intel X553 SFP+" rev 0x11: msi, address 00:30:18:0b:4a:82 ppb8 at pci0 dev 23 function 0 "Intel C3000 PCIe Root Port for LAN 1" rev 0x11 pci9 at ppb8 bus 9 ix2 at pci9 dev 0 function 0 "Intel X553 SFP+" rev 0x11: msi, address 00:30:18:0b:4a:83 ix3 at pci9 dev 0 function 1 "Intel X553 SFP+" rev 0x11: msi, address 00:30:18:0b:4a:84 "Intel C3000 ME HECI 1" rev 0x11 at pci0 dev 24 function 0 not configured sdhc0 at pci0 dev 28 function 0 "Intel C3000 eMMC" rev 0x11: apic 2 int 16 sdhc0: SDHC 3.0, 200 MHz base clock sdmmc0 at sdhc0: 8-bit, sd high-speed, mmc high-speed, dma pcib0 at pci0 dev 31 function 0 "Intel C3000 LPC" rev 0x11 "Intel C3000 PMC" rev 0x11 at pci0 dev 31 function 2 not configured "Intel C3000 Legacy SMBus" rev 0x11 at pci0 dev 31 function 4 not configured "Intel C3000 SPI" rev 0x11 at pci0 dev 31 function 5 not configured isa0 at pcib0 isadma0 at isa0 com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo com0: console com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo pcppi0 at isa0 port 0x61 spkr0 at pcppi0 vmm0 at mainbus0: VMX/EPT efifb0 at mainbus0: 800x600, 32bpp wsdisplay0 at efifb0 mux 1 wsdisplay0: screen 0-5 added (std, vt100 emulation) sdmmc0: can't enable card uhub1 at uhub0 port 4 configuration 1 interface 0 "Genesys Logic USB2.0 Hub" rev 2.00/88.32 addr 2 vscsi0 at root scsibus3 at vscsi0: 256 targets softraid0 at root scsibus4 at softraid0: 256 targets sd2 at scsibus4 targ 1 lun 0: <OPENBSD, SR RAID 1, 006> SCSI2 0/direct fixed sd2: 238474MB, 512 bytes/sector, 488395553 sectors root on sd2a (17f18870b9e152c5.a) swap on sd2b dump on sd2b - - - - - PS: the ACPI part is me ignoring the legacy mode to get things working. --- dev/acpi/acpi.c 19 Feb 2018 08:59:52 -0000 1.340 +++ dev/acpi/acpi.c 17 Sep 2018 20:31:51 -0000 @@ -1093,7 +1093,7 @@ acpi_attach(struct device *parent, struc if ((pm1 & ACPI_PM1_SCI_EN) == 0 && sc->sc_fadt->smi_cmd) { if (acpi_enable(sc)) { printf(", can't enable ACPI\n"); - return; + // return; } } -- -- --------------------------------------------------------------------------------------------------------------------- Knowing is not enough; we must apply. Willing is not enough; we must do
