>Synopsis: multiple rge(4) nics causes hang >Category: kernel >Environment: System : OpenBSD 6.8 Details : OpenBSD 6.8 (GENERIC.MP) #5: Mon Feb 22 04:36:10 MST 2021 r...@syspatch-68-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
Architecture: OpenBSD.amd64 Machine : amd64 >Description: i have odroid h2+ [1] with the 'net card' [2]. it has two onboard rge(4) nics and four more on the net card. using only rge0/1, the system seems stable. but when i try to bring up more nics, e.g. ifconfig rge2/3/4/5 up, the system will hang. i cannot do anything, except pressing ^C on the console prints a ^C back very slowly but doesn't do anything else. it seems like ifconfig is stuck in kernel, and the system also stops doing anything else like routing the other working nics. current setup is rge0 for WAN with dhcpcd from ports for IPv6 access, and bridge(4) + vether(4) + rge1/2/3/4/5 with dhcpd/rad for LAN. for full config, you can find the ansible scrips at https://github.com/mischief/ansible/. have never used ansible before so i am sure it is crappy :) questions: 1. how can i debug what is happening when i up the nic with ifconfig? 2. would someone on openbsd team (maybe kevin lo) like a copy of this hardware donated? thanks [1]: https://www.hardkernel.com/shop/odroid-h2plus/ [2]: https://www.hardkernel.com/shop/h2-net-card/ >How-To-Repeat: ifconfig rge2 up, etc >Fix: dmesg: OpenBSD 6.8 (GENERIC.MP) #5: Mon Feb 22 04:36:10 MST 2021 r...@syspatch-68-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 8385626112 (7997MB) avail mem = 8116428800 (7740MB) random: good seed from bootblocks mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root bios0 at mainbus0: SMBIOS rev. 3.2 @ 0x79801000 (60 entries) bios0: vendor American Megatrends Inc. version "1.22" date 11/13/2020 bios0: HARDKERNEL ODROID-H2 acpi0 at bios0: ACPI 6.2 acpi0: sleep states S0 S3 S4 S5 acpi0: tables DSDT FACP FPDT FIDT MCFG SSDT DBG2 DBGP HPET LPIT APIC NPKT SSDT SSDT SSDT SSDT SSDT SSDT SSDT BGRT DMAR WDAT WSMT acpi0: wakeup devices HDAS(S3) XHC_(S4) XDCI(S4) RP01(S4) RP02(S4) RP03(S4) RP04(S4) RP05(S4) RP06(S4) acpitimer0 at acpi0: 3579545 Hz, 32 bits acpimcfg0 at acpi0 acpimcfg0: addr 0xe0000000, bus 0-255 acpihpet0 at acpi0: 19200000 Hz acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: Intel(R) Celeron(R) J4115 CPU @ 1.80GHz, 1795.69 MHz, 06-7a-01 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,TSC_ADJUST,SGX,SMEP,ERMS,MPX,RDSEED,SMAP,CLFLUSHOPT,PT,SHA,UMIP,MD_CLEAR,IBRS,IBPB,STIBP,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN cpu0: 4MB 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 19MHz cpu0: mwait min=64, max=64, C-substates=0.2.0.2.4.2.1.1, IBE cpu1 at mainbus0: apid 2 (application processor) cpu1: Intel(R) Celeron(R) J4115 CPU @ 1.80GHz, 1795.04 MHz, 06-7a-01 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,TSC_ADJUST,SGX,SMEP,ERMS,MPX,RDSEED,SMAP,CLFLUSHOPT,PT,SHA,UMIP,MD_CLEAR,IBRS,IBPB,STIBP,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN cpu1: 4MB 64b/line 16-way L2 cache cpu1: smt 0, core 1, package 0 cpu2 at mainbus0: apid 4 (application processor) cpu2: Intel(R) Celeron(R) J4115 CPU @ 1.80GHz, 1795.04 MHz, 06-7a-01 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,TSC_ADJUST,SGX,SMEP,ERMS,MPX,RDSEED,SMAP,CLFLUSHOPT,PT,SHA,UMIP,MD_CLEAR,IBRS,IBPB,STIBP,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN cpu2: 4MB 64b/line 16-way L2 cache cpu2: smt 0, core 2, package 0 cpu3 at mainbus0: apid 6 (application processor) cpu3: Intel(R) Celeron(R) J4115 CPU @ 1.80GHz, 1795.04 MHz, 06-7a-01 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,TSC_ADJUST,SGX,SMEP,ERMS,MPX,RDSEED,SMAP,CLFLUSHOPT,PT,SHA,UMIP,MD_CLEAR,IBRS,IBPB,STIBP,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN cpu3: 4MB 64b/line 16-way L2 cache cpu3: smt 0, core 3, package 0 ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 20, 120 pins acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus 5 (RP01) acpiprt2 at acpi0: bus 6 (RP02) acpiprt3 at acpi0: bus 1 (RP03) acpiprt4 at acpi0: bus 2 (RP04) acpiprt5 at acpi0: bus 3 (RP05) acpiprt6 at acpi0: bus 4 (RP06) acpiec0 at acpi0: not present acpipci0 at acpi0 PCI0: 0x00000000 0x00000011 0x00000001 acpicmos0 at acpi0 acpibtn0 at acpi0: PWRB glkgpio0 at acpi0 GPO1 uid 1 addr 0xd0c40000/0xcef irq 14, 80 pins glkgpio1 at acpi0 GPO0 uid 2 addr 0xd0c50000/0xaff irq 14, 80 pins glkgpio2 at acpi0 GPO2 uid 3 addr 0xd0c90000/0x7bf irq 15, 20 pins glkgpio3 at acpi0 GPO3 uid 4 addr 0xd0c80000/0x82f irq 14, 35 pins "INT33A1" at acpi0 not configured "PNP0C0B" at acpi0 not configured acpipwrres0 at acpi0: WRST acpicpu0 at acpi0: C3(10@150 mwait.1@0x60), C2(10@50 mwait.1@0x21), C1(1000@1 mwait.1@0x1), PSS acpicpu1 at acpi0: C3(10@150 mwait.1@0x60), C2(10@50 mwait.1@0x21), C1(1000@1 mwait.1@0x1), PSS acpicpu2 at acpi0: C3(10@150 mwait.1@0x60), C2(10@50 mwait.1@0x21), C1(1000@1 mwait.1@0x1), PSS acpicpu3 at acpi0: C3(10@150 mwait.1@0x60), C2(10@50 mwait.1@0x21), C1(1000@1 mwait.1@0x1), PSS acpipwrres1 at acpi0: FN00, resource for FAN0 acpitz0 at acpi0: critical temperature is 95 degC acpivideo0 at acpi0: GFX0 acpivout0 at acpivideo0: DD1F cpu0: Enhanced SpeedStep 1795 MHz: speeds: 1801, 1800, 1700, 1600, 1500, 1400, 1300, 1200, 1100, 1000, 900, 800 MHz pci0 at mainbus0 bus 0 pchb0 at pci0 dev 0 function 0 "Intel Gemini Lake Host" rev 0x03 inteldrm0 at pci0 dev 2 function 0 "Intel UHD Graphics 600" rev 0x03 drm0 at inteldrm0 inteldrm0: msi, GEMINILAKE, gen 9 azalia0 at pci0 dev 14 function 0 "Intel Gemini Lake HD Audio" rev 0x03: msi azalia0: codecs: Realtek ALC662, Intel/0x280d, using Realtek ALC662 audio0 at azalia0 vendor "Intel", unknown product 0x319a (class communications subclass miscellaneous, rev 0x03) at pci0 dev 15 function 0 not configured ahci0 at pci0 dev 18 function 0 "Intel Gemini Lake AHCI" rev 0x03: msi, AHCI 1.3.1 ahci0: PHY offline on port 0 ahci0: PHY offline on port 1 scsibus1 at ahci0: 32 targets ppb0 at pci0 dev 19 function 0 "Intel Gemini Lake PCIE" rev 0xf3: msi pci1 at ppb0 bus 1 rge0 at pci1 dev 0 function 0 "Realtek RTL8125" rev 0x04: msi, address 00:1e:06:45:5c:6d ppb1 at pci0 dev 19 function 1 "Intel Gemini Lake PCIE" rev 0xf3: msi pci2 at ppb1 bus 2 rge1 at pci2 dev 0 function 0 "Realtek RTL8125" rev 0x04: msi, address 00:1e:06:45:5c:6e ppb2 at pci0 dev 19 function 2 "Intel Gemini Lake PCIE" rev 0xf3: msi pci3 at ppb2 bus 3 rge2 at pci3 dev 0 function 0 "Realtek RTL8125" rev 0x04: msi, address 00:1e:06:45:5c:6f ppb3 at pci0 dev 19 function 3 "Intel Gemini Lake PCIE" rev 0xf3: msi pci4 at ppb3 bus 4 rge3 at pci4 dev 0 function 0 "Realtek RTL8125" rev 0x04: msi, address 00:1e:06:45:5c:70 ppb4 at pci0 dev 20 function 0 "Intel Gemini Lake PCIE" rev 0xf3: msi pci5 at ppb4 bus 5 rge4 at pci5 dev 0 function 0 "Realtek RTL8125" rev 0x04: msi, address 00:1e:06:45:55:ce ppb5 at pci0 dev 20 function 1 "Intel Gemini Lake PCIE" rev 0xf3: msi pci6 at ppb5 bus 6 rge5 at pci6 dev 0 function 0 "Realtek RTL8125" rev 0x04: msi, address 00:1e:06:45:55:cf xhci0 at pci0 dev 21 function 0 "Intel Gemini Lake xHCI" rev 0x03: msi, xHCI 1.0 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 "Intel Gemini Lake I2C" rev 0x03 at pci0 dev 23 function 0 not configured "Intel Gemini Lake I2C" rev 0x03 at pci0 dev 23 function 1 not configured "Intel Gemini Lake I2C" rev 0x03 at pci0 dev 23 function 2 not configured "Intel Gemini Lake I2C" rev 0x03 at pci0 dev 23 function 3 not configured sdhc0 at pci0 dev 28 function 0 "Intel Gemini Lake eMMC" rev 0x03: apic 1 int 39 sdhc0: SDHC 3.0, 200 MHz base clock sdmmc0 at sdhc0: 8-bit, sd high-speed, mmc high-speed, ddr52, dma pcib0 at pci0 dev 31 function 0 "Intel Gemini Lake LPC" rev 0x03 "Intel Gemini Lake SMBus" rev 0x03 at pci0 dev 31 function 1 not configured isa0 at pcib0 isadma0 at isa0 com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo pckbc0 at isa0 port 0x60/5 irq 1 irq 12 pcppi0 at isa0 port 0x61 spkr0 at pcppi0 vmm0 at mainbus0: VMX/EPT (using slow L1TF mitigation) efifb at mainbus0 not configured scsibus2 at sdmmc0: 2 targets, initiator 0 sd0 at scsibus2 targ 1 lun 0: <Samsung, BJTD4R, 0000> removable sd0: 29820MB, 512 bytes/sector, 61071360 sectors uhub1 at uhub0 port 2 configuration 1 interface 0 "Lite-On Tech USB 1.1 2 port downstream low-power hub" rev 1.10/2.01 addr 2 uhidev0 at uhub1 port 3 configuration 1 interface 0 "Lite-On Tech IBM USB Travel Keyboard with UltraNav" rev 1.10/1.16 addr 3 uhidev0: iclass 3/1 ukbd0 at uhidev0: 8 variable keys, 6 key codes wskbd0 at ukbd0: console keyboard uhidev1 at uhub1 port 3 configuration 1 interface 1 "Lite-On Tech IBM USB Travel Keyboard with UltraNav" rev 1.10/1.16 addr 3 uhidev1: iclass 3/0, 3 report ids uhid0 at uhidev1 reportid 2: input=1, output=0, feature=0 uhid1 at uhidev1 reportid 3: input=3, output=0, feature=0 uhidev2 at uhub1 port 4 configuration 1 interface 0 "Synaptics Inc. Composite TouchPad / TrackPoint" rev 1.10/0.20 addr 4 uhidev2: iclass 3/1 ums0 at uhidev2: 3 buttons wsmouse0 at ums0 mux 0 uhidev3 at uhub1 port 4 configuration 1 interface 1 "Synaptics Inc. Composite TouchPad / TrackPoint" rev 1.10/0.20 addr 4 uhidev3: iclass 3/1 ums1 at uhidev3: 3 buttons wsmouse1 at ums1 mux 0 uftdi0 at uhub0 port 4 configuration 1 interface 0 "FTDI FT230X Basic UART" rev 2.00/10.00 addr 5 ucom0 at uftdi0 portno 1 vscsi0 at root scsibus3 at vscsi0: 256 targets softraid0 at root scsibus4 at softraid0: 256 targets root on sd0a (f8f0482c886509c6.a) swap on sd0b dump on sd0b WARNING: / was not properly unmounted drm:pid0:rc6_supported *NOTICE* RC6 and powersaving disabled by BIOS inteldrm0: 1280x720, 32bpp wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation), using wskbd0 wsdisplay0: screen 1-5 added (std, vt100 emulation) usbdevs: Controller /dev/usb0: addr 01: 8086:0000 Intel, xHCI root hub super speed, self powered, config 1, rev 1.00 driver: uhub0 addr 02: 04b3:3016 Lite-On Tech, USB 1.1 2 port downstream low-power hub full speed, power 40 mA, config 1, rev 2.01 driver: uhub1 addr 03: 04b3:3019 Lite-On Tech, IBM USB Travel Keyboard with UltraNav low speed, power 70 mA, config 1, rev 1.16 driver: uhidev0 driver: uhidev1 addr 04: 06cb:0009 Synaptics Inc., Composite TouchPad / TrackPoint low speed, power 100 mA, config 1, rev 0.20 driver: uhidev2 driver: uhidev3 addr 05: 0403:6015 FTDI, FT230X Basic UART full speed, power 90 mA, config 1, rev 10.00, iSerial DT03QUKD driver: uftdi0