On Mon, Nov 16, 2020 at 01:57:06PM +0000, Mikolaj Kucharski wrote:
> On Mon, Nov 16, 2020 at 12:53:14PM +0100, Stefan Sperling wrote:
> > On Mon, Nov 16, 2020 at 10:59:45AM +0000, Mikolaj Kucharski wrote:
> > > It happened again. This time on current. I was on Android phone using
> > > Signal and other laptop on urwn(4) was fetching newest packages snapshot.
> > > 
> > > In this email thread it's different physical hardware, but I think
> > > it's same Wi-Fi card like on the other PC Engines board.
> > > 
> > > This email thread which I'm continuing here is:
> > > 
> > >   https://marc.info/?t=160028899800004&r=1&w=2
> > > 
> > > There was also previous one from May 2020:
> > > 
> > >   https://marc.info/?t=159047855800002&r=1&w=2
> > > 
> > > OpenBSD 6.8-current (GENERIC.MP) #180: Sun Nov 15 18:14:53 MST 2020
> > >     dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> > > 
> > 
> > Until a way to trigger this deliberately is found, or we get lucky and 
> > someone
> > with time and motivation finds the race by auditing code, there is nothing 
> > that
> > could be done here.
> 
> Makes sense, Stefan. I don't know how to trigger this on demand,
> but will try to run custom kernel, with some additional debugging
> statements. I will report any panics with new information here.
> 
> I have no idea, but looking how usual path is executed if-statement from
> line 1449 is evaluated to true on my machine during usual operation, so
> I imagine when kernel panic happens, probably else branch is executed.
> 
> file dev/ic/ar5008.c, function ar5008_tx():
> 1449          if (wh->i_fc[1] & IEEE80211_FC1_PROTECTED) {
> 1450                  k = ieee80211_get_txkey(ic, wh, ni);
> 1451                  if (k->k_cipher == IEEE80211_CIPHER_CCMP) {
> 1452                          u_int hdrlen = ieee80211_get_hdrlen(wh);
> 1453                          if (ar5008_ccmp_encap(m, hdrlen, k) != 0)
> 1454                                  return (ENOBUFS);
> 1455                  } else {
> 1456                          if ((m = ieee80211_encrypt(ic, m, k)) == NULL)
> 1457                                  return (ENOBUFS);
> 1458                          k = NULL; /* skip hardware crypto further below 
> */
> 1459                  }
> 1460                  wh = mtod(m, struct ieee80211_frame *);
> 1461          }
> 
> Anyway, more panics are needed..
> 

I got it again, but had official snapshot, so I don't have more info
than I had in the past, but I would like to share it anyway..

OpenBSD 6.9 (GENERIC.MP) #473: Mon Apr 19 10:40:28 MDT 2021
    dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP

This is from a remote location, where there is no technical personel.
Basically what I'm trying to say, accesspoint just sits on the shelve
and whoever is in the room has internet access via athn(4) via umb(4).
Only I have (remote) access to that machine and I was not on the machine
at the time of kernel panic.

# /etc/hostname.athn0
mediaopt hostap
nwid SSID_EXAMPLE wpakey PSK_EXAMPLE chan 1
inet 192.168.5.1/24
inet6 autoconf
up

That machine typically runs current, but it just happen upgrade was at
the time when snapshot was pre-release version of OpenBSD. I'm pretty
sure within a month I'll upgrade it to another snapshot and this PC
Engines machine will switch to 6.9-current. I'm trying to semi passively
hunt this kernel panic, and have a debugging kernel with couple of
printf()s to help me better understand this kernel panic, but while
release was approaching I've upgraded to vanilla in search for bugs..

Maybe some additional printf()s could be added to HEAD, to help
understand this rare panic in the future? I still don't know how
to trigger it on demand. It happens rarely and randomly, but I suspect
a Wi-Fi client triggers it, somehow.


ddb{0}> set $lines = 0
ddb{0}> set $maxwidth = 0

ddb{0}> show panic
ieee80211_encrypt: key unset for sw crypto: 0

ddb{0}> trace
db_enter() at db_enter+0x10
panic(ffffffff81e19763) at panic+0x12a
ieee80211_encrypt(ffff80000009c048,fffffd80cf753200,ffff8000007f71c0) at 
ieee80211_encrypt+0x5f
ar5008_tx(ffff80000009c000,fffffd80cf753200,ffff8000007f7000,0) at 
ar5008_tx+0x163
athn_start(ffff80000009c048) at athn_start+0x108
ar5008_intr(ffff80000009c000) at ar5008_intr+0x216
intr_handler(ffff8000225a8ad0,ffff80000008f780) at intr_handler+0x6e
Xintr_ioapic_level3_untramp() at Xintr_ioapic_level3_untramp+0x193
acpicpu_idle() at acpicpu_idle+0x11f
sched_idle(ffffffff820d8ff0) at sched_idle+0x27e
end trace frame: 0x0, count: -10

ddb{0}> machine cpuinfo
*   0: ddb
    1: stopped
    2: stopped
    3: stopped

ddb{0}> show registers
rdi               0xffffffff820e4bc8    kprintf_mutex
rsi                              0x5
rbp               0xffff8000225a8820
rbx               0xffff8000225a8830
rdx               0xc80000000c000010
rcx                            0x202
rax                              0x1
r8                0xffff8000225a87e0
r9                                 0
r10               0xf65ab3b29bdd117f
r11               0xee1478e868fcca33
r12                     0x3000000008
r13               0xffff8000225a88d0
r14                            0x100
r15               0xffffffff81e19763    pp_r600_decoded_lanes+0xd40a
rip               0xffffffff81cc43a0    db_enter+0x10
cs                               0x8
rflags                         0x286
rsp               0xffff8000225a8820
ss                              0x10
db_enter+0x10:  popq    %rbp

ddb{0}> show proc
PROC (idle0) pid=470574 stat=onproc
    flags process=14000<NOZOMBIE,SYSTEM> proc=40000200<SYSTEM,CPUPEG>
    pri=0, usrpri=50, nice=20
    forw=0x1344eb30e4bea592, list=0xffff8000fffffa40,0xffff8000ffffea90
    process=0xffff8000225a27d0 user=0xffff8000225a3000, 
vmspace=0xffffffff82188260
    estcpu=0, cpticks=22454422, pctcpu=0.0
    user=0, sys=0, intr=0

ddb{0}> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
 38844  166236  28490      0  3    0x100082  nanoslp       sleep
 87606  192774  87658      0  3    0x100082  nanoslp       sleep
 64074  491363      1      0  3    0x100083  ttyin         getty
 45046   31913      1      0  3    0x100098  poll          cron
 58005   66145      1      0  3    0x100080  htplev        hotplugd
 63194  482563      1    658  3        0x80  nanoslp       vnstatd
 40628  494899      1      0  3        0x82  kqread        cupsd
 45385  190737      1    572  3        0x90  poll          dbus-daemon
 28490  468921      1      0  3    0x10008b  sigsusp       sh
  9038  323454      1    577  3        0x90  poll          openvpn
 87658  437660      1      0  3    0x10008b  sigsusp       sh
 57110  226335  44750     95  3    0x100092  kqread        smtpd
 16441    4077  44750    103  3    0x100092  kqread        smtpd
 43324  451599  44750     95  3    0x100092  kqread        smtpd
 85528  517241  44750     95  3    0x100092  kqread        smtpd
  6385  451212  44750     95  3    0x100092  kqread        smtpd
 34796   43199  44750     95  3    0x100092  kqread        smtpd
 44750  470136      1      0  3    0x100080  kqread        smtpd
 71144   19984      1     77  3    0x100090  poll          dhcpd
  2433  162591      1      0  3        0x80  select        sshd
 93203  448979      1      0  3    0x100080  poll          ntpd
 48636  137433  46607     83  3    0x100092  poll          ntpd
 46607  255940      1     83  3    0x100092  poll          ntpd
 50699  172420      1     53  3        0x90  kqread        unbound
 31483  210147  40229     73  3    0x100090  kqread        syslogd
 40229  213603      1      0  3    0x100082  netio         syslogd
  9785  163214      0      0  3     0x14200  bored         wg_crypt
  5322  217199      0      0  3     0x14200  bored         wg_crypt
 61465  302457      0      0  3     0x14200  bored         wg_crypt
 75656    7433      0      0  3     0x14200  bored         wg_crypt
 58872   24153      0      0  3     0x14200  bored         wg_handshake
 89032  356321      0      0  3     0x14200  bored         wg_handshake
   518  108071  62093    115  3    0x100092  kqread        slaacd
 87157   49665  62093    115  3    0x100092  kqread        slaacd
 62093   24207      1      0  3    0x100080  kqread        slaacd
 99971  324222      0      0  3     0x14200  bored         smr
 34097  446771      0      0  3     0x14200  pgzero        zerothread
 22502   39823      0      0  3     0x14200  aiodoned      aiodoned
 41309  294349      0      0  3     0x14200  syncer        update
  6644  179840      0      0  3     0x14200  cleaner       cleaner
 67922   88418      0      0  3     0x14200  reaper        reaper
 52901   90028      0      0  3     0x14200  pgdaemon      pagedaemon
 78685  372644      0      0  3     0x14200  bored         crynlk
 39082  174138      0      0  3     0x14200  bored         crypto
 54885  194699      0      0  3     0x14200  bored         sensors
 40273   85879      0      0  3     0x14200  mmctsk        sdmmc0
 72935   22098      0      0  3     0x14200  usbtsk        usbtask
 63861    4970      0      0  3     0x14200  usbatsk       usbatsk
 51065   45687      0      0  3  0x40014200  acpi0         acpi0
 72233  298323      0      0  7  0x40014200                idle3
 44113  125580      0      0  7  0x40014200                idle2
 56806  515376      0      0  7  0x40014200                idle1
 55122  392669      0      0  3     0x14200  bored         softnet
 40589  361620      0      0  3     0x14200  bored         systqmp
 48229  188440      0      0  3     0x14200  bored         systq
 64912   36240      0      0  3  0x40014200  bored         softclock
*34704  470574      0      0  7  0x40014200                idle0
     1  450093      0      0  3        0x82  wait          init
     0       0     -1      0  3     0x10200  scheduler     swapper

ddb{0}> show all locks
No such command

ddb{0}> show malloc
           Type InUse  MemUse  HighUse   Limit  Requests Type Lim
         devbuf  3045   7731K    9381K  78643K     34456        0
            pcb    14      8K       8K  78643K        16        0
         rtable   172      9K       9K  78643K     97893        0
         ifaddr   254     25K      25K  78643K       257        0
       counters    90     68K      68K  78643K        90        0
       ioctlops     0      0K       4K  78643K      4560        0
            iov     0      0K       0K  78643K         2        0
          mount     8      8K       8K  78643K         8        0
            log     0      0K       0K  78643K         1        0
         vnodes  1198     75K      80K  78643K      6138        0
      UFS quota     1     32K      32K  78643K         1        0
      UFS mount    33     74K      74K  78643K        33        0
            shm     2      1K       1K  78643K         2        0
         VM map     2      0K       0K  78643K         2        0
            sem     2      0K       0K  78643K         2        0
        dirhash   732    143K     143K  78643K       780        0
           ACPI  2950    341K     365K  78643K    480709        0
      file desc     1      0K       0K  78643K         1        0
           proc    68     47K      80K  78643K      5528        0
    NFS srvsock     1      0K       0K  78643K         1        0
     NFS daemon     1     16K      16K  78643K         1        0
       in_multi    56      4K       4K  78643K        56        0
    ether_multi    12      0K       0K  78643K        12        0
    ISOFS mount     1     32K      32K  78643K         1        0
  MSDOSFS mount     1     16K      16K  78643K         1        0
           ttys    19     95K      95K  78643K        19        0
           exec     0      0K       2K  78643K     22779        0
        pagedep     1      8K       8K  78643K         1        0
       inodedep     1     32K      32K  78643K         1        0
         newblk     1      0K       0K  78643K         1        0
        VM swap     7    298K     298K  78643K         7        0
       UVM amap   287     11K     122K  78643K    117803        0
       UVM aobj     3      2K       2K  78643K         3        0
            USB    72     31K      31K  78643K        80        0
     USB device    14      8K      10K  78643K        15        0
        memdesc     1      4K       4K  78643K         1        0
    crypto data     1      1K       1K  78643K         1        0
    ip6_options     1      0K       0K  78643K        10        0
            NDP     9      0K       0K  78643K        14        0
           temp    41   3952K    4032K  78643K    388941        0
         kqueue    21     31K      31K  78643K        21        0
      SYN cache     2     16K      16K  78643K         2        0

ddb{0}> show all pools
Name      Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
arp         64       87    0       78     1     0     1     1     0     8    0
plcache    128       40    0        0     2     0     2     2     0     8    0
rtpcb      120       17    0       15     1     0     1     1     0     8    0
rtentry    112      145    0       78     2     0     2     2     0     8    0
unpcb      120     1085    0     1025     3     0     3     3     0     8    0
tcpcb      736      515    0      506   125   124     1     2     0     8    0
inpcb      304    13459    0    13436   240   238     2     3     0     8    0
nd6         48        4    0        0     1     0     1     1     0     8    0
wgpeer     5032       1    0        0     1     0     1     1     0     8    0
wgaip       64        1    0        0     1     0     1     1     0     8    0
pfosfp      40     1428    0     1005     5     0     5     5     0     8    0
pfosfpen   112     1428    0      714    21     0    21    21     0     8    0
pfrke_plain 160      19    0        0     1     0     1     1     0     8    0
pfrktable  1344      18    0       10     1     0     1     1     0     8    0
pftag       88        2    0        0     1     0     1     1     0     8    0
pfqueue    264        2    0        0     1     0     1     1     0     8    0
pfruleitem  16    38007    0    37533     3     0     3     3     0     8    0
pfstitem    24    65134    0    64412    10     3     7     7     0     8    0
pfstkey    112    65134    0    64412    98    77    21    32     0     8    0
pfstate    320    52859    0    52356   400   358    42    66     0     8    0
pfrule     1360      29    0       16     3     1     2     3     0     8    0
art_heap8  4096       1    0        0     1     0     1     1     0     8    0
art_heap4  256      363    0       51    20     0    20    20     0     8    0
art_table   32      364    0       51     3     0     3     3     0     8    0
art_node    16      145    0       79     1     0     1     1     0     8    0
dirhash    1024    1289    0       83   151     0   151   151     0     8    0
dino2pl    256   235652    0   194957  2553     9  2544  2544     0     8    0
ffsino     240   235652    0   194957  2403     9  2394  2394     0     8    0
nchpl      144   277812    0   273862   154     7   147   147     0     8    0
uvmvnodes   72    40711    0        0   741     0   741   741     0     8    0
vnodes     224    40711    0        0  2395     0  2395  2395     0     8    0
namei      1024  625221    0   625221  7273  7272     1     1     0     8    1
percpumem   32       33    0        0     1     0     1     1     0     8    0
ehcixfer   296      943    0      938     1     0     1     1     0     8    0
xhcixfer   280       41    0       40     1     0     1     1     0     8    0
pfiaddrpl  120        5    0        0     1     0     1     1     0     8    0
scxspl     216   202848    0   202848  2197  2196     1     2     0     8    1
plimitpl   152      179    0      157     1     0     1     1     0     8    0
sigapl     424    16740    0    16682    10     2     8    10     0     8    0
futexpl     56     7190    0     7190     2     2     0     1     0     8    0
knotepl    112    11659    0    11583     3     0     3     3     0     8    0
kqueuepl   168       15    0        1     1     0     1     1     0     8    0
pipepl     304     2477    0     2476     2     1     1     1     0     8    0
fdescpl    432    16713    0    16682     7     2     5     7     0     8    0
filepl     120   104127    0   103978     6     0     6     6     0     8    0
lockfpl    104    28414    0    28413     1     0     1     1     0     8    0
lockfspl    48     6091    0     6090     1     0     1     1     0     8    0
sessionpl  144      155    0      137     1     0     1     1     0     8    0
pgrppl      48      155    0      137     1     0     1     1     0     8    0
ucredpl     96     6645    0     6613     1     0     1     1     0     8    0
zombiepl   144    16682    0    16682  4793  4792     1     1     0     8    1
processpl  1016   16740    0    16682    11     2     9    11     0     8    0
procpl     672    16761    0    16703     7     1     6     7     0     8    0
sockpl     432    14561    0    14476   294   284    10    11     0     8    0
mcl4k      4096   12976    0        0   117    96    21    25     0     8    0
mcl2k2     2112    8615    0        0     6     0     6     6     0     8    0
mcl2k      2048   14773    0        0   437   400    37    74     0     8    0
mtagpl      96     1640    0        0     3     1     2     2     0     8    0
mbufpl     256    61824    0        0   258   206    52    79     0     8    0
bufpl      280    72381    0    31672  2914     5  2909  2909     0     8    0
anonpl      24  1915244    0  1903691   372   296    76   268     0   379    0
amapchunkpl 152  233511    0   232803   175   144    31   113     0   158    0
amappl16   200     2249    0     2238    28    27     1    15     0     8    0
amappl15   192     8435    0     8418     7     6     1     2     0     8    0
amappl14   184       76    0       76     3     3     0     1     0     8    0
amappl13   176      265    0      263     1     0     1     1     0     8    0
amappl12   168       87    0       85     3     2     1     3     0     8    0
amappl11   160     1992    0     1936     3     0     3     3     0     8    0
amappl10   152       21    0       21     5     5     0     1     0     8    0
amappl9    144      174    0      170     2     1     1     1     0     8    0
amappl8    136    16928    0    16904    13    11     2    13     0     8    0
amappl7    128      802    0      800     2     1     1     2     0     8    0
amappl6    120    13059    0    13019     5     3     2     4     0     8    0
amappl5    112     5938    0     5907     7     6     1     3     0     8    0
amappl4    104    22680    0    22503    31    26     5    25     0     8    0
amappl3     96     2202    0     2160    11     9     2     7     0     8    0
amappl2     88    39602    0    39294    54    46     8    31     0     8    0
amappl1     80   436475    0   435464    38    15    23    25     0     8    0
amappl      88   100306    0   100074    33    26     7    22     0    92    0
dma4096    4096       1    0        1     1     1     0     1     0     8    0
dma512     512        3    0        2     1     0     1     1     0     8    0
dma256     256       10    0       10     1     1     0     1     0     8    0
dma128     128        1    0        1     1     1     0     1     0     8    0
dma64       64       10    0       10     1     1     0     1     0     8    0
dma32       32        9    0        9     1     1     0     1     0     8    0
dma16       16       29    0       29     1     1     0     1     0     8    0
aobjpl      64        2    0        0     1     0     1     1     0     8    0
uaddrrnd    24    16713    0    16682     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24    16713    0    16682     1     0     1     1     0     8    0
vmmpekpl   168   394555    0   394512     3     0     3     3     0     8    0
vmmpepl    168  1644338    0  1641530   584   452   132   366     0   357    0
vmsppl     272    16712    0    16682     4     0     4     4     0     8    0
rwobjpl     24   420229    0   418304    38    24    14    34     0     8    0
pdppl      4096   16712    0    16682  1056  1026    30    54     0     8    0
pvpl        32  8305474    0  8284079  3956  3774   182  1329     0   265    0
pmappl     200    16712    0    16682     3     0     3     3     0     8    0
extentpl    40       77    0       48     1     0     1     1     0     8    0
phpool     112    14415    0     9147   153     0   153   153     0     8    0

ddb{0}> show all procs
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
 38844  166236  28490      0  3    0x100082  nanoslp       sleep
 87606  192774  87658      0  3    0x100082  nanoslp       sleep
 64074  491363      1      0  3    0x100083  ttyin         getty
 45046   31913      1      0  3    0x100098  poll          cron
 58005   66145      1      0  3    0x100080  htplev        hotplugd
 63194  482563      1    658  3        0x80  nanoslp       vnstatd
 40628  494899      1      0  3        0x82  kqread        cupsd
 45385  190737      1    572  3        0x90  poll          dbus-daemon
 28490  468921      1      0  3    0x10008b  sigsusp       sh
  9038  323454      1    577  3        0x90  poll          openvpn
 87658  437660      1      0  3    0x10008b  sigsusp       sh
 57110  226335  44750     95  3    0x100092  kqread        smtpd
 16441    4077  44750    103  3    0x100092  kqread        smtpd
 43324  451599  44750     95  3    0x100092  kqread        smtpd
 85528  517241  44750     95  3    0x100092  kqread        smtpd
  6385  451212  44750     95  3    0x100092  kqread        smtpd
 34796   43199  44750     95  3    0x100092  kqread        smtpd
 44750  470136      1      0  3    0x100080  kqread        smtpd
 71144   19984      1     77  3    0x100090  poll          dhcpd
  2433  162591      1      0  3        0x80  select        sshd
 93203  448979      1      0  3    0x100080  poll          ntpd
 48636  137433  46607     83  3    0x100092  poll          ntpd
 46607  255940      1     83  3    0x100092  poll          ntpd
 50699  172420      1     53  3        0x90  kqread        unbound
 31483  210147  40229     73  3    0x100090  kqread        syslogd
 40229  213603      1      0  3    0x100082  netio         syslogd
  9785  163214      0      0  3     0x14200  bored         wg_crypt
  5322  217199      0      0  3     0x14200  bored         wg_crypt
 61465  302457      0      0  3     0x14200  bored         wg_crypt
 75656    7433      0      0  3     0x14200  bored         wg_crypt
 58872   24153      0      0  3     0x14200  bored         wg_handshake
 89032  356321      0      0  3     0x14200  bored         wg_handshake
   518  108071  62093    115  3    0x100092  kqread        slaacd
 87157   49665  62093    115  3    0x100092  kqread        slaacd
 62093   24207      1      0  3    0x100080  kqread        slaacd
 99971  324222      0      0  3     0x14200  bored         smr
 34097  446771      0      0  3     0x14200  pgzero        zerothread
 22502   39823      0      0  3     0x14200  aiodoned      aiodoned
 41309  294349      0      0  3     0x14200  syncer        update
  6644  179840      0      0  3     0x14200  cleaner       cleaner
 67922   88418      0      0  3     0x14200  reaper        reaper
 52901   90028      0      0  3     0x14200  pgdaemon      pagedaemon
 78685  372644      0      0  3     0x14200  bored         crynlk
 39082  174138      0      0  3     0x14200  bored         crypto
 54885  194699      0      0  3     0x14200  bored         sensors
 40273   85879      0      0  3     0x14200  mmctsk        sdmmc0
 72935   22098      0      0  3     0x14200  usbtsk        usbtask
 63861    4970      0      0  3     0x14200  usbatsk       usbatsk
 51065   45687      0      0  3  0x40014200  acpi0         acpi0
 72233  298323      0      0  7  0x40014200                idle3
 44113  125580      0      0  7  0x40014200                idle2
 56806  515376      0      0  7  0x40014200                idle1
 55122  392669      0      0  3     0x14200  bored         softnet
 40589  361620      0      0  3     0x14200  bored         systqmp
 48229  188440      0      0  3     0x14200  bored         systq
 64912   36240      0      0  3  0x40014200  bored         softclock
*34704  470574      0      0  7  0x40014200                idle0
     1  450093      0      0  3        0x82  wait          init
     0       0     -1      0  3     0x10200  scheduler     swapper

ddb{0}> show uvmexp
Current UVM status:
  pagesize=4096 (0x1000), pagemask=0xfff, pageshift=12
  1006804 VM pages: 10880 active, 123860 inactive, 3585 wired, 685122 free 
(85653 zero)
  min  10% (25) anon, 10% (25) vnode, 5% (12) vtext
  freemin=33560, free-target=44746, inactive-target=0, wired-max=335601
  faults=3992689, traps=3838235, intrs=13371884, ctxswitch=9184757 fpuswitch=0
  softint=24088695, syscalls=4016612, kmapent=18
  fault counts:
    noram=0, noanon=0, noamap=0, pgwait=0, pgrele=0
    ok relocks(total)=169912(170583), anget(retries)=1583414(0), amapcopy=794483
    neighbor anon/obj pg=1193209/2813558, gets(lock/unlock)=960206/170583
    cases: anon=1279380, anoncow=304034, obj=807851, prcopy=151684, 
przero=1449726
  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=1050248, swpginuse=0, swpgonly=0 paging=0
  kernel pointers:
    objs(kern)=0xffffffff8215df88

ddb{0}> dmesg
OpenBSD 6.9 (GENERIC.MP) #473: Mon Apr 19 10:40:28 MDT 2021
    dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 4259872768 (4062MB)
avail mem = 4115382272 (3924MB)
random: good seed from bootblocks
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 3.0 @ 0xcfe8b040 (13 entries)
bios0: vendor coreboot version "v4.12.0.4" date 08/27/2020
bios0: PC Engines apu2
acpi0 at bios0: ACPI 6.0
acpi0: sleep states S0 S1 S4 S5
acpi0: tables DSDT FACP SSDT MCFG TPM2 APIC HEST SSDT SSDT DRTM HPET
acpi0: wakeup devices PBR4(S4) PBR5(S4) PBR6(S4) PBR7(S4) PBR8(S4) UOH1(S3) 
UOH2(S3) UOH3(S3) UOH4(S3) UOH5(S3) UOH6(S3) XHC0(S4)
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimcfg0 at acpi0
acpimcfg0: addr 0xf8000000, bus 0-64
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD GX-412TC SOC, 998.26 MHz, 16-30-01
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,DBKP,PERFTSC,PCTRL3,ITSC,BMI1,XSAVEOPT
cpu0: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 2MB 64b/line 
16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD GX-412TC SOC, 998.23 MHz, 16-30-01
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,DBKP,PERFTSC,PCTRL3,ITSC,BMI1,XSAVEOPT
cpu1: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 2MB 64b/line 
16-way L2 cache
cpu1: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu1: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 2 (application processor)
cpu2: AMD GX-412TC SOC, 998.13 MHz, 16-30-01
cpu2: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,DBKP,PERFTSC,PCTRL3,ITSC,BMI1,XSAVEOPT
cpu2: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 2MB 64b/line 
16-way L2 cache
cpu2: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu2: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu2: smt 0, core 2, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: AMD GX-412TC SOC, 998.13 MHz, 16-30-01
cpu3: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,DBKP,PERFTSC,PCTRL3,ITSC,BMI1,XSAVEOPT
cpu3: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 2MB 64b/line 
16-way L2 cache
cpu3: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu3: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu3: smt 0, core 3, package 0
ioapic0 at mainbus0: apid 4 pa 0xfec00000, version 21, 24 pins
ioapic1 at mainbus0: apid 5 pa 0xfec20000, version 21, 32 pins
acpihpet0 at acpi0: 14318180 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PBR4)
acpiprt2 at acpi0: bus 1 (PBR5)
acpiprt3 at acpi0: bus 2 (PBR6)
acpiprt4 at acpi0: bus 3 (PBR7)
acpiprt5 at acpi0: bus 4 (PBR8)
acpipci0 at acpi0 PCI0: 0x00000000 0x00000011 0x00000001
acpicmos0 at acpi0
amdgpio0 at acpi0 GPIO uid 0 addr 0xfed81500/0x300 irq 7, 184 pins
"PRP0001" at acpi0 not configured
"PRP0001" at acpi0 not configured
"PRP0001" at acpi0 not configured
"PRP0001" at acpi0 not configured
"PRP0001" at acpi0 not configured
"PRP0001" at acpi0 not configured
"BOOT0000" at acpi0 not configured
acpicpu0 at acpi0: C2(0@400 io@0x1771), C1(@1 halt!), PSS
acpicpu1 at acpi0: C2(0@400 io@0x1771), C1(@1 halt!), PSS
acpicpu2 at acpi0: C2(0@400 io@0x1771), C1(@1 halt!), PSS
acpicpu3 at acpi0: C2(0@400 io@0x1771), C1(@1 halt!), PSS
acpitz0 at acpi0: critical temperature is 115 degC
cpu0: 998 MHz: speeds: 1000 800 600 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "AMD 16h Root Complex" rev 0x00
vendor "AMD", unknown product 0x1567 (class system subclass IOMMU, rev 0x00) at 
pci0 dev 0 function 2 not configured
pchb1 at pci0 dev 2 function 0 "AMD 16h Host" rev 0x00
ppb0 at pci0 dev 2 function 2 "AMD 16h PCIE" rev 0x00: msi
pci1 at ppb0 bus 1
em0 at pci1 dev 0 function 0 "Intel I210" rev 0x03: msi, address 
00:0d:b9:55:96:04
ppb1 at pci0 dev 2 function 3 "AMD 16h PCIE" rev 0x00: msi
pci2 at ppb1 bus 2
em1 at pci2 dev 0 function 0 "Intel I210" rev 0x03: msi, address 
00:0d:b9:55:96:05
ppb2 at pci0 dev 2 function 4 "AMD 16h PCIE" rev 0x00: msi
pci3 at ppb2 bus 3
em2 at pci3 dev 0 function 0 "Intel I210" rev 0x03: msi, address 
00:0d:b9:55:96:06
ppb3 at pci0 dev 2 function 5 "AMD 16h PCIE" rev 0x00: msi
pci4 at ppb3 bus 4
athn0 at pci4 dev 0 function 0 "Atheros AR9281" rev 0x01: apic 5 int 16
athn0: AR9280 rev 2 (2T2R), ROM rev 22, address 04:f0:21:45:6a:c4
ccp0 at pci0 dev 8 function 0 "AMD 16h Crypto" rev 0x00
xhci0 at pci0 dev 16 function 0 "AMD Bolton xHCI" rev 0x11: msi, xHCI 1.0
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 configuration 1 interface 0 "AMD xHCI root hub" rev 3.00/1.00 
addr 1
ahci0 at pci0 dev 17 function 0 "AMD Hudson-2 SATA" rev 0x40: apic 4 int 19, 
AHCI 1.3
ahci0: port 0: 6.0Gb/s
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0: <ATA, TS128GMSA370, P122> naa.57c35481856c8911
sd0: 122104MB, 512 bytes/sector, 250069680 sectors, thin
ehci0 at pci0 dev 19 function 0 "AMD Hudson-2 USB2" rev 0x39: apic 4 int 18
usb1 at ehci0: USB revision 2.0
uhub1 at usb1 configuration 1 interface 0 "AMD EHCI root hub" rev 2.00/1.00 
addr 1
piixpm0 at pci0 dev 20 function 0 "AMD Hudson-2 SMBus" rev 0x42: SMI
iic0 at piixpm0
iic1 at piixpm0
iic1: addr 0x4c 3e=00 48=00 4a=00 4e=00 fc=00 fe=00 words 00=ffff 01=ffff 
02=ffff 03=ffff 04=ffff 05=ffff 06=ffff 07=ffff
pcib0 at pci0 dev 20 function 3 "AMD Hudson-2 LPC" rev 0x11
sdhc0 at pci0 dev 20 function 7 "AMD Bolton SD/MMC" rev 0x01: apic 4 int 16
sdhc0: SDHC 2.0, 50 MHz base clock
sdmmc0 at sdhc0: 4-bit, sd high-speed, mmc high-speed, dma
pchb2 at pci0 dev 24 function 0 "AMD 16h Link Cfg" rev 0x00
pchb3 at pci0 dev 24 function 1 "AMD 16h Address Map" rev 0x00
pchb4 at pci0 dev 24 function 2 "AMD 16h DRAM Cfg" rev 0x00
km0 at pci0 dev 24 function 3 "AMD 16h Misc Cfg" rev 0x00
pchb5 at pci0 dev 24 function 4 "AMD 16h CPU Power" rev 0x00
pchb6 at pci0 dev 24 function 5 "AMD 16h Misc Cfg" rev 0x00
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
com2 at isa0 port 0x3e8/8 irq 5: ns16550a, 16 byte fifo
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
intr_establish: pic ioapic0 pin 7: can't share type 3 with 2
wbsio0 at isa0 port 0x2e/2: NCT5104D rev 0x53
vmm0 at mainbus0: SVM/RVI
ulpt0 at uhub0 port 3 configuration 1 interface 1 "Samsung Electronics Co., 
Ltd. M2070 Series" rev 2.00/1.00 addr 2
ulpt0: using bi-directional mode
ugen0 at uhub0 port 3 configuration 1 "Samsung Electronics Co., Ltd. M2070 
Series" rev 2.00/1.00 addr 2
uhub2 at uhub1 port 1 configuration 1 interface 0 "Advanced Micro Devices Hub" 
rev 2.00/0.18 addr 2
umb0 at uhub2 port 3 configuration 1 interface 12 "Sierra Wireless, 
Incorporated Sierra Wireless MC7455 Qualcomm Snapdragon? X7 LTE-A" rev 
2.00/0.06 addr 3
ugen1 at uhub2 port 3 configuration 1 "Sierra Wireless, Incorporated Sierra 
Wireless MC7455 Qualcomm Snapdragon? X7 LTE-A" rev 2.00/0.06 addr 3
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root on sd0a (f4c61a8acb9563fd.a) swap on sd0b dump on sd0b
...

-- 
Regards,
 Mikolaj

Reply via email to