Hi Matthias,

I just committed if_cdcef.c, rev 1.77. That should fix the panic.
However, the cdce(4) interface will still stop sending. But that
may be due to some problem with the USB network adapter.


Gerhard

On 2020-06-07 14:57, Matthias wrote:
Synopsis:       6.7-stable USB3 panic: assertwaitok: non-zero mutex count: 1
Category:       kernel
Environment:
        System      : OpenBSD 6.7
        Details     : OpenBSD 6.7 (GENERIC.MP) #2: Thu Jun  4 09:55:08 MDT 2020
                         
r...@syspatch-67-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP

        Architecture: OpenBSD.amd64
        Machine     : amd64
Description:
        After ~1-2 days the server crashes. The USB3 network adapters (cdce) 
appear to be involved as this does not happen on a USB2-only backup server 
running 6.7-stable. This also did not happen with 6.6-stable. I saw similar 
crash reports on bugs@ recently. Just sending this as it may contain additional 
information.

ddb{0}> show panic
assertwaitok: non-zero mutex count: 1

ddb{0}> trace
db_enter() at db_enter+0x10
panic(ffffffff81c8c2a4) at panic+0x128
assertwaitok() at assertwaitok+0xc7
mi_switch() at mi_switch+0x40
sleep_finish(ffff800020230cd8,1) at sleep_finish+0x84
sleep_finish_all(ffff800020230cd8,1) at sleep_finish_all+0x21
tsleep(ffff800000130750,16,ffffffff81c98204,33) at tsleep+0xd6
xhci_command_submit(ffff80000011b000,ffff800020230dc8,1dcd6500) at xhci_command
_submit+0x13f
xhci_abort_xfer(fffffd817f89c3c0,6) at xhci_abort_xfer+0x13a
usbd_abort_pipe(ffff800000a5e000) at usbd_abort_pipe+0x3d
cdce_stop(ffff8000003cb000) at cdce_stop+0x46
cdce_encap(ffff8000003cb000,fffffd801d501a00,0) at cdce_encap+0xf7
cdce_start(ffff8000003cb048) at cdce_start+0x84
if_qstart_compat(ffff8000003cb2c0) at if_qstart_compat+0x2e
ifq_serialize(ffff8000003cb2c0,ffff8000003cb390) at ifq_serialize+0x103
taskq_thread(ffff80000003a0c0) at taskq_thread+0x4d
end trace frame: 0x0, count: -16

ddb{0}> ps
    PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
  12486  298693      1      0  3    0x100083  ttyin         getty
  99434  183909      1      0  3    0x100083  ttyin         getty
  60013  239089      1      0  3    0x100083  ttyin         getty
  81607  450582      1      0  3    0x100083  ttyin         getty
  57630  349299      1      0  3    0x100083  ttyin         getty
  40564  404576      1      0  3    0x100083  ttyin         getty
  40014   41691      1      0  3    0x100098  poll          cron
  50279  381075      1     99  3    0x100090  poll          sndiod
  91619  288003      1    110  3    0x100090  poll          sndiod
  53415  129112      1    109  3        0x90  kqread        ftp-proxy
  14622   25396  58826     95  3    0x100092  kqread        smtpd
  39273  386691  58826    103  3    0x100092  kqread        smtpd
  48966   71880  58826     95  3    0x100092  kqread        smtpd
  28228   40707  58826     95  3    0x100092  kqread        smtpd
  82648    4150  58826     95  3    0x100092  kqread        smtpd
  10338  135224  58826     95  3    0x100092  kqread        smtpd
  58826  247890      1      0  3    0x100080  kqread        smtpd
  12615  212381      1     77  3    0x100090  poll          dhcpd
  85979  509198      1      0  3        0x80  select        sshd
  48139  519425      1      0  3    0x100080  poll          ntpd
  59931  362850   1640     83  3    0x100092  poll          ntpd
   1640  206706      1     83  3    0x100092  poll          ntpd
  38615   84215      1     53  3        0x90  kqread        unbound
    130  438640  43856     74  3    0x100092  bpf           pflogd
  43856  416242      1      0  3        0x80  netio         pflogd
   5225   84596   8634     73  3    0x100090  kqread        syslogd
   8634   40345      1      0  3    0x100082  netio         syslogd
  17797   33595  87133    115  3    0x100092  kqread        slaacd
  97226  141252  87133    115  3    0x100092  kqread        slaacd
  87133  292818      1      0  3    0x100080  kqread        slaacd
  40953  507895      0      0  3     0x14280  schto         i915/signal:6
  35819   13695      0      0  3     0x14280  schto         i915/signal:2
  57548  409063      0      0  3     0x14280  schto         i915/signal:1
  13585  303805      0      0  3     0x14280  schto         i915/signal:0
  90572  387925      0      0  3     0x14200  bored         i915-userptr-acq
   7972  404423      0      0  3     0x14200  bored         i915_modeset
  64027  472769      0      0  3     0x14200  bored         i915-dp
  63546  416859      0      0  3     0x14200  bored         i915
  65809  163493      0      0  3     0x14200  bored         smr
  18923   16924      0      0  3     0x14200  pgzero        zerothread
  49603  391724      0      0  3     0x14200  aiodoned      aiodoned
   5278  258120      0      0  3     0x14200  syncer        update
  85919  506000      0      0  3     0x14200  cleaner       cleaner
  18761  448463      0      0  3     0x14200  reaper        reaper
  27055  310296      0      0  3     0x14200  pgdaemon      pagedaemon
  60923   36375      0      0  3     0x14200  bored         srdis
  46991  523603      0      0  3     0x14200  bored         crynlk
  72902  267105      0      0  3     0x14200  bored         crypto
  69033  499222      0      0  3     0x14200  usbtsk        usbtask
   4365  150962      0      0  3     0x14200  usbatsk       usbatsk
  33899   39925      0      0  3     0x14200  bored         drmtskl
  24193  192679      0      0  3     0x14200  bored         drmlwq
   7356  193972      0      0  3     0x14200  bored         drmlwq
  71737   60918      0      0  3     0x14200  bored         drmlwq
  74997   13696      0      0  3     0x14200  bored         drmlwq
   3407  410610      0      0  3     0x14200  bored         drmubwq
   3287  490795      0      0  3     0x14200  bored         drmubwq
  58055  297741      0      0  3     0x14200  bored         drmubwq
   3046  348769      0      0  3     0x14200  bored         drmubwq
  15909  347371      0      0  3     0x14200  bored         drmwq
  21629  475641      0      0  3     0x14200  bored         drmwq
  33685   90340      0      0  3     0x14200  bored         drmwq
   5533  108698      0      0  3     0x14200  bored         drmwq
  69991  308897      0      0  3  0x40014200  acpi0         acpi0
  18770  239804      0      0  7  0x40014200                idle3
   8941  258169      0      0  7  0x40014200                idle2
  87151  291241      0      0  7  0x40014200                idle1
  20363  343121      0      0  3     0x14200  bored         sensors
* 2870  100229      0      0  3     0x14200  xhcicmd       softnet
  85693  322281      0      0  3     0x14200  bored         systqmp
  93526  123490      0      0  3     0x14200  bored         systq
  65339   18565      0      0  3  0x40014200  bored         softclock
  19693  515755      0      0  3  0x40014200                idle0
      1   73495      0      0  3        0x82  wait          init
      0       0     -1      0  3     0x10200  scheduler     swapper

ddb{0}> show uvm
Current UVM status:
   pagesize=4096 (0x1000), pagemask=0xfff, pageshift=12
   971724 VM pages: 9249 active, 76504 inactive, 61 wired, 749854 free (93741 ze
ro)
   min  10% (25) anon, 10% (25) vnode, 5% (12) vtext
   freemin=32390, free-target=43186, inactive-target=0, wired-max=323908
   faults=516314, traps=520759, intrs=24736243, ctxswitch=19339556 fpuswitch=0
   softint=15498139, syscalls=1081699, kmapent=11
   fault counts:
     noram=0, noanon=0, noamap=0, pgwait=0, pgrele=0
     ok relocks(total)=112312(112681), anget(retries)=166622(0), amapcopy=144786

     neighbor anon/obj pg=20984/268904, gets(lock/unlock)=193048/112681
     cases: anon=133760, anoncow=32862, obj=180250, prcopy=12429, przero=156995
   daemon and swap counts:
     woke=0, revs=0, scans=0, obscans=0, anscans=0
     busy=0, freed=0, reactivate=0, deactivate=0
     pageouts=0, pending=0, nswget=0
     nswapdev=1
     swpages=2098490, swpginuse=0, swpgonly=0 paging=0
   kernel pointers:
     objs(kern)=0xffffffff81f4f298

ddb{0}> show bcstats
Current Buffer Cache status:
numbufs 30339 busymapped 0, delwri 0
kvaslots 5973 avail kva slots 5973
bufpages 121285, dmapages 95504, dirtypages 0
pendingreads 0, pendingwrites 0
highflips 6597, highflops 0, dmaflips 12

ddb{0}> mach ddbcpu 1
Stopped at      x86_ipi_db+0x12:        leave
x86_ipi_db(ffff80001ffd1ff0) at x86_ipi_db+0x12
x86_ipi_handler() at x86_ipi_handler+0x80
Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23
acpicpu_idle() at acpicpu_idle+0x1d2
sched_idle(ffff80001ffd1ff0) at sched_idle+0x225
end trace frame: 0x0, count: 10

ddb{1}> trace
x86_ipi_db(ffff80001ffd1ff0) at x86_ipi_db+0x12
x86_ipi_handler() at x86_ipi_handler+0x80
Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23
acpicpu_idle() at acpicpu_idle+0x1d2
sched_idle(ffff80001ffd1ff0) at sched_idle+0x225
end trace frame: 0x0, count: -5

ddb{1}> mach ddbcpu 2
Stopped at      x86_ipi_db+0x12:        leave
x86_ipi_db(ffff80001ffe2ff0) at x86_ipi_db+0x12
x86_ipi_handler() at x86_ipi_handler+0x80
Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23
acpicpu_idle() at acpicpu_idle+0x1d2
sched_idle(ffff80001ffe2ff0) at sched_idle+0x225
end trace frame: 0x0, count: 10

ddb{2}> trace
x86_ipi_db(ffff80001ffe2ff0) at x86_ipi_db+0x12
x86_ipi_handler() at x86_ipi_handler+0x80
Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23
acpicpu_idle() at acpicpu_idle+0x1d2
sched_idle(ffff80001ffe2ff0) at sched_idle+0x225
end trace frame: 0x0, count: -5

ddb{2}> mach ddbcpu 3
stopped at      x86_ipi_db+0x12:        leave
x86_ipi_db(ffff80001ffebff0) at x86_ipi_db+0x12
x86_ipi_handler() at x86_ipi_handler+0x80
Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23
acpicpu_idle() at acpicpu_idle+0x1d2
sched_idle(ffff80001ffebff0) at sched_idle+0x225
end trace frame: 0x0, count: 10

ddb{3}> trace
x86_ipi_db(ffff80001ffebff0) at x86_ipi_db+0x12
x86_ipi_handler() at x86_ipi_handler+0x80
Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23
acpicpu_idle() at acpicpu_idle+0x1d2
sched_idle(ffff80001ffebff0) at sched_idle+0x225
end trace frame: 0x0, count: -5

ddb{0}> show registers
rdi               0xffffffff81f47660    kprintf_mutex
rsi                              0x5
rbp               0xffff800020230b30
rbx               0xffff800020230be0
rdx               0x8000000000000000
rcx                            0x282
rax                              0x1
r8                0xffff800020230af0
r9                0xffff8000003ca0d5
r10               0x2945608c58a966cd
r11               0xd8caf7a1be397e00
r12                     0x3000000008
r13               0xffff800020230b40
r14                            0x100
r15               0xffffffff81c8c2a4    cmd0646_9_tim_udma+0x2d41c
rip               0xffffffff81605c60    db_enter+0x10
cs                               0x8
rflags                         0x286
rsp               0xffff800020230b30
ss                              0x10
db_enter+0x10:  popq    %rbp

ddb{0}> boot dump
panic: kernel diagnostic assertion "__mp_lock_held(&sched_lock, curcpu()) == 0" failed: 
file "/usr/src/sys/kern/kern_lock.c", line 63
Stopped at      db_enter+0x10:  popq    %rbp
db_enter() at db_enter+0x10
panic(ffffffff81c80931) at panic+0x128
__assert(ffffffff81cd3ab7,ffffffff81cb3de4,3f,ffffffff81cfab2d) at __assert+0x2
b
_kernel_lock() at _kernel_lock+0xf6
softintr_dispatch(1) at softintr_dispatch+0x4a
Xsoftnet() at Xsoftnet+0x1f
Xspllower() at Xspllower+0x19
kputchar(70,5,0) at kputchar+0xe4
kprintf() at kprintf+0xe8
printf(ffffffff81c8698d) at printf+0x6f
panic(ffffffff81c80931) at panic+0xb5
__assert(ffffffff81cd3ab7,ffffffff81cb3de4,3f,ffffffff81cfab2d) at __assert+0x2
b
_kernel_lock() at _kernel_lock+0xf6
softintr_dispatch(0) at softintr_dispatch+0x4a
end trace frame: 0xffff800020230790, count: 0

ddb{0}> boot reboot
rebooting...

How-To-Repeat:
        Just let the server run normally 1-2 days with moderate traffic on any 
of the USB3 network interfaces.

Fix:
        Use 6.6-stable or 6.7-stable on USB2-only hardware.



dmesg:
OpenBSD 6.7 (GENERIC.MP) #2: Thu Jun  4 09:55:08 MDT 2020
     
r...@syspatch-67-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 4108840960 (3918MB)
avail mem = 3971698688 (3787MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 3.0 @ 0xecef0 (51 entries)
bios0: vendor American Megatrends Inc. version "D7530A09" date 06/18/2019
bios0: MiTAC PD14RI
acpi0 at bios0: ACPI 5.0
acpi0: sleep states S0 S5
acpi0: tables DSDT FACP APIC FPDT FIDT MCFG SSDT SSDT SSDT UEFI LPIT CSRT
acpi0: wakeup devices PS2K(S0) PS2M(S0) BRCM(S0) XHC1(S4) HDEF(S4) RP01(S4) 
PXSX(S4) RP02(S4) PXSX(S4) RP03(S4) PXSX(S4) RP04(S4) PXSX(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Pentium(R) CPU N3700 @ 1.60GHz, 1600.34 MHz, 06-4c-03
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,CX16,xTPR,PDCM,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,AES,RDRAND,NXE,RDTSCP,LONG,LAHF,3DNOWP,PERF,ITSC,TSC_ADJUST,SMEP,ERMS,MD_CLEAR,IBRS,IBPB,STIBP,SENSOR,ARAT,MELTDOWN
cpu0: 1MB 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 80MHz
cpu0: mwait min=64, max=64, C-substates=0.2.0.0.0.0.3.3, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Pentium(R) CPU N3700 @ 1.60GHz, 1600.01 MHz, 06-4c-03
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,CX16,xTPR,PDCM,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,AES,RDRAND,NXE,RDTSCP,LONG,LAHF,3DNOWP,PERF,ITSC,TSC_ADJUST,SMEP,ERMS,MD_CLEAR,IBRS,IBPB,STIBP,SENSOR,ARAT,MELTDOWN
cpu1: 1MB 64b/line 16-way L2 cache
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 4 (application processor)
cpu2: Intel(R) Pentium(R) CPU N3700 @ 1.60GHz, 1600.01 MHz, 06-4c-03
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,CX16,xTPR,PDCM,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,AES,RDRAND,NXE,RDTSCP,LONG,LAHF,3DNOWP,PERF,ITSC,TSC_ADJUST,SMEP,ERMS,MD_CLEAR,IBRS,IBPB,STIBP,SENSOR,ARAT,MELTDOWN
cpu2: 1MB 64b/line 16-way L2 cache
cpu2: smt 0, core 2, package 0
cpu3 at mainbus0: apid 6 (application processor)
cpu3: Intel(R) Pentium(R) CPU N3700 @ 1.60GHz, 1600.01 MHz, 06-4c-03
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,CX16,xTPR,PDCM,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,AES,RDRAND,NXE,RDTSCP,LONG,LAHF,3DNOWP,PERF,ITSC,TSC_ADJUST,SMEP,ERMS,MD_CLEAR,IBRS,IBPB,STIBP,SENSOR,ARAT,MELTDOWN
cpu3: 1MB 64b/line 16-way L2 cache
cpu3: smt 0, core 3, package 0
ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 20, 115 pins
acpimcfg0 at acpi0
acpimcfg0: addr 0xe0000000, bus 0-255
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (RP01)
acpiprt2 at acpi0: bus -1 (RP02)
acpiprt3 at acpi0: bus -1 (RP03)
acpiprt4 at acpi0: bus -1 (RP04)
acpiec0 at acpi0: not present
acpicpu0 at acpi0: C2(10@500 mwait.1@0x58), C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: C2(10@500 mwait.1@0x58), C1(1000@1 mwait.1), PSS
acpicpu2 at acpi0: C2(10@500 mwait.1@0x58), C1(1000@1 mwait.1), PSS
acpicpu3 at acpi0: C2(10@500 mwait.1@0x58), C1(1000@1 mwait.1), PSS
acpipwrres0 at acpi0: ID3C, resource for ISP3
acpipwrres1 at acpi0: CLK0, resource for CAMD
acpipwrres2 at acpi0: USBC, resource for XHC1
acpipwrres3 at acpi0: FN00, resource for FAN0
acpitz0 at acpi0: critical temperature is 95 degC
acpicmos0 at acpi0
acpipci0 at acpi0 PCI0: 0x00000000 0x00000011 0x00000001
"BCM43241" at acpi0 not configured
acpibtn0 at acpi0: SLPB
"PNP0C0B" at acpi0 not configured
acpivideo0 at acpi0: GFX0
acpivout0 at acpivideo0: DD1F
cpu0: using VERW MDS workaround
cpu0: Enhanced SpeedStep 1600 MHz: speeds: 1601, 1600, 1520, 1440, 1360, 1280, 
1200, 1120, 1040, 960, 880, 800, 720, 640, 560, 480 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Braswell Host" rev 0x21
inteldrm0 at pci0 dev 2 function 0 "Intel HD Graphics" rev 0x21
drm0 at inteldrm0
inteldrm0: msi, CHERRYVIEW, gen 8
ahci0 at pci0 dev 19 function 0 "Intel Braswell AHCI" rev 0x21: msi, AHCI 1.3.1
ahci0: port 0: 3.0Gb/s
ahci0: port 1: 6.0Gb/s
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0: <ATA, C300-MTFDBAK128M, 0006> naa.500a075103075630
sd0: 122104MB, 512 bytes/sector, 250069680 sectors, thin
sd1 at scsibus1 targ 1 lun 0: <ATA, C300-CTFDDAC128M, 0006> naa.500a07510303a338
sd1: 122104MB, 512 bytes/sector, 250069680 sectors, thin
xhci0 at pci0 dev 20 function 0 "Intel Braswell xHCI" rev 0x21: 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 Braswell TXE" rev 0x21 at pci0 dev 26 function 0 not configured
azalia0 at pci0 dev 27 function 0 "Intel Braswell HD Audio" rev 0x21: msi
azalia0: codecs: Realtek ALC662, Intel/0x2883, using Realtek ALC662
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel Braswell PCIE" rev 0x21: msi
pci1 at ppb0 bus 1
re0 at pci1 dev 0 function 0 "Realtek 8168" rev 0x0c: RTL8168G/8111G (0x4c00), 
msi, address xx:xx:xx:xx:xx:xx
rgephy0 at re0 phy 7: RTL8251 PHY, rev. 0
pcib0 at pci0 dev 31 function 0 "Intel Braswell PCU LPC" rev 0x21
ichiic0 at pci0 dev 31 function 3 "Intel Braswell SMBus" rev 0x21: apic 1 int 18
iic0 at ichiic0
spdmem0 at iic0 addr 0x50: 4GB DDR3 SDRAM PC3-12800 SO-DIMM
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: console
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
wbsio0 at isa0 port 0x2e/2: NCT6792D rev 0x13
lm1 at wbsio0 port 0xa10/8: NCT6792D
vmm0 at mainbus0: VMX/EPT (using slow L1TF mitigation)
cdce0 at uhub0 port 1 configuration 2 interface 0 "TP-LINK USB 10/100/1000 LAN" 
rev 2.10/30.00 addr 2
cdce0: address xx:xx:xx:xx:xx:xx
cdce1 at uhub0 port 2 configuration 2 interface 0 "TP-LINK USB 10/100/1000 LAN" 
rev 2.10/30.00 addr 3
cdce1: address xx:xx:xx:xx:xx:xx
uhub1 at uhub0 port 5 configuration 1 interface 0 "Alcor Micro product 0x6254" 
rev 2.00/1.00 addr 4
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
softraid0: sd2 was not shutdown properly
sd2 at scsibus3 targ 1 lun 0: <OPENBSD, SR RAID 1, 006>
sd2: 122103MB, 512 bytes/sector, 250067198 sectors
root on sd2a (c79808f05fc56766.a) swap on sd2b dump on sd2b
WARNING: / was not properly unmounted
inteldrm0: 1280x1024, 32bpp
wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation), using wskbd0
wsdisplay0: screen 1-5 added (std, vt100 emulation)
[drm] *ERROR* CPU pipe A FIFO underrun

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: 2357:0601 TP-LINK, USB 10/100/1000 LAN
         high speed, power 180 mA, config 2, rev 30.00, iSerial 000001000000
         driver: cdce0
addr 03: 2357:0601 TP-LINK, USB 10/100/1000 LAN
         high speed, power 180 mA, config 2, rev 30.00, iSerial 000001000000
         driver: cdce1
addr 04: 058f:6254 Alcor Micro, product 0x6254
         high speed, self powered, config 1, rev 1.00
         driver: uhub1

pcidump:
Domain /dev/pci0:
  0:0:0: Intel Braswell Host
        0x0000: Vendor ID: 8086, Product ID: 2280
        0x0004: Command: 0007, Status: 0000
        0x0008: Class: 06 Bridge, Subclass: 00 Host,
                Interface: 00, Revision: 21
        0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
                Cache Line Size: 00
        0x0010: BAR empty (00000000)
        0x0014: BAR empty (00000000)
        0x0018: BAR empty (00000000)
        0x001c: BAR empty (00000000)
        0x0020: BAR empty (00000000)
        0x0024: BAR empty (00000000)
        0x0028: Cardbus CIS: 00000000
        0x002c: Subsystem Vendor ID: 1071 Product ID: 0753
        0x0030: Expansion ROM Base Address: 00000000
        0x0038: 00000000
        0x003c: Interrupt Pin: 00 Line: 00 Min Gnt: 00 Max Lat: 00
        0x0000: 22808086 00000007 06000021 00000000
        0x0010: 00000000 00000000 00000000 00000000
        0x0020: 00000000 00000000 00000000 07531071
        0x0030: 00000000 00000000 00000000 00000000
        0x0040: 00018312 8007ff9f 00018312 00000000
        0x0050: 00008102 00008102 00008102 00000000
        0x0060: 00018302 8007ff9f 00018312 00000000
        0x0070: 00018302 8007ff9f 00018302 00000000
        0x0080: 00000000 00000000 00000000 00000000
        0x0090: 00000000 00000000 00000000 00000000
        0x00a0: 00000000 00000000 00000000 00000000
        0x00b0: 00000000 00000000 00000000 00000000
        0x00c0: 00000000 00000000 00000000 00000000
        0x00d0: 00000000 ffffffff 00000000 00000000
        0x00e0: 00000000 00000000 00000000 00000000
        0x00f0: 00341601 00000000 00000000 00000000
  0:2:0: Intel HD Graphics
        0x0000: Vendor ID: 8086, Product ID: 22b1
        0x0004: Command: 0007, Status: 0010
        0x0008: Class: 03 Display, Subclass: 00 VGA,
                Interface: 00, Revision: 21
        0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
                Cache Line Size: 00
        0x0010: BAR mem 64bit addr: 0x0000000080000000/0x01000000
        0x0018: BAR mem prefetchable 64bit addr: 0x0000000090000000/0x10000000
        0x0020: BAR io addr: 0x0000f000/0x0040
        0x0024: BAR empty (00000000)
        0x0028: Cardbus CIS: 00000000
        0x002c: Subsystem Vendor ID: 1071 Product ID: 0753
        0x0030: Expansion ROM Base Address: 00000000
        0x0038: 00000000
        0x003c: Interrupt Pin: 01 Line: 0b Min Gnt: 00 Max Lat: 00
        0x00d0: Capability 0x01: Power Management
                State: D0
        0x0090: Capability 0x05: Message Signalled Interrupts (MSI)
                Enabled: yes
        0x00b0: Capability 0x09: Vendor Specific
        0x0000: 22b18086 00100007 03000021 00000000
        0x0010: 80000004 00000000 9000000c 00000000
        0x0020: 0000f001 00000000 00000000 07531071
        0x0030: 00000000 000000d0 00000000 0000010b
        0x0040: 00000000 00000000 00000000 00000000
        0x0050: 00000211 00000000 00000000 7af00001
        0x0060: 00010000 00000000 00000000 00000000
        0x0070: 7a800001 00000057 00000000 00000000
        0x0080: 00000000 00000000 00000000 00000000
        0x0090: 0001b005 fee00000 00000091 00000000
        0x00a0: 00000000 03060013 00000000 00000000
        0x00b0: 01070009 00000000 00000000 00000000
        0x00c0: 00000000 00000000 00000000 00000000
        0x00d0: 00229001 00000000 00000000 00000000
        0x00e0: 00008000 00000000 00000000 00000000
        0x00f0: 00000000 00000000 00000000 7761e000
  0:19:0: Intel Braswell AHCI
        0x0000: Vendor ID: 8086, Product ID: 22a3
        0x0004: Command: 0007, Status: 02b0
        0x0008: Class: 01 Mass Storage, Subclass: 06 SATA,
                Interface: 01, Revision: 21
        0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
                Cache Line Size: 00
        0x0010: BAR empty (00000000)
        0x0014: BAR empty (00000000)
        0x0018: BAR empty (00000000)
        0x001c: BAR empty (00000000)
        0x0020: BAR io addr: 0x0000f060/0x0020
        0x0024: BAR mem 32bit addr: 0x81315000/0x00000800
        0x0028: Cardbus CIS: 00000000
        0x002c: Subsystem Vendor ID: 1071 Product ID: 0753
        0x0030: Expansion ROM Base Address: 00000000
        0x0038: 00000000
        0x003c: Interrupt Pin: 01 Line: 0a Min Gnt: 00 Max Lat: 00
        0x0080: Capability 0x05: Message Signalled Interrupts (MSI)
                Enabled: yes
        0x0070: Capability 0x01: Power Management
                State: D0
        0x00a8: Capability 0x12: SATA
        0x0000: 22a38086 02b00007 01060121 00000000
        0x0010: 00000000 00000000 00000000 00000000
        0x0020: 0000f061 81315000 00000000 07531071
        0x0030: 00000000 00000080 00000000 0000010a
        0x0040: 00000000 00000000 00000000 00000000
        0x0050: 00000000 00000000 00000000 00000000
        0x0060: 00000000 00000000 00000000 00000000
        0x0070: 4003a801 00000008 00000000 00000000
        0x0080: 00017005 fee00000 00000060 00000000
        0x0090: 83030c80 3c000183 23dc0220 80007020
        0x00a0: 0000006c 130c0603 00100012 00000048
        0x00b0: 00000000 00000000 00000000 00000000
        0x00c0: 00000000 00000004 00000000 00000000
        0x00d0: 00000011 00000000 00000001 00000000
        0x00e0: 00000000 00000000 00000000 00000000
        0x00f0: 00000000 00000000 04290f1c 00000000
  0:20:0: Intel Braswell xHCI
        0x0000: Vendor ID: 8086, Product ID: 22b5
        0x0004: Command: 0006, Status: 0290
        0x0008: Class: 0c Serial Bus, Subclass: 03 USB,
                Interface: 30, Revision: 21
        0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
                Cache Line Size: 00
        0x0010: BAR mem 64bit addr: 0x0000000081300000/0x00010000
        0x0018: BAR empty (00000000)
        0x001c: BAR empty (00000000)
        0x0020: BAR empty (00000000)
        0x0024: BAR empty (00000000)
        0x0028: Cardbus CIS: 00000000
        0x002c: Subsystem Vendor ID: 1071 Product ID: 0753
        0x0030: Expansion ROM Base Address: 00000000
        0x0038: 00000000
        0x003c: Interrupt Pin: 01 Line: 05 Min Gnt: 00 Max Lat: 00
        0x0070: Capability 0x01: Power Management
                State: D0
        0x0080: Capability 0x05: Message Signalled Interrupts (MSI)
                Enabled: yes
        0x0000: 22b58086 02900006 0c033021 00000000
        0x0010: 81300004 00000000 00000000 00000000
        0x0020: 00000000 00000000 00000000 07531071
        0x0030: 00000000 00000070 00000000 00000105
        0x0040: 803401fd 83cfc68f 00000000 00000000
        0x0050: 0fdf6d3f 00000000 00000000 00000000
        0x0060: 00006030 00000000 00000000 00000000
        0x0070: c1c28001 00000008 00000000 00000000
        0x0080: 00870005 fee00000 00000000 00000061
        0x0090: f0140009 01400010 00000000 00080ac1
        0x00a0: 00040800 00001800 0002408f 00040100
        0x00b0: 00000003 00000004 00000000 00000000
        0x00c0: 00000000 00000000 00000000 00000000
        0x00d0: 00000003 00000004 00000000 00000000
        0x00e0: 00000000 00000000 00000000 00000000
        0x00f0: 00000000 00000000 04290f1c 00000000
  0:26:0: Intel Braswell TXE
        0x0000: Vendor ID: 8086, Product ID: 2298
        0x0004: Command: 0106, Status: 0010
        0x0008: Class: 10 Crypto, Subclass: 80 Miscellaneous,
                Interface: 00, Revision: 21
        0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
                Cache Line Size: 10
        0x0010: BAR mem 32bit addr: 0x81100000/0x00100000
        0x0014: BAR mem 32bit addr: 0x81000000/0x00100000
        0x0018: BAR empty (00000000)
        0x001c: BAR empty (00000000)
        0x0020: BAR empty (00000000)
        0x0024: BAR empty (00000000)
        0x0028: Cardbus CIS: 00000000
        0x002c: Subsystem Vendor ID: 1071 Product ID: 0753
        0x0030: Expansion ROM Base Address: 00000000
        0x0038: 00000000
        0x003c: Interrupt Pin: 01 Line: 03 Min Gnt: 00 Max Lat: 00
        0x0080: Capability 0x01: Power Management
                State: D0
        0x00a0: Capability 0x05: Message Signalled Interrupts (MSI)
                Enabled: no
        0x0000: 22988086 00100106 10800021 00000010
        0x0010: 81100000 81000000 00000000 00000000
        0x0020: 00000000 00000000 00000000 07531071
        0x0030: 00000000 00000080 00000000 00000103
        0x0040: 1f000255 80114800 69000000 00000000
        0x0050: 0000000c 00000104 00000000 00000000
        0x0060: 10000000 00000001 00000000 00000000
        0x0070: 00000000 00000000 00000000 00000000
        0x0080: 4803a001 00000008 000000ff 00000000
        0x0090: 00000000 00000000 00000000 00000000
        0x00a0: 00000005 00000000 00000000 00000000
        0x00b0: 00000000 00000000 00000000 00000000
        0x00c0: 00001009 7ef00000 01100000 00000000
        0x00d0: 00003008 00000000 00000000 00000000
        0x00e0: 00000000 00000000 00000000 00000000
        0x00f0: 00000000 00000000 04290f1c 00000000
  0:27:0: Intel Braswell HD Audio
        0x0000: Vendor ID: 8086, Product ID: 2284
        0x0004: Command: 0006, Status: 0010
        0x0008: Class: 04 (unknown), Subclass: 03 (unknown),
                Interface: 00, Revision: 21
        0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
                Cache Line Size: 10
        0x0010: BAR mem 64bit addr: 0x0000000081310000/0x00004000
        0x0018: BAR empty (00000000)
        0x001c: BAR empty (00000000)
        0x0020: BAR empty (00000000)
        0x0024: BAR empty (00000000)
        0x0028: Cardbus CIS: 00000000
        0x002c: Subsystem Vendor ID: 1071 Product ID: 0753
        0x0030: Expansion ROM Base Address: 00000000
        0x0038: 00000000
        0x003c: Interrupt Pin: 01 Line: 0b Min Gnt: 00 Max Lat: 00
        0x0050: Capability 0x01: Power Management
                State: D0
        0x0060: Capability 0x05: Message Signalled Interrupts (MSI)
                Enabled: yes
        0x0000: 22848086 00100006 04030021 00000010
        0x0010: 81310004 00000000 00000000 00000000
        0x0020: 00000000 00000000 00000000 07531071
        0x0030: 00000000 00000050 00000000 0000010b
        0x0040: 5f000001 ffffffff ffffffff 00000000
        0x0050: c8426001 00000000 ffffffff ffffffff
        0x0060: 00810005 fee00000 00000000 000000b0
        0x0070: 00910010 10000000 00100000 ffffffff
        0x0080: ffffffff ffffffff ffffffff ffffffff
        0x0090: ffffffff ffffffff ffffffff ffffffff
        0x00a0: ffffffff ffffffff ffffffff ffffffff
        0x00b0: ffffffff ffffffff ffffffff ffffffff
        0x00c0: 01e00400 48002402 82a30000 02330010
        0x00d0: 82a30c00 02330010 ffffffff ffffffff
        0x00e0: ffffffff ffffffff ffffffff ffffffff
        0x00f0: ffffffff ffffffff 04290f1c ffffffff
  0:28:0: Intel Braswell PCIE
        0x0000: Vendor ID: 8086, Product ID: 22c8
        0x0004: Command: 0007, Status: 0010
        0x0008: Class: 06 Bridge, Subclass: 04 PCI,
                Interface: 00, Revision: 21
        0x000c: BIST: 00, Header Type: 81, Latency Timer: 00,
                Cache Line Size: 10
        0x0010: BAR empty (00000000)
        0x0014: BAR empty (00000000)
        0x0018: Primary Bus: 0, Secondary Bus: 1, Subordinate Bus: 1,
                Secondary Latency Timer: 00
        0x001c: I/O Base: e0, I/O Limit: e0, Secondary Status: 2000
        0x0020: Memory Base: 8120, Memory Limit: 8120
        0x0024: Prefetch Memory Base: a001, Prefetch Memory Limit: a001
        0x0028: Prefetch Memory Base Upper 32 Bits: 00000000
        0x002c: Prefetch Memory Limit Upper 32 Bits: 00000000
        0x0030: I/O Base Upper 16 Bits: 0000, I/O Limit Upper 16 Bits: 0000
        0x0038: Expansion ROM Base Address: 00000000
        0x003c: Interrupt Pin: 01, Line: ff, Bridge Control: 0010
        0x0040: Capability 0x10: PCI Express
                Link Speed: 2.5 / 2.5 GT/s, Link Width: x1 / x1
        0x0100: Enhanced Capability 0x00: Unknown
        0x0200: Enhanced Capability 0x1e: L1 PM
        0x0080: Capability 0x05: Message Signalled Interrupts (MSI)
                Enabled: yes
        0x0090: Capability 0x0d: PCI-PCI
        0x00a0: Capability 0x01: Power Management
                State: D0
        0x0000: 22c88086 00100007 06040021 00810010
        0x0010: 00000000 00000000 00010100 2000e0e0
        0x0020: 81208120 a001a001 00000000 00000000
        0x0030: 00000000 00000040 00000000 001001ff
        0x0040: 01428010 00008000 00100000 01323c11
        0x0050: 70110040 0004b200 00400028 00000000
        0x0060: 00000000 00000817 00000400 00000000
        0x0070: 00010001 00000000 00000000 00000000
        0x0080: 00019005 fee00000 00000062 00000000
        0x0090: 0000a00d 07531071 00000000 00000000
        0x00a0: c8030001 00000000 00000000 00000000
        0x00b0: 00000000 00000000 00000000 00000000
        0x00c0: 00000000 00000000 00000000 00000000
        0x00d0: 0002c000 00000842 8911c000 00000000
        0x00e0: 0000bf00 883c0000 00000017 00000000
        0x00f0: 00000050 000001c0 04290f1c 01000004
  0:31:0: Intel Braswell PCU LPC
        0x0000: Vendor ID: 8086, Product ID: 229c
        0x0004: Command: 0007, Status: 0210
        0x0008: Class: 06 Bridge, Subclass: 01 ISA,
                Interface: 00, Revision: 21
        0x000c: BIST: 00, Header Type: 80, Latency Timer: 00,
                Cache Line Size: 00
        0x0010: BAR empty (00000000)
        0x0014: BAR empty (00000000)
        0x0018: BAR empty (00000000)
        0x001c: BAR empty (00000000)
        0x0020: BAR empty (00000000)
        0x0024: BAR empty (00000000)
        0x0028: Cardbus CIS: 00000000
        0x002c: Subsystem Vendor ID: 1071 Product ID: 0753
        0x0030: Expansion ROM Base Address: 00000000
        0x0038: 00000000
        0x003c: Interrupt Pin: 00 Line: 00 Min Gnt: 00 Max Lat: 00
        0x00e0: Capability 0x09: Vendor Specific
        0x0000: 229c8086 02100007 06010021 00800000
        0x0010: 00000000 00000000 00000000 00000000
        0x0020: 00000000 00000000 00000000 07531071
        0x0030: 00000000 000000e0 00000000 00000000
        0x0040: 00000403 fed03002 00000001 fed80002
        0x0050: fed08002 fed01002 fea00002 fed06002
        0x0060: 00000000 00000000 00000000 00000000
        0x0070: 00000000 00000000 00000000 00000000
        0x0080: 00000000 00000000 00000000 00000000
        0x0090: 00000000 00000000 00000000 00000000
        0x00a0: 00000000 00000000 00000000 00000000
        0x00b0: 00000000 00000000 00000000 00000000
        0x00c0: 00000000 00000000 00000000 00000000
        0x00d0: 00000000 00000000 0000ffcf 00000000
        0x00e0: 100c0009 00000000 00000000 00000000
        0x00f0: fed1c001 00000000 04290f1c 00000303
  0:31:3: Intel Braswell SMBus
        0x0000: Vendor ID: 8086, Product ID: 2292
        0x0004: Command: 0003, Status: 0290
        0x0008: Class: 0c Serial Bus, Subclass: 05 SMBus,
                Interface: 00, Revision: 21
        0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
                Cache Line Size: 00
        0x0010: BAR mem 32bit addr: 0x81314000/0x00000020
        0x0014: BAR empty (00000000)
        0x0018: BAR empty (00000000)
        0x001c: BAR empty (00000000)
        0x0020: BAR io addr: 0x0000f040/0x0020
        0x0024: BAR empty (00000000)
        0x0028: Cardbus CIS: 00000000
        0x002c: Subsystem Vendor ID: 1071 Product ID: 0753
        0x0030: Expansion ROM Base Address: 00000000
        0x0038: 00000000
        0x003c: Interrupt Pin: 02 Line: 0a Min Gnt: 00 Max Lat: 00
        0x0050: Capability 0x01: Power Management
                State: D0
        0x0000: 22928086 02900003 0c050021 00000000
        0x0010: 81314000 00000000 00000000 00000000
        0x0020: 0000f041 00000000 00000000 07531071
        0x0030: 00000000 00000050 00000000 0000020a
        0x0040: 00000001 00000000 00000000 00000000
        0x0050: 00030001 00000008 00000000 00000000
        0x0060: 00040403 08080000 00000000 00000000
        0x0070: 00000000 00000000 00000000 00000000
        0x0080: 00000004 00000000 00000000 00000000
        0x0090: 00000000 00000000 00000000 00000000
        0x00a0: 00000000 00000000 00000000 00000000
        0x00b0: 00000000 00000000 00000000 00000000
        0x00c0: 00000000 00000000 00000000 00000000
        0x00d0: 00000000 00000000 00000000 00000000
        0x00e0: 00000000 00000000 00000000 00000000
        0x00f0: 00000000 00000000 04290f1c 00000000
  1:0:0: Realtek 8168
        0x0000: Vendor ID: 10ec, Product ID: 8168
        0x0004: Command: 0007, Status: 0010
        0x0008: Class: 02 Network, Subclass: 00 Ethernet,
                Interface: 00, Revision: 0c
        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: 0x0000000081200000/0x00001000
        0x0020: BAR mem prefetchable 64bit addr: 0x00000000a0000000/0x00004000
        0x0028: Cardbus CIS: 00000000
        0x002c: Subsystem Vendor ID: 1071 Product ID: 0753
        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
                State: D0 PME# enabled
        0x0050: Capability 0x05: Message Signalled Interrupts (MSI)
                Enabled: yes
        0x0070: Capability 0x10: PCI Express
                Link Speed: 2.5 / 2.5 GT/s, Link Width: x1 / x1
        0x0100: Enhanced Capability 0x01: Advanced Error Reporting
        0x0140: Enhanced Capability 0x02: Virtual Channel Capability
        0x0160: Enhanced Capability 0x03: Device Serial Number
                Serial Number: 01000000684ce000
        0x0170: Enhanced Capability 0x18: Latency Tolerance Reporting
        0x00b0: Capability 0x11: Extended Message Signalled Interrupts (MSI-X)
                Enabled: no; table size 4 (BAR 4:0)
        0x00d0: Capability 0x03: Vital Product Data (VPD)
        0x0000: 816810ec 00100007 0200000c 00000010
        0x0010: 0000e001 00000000 81200004 00000000
        0x0020: a000000c 00000000 00000000 07531071
        0x0030: 00000000 00000040 00000000 0000010b
        0x0040: ffc35001 00000108 00000000 00000000
        0x0050: 00817005 fee00000 00000000 00000072
        0x0060: 00000000 00000000 00000000 00000000
        0x0070: 0202b010 05908cc0 00105010 00477c11
        0x0080: 10110040 00000000 00000000 00000000
        0x0090: 00000000 000c081f 00000400 00000002
        0x00a0: 00000000 00000000 00000000 00000000
        0x00b0: 0003d011 00000004 00000804 00000000
        0x00c0: 00000000 00000000 00000000 00000000
        0x00d0: 00000003 00000000 00000000 00000000
        0x00e0: 00000000 00000000 00000000 00000000
        0x00f0: 00000000 00000000 00000000 00000000
====


Reply via email to