Giter VIP home page Giter VIP logo

drm-kmod's Introduction

drm-kmod

The DRM drivers ported from Linux to FreeBSD using LinuxKPI

Contributing

Linux source code

Folders amd, drm, i915, radeon contain FreeBSD Makefiles for the driver modules.

Folder drivers contain source code from Linux, patched (minimally) to run on FreeBSD with LinuxKPI. Try to keep changes to the code to a minimum but if you have to patch it, leave the Linux source code intact like so:

#ifdef __linux__
...intact linux code...
#elif defined(__FreeBSD__)
bsd code
#endif

When updating and patching this code with code from Linux there are often merge conflicts where the code has been changed. If there are no markers it is difficult to know what code to keep and what to throw away.

Pull requests that do not follow this will not be accepted.

Unless obvious what your code does, please leave a comment to explain to fellow developers why you patched it. The source code is the documentation!

If the patch can be avoided by adding functionality to LinuxKPI, please consider the latter. Sooner or later, there will be more places where the functionality is used and having it in LinuxKPI mean we don't have to patch twice.

FreeBSD source code

Folders linuxkpi

Code style and rules same as FreeBSD kernel. No new code should be added there, all new linuxkpi functions should be added in FreeBSD base.

drm-kmod's People

Contributors

airlied avatar alexdeucher avatar amd-aric avatar anthony-koo2 avatar christiankoenigamd avatar danvet avatar dceraolo avatar evadot avatar fxkamd avatar huangrui avatar ickle avatar ideak avatar jnikula avatar johalun avatar leeonadoh avatar ljymonk avatar lucasdemarchi avatar lyude avatar matt-auld avatar mattrope avatar mlankhorst avatar mwajdecz avatar rodrigosiqueira avatar rodrigovivi avatar superm1 avatar tursulin avatar vsyrjala avatar wulf7 avatar zehortigoza avatar zming6666 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

drm-kmod's Issues

Panic on boot with Renoir when testing drm-live-devel-20200906.img

Thinkpad T14 Gen1 AMD
Ryzen 5 PRO 4650U with Radeon Graphics
FreeBSD 13.0-CURRENT 76ceb436904-271329(drm-devel)
(Specifically the image linked in freebsd-current by Emmanuel Vadot on Aug 31).

Issue:
Boots in EFI framebuffer. Prints a few errors, then panics. Until I figure out how to get a crash dump out of this, here is some hand transcription. The boot proceeds normally until "Loading kernel modules:", so I'll skip to there.

This should be entirely reproducible, so ask if there is anything you'd like me to provide.

Loading kernel modules:
<6>[drm] amdgpu kernel modesetting enabled
drmn0: <drmn> on vgapci0
vgapci0: child drmn0 requested pci_enable_io
vgapci0: child drmn0 requested pci_enable_io
sysctl_warn_reuse: can't reuse a leaf (hw.dri.debug)!
<6>[drm] initializing kernel modesetting (RENOIR 0x1002:0x1636 0x17AA:0x5081 0xD3)
<6>[drm] register mmio base: 0xFD300000
<6>[drm] register mmio size 524288
<6>[drm] add ip block number 0 <soc15_common>
<6>[drm] add ip block number 1 <gmc_v9_0>
<6>[drm] add ip block number 2 <vega10_ih>
<6>[drm] add ip block number 3 <psp>
<6>[drm] add ip block number 4 <smu>
<6>[drm] add ip block number 5 <gfx_v9_0>
<6>[drm] add ip block number 6 <sdma_v4_0>
<6>[drm] add ip block number 7 <vcn_v2_0>
drm0: failed to link firmware kernel module with mapped name: amdgpu_renoir_gpu_info_bin
amdgpu/renoir_gpu_info.bin: could not load firmware image, error 2
amdgpu/renoir_gpu_info.bin: could not load firmware image, error 2
drmn0: failed to load firmware with name: amdgpu/renoir_gpu_info.bin
drmn0: failed to load gpu_info firmware: "amdgpu/renoir_gpu_info.bin"
drmn0: fatal error during GPU init
unregister_acpi_notifier not implemented -- see your local kernel hacker
<6>[drm] amdpu: finishing device.
panic: mtx_lock() of spin mutex (null) @ /wrkdirs/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.62-devel/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c:112
cpuid = 10
time= 1599860909
KDB: stack backtrace:
db_trace_self_wrapper()  (I'll skip the addresses; see attached image)
vpanic()
panic()
__mtx_lock_flags()
amdgpu_irq_disable_all()
amdgpu_device_fini()
amdgpu_driver_unload_kms()
amdgpu_driver_load_kms()
drm_dev_register()
amdgpu_pci_probe()
linux_pci_attach_device()
device_attach()
device_probe_and_attach()
bus_generic_driver_added()
devclass_driver_added()
devclass_add_driver()
_linux_pci_register_driver()
amdgpu_evh()
module_register_init()
linker_load_module()
kern_kldload()
sys_kldload()
amd64_syscall()
fast_syscall_common()

IMG_20200911_221032

Patch: Fix the backlight on Renoir

Hi, this patch will fix a bug with the backlight on amdgpu.
on bootup the brightness control does not work fully, but on resume it does work fully.

this patch forces the method that does work all the time.

Panic running "sysctl sys" with Radeon Pro W5700

When I run "sysctl sys" on FreeBSD 13-CURRENT, I get a panic in an amdgpu sysctl handler.

__curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:55
55              __asm("movq %%gs:%P1,%0" : "=r" (td) : "n" (offsetof(struct pcpu,
(kgdb) #0  __curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:55
#1  doadump (textdump=1) at /usr/src/sys/kern/kern_shutdown.c:399
#2  0xffffffff80bf677b in kern_reboot (howto=260)
    at /usr/src/sys/kern/kern_shutdown.c:486
#3  0xffffffff80bf6c00 in vpanic (fmt=<optimized out>, ap=<optimized out>)
    at /usr/src/sys/kern/kern_shutdown.c:919
#4  0xffffffff80bf6a03 in panic (fmt=<unavailable>)
    at /usr/src/sys/kern/kern_shutdown.c:843
#5  0xffffffff81029f17 in trap_fatal (frame=0xfffffe016e360760, eva=0)
    at /usr/src/sys/amd64/amd64/trap.c:915
#6  0xffffffff81029f6f in trap_pfault (frame=0xfffffe016e360760, 
    usermode=<optimized out>, signo=<optimized out>, ucode=<optimized out>)
    at /usr/src/sys/amd64/amd64/trap.c:732
#7  0xffffffff810295cd in trap (frame=0xfffffe016e360760)
    at /usr/src/sys/amd64/amd64/trap.c:398
#8  <signal handler called>
#9  0x0000000000000000 in ?? ()
#10 0xffffffff82a14c4e in amdgpu_device_get_pcie_replay_count ()
   from /boot/modules/amdgpu.ko
#11 0xffffffff82a14b80 in sysctl_handle_attr () from /boot/modules/amdgpu.ko
#12 0xffffffff80c06cc1 in sysctl_root_handler_locked (oid=0xfffffe02133ff000, 
    arg1=0xfffffe016e360980, arg2=-8724518803888, req=0xfffffe016e360980, 
    tracker=0xfffff81099af6280) at /usr/src/sys/kern/kern_sysctl.c:184
#13 0xffffffff80c0610c in sysctl_root (oidp=<optimized out>, 
    arg1=0xfffff810aa27e650, arg2=-2100190360, req=0xfffffe016e360980)
    at /usr/src/sys/kern/kern_sysctl.c:2211
#14 0xffffffff80c06783 in userland_sysctl (td=0xfffffe00f00b6100, 
    name=0xfffffe016e360a40, namelen=4, old=<optimized out>, 
    oldlenp=<optimized out>, inkernel=<optimized out>, new=0x0, newlen=0, 
    retval=0xfffffe016e360aa8, flags=0)
    at /usr/src/sys/kern/kern_sysctl.c:2368
#15 0xffffffff80c065cf in sys___sysctl (td=0xfffffe00f00b6100, 
    uap=0xfffffe00f00b64e8) at /usr/src/sys/kern/kern_sysctl.c:2241
#16 0xffffffff8102a81c in syscallenter (td=0xfffffe00f00b6100)
    at /usr/src/sys/amd64/amd64/../../kern/subr_syscall.c:189
#17 amd64_syscall (td=0xfffffe00f00b6100, traced=0)
    at /usr/src/sys/amd64/amd64/trap.c:1156
#18 <signal handler called>
#19 0x00000008003819ca in ?? ()
Backtrace stopped: Cannot access memory at address 0x7fffffffb618
(kgdb)

I'm running:

FreeBSD photon.int.bluestop.org 13.0-CURRENT FreeBSD 13.0-CURRENT #0 6db1a3e8098-c273171(master): Thu Nov 26 01:26:17 MST 2020     [email protected]:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG  amd64

[5.2][i915] VAAPI encoding hangs

Encoding works fine on e67dcab (drm_v5.1_4) but not 15e197f (5.2-wip). FFmpeg starts but doesn't progress. See drm_debug=0xFFF output.

$ pciconf -l | grep vga.\*8086
vgapci1@pci0:0:2:0:     class=0x030000 rev=0x06 hdr=0x00 vendor=0x8086 device=0x1912 subvendor=0x1462 subdevice=0x7968

$ pkg install ffmpeg libva-intel-media-driver
$ fetch https://media.xiph.org/video/derf/y4m/pedestrian_area_1080p25.y4m
$ ffmpeg -hide_banner -vaapi_device /dev/dri/renderD128 \
  -i pedestrian_area_1080p25.y4m \
  -vf format=nv12,hwupload -c:v h264_vaapi \
  -global_quality 18 \
  -y pedestrian_area_1080p25.h264.mp4
Input #0, yuv4mpegpipe, from 'pedestrian_area_1080p25.y4m':
  Duration: 00:00:15.00, start: 0.000000, bitrate: 622081 kb/s
    Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p(progressive), 1920x1080, SAR 1:1 DAR 16:9, 25 fps, 25 tbr, 25 tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (h264_vaapi))
Press [q] to stop, [?] for help
Output #0, mp4, to 'pedestrian_area_1080p25.h264.mp4':
  Metadata:
    encoder         : Lavf58.29.100
    Stream #0:0: Video: h264 (h264_vaapi) (High) (avc1 / 0x31637661), vaapi_vld, 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 25 fps, 12800 tbn, 25 tbc
    Metadata:
      encoder         : Lavc58.54.100 h264_vaapi
[Ctrl+T doesn't work]

$ truss -p $(pgrep ffmpeg)
ioctl(3,0xc010646c { IORW 0x64('d'), 108, 16 },0x7fffffffbf10) ERR#60 'Operation timed out'
ioctl(3,0xc010646c { IORW 0x64('d'), 108, 16 },0x7fffffffbf10) ERR#60 'Operation timed out'
ioctl(3,0xc010646c { IORW 0x64('d'), 108, 16 },0x7fffffffbf10) ERR#60 'Operation timed out'
ioctl(3,0xc010646c { IORW 0x64('d'), 108, 16 },0x7fffffffbf10) ERR#60 'Operation timed out'
ioctl(3,0xc010646c { IORW 0x64('d'), 108, 16 },0x7fffffffbf10) ERR#60 'Operation timed out'
^C

$ procstat -kk $(pgrep ffmpeg)
  PID    TID COMM                TDNAME              KSTACK
 6337 101818 ffmpeg              -                   mi_switch+0xbe sleepq_catch_signals+0x4a4 sleepq_timedwait_sig+0x12 linux_add_to_sleepqueue+0x96 linux_schedule_timeout+0x86 i915_request_wait+0x2d0 i915_gem_object_wait_fence+0x93 i915_gem_object_wait+0xae i915_gem_wait_ioctl+0x164 drm_ioctl_kernel+0xfa drm_ioctl+0x2c9 linux_file_ioctl+0x37d kern_ioctl+0x23a sys_ioctl+0x101 amd64_syscall+0x10c fast_syscall_common+0x101
 6337 101868 ffmpeg              -                   mi_switch+0xbe sleepq_catch_signals+0x4a4 sleepq_wait_sig+0x9 _sleep+0x1ad umtxq_sleep+0x230 do_wait+0x40a __umtx_op_wait_uint_private+0x82 amd64_syscall+0x10c fast_syscall_common+0x101
 6337 101869 ffmpeg              -                   mi_switch+0xbe sleepq_catch_signals+0x4a4 sleepq_wait_sig+0x9 _sleep+0x1ad umtxq_sleep+0x230 do_wait+0x40a __umtx_op_wait_uint_private+0x82 amd64_syscall+0x10c fast_syscall_common+0x101
 6337 101870 ffmpeg              -                   mi_switch+0xbe sleepq_catch_signals+0x4a4 sleepq_wait_sig+0x9 _sleep+0x1ad umtxq_sleep+0x230 do_wait+0x40a __umtx_op_wait_uint_private+0x82 amd64_syscall+0x10c fast_syscall_common+0x101
 6337 101871 ffmpeg              -                   mi_switch+0xbe sleepq_catch_signals+0x4a4 sleepq_wait_sig+0x9 _sleep+0x1ad umtxq_sleep+0x230 do_wait+0x40a __umtx_op_wait_uint_private+0x82 amd64_syscall+0x10c fast_syscall_common+0x101
 6337 101872 ffmpeg              -                   mi_switch+0xbe sleepq_catch_signals+0x4a4 sleepq_wait_sig+0x9 _sleep+0x1ad umtxq_sleep+0x230 do_wait+0x40a __umtx_op_wait_uint_private+0x82 amd64_syscall+0x10c fast_syscall_common+0x101
 6337 101873 ffmpeg              -                   mi_switch+0xbe sleepq_catch_signals+0x4a4 sleepq_wait_sig+0x9 _sleep+0x1ad umtxq_sleep+0x230 do_wait+0x40a __umtx_op_wait_uint_private+0x82 amd64_syscall+0x10c fast_syscall_common+0x101
 6337 101874 ffmpeg              -                   mi_switch+0xbe sleepq_catch_signals+0x4a4 sleepq_wait_sig+0x9 _sleep+0x1ad umtxq_sleep+0x230 do_wait+0x40a __umtx_op_wait_uint_private+0x82 amd64_syscall+0x10c fast_syscall_common+0x101
 6337 101875 ffmpeg              -                   mi_switch+0xbe sleepq_catch_signals+0x4a4 sleepq_wait_sig+0x9 _sleep+0x1ad umtxq_sleep+0x230 do_wait+0x40a __umtx_op_wait_uint_private+0x82 amd64_syscall+0x10c fast_syscall_common+0x101

DRM_IOCTL_I915_GEM_VM_DESTROY fails with ENOENT

intel/compute-runtime@519e75e3d683 started to rely on torvalds/linux@7f3f317a66ca. On FreeBSD "create" appears to be broken but because the ioctl doesn't fail consumers may attempt to use.

GEM_BUG_ON(err == 0); /* reserved for invalid/unassigned ppgtt */

$ clinfo
[...]
Abort was called at 243 line in file:
shared/source/os_interface/linux/drm_neo.cpp
$ cc a.c $(pkg-config libdrm --cflags --libs)
$ ./a.out
a.out: DRM_IOCTL_I915_GEM_VM_DESTROY failed: No such file or directory

$ cat a.c
#include <i915_drm.h>
#include <xf86drm.h>
#include <err.h>

// https://gitlab.freedesktop.org/mesa/drm/-/issues/53
#define DRM_I915_GEM_VM_CREATE		0x3a
#define DRM_I915_GEM_VM_DESTROY		0x3b
#define DRM_IOCTL_I915_GEM_VM_CREATE	DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_GEM_VM_CREATE, struct drm_i915_gem_vm_control)
#define DRM_IOCTL_I915_GEM_VM_DESTROY	DRM_IOW (DRM_COMMAND_BASE + DRM_I915_GEM_VM_DESTROY, struct drm_i915_gem_vm_control)

int main()
{
  int fd;

  if ((fd = drmOpenWithType("i915", 0, DRM_NODE_RENDER)) < 0)
    err(1, "drmOpenWithType failed");

  struct drm_i915_gem_vm_control ctl = {};
  if (drmIoctl(fd, DRM_IOCTL_I915_GEM_VM_CREATE, &ctl) < 0)
    err(1, "DRM_IOCTL_I915_GEM_VM_CREATE failed");
  if (drmIoctl(fd, DRM_IOCTL_I915_GEM_VM_DESTROY, &ctl) < 0)
    err(1, "DRM_IOCTL_I915_GEM_VM_DESTROY failed");

  return 0;
}

Race between drm and i915kms on unload when compat.linuxkpi.i915_enable_guc=1

After unloading i915kms and trying to kldload i915kms again the GuC firmware verification fails :

drmn0: successfully loaded firmware image with name: i915/skl_guc_ver9_33.bin [drm ERROR :guc_wait_ucode] GuC firmware signature verification failed [drm] GuC: Failed to load firmware i915/skl_guc_ver9_33.bin (error -8) [drm] GuC: Failed to load firmware i915/skl_guc_ver9_33.bin (error -60) [drm] GuC: Failed to load firmware i915/skl_guc_ver9_33.bin (error -60) drmn0: GuC initialization failed -60 [drm ERROR :i915_gem_init_hw] Enabling uc failed (-60)

It then provoke a race between drm and i915.
The i915kms driver calls i915_ppgtt_release which in turn calls i915_address_space_fini which destroys the mutex for the vm object. And when the drm modules want to clean via the drm_mm work, i915_vma_destroy is called and tries to aquires the deleted mutex.
panic: sx_xlock() of destroyed sx @ /usr/home/manu/Work/freebsd/drm-kmod/drivers/gpu/drm/i915/i915_vma.c:824 cpuid = 3 time = 1589965263 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe007d00e800 vpanic() at vpanic+0x182/frame 0xfffffe007d00e850 panic() at panic+0x43/frame 0xfffffe007d00e8b0 _sx_xlock() at _sx_xlock+0x102/frame 0xfffffe007d00e8f0 i915_vma_destroy() at i915_vma_destroy+0x74/frame 0xfffffe007d00e910 __i915_gem_free_objects() at __i915_gem_free_objects+0xf3/frame 0xfffffe007d00e980 __i915_gem_free_work() at __i915_gem_free_work+0x71/frame 0xfffffe007d00e9b0 linux_work_fn() at linux_work_fn+0xdf/frame 0xfffffe007d00ea00 taskqueue_run_locked() at taskqueue_run_locked+0xaa/frame 0xfffffe007d00ea80 taskqueue_thread_loop() at taskqueue_thread_loop+0x94/frame 0xfffffe007d00eab0 fork_exit() at fork_exit+0x80/frame 0xfffffe007d00eaf0 fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe007d00eaf0

5.5-wip: linker_load_file: /boot/modules/i915kms.ko - unsupported file type

Describe the bug

I am not able to load i915kms.ko from the 5.5-wip branch. Relevant dmesg snippet:

link_elf_obj: symbol intel_rc6_ctx_wa_resume undefined
Warning: memory type debugfsint leaked memory on destroy (2 allocations, 80 bytes leaked).
linker_load_file: /boot/modules/i915kms.ko - unsupported file type

FreeBSD version

FreeBSD concorde.local 14.0-CURRENT FreeBSD 14.0-CURRENT #9 main-n245378-409388cfac4: Wed Mar 10 09:04:45 PST 2021     [email protected]:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG  amd64

PCI Info

hostb0@pci0:0:0:0:    class=0x060000 rev=0x01 hdr=0x00 vendor=0x8086 device=0x9a14 subvendor=0x103c subdevice=0x8709
    vendor     = 'Intel Corporation'
    device     = '11th Gen Core Processor Host Bridge/DRAM Registers'
    class      = bridge
    subclass   = HOST-PCI
vgapci0@pci0:0:2:0:    class=0x030000 rev=0x01 hdr=0x00 vendor=0x8086 device=0x9a49 subvendor=0x103c subdevice=0x8709
    vendor     = 'Intel Corporation'
    device     = 'TigerLake GT2 [Iris Xe Graphics]'
    class      = display
    subclass   = VGA
none0@pci0:0:4:0:    class=0x118000 rev=0x01 hdr=0x00 vendor=0x8086 device=0x9a03 subvendor=0x103c subdevice=0x8709
    vendor     = 'Intel Corporation'
    class      = dasp
pcib1@pci0:0:7:0:    class=0x060400 rev=0x01 hdr=0x01 vendor=0x8086 device=0x9a23 subvendor=0x103c subdevice=0x8709
    vendor     = 'Intel Corporation'
    device     = 'Tiger Lake-LP Thunderbolt 4 PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI
pcib2@pci0:0:7:1:    class=0x060400 rev=0x01 hdr=0x01 vendor=0x8086 device=0x9a25 subvendor=0x103c subdevice=0x8709
    vendor     = 'Intel Corporation'
    device     = 'Tiger Lake-LP Thunderbolt 4 PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI
none1@pci0:0:8:0:    class=0x088000 rev=0x01 hdr=0x00 vendor=0x8086 device=0x9a11 subvendor=0x103c subdevice=0x8709
    vendor     = 'Intel Corporation'
    class      = base peripheral
xhci0@pci0:0:13:0:    class=0x0c0330 rev=0x01 hdr=0x00 vendor=0x8086 device=0x9a13 subvendor=0x103c subdevice=0x8709
    vendor     = 'Intel Corporation'
    device     = 'Tiger Lake-LP Thunderbolt 4 USB Controller'
    class      = serial bus
    subclass   = USB
none2@pci0:0:13:2:    class=0x0c0340 rev=0x01 hdr=0x00 vendor=0x8086 device=0x9a1b subvendor=0x2222 subdevice=0x1111
    vendor     = 'Intel Corporation'
    device     = 'Tiger Lake-LP Thunderbolt 4 NHI'
    class      = serial bus
    subclass   = USB
vmd0@pci0:0:14:0:    class=0x010400 rev=0x00 hdr=0x00 vendor=0x8086 device=0x9a0b subvendor=0x8086 subdevice=0x0000
    vendor     = 'Intel Corporation'
    device     = 'Volume Management Device NVMe RAID Controller'
    class      = mass storage
    subclass   = RAID
none3@pci0:0:18:0:    class=0x070000 rev=0x20 hdr=0x00 vendor=0x8086 device=0xa0fc subvendor=0x103c subdevice=0x8709
    vendor     = 'Intel Corporation'
    device     = 'Tiger Lake-LP Integrated Sensor Hub'
    class      = simple comms
    subclass   = UART
xhci1@pci0:0:20:0:    class=0x0c0330 rev=0x20 hdr=0x00 vendor=0x8086 device=0xa0ed subvendor=0x103c subdevice=0x8709
    vendor     = 'Intel Corporation'
    device     = 'Tiger Lake-LP USB 3.2 Gen 2x1 xHCI Host Controller'
    class      = serial bus
    subclass   = USB
none4@pci0:0:20:2:    class=0x050000 rev=0x20 hdr=0x00 vendor=0x8086 device=0xa0ef subvendor=0x103c subdevice=0x8709
    vendor     = 'Intel Corporation'
    device     = 'Tiger Lake-LP Shared SRAM'
    class      = memory
    subclass   = RAM
none5@pci0:0:20:3:    class=0x028000 rev=0x20 hdr=0x00 vendor=0x8086 device=0xa0f0 subvendor=0x8086 subdevice=0x0074
    vendor     = 'Intel Corporation'
    device     = 'Wi-Fi 6 AX201'
    class      = network
ig4iic0@pci0:0:21:0:    class=0x0c8000 rev=0x20 hdr=0x00 vendor=0x8086 device=0xa0e8 subvendor=0x103c subdevice=0x8709
    vendor     = 'Intel Corporation'
    device     = 'Tiger Lake-LP Serial IO I2C Controller'
    class      = serial bus
ig4iic1@pci0:0:21:1:    class=0x0c8000 rev=0x20 hdr=0x00 vendor=0x8086 device=0xa0e9 subvendor=0x103c subdevice=0x8709
    vendor     = 'Intel Corporation'
    device     = 'Tiger Lake-LP Serial IO I2C Controller'
    class      = serial bus
none6@pci0:0:22:0:    class=0x078000 rev=0x20 hdr=0x00 vendor=0x8086 device=0xa0e0 subvendor=0x103c subdevice=0x8709
    vendor     = 'Intel Corporation'
    device     = 'Tiger Lake-LP Management Engine Interface'
    class      = simple comms
pcib5@pci0:0:28:0:    class=0x060400 rev=0x20 hdr=0x01 vendor=0x8086 device=0xa0bd subvendor=0x103c subdevice=0x8709
    vendor     = 'Intel Corporation'
    device     = 'Tigerlake PCH-LP PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI
none7@pci0:0:29:0:    class=0x088000 rev=0x00 hdr=0x00 vendor=0x8086 device=0x09ab subvendor=0x103c subdevice=0x8709
    vendor     = 'Intel Corporation'
    class      = base peripheral
isab0@pci0:0:31:0:    class=0x060100 rev=0x20 hdr=0x00 vendor=0x8086 device=0xa082 subvendor=0x103c subdevice=0x8709
    vendor     = 'Intel Corporation'
    device     = 'Tiger Lake-LP LPC Controller'
    class      = bridge
    subclass   = PCI-ISA
hdac0@pci0:0:31:3:    class=0x040100 rev=0x20 hdr=0x00 vendor=0x8086 device=0xa0c8 subvendor=0x103c subdevice=0x8709
    vendor     = 'Intel Corporation'
    device     = 'Tiger Lake-LP Smart Sound Technology Audio Controller'
    class      = multimedia
    subclass   = audio
none8@pci0:0:31:4:    class=0x0c0500 rev=0x20 hdr=0x00 vendor=0x8086 device=0xa0a3 subvendor=0x103c subdevice=0x8709
    vendor     = 'Intel Corporation'
    device     = 'Tiger Lake-LP SMBus Controller'
    class      = serial bus
    subclass   = SMBus
none9@pci0:0:31:5:    class=0x0c8000 rev=0x20 hdr=0x00 vendor=0x8086 device=0xa0a4 subvendor=0x103c subdevice=0x8709
    vendor     = 'Intel Corporation'
    device     = 'Tiger Lake-LP SPI Controller'
    class      = serial bus
pcib3@pci65535:224:29:0:    class=0x060400 rev=0x20 hdr=0x01 vendor=0x8086 device=0xa0b0 subvendor=0x103c subdevice=0x8709
    vendor     = 'Intel Corporation'
    device     = 'Tiger Lake-LP PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI
pcib4@pci65535:224:29:2:    class=0x060400 rev=0x20 hdr=0x01 vendor=0x8086 device=0xa0b2 subvendor=0x103c subdevice=0x8709
    vendor     = 'Intel Corporation'
    class      = bridge
    subclass   = PCI-PCI
nvme0@pci65535:225:0:0:    class=0x010802 rev=0x03 hdr=0x00 vendor=0x8086 device=0x0975 subvendor=0x8086 subdevice=0x8410
    vendor     = 'Intel Corporation'
    class      = mass storage
    subclass   = NVM
nvme1@pci65535:226:0:0:    class=0x010802 rev=0x00 hdr=0x00 vendor=0x8086 device=0x0975 subvendor=0x8086 subdevice=0x8510
    vendor     = 'Intel Corporation'
    class      = mass storage
    subclass   = NVM
rtsx0@pci0:87:0:0:    class=0xff0000 rev=0x01 hdr=0x00 vendor=0x10ec device=0x525a subvendor=0x103c subdevice=0x8709
    vendor     = 'Realtek Semiconductor Co., Ltd.'
    device     = 'RTS525A PCI Express Card Reader'

DRM KMOD version

5.5-wip branch as of 69bd7c0e48ee1fd0db662e1abc7cf54269ee0ccd

To Reproduce

Compile the 5.5-wip branch of drm-kmod on 14-CURRENT and load i915kms.ko. It should give these issues.

Screenshots

See: https://imgur.com/a/KuWsiB0

Additional context

I am running a HP Spectre x360 13t-aw200 (Intel Tiger Lake). I want to use 5.5-wip since 5.4 doesn't really support Tiger Lake outside of a blank screen.

Right now I am using scfb but would love to run PCem and Toontown Rewritten. I am willing to help with coding and such.

Display freezes for tens of seconds at times (exclusive sleep mutex lkpi-shrinker)

Describe the bug
As I'm using FreeBSD on my laptop for everyday tasks, the system seems to freeze every now and then. It's not like the whole system freezes. however, it's only the display. When the display finally unfreezes, I can see that, e.g., the Firefox tab has been closed for example.

FreeBSD version
FreeBSD t480 13.0-ALPHA1 FreeBSD 13.0-ALPHA1 #3 main-c255947-g420d4be3e40a: Thu Jan 14 10:40:45 CET 2021 0mp@t480:/usr/obj/usr/home/0mp/.local/share/freebsd/src/amd64.amd64/sys/GENERIC amd64

PCI Info

pciconf -lv
hostb0@pci0:0:0:0:	class=0x060000 rev=0x08 hdr=0x00 vendor=0x8086 device=0x5914 subvendor=0x17aa subdevice=0x225d
    vendor     = 'Intel Corporation'
    device     = 'Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers'
    class      = bridge
    subclass   = HOST-PCI
vgapci0@pci0:0:2:0:	class=0x030000 rev=0x07 hdr=0x00 vendor=0x8086 device=0x5917 subvendor=0x17aa subdevice=0x225e
    vendor     = 'Intel Corporation'
    device     = 'UHD Graphics 620'
    class      = display
    subclass   = VGA
none0@pci0:0:4:0:	class=0x118000 rev=0x08 hdr=0x00 vendor=0x8086 device=0x1903 subvendor=0x17aa subdevice=0x225d
    vendor     = 'Intel Corporation'
    device     = 'Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem'
    class      = dasp
none1@pci0:0:8:0:	class=0x088000 rev=0x00 hdr=0x00 vendor=0x8086 device=0x1911 subvendor=0x17aa subdevice=0x225d
    vendor     = 'Intel Corporation'
    device     = 'Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model'
    class      = base peripheral
xhci0@pci0:0:20:0:	class=0x0c0330 rev=0x21 hdr=0x00 vendor=0x8086 device=0x9d2f subvendor=0x17aa subdevice=0x225d
    vendor     = 'Intel Corporation'
    device     = 'Sunrise Point-LP USB 3.0 xHCI Controller'
    class      = serial bus
    subclass   = USB
pchtherm0@pci0:0:20:2:	class=0x118000 rev=0x21 hdr=0x00 vendor=0x8086 device=0x9d31 subvendor=0x17aa subdevice=0x225d
    vendor     = 'Intel Corporation'
    device     = 'Sunrise Point-LP Thermal subsystem'
    class      = dasp
ig4iic0@pci0:0:21:0:	class=0x118000 rev=0x21 hdr=0x00 vendor=0x8086 device=0x9d60 subvendor=0x17aa subdevice=0x225d
    vendor     = 'Intel Corporation'
    device     = 'Sunrise Point-LP Serial IO I2C Controller'
    class      = dasp
none2@pci0:0:22:0:	class=0x078000 rev=0x21 hdr=0x00 vendor=0x8086 device=0x9d3a subvendor=0x17aa subdevice=0x225d
    vendor     = 'Intel Corporation'
    device     = 'Sunrise Point-LP CSME HECI'
    class      = simple comms
pcib1@pci0:0:28:0:	class=0x060400 rev=0xf1 hdr=0x01 vendor=0x8086 device=0x9d10 subvendor=0x17aa subdevice=0x225d
    vendor     = 'Intel Corporation'
    device     = 'Sunrise Point-LP PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI
pcib2@pci0:0:28:6:	class=0x060400 rev=0xf1 hdr=0x01 vendor=0x8086 device=0x9d16 subvendor=0x17aa subdevice=0x225d
    vendor     = 'Intel Corporation'
    device     = 'Sunrise Point-LP PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI
pcib3@pci0:0:29:0:	class=0x060400 rev=0xf1 hdr=0x01 vendor=0x8086 device=0x9d18 subvendor=0x17aa subdevice=0x225d
    vendor     = 'Intel Corporation'
    device     = 'Sunrise Point-LP PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI
pcib8@pci0:0:29:2:	class=0x060400 rev=0xf1 hdr=0x01 vendor=0x8086 device=0x9d1a subvendor=0x17aa subdevice=0x225d
    vendor     = 'Intel Corporation'
    device     = 'Sunrise Point-LP PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI
isab0@pci0:0:31:0:	class=0x060100 rev=0x21 hdr=0x00 vendor=0x8086 device=0x9d4e subvendor=0x17aa subdevice=0x225d
    vendor     = 'Intel Corporation'
    device     = 'Sunrise Point LPC Controller/eSPI Controller'
    class      = bridge
    subclass   = PCI-ISA
none3@pci0:0:31:2:	class=0x058000 rev=0x21 hdr=0x00 vendor=0x8086 device=0x9d21 subvendor=0x17aa subdevice=0x225d
    vendor     = 'Intel Corporation'
    device     = 'Sunrise Point-LP PMC'
    class      = memory
hdac0@pci0:0:31:3:	class=0x040300 rev=0x21 hdr=0x00 vendor=0x8086 device=0x9d71 subvendor=0x17aa subdevice=0x225d
    vendor     = 'Intel Corporation'
    device     = 'Sunrise Point-LP HD Audio'
    class      = multimedia
    subclass   = HDA
ichsmb0@pci0:0:31:4:	class=0x0c0500 rev=0x21 hdr=0x00 vendor=0x8086 device=0x9d23 subvendor=0x17aa subdevice=0x225d
    vendor     = 'Intel Corporation'
    device     = 'Sunrise Point-LP SMBus'
    class      = serial bus
    subclass   = SMBus
em0@pci0:0:31:6:	class=0x020000 rev=0x21 hdr=0x00 vendor=0x8086 device=0x15d8 subvendor=0x17aa subdevice=0x225d
    vendor     = 'Intel Corporation'
    device     = 'Ethernet Connection (4) I219-V'
    class      = network
    subclass   = ethernet
vgapci1@pci0:1:0:0:	class=0x030200 rev=0xa1 hdr=0x00 vendor=0x10de device=0x1d10 subvendor=0x17aa subdevice=0x225e
    vendor     = 'NVIDIA Corporation'
    device     = 'GP108M [GeForce MX150]'
    class      = display
    subclass   = 3D
iwm0@pci0:3:0:0:	class=0x028000 rev=0x78 hdr=0x00 vendor=0x8086 device=0x24fd subvendor=0x8086 subdevice=0x0010
    vendor     = 'Intel Corporation'
    device     = 'Wireless 8265 / 8275'
    class      = network
pcib4@pci0:4:0:0:	class=0x060400 rev=0x01 hdr=0x01 vendor=0x8086 device=0x15c0 subvendor=0x2222 subdevice=0x1111
    vendor     = 'Intel Corporation'
    device     = 'JHL6240 Thunderbolt 3 Bridge (Low Power) [Alpine Ridge LP 2016]'
    class      = bridge
    subclass   = PCI-PCI
pcib5@pci0:5:0:0:	class=0x060400 rev=0x01 hdr=0x01 vendor=0x8086 device=0x15c0 subvendor=0x2222 subdevice=0x1111
    vendor     = 'Intel Corporation'
    device     = 'JHL6240 Thunderbolt 3 Bridge (Low Power) [Alpine Ridge LP 2016]'
    class      = bridge
    subclass   = PCI-PCI
pcib6@pci0:5:1:0:	class=0x060400 rev=0x01 hdr=0x01 vendor=0x8086 device=0x15c0 subvendor=0x2222 subdevice=0x1111
    vendor     = 'Intel Corporation'
    device     = 'JHL6240 Thunderbolt 3 Bridge (Low Power) [Alpine Ridge LP 2016]'
    class      = bridge
    subclass   = PCI-PCI
pcib7@pci0:5:2:0:	class=0x060400 rev=0x01 hdr=0x01 vendor=0x8086 device=0x15c0 subvendor=0x2222 subdevice=0x1111
    vendor     = 'Intel Corporation'
    device     = 'JHL6240 Thunderbolt 3 Bridge (Low Power) [Alpine Ridge LP 2016]'
    class      = bridge
    subclass   = PCI-PCI
none4@pci0:6:0:0:	class=0x088000 rev=0x01 hdr=0x00 vendor=0x8086 device=0x15bf subvendor=0x2222 subdevice=0x1111
    vendor     = 'Intel Corporation'
    device     = 'JHL6240 Thunderbolt 3 NHI (Low Power) [Alpine Ridge LP 2016]'
    class      = base peripheral
xhci1@pci0:60:0:0:	class=0x0c0330 rev=0x01 hdr=0x00 vendor=0x8086 device=0x15c1 subvendor=0x2222 subdevice=0x1111
    vendor     = 'Intel Corporation'
    device     = 'JHL6240 Thunderbolt 3 USB 3.1 Controller (Low Power) [Alpine Ridge LP 2016]'
    class      = serial bus
    subclass   = USB
nvme0@pci0:61:0:0:	class=0x010802 rev=0x00 hdr=0x00 vendor=0x144d device=0xa808 subvendor=0x144d subdevice=0xa801
    vendor     = 'Samsung Electronics Co Ltd'
    device     = 'NVMe SSD Controller SM981/PM981/PM983'
    class      = mass storage
    subclass   = NVM

DRM KMOD version

drm-current-kmod 5.4.62.g20210118 drm-kmod g20190710

To Reproduce
The freezing happens much more frequently (and for longer periods I think) when using Firefox actively in than when I'm just in a full-screen terminal session (although it does happen as well).

Additional context
I think it might be related to those messages I see a lot in dmesg:

might_sleep() with the following non-sleepable locks held:
exclusive sleep mutex lkpi-shrinker (lkpi-shrinker) r = 0 (0xffffffff839a4340) locked @ /usr/home/0mp/.local/share/freebsd/src/sys/compat/linuxkpi/common/src/linux_shrinker.c:96
stack backtrace:
#0 0xffffffff80c641c1 at witness_debugger+0x71
#1 0xffffffff80c652dd at witness_warn+0x40d
#2 0xffffffff837db79d at i915_vma_unbind+0x4d
#3 0xffffffff837bb8c8 at i915_gem_object_unbind+0x78
#4 0xffffffff838bf9cc at i915_gem_shrink+0x2dc
#5 0xffffffff838bfda8 at i915_gem_shrinker_scan+0x98
#6 0xffffffff8399beed at linuxkpi_vm_lowmem+0x7d
#7 0xffffffff80f03a80 at vm_pageout_worker+0x3d0
#8 0xffffffff80f0369e at vm_pageout+0x21e
#9 0xffffffff80bafb10 at fork_exit+0x80
#10 0xffffffff81024ade at fork_trampoline+0xe

adev->powerplay.pp_funcs not set

the bug is that "adev->powerplay.pp_funcs" is not set. where is this normally set?
my chip is a Renoir one in the AMD Ryzen 5 4600H, vendor=0x1002 device=0x1636.

When I unplug or plug the power connector I get an ACPI event, which propagates to amdgpu_pm_acpi_event_handler,
which then wants to call the powerplay table

        if (adev->powerplay.pp_funcs->enable_bapm) {    <------ nasty crash
            amdgpu_dpm_enable_bapm(adev, adev->pm.ac_power);
        }


screen disabled when loading radeonkms.ko with SUMO chip

Describe the bug
Loading radeonkms.ko disables the screen with error message [drm] Cannot find any crtc or sizes

FreeBSD version
FreeBSD 13.0-RC2 #11 releng/13.0-n244684-13c22f74953: Fri Mar 12 09:49:28 CET 2021

PCI Info

pciconf -lv

hostb0@pci0:0:0:0: class=0x060000 card=0x17051849 chip=0x17051022 rev=0x00 hdr=0x00
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 12h Processor Root Complex'
class = bridge
subclass = HOST-PCI
vgapci0@pci0:0:1:0: class=0x030000 card=0x96401849 chip=0x964a1002 rev=0x00 hdr=0x00
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'Sumo [Radeon HD 6530D]'
class = display
subclass = VGA
hdac0@pci0:0:1:1: class=0x040300 card=0x17141849 chip=0x17141002 rev=0x00 hdr=0x00
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'BeaverCreek HDMI Audio [Radeon HD 6500D and 6400G-6600G series]'
class = multimedia
subclass = HDA
pcib1@pci0:0:4:0: class=0x060400 card=0x12341022 chip=0x17091022 rev=0x00 hdr=0x01
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 12h Processor Root Port'
class = bridge
subclass = PCI-PCI
xhci0@pci0:0:16:0: class=0x0c0330 card=0x78121849 chip=0x78121022 rev=0x03 hdr=0x00
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'FCH USB XHCI Controller'
class = serial bus
subclass = USB
xhci1@pci0:0:16:1: class=0x0c0330 card=0x78121849 chip=0x78121022 rev=0x03 hdr=0x00
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'FCH USB XHCI Controller'
class = serial bus
subclass = USB
ahci0@pci0:0:17:0: class=0x010601 card=0x78001849 chip=0x78011022 rev=0x40 hdr=0x00
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'FCH SATA Controller [AHCI mode]'
class = mass storage
subclass = SATA
ohci0@pci0:0:18:0: class=0x0c0310 card=0x78071849 chip=0x78071022 rev=0x11 hdr=0x00
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'FCH USB OHCI Controller'
class = serial bus
subclass = USB
ehci0@pci0:0:18:2: class=0x0c0320 card=0x78081849 chip=0x78081022 rev=0x11 hdr=0x00
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'FCH USB EHCI Controller'
class = serial bus
subclass = USB
ohci1@pci0:0:19:0: class=0x0c0310 card=0x78071849 chip=0x78071022 rev=0x11 hdr=0x00
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'FCH USB OHCI Controller'
class = serial bus
subclass = USB
ehci1@pci0:0:19:2: class=0x0c0320 card=0x78081849 chip=0x78081022 rev=0x11 hdr=0x00
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'FCH USB EHCI Controller'
class = serial bus
subclass = USB
intsmb0@pci0:0:20:0: class=0x0c0500 card=0x780b1849 chip=0x780b1022 rev=0x13 hdr=0x00
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'FCH SMBus Controller'
class = serial bus
subclass = SMBus
atapci0@pci0:0:20:1: class=0x01018a card=0x780c1849 chip=0x780c1022 rev=0x00 hdr=0x00
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'FCH IDE Controller'
class = mass storage
subclass = ATA
hdac1@pci0:0:20:2: class=0x040300 card=0x88921849 chip=0x780d1022 rev=0x01 hdr=0x00
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'FCH Azalia Controller'
class = multimedia
subclass = HDA
isab0@pci0:0:20:3: class=0x060100 card=0x780e1849 chip=0x780e1022 rev=0x11 hdr=0x00
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'FCH LPC Bridge'
class = bridge
subclass = PCI-ISA
pcib2@pci0:0:20:4: class=0x060401 card=0x00000000 chip=0x780f1022 rev=0x40 hdr=0x01
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'FCH PCI Bridge'
class = bridge
subclass = PCI-PCI
ohci2@pci0:0:20:5: class=0x0c0310 card=0x78091849 chip=0x78091022 rev=0x11 hdr=0x00
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'FCH USB OHCI Controller'
class = serial bus
subclass = USB
pcib3@pci0:0:21:0: class=0x060400 card=0x00001022 chip=0x43a01022 rev=0x00 hdr=0x01
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Hudson PCI to PCI bridge (PCIE port 0)'
class = bridge
subclass = PCI-PCI
pcib4@pci0:0:21:3: class=0x060400 card=0x00001022 chip=0x43a31022 rev=0x00 hdr=0x01
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Hudson PCI to PCI bridge (PCIE port 3)'
class = bridge
subclass = PCI-PCI
hostb1@pci0:0:24:0: class=0x060000 card=0x00000000 chip=0x17001022 rev=0x43 hdr=0x00
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 12h/14h Processor Function 0'
class = bridge
subclass = HOST-PCI
hostb2@pci0:0:24:1: class=0x060000 card=0x00000000 chip=0x17011022 rev=0x00 hdr=0x00
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 12h/14h Processor Function 1'
class = bridge
subclass = HOST-PCI
hostb3@pci0:0:24:2: class=0x060000 card=0x00000000 chip=0x17021022 rev=0x00 hdr=0x00
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 12h/14h Processor Function 2'
class = bridge
subclass = HOST-PCI
hostb4@pci0:0:24:3: class=0x060000 card=0x00000000 chip=0x17031022 rev=0x00 hdr=0x00
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 12h/14h Processor Function 3'
class = bridge
subclass = HOST-PCI
hostb5@pci0:0:24:4: class=0x060000 card=0x00000000 chip=0x17041022 rev=0x00 hdr=0x00
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 12h/14h Processor Function 4'
class = bridge
subclass = HOST-PCI
hostb6@pci0:0:24:5: class=0x060000 card=0x00000000 chip=0x17181022 rev=0x00 hdr=0x00
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 12h/14h Processor Function 6'
class = bridge
subclass = HOST-PCI
hostb7@pci0:0:24:6: class=0x060000 card=0x00000000 chip=0x17161022 rev=0x00 hdr=0x00
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 12h/14h Processor Function 5'
class = bridge
subclass = HOST-PCI
hostb8@pci0:0:24:7: class=0x060000 card=0x00000000 chip=0x17191022 rev=0x00 hdr=0x00
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 12h/14h Processor Function 7'
class = bridge
subclass = HOST-PCI
none0@pci0:1:0:0: class=0x048000 card=0x00016902 chip=0x6178544d rev=0x00 hdr=0x00
vendor = 'TBS Technologies'
device = 'DVB Tuner PCIe Card'
class = multimedia
re0@pci0:4:0:0: class=0x020000 card=0x81681849 chip=0x816810ec rev=0x06 hdr=0x00
vendor = 'Realtek Semiconductor Co., Ltd.'
device = 'RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller'
class = network
subclass = ethernet

DRM KMOD version
drm-fbsd13-kmod 5.4.92.g20210202

To Reproduce
kldload radeonkms

Additional context
I had the same problem already with drm-fbsd12.0-kmod on any 12.x RELEASE, see also FreeBSD PR #237223.

Back then, I tried building a branch using DRM from Linux 5.0, which successfully set the mode on the console at least, see this issue: FreeBSDDesktop/kms-drm#195 -- so I assumed the problem would be gone with newer DRM versions.

For 12.x, my workaround was to still use drm-fbsd11.2-kmod (which built and worked with just minor modifications). Unfortunately, it doesn't build any more on 13, so I'm at a dead end here.

Here's the log from loading radeonkms.ko on 13.0-RC2:

Mar 12 13:06:36 nexus kernel: [drm] radeon kernel modesetting enabled.
Mar 12 13:06:36 nexus kernel: drmn0: <drmn> on vgapci0
Mar 12 13:06:36 nexus kernel: vgapci0: child drmn0 requested pci_enable_io
Mar 12 13:06:36 nexus syslogd: last message repeated 1 times
Mar 12 13:06:37 nexus kernel: sysctl_warn_reuse: can't re-use a leaf (hw.dri.debug)!
Mar 12 13:06:37 nexus kernel: [drm] initializing kernel modesetting (SUMO 0x1002:0x964A 0x1849:0x9640 0x00).
Mar 12 13:06:37 nexus kernel: [drm ERROR :radeon_atombios_init] Unable to find PCI I/O BAR; using MMIO for ATOM IIO
Mar 12 13:06:37 nexus kernel: ATOM BIOS: General
Mar 12 13:06:37 nexus kernel: drmn0: VRAM: 256M 0x0000000000000000 - 0x000000000FFFFFFF (256M used)
Mar 12 13:06:37 nexus kernel: drmn0: GTT: 1024M 0x0000000010000000 - 0x000000004FFFFFFF
Mar 12 13:06:37 nexus kernel: Failed to add WC MTRR for [0xc0000000-0xcfffffff]: -22; performance may suffer
Mar 12 13:06:37 nexus kernel: [drm] Detected VRAM RAM=256M, BAR=256M
Mar 12 13:06:37 nexus kernel: [drm] RAM width 32bits DDR
Mar 12 13:06:37 nexus kernel: [TTM] Zone  kernel: Available graphics memory: 4031846 KiB
Mar 12 13:06:37 nexus kernel: [TTM] Zone   dma32: Available graphics memory: 2097152 KiB
Mar 12 13:06:37 nexus kernel: [TTM] Initializing pool allocator
Mar 12 13:06:37 nexus kernel: [drm] radeon: 256M of VRAM memory ready
Mar 12 13:06:37 nexus kernel: [drm] radeon: 1024M of GTT memory ready.
Mar 12 13:06:37 nexus kernel: [drm] Loading SUMO Microcode
Mar 12 13:06:37 nexus kernel: drmn0: successfully loaded firmware image 'radeon/SUMO_pfp.bin'
Mar 12 13:06:37 nexus kernel: drmn0: successfully loaded firmware image 'radeon/SUMO_me.bin'
Mar 12 13:06:37 nexus kernel: drmn0: successfully loaded firmware image 'radeon/SUMO_rlc.bin'
Mar 12 13:06:37 nexus kernel: [drm] Internal thermal controller without fan control
Mar 12 13:06:37 nexus kernel: [drm] Found smc ucode version: 0x00011200
Mar 12 13:06:37 nexus kernel: [drm] radeon: dpm initialized
Mar 12 13:06:37 nexus kernel: drmn0: successfully loaded firmware image 'radeon/SUMO_uvd.bin'
Mar 12 13:06:37 nexus kernel: [drm] GART: num cpu pages 262144, num gpu pages 262144
Mar 12 13:06:37 nexus kernel: [drm] PCIE GART of 1024M enabled (table at 0x0000000000162000).
Mar 12 13:06:37 nexus kernel: drmn0: WB enabled
Mar 12 13:06:37 nexus kernel: drmn0: fence driver on ring 0 use gpu addr 0x0000000010000c00 and cpu addr 0x0xfffff800364d1c00
Mar 12 13:06:37 nexus kernel: drmn0: fence driver on ring 3 use gpu addr 0x0000000010000c0c and cpu addr 0x0xfffff800364d1c0c
Mar 12 13:06:37 nexus kernel: drmn0: fence driver on ring 5 use gpu addr 0x0000000000072118 and cpu addr 0x0xfffff800c0072118
Mar 12 13:06:37 nexus kernel: [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
Mar 12 13:06:37 nexus kernel: [drm] Driver supports precise vblank timestamp query.
Mar 12 13:06:37 nexus kernel: drmn0: radeon: MSI limited to 32-bit
Mar 12 13:06:37 nexus kernel: drmn0: radeon: using MSI.
Mar 12 13:06:37 nexus kernel: [drm] radeon: irq initialized.
Mar 12 13:06:37 nexus kernel: [drm] ring test on 0 succeeded in 2 usecs
Mar 12 13:06:37 nexus kernel: [drm] ring test on 3 succeeded in 3 usecs
Mar 12 13:06:37 nexus kernel: [drm] ring test on 5 succeeded in 1 usecs
Mar 12 13:06:37 nexus kernel: [drm] UVD initialized successfully.
Mar 12 13:06:37 nexus kernel: [drm] ib test on ring 0 succeeded in 0 usecs
Mar 12 13:06:37 nexus kernel: [drm] ib test on ring 3 succeeded in 0 usecs
Mar 12 13:06:37 nexus kernel: [drm] ib test on ring 5 succeeded
Mar 12 13:06:37 nexus kernel: [drm] Connector DVI-D-1: get mode from tunables:
Mar 12 13:06:37 nexus kernel: [drm]   - kern.vt.fb.modes.DVI-D-1
Mar 12 13:06:37 nexus kernel: [drm]   - kern.vt.fb.default_mode
Mar 12 13:06:37 nexus kernel: [drm] Connector DVI-D-2: get mode from tunables:
Mar 12 13:06:37 nexus kernel: [drm]   - kern.vt.fb.modes.DVI-D-2
Mar 12 13:06:37 nexus kernel: [drm]   - kern.vt.fb.default_mode
Mar 12 13:06:37 nexus kernel: [drm] Radeon Display Connectors
Mar 12 13:06:37 nexus kernel: [drm] Connector 0:
Mar 12 13:06:37 nexus kernel: [drm]   DVI-D-1
Mar 12 13:06:37 nexus kernel: [drm]   HPD2
Mar 12 13:06:37 nexus kernel: [drm]   DDC: 0x6440 0x6440 0x6444 0x6444 0x6448 0x6448 0x644c 0x644c
Mar 12 13:06:37 nexus kernel: [drm]   Encoders:
Mar 12 13:06:37 nexus kernel: [drm]     DFP2: INTERNAL_UNIPHY2
Mar 12 13:06:37 nexus kernel: [drm] Connector 1:
Mar 12 13:06:37 nexus kernel: [drm]   DVI-D-2
Mar 12 13:06:37 nexus kernel: [drm]   HPD1
Mar 12 13:06:37 nexus kernel: [drm]   DDC: 0x6430 0x6430 0x6434 0x6434 0x6438 0x6438 0x643c 0x643c
Mar 12 13:06:37 nexus kernel: [drm]   Encoders:
Mar 12 13:06:37 nexus kernel: [drm]     DFP1: INTERNAL_UNIPHY2
Mar 12 13:06:37 nexus kernel: [drm] Cannot find any crtc or sizes
Mar 12 13:06:37 nexus kernel: [drm] Initialized radeon 2.50.0 20080528 for drmn0 on minor 0
Mar 12 13:06:39 nexus kernel: [drm] Cannot find any crtc or sizes

For comparison, here's the log when loading radeonkms.ko from drm-fbsd11.2-kmod on FreeBSD 12.2-RELEASE-p3:

Mar 12 14:13:32 nexus kernel: [drm] radeon kernel modesetting enabled.
Mar 12 14:13:32 nexus kernel: drmn0: <drmn> on vgapci0
Mar 12 14:13:32 nexus kernel: vgapci0: child drmn0 requested pci_enable_io
Mar 12 14:13:32 nexus syslogd: last message repeated 1 times
Mar 12 14:13:32 nexus kernel: [drm] initializing kernel modesetting (SUMO 0x1002:0x964A 0x1849:0x9640 0x00).
Mar 12 14:13:32 nexus kernel: [drm] register mmio base: 0xFEB00000
Mar 12 14:13:32 nexus kernel: [drm] register mmio size: 262144
Mar 12 14:13:32 nexus kernel: [drm:radeon_device_init] Unable to find PCI I/O BAR
Mar 12 14:13:32 nexus kernel: [drm:radeon_atombios_init] Unable to find PCI I/O BAR; using MMIO for ATOM IIO
Mar 12 14:13:32 nexus kernel: ATOM BIOS: General
Mar 12 14:13:32 nexus kernel: drmn0: VRAM: 256M 0x0000000000000000 - 0x000000000FFFFFFF (256M used)
Mar 12 14:13:32 nexus kernel: drmn0: GTT: 1024M 0x0000000010000000 - 0x000000004FFFFFFF
Mar 12 14:13:32 nexus kernel: Failed to add WC MTRR for [0xc0000000-0xcfffffff]: -22; performance may suffer
Mar 12 14:13:32 nexus kernel: [drm] Detected VRAM RAM=256M, BAR=256M
Mar 12 14:13:32 nexus kernel: [drm] RAM width 32bits DDR
Mar 12 14:13:32 nexus kernel: [TTM] Zone  kernel: Available graphics memory: 4030824 kiB
Mar 12 14:13:32 nexus kernel: [TTM] Zone   dma32: Available graphics memory: 2097152 kiB
Mar 12 14:13:32 nexus kernel: [TTM] Initializing pool allocator
Mar 12 14:13:32 nexus kernel: [drm] radeon: 256M of VRAM memory ready
Mar 12 14:13:32 nexus kernel: [drm] radeon: 1024M of GTT memory ready.
Mar 12 14:13:32 nexus kernel: [drm] Loading SUMO Microcode
Mar 12 14:13:32 nexus kernel: radeon/SUMO_pfp.bin: could not load firmware image, error 2
Mar 12 14:13:32 nexus syslogd: last message repeated 2 times
Mar 12 14:13:32 nexus kernel: radeon/SUMO_me.bin: could not load firmware image, error 2
Mar 12 14:13:32 nexus syslogd: last message repeated 2 times
Mar 12 14:13:32 nexus kernel: radeon/SUMO_rlc.bin: could not load firmware image, error 2
Mar 12 14:13:32 nexus syslogd: last message repeated 2 times
Mar 12 14:13:32 nexus kernel: [drm] Internal thermal controller without fan control
Mar 12 14:13:32 nexus kernel: [drm] Found smc ucode version: 0x00011200
Mar 12 14:13:32 nexus kernel: [drm] radeon: dpm initialized
Mar 12 14:13:32 nexus kernel: radeon/SUMO_uvd.bin: could not load firmware image, error 2
Mar 12 14:13:32 nexus syslogd: last message repeated 2 times
Mar 12 14:13:32 nexus kernel: [drm] GART: num cpu pages 262144, num gpu pages 262144
Mar 12 14:13:32 nexus kernel: [drm] PCIE GART of 1024M enabled (table at 0x0000000000162000).
Mar 12 14:13:32 nexus kernel: drmn0: WB enabled
Mar 12 14:13:32 nexus kernel: drmn0: fence driver on ring 0 use gpu addr 0x0000000010000c00 and cpu addr 0x0xfffff800152e1c00
Mar 12 14:13:32 nexus kernel: drmn0: fence driver on ring 3 use gpu addr 0x0000000010000c0c and cpu addr 0x0xfffff800152e1c0c
Mar 12 14:13:32 nexus kernel: drmn0: fence driver on ring 5 use gpu addr 0x0000000000072118 and cpu addr 0x0xfffff800c0072118
Mar 12 14:13:32 nexus kernel: [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
Mar 12 14:13:32 nexus kernel: [drm] Driver supports precise vblank timestamp query.
Mar 12 14:13:32 nexus kernel: drmn0: radeon: MSI limited to 32-bit
Mar 12 14:13:32 nexus kernel: [drm] radeon: irq initialized.
Mar 12 14:13:32 nexus kernel: [drm] ring test on 0 succeeded in 1 usecs
Mar 12 14:13:32 nexus kernel: [drm] ring test on 3 succeeded in 3 usecs
Mar 12 14:13:32 nexus kernel: [drm] ring test on 5 succeeded in 1 usecs
Mar 12 14:13:32 nexus kernel: [drm] UVD initialized successfully.
Mar 12 14:13:32 nexus kernel: [drm] ib test on ring 0 succeeded in 0 usecs
Mar 12 14:13:32 nexus kernel: [drm] ib test on ring 3 succeeded in 0 usecs
Mar 12 14:13:32 nexus kernel: [drm] ib test on ring 5 succeeded
Mar 12 14:13:32 nexus kernel: [drm] hw_i2c forced on, you may experience display detection problems!
Mar 12 14:13:32 nexus kernel: [drm] Connector DVI-D-1: get mode from tunables:
Mar 12 14:13:32 nexus kernel: [drm]   - kern.vt.fb.modes.DVI-D-1
Mar 12 14:13:32 nexus kernel: [drm]   - kern.vt.fb.default_mode
Mar 12 14:13:32 nexus kernel: [drm] Connector DVI-D-2: get mode from tunables:
Mar 12 14:13:32 nexus kernel: [drm]   - kern.vt.fb.modes.DVI-D-2
Mar 12 14:13:32 nexus kernel: [drm]   - kern.vt.fb.default_mode
Mar 12 14:13:32 nexus kernel: [drm] Radeon Display Connectors
Mar 12 14:13:32 nexus kernel: [drm] Connector 0:
Mar 12 14:13:32 nexus kernel: [drm]   DVI-D-1
Mar 12 14:13:32 nexus kernel: [drm]   HPD2
Mar 12 14:13:32 nexus kernel: [drm]   DDC: 0x6440 0x6440 0x6444 0x6444 0x6448 0x6448 0x644c 0x644c
Mar 12 14:13:32 nexus kernel: [drm]   Encoders:
Mar 12 14:13:32 nexus kernel: [drm]     DFP2: INTERNAL_UNIPHY2
Mar 12 14:13:32 nexus kernel: [drm] Connector 1:
Mar 12 14:13:32 nexus kernel: [drm]   DVI-D-2
Mar 12 14:13:32 nexus kernel: [drm]   HPD1
Mar 12 14:13:32 nexus kernel: [drm]   DDC: 0x6430 0x6430 0x6434 0x6434 0x6438 0x6438 0x643c 0x643c
Mar 12 14:13:32 nexus kernel: [drm]   Encoders:
Mar 12 14:13:32 nexus kernel: [drm]     DFP1: INTERNAL_UNIPHY2
Mar 12 14:13:32 nexus kernel: [drm] fb mappable at 0xC0366000
Mar 12 14:13:32 nexus kernel: [drm] vram apper at 0xC0000000
Mar 12 14:13:32 nexus kernel: [drm] size 7299072
Mar 12 14:13:32 nexus kernel: [drm] fb depth is 24
Mar 12 14:13:32 nexus kernel: [drm]    pitch is 6912
Mar 12 14:13:32 nexus kernel: VT: Replacing driver "vga" with new "fb".

It's interesting that it always complains about not being able to load firmwareโ€ฆ

Console not refreshing

This happens on some i915 hardware and vboxvideo.
i915 can be "fixed" by setting hw.i915kms.enable_psr=0

GPU hang w. UHD620 on a 3rd gen Thinkpad X1 Yoga. Reset works on -CURRENT (didn't on -STABLE)

Hi all,

I got told in the forums to report GPU hangs here.

This was worse on -STABLE, the GPU reset wouldn't work and I had to reboot via ssh.

I switched to -CURRENT (jan4) and get the same hangs, but the reset works.

The X1 has the newest bios, I just updated it.

dmesg https://pastebin.com/RGA3VLiB
xorg.log https://pastebin.com/8C49UGKk
glxinfo https://pastebin.com/Qnw03VSc

This happens in blender, whille rotating the default cube or with simple strokes of the Grease Pencil. It's rare enough after switching to -CURRENT that I can follow a Grease Pencil tutorial.

Possibly connected question: I asked in the forums and on freebsd-x11@ about the very laggy, stutterng behaviour with blender on this machine (compared to ubuntu on this machine, but also ubunto on a Surface Go (!!!)), but got no answer. Any idea where I can find someone willing to look into this? Could there be a connection?

drm-devel-kmod 5.4.62.g20200905_1 fails on powerpc64

It fails at building amdgpu, which doesn't work on powerpc64 anyway, so you could actually only build radeonkms on powerpc64:

cc  -O2 -pipe -fno-strict-aliasing '-DKBUILD_MODNAME="amdgpu"' '-DLINUXKPI_PARAM_PREFIX=amdgpu_' -DDRM_SYSCTL_PARAM_PREFIX=_amdgpu -DLINUXKPI_VERSION=50000 -DCONFIG_DRM_AMDGPU_CIK -DCONFIG_DRM_AMDGPU_SI -DCONFIG_DRM_AMD_DC -DCONFIG_DRM_AMD_DC_FBC -DCONFIG_DRM_AMD_POWERPLAY -DCONFIG_DRM_I915_ALPHA_SUPPORT -DCONFIG_DRM_I915_FORCE_PROBE='"*"' -DCONFIG_DRM_I915_CAPTURE_ERROR -DCONFIG_DRM_I915_SPIN_REQUEST=5 -DCONFIG_DRM_I915_USERFAULT_AUTOSUSPEND=250 -DCONFIG_DRM_LOAD_EDID_FIRMWARE -DCONFIG_DRM_MIPI_DSI -DCONFIG_DRM_PANEL_ORIENTATION_QUIRKS -DCONFIG_DRM_VMWGFX_FBCON -DCONFIG_DRM_FBDEV_EMULATION -DCONFIG_DRM_FBDEV_OVERALLOC=100 -DCONFIG_DRM_LEGACY -DCONFIG_DRM_VM -DCONFIG_ARCH_HAVE_NMI_SAFE_CMPXCHG -DCONFIG_BACKLIGHT_CLASS_DEVICE -DCONFIG_DMI -DCONFIG_FB -DCONFIG_MTRR -DCONFIG_PCI -DCONFIG_PM -DCONFIG_SMP  -Werror -D_KERNEL -DKLD_MODULE -nostdinc  -I/tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.62/linuxkpi/gplv2/include -I/usr/src/sys/compat/linuxkpi/common/include -I/tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.62/linuxkpi/dummy/include -I/tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.62/include -I/tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.62/include/drm -I/tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.62/include/uapi -I/tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.62/drivers/gpu -I/tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.62/drivers/gpu/drm/amd -I/tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.62/drivers/gpu/drm/amd/acp/include -I/tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.62/drivers/gpu/drm/amd/amdgpu -I/tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.62/drivers/gpu/drm/amd/display -I/tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.62/drivers/gpu/drm/amd/display/amdgpu_dm -I/tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.62/drivers/gpu/drm/amd/display/dc -I/tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.62/drivers/gpu/drm/amd/display/dc/clk_mgr/ -I/tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.62/drivers/gpu/drm/amd/display/dc/inc -I/tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.62/drivers/gpu/drm/amd/display/dc/inc/hw -I/tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.62/drivers/gpu/drm/amd/display/include -I/tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.62/drivers/gpu/drm/amd/display/modules/inc -I/tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.62/drivers/gpu/drm/amd/include -I/tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.62/drivers/gpu/drm/amd/include/asic_reg -I/tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.62/drivers/gpu/drm/amd/powerplay/hwmgr -I/tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.62/drivers/gpu/drm/amd/powerplay/inc -I/tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.62/drivers/gpu/drm/amd/powerplay/smumgr -I/tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.62/drivers/gpu/drm/scheduler -include /tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.62/amd/amdgpu/opt_global.h -I. -I/usr/src/sys
-I/usr/src/sys/contrib/ck/include -fno-common  -fPIC -mlongcall -fno-omit-frame-pointer -fdebug-prefix-map=./machine=/usr/src/sys/powerpc/include     -MD  -MF.depend.amdgpu_dm_pp_smu.o -MTamdgpu_dm_pp_smu.o -mno-altivec -msoft-float -mabi=elfv2 -ffreestanding -fwrapv -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -Wno-error-shift-negative-value -Wno-address-of-packed-member -Wno-format-zero-length -Wno-pointer-arith -Wno-format -Wno-cast-qual -Wno-pointer-sign -Wno-missing-prototypes -Wno-enum-conversion -Wno-incompatible-pointer-types -Wno-missing-prototypes -Wno-enum-conversion -Wno-incompatible-pointer-types    -std=iso9899:1999 -c /tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.62/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c -o amdgpu_dm_pp_smu.o
/tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.62/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c:821:21: error: unknown type name 'BOOLEAN'
        struct pp_smu *pp, BOOLEAN pstate_handshake_supported)
                           ^
1 error generated.

drm-devel-kmod FREEBSD14-current NAVI RADEON 5700XT

So on FreeBSD 13-current drm-devel-kmod worked perfectly fine with my radeon 5700xt video cards i upgraded to 14-current and navi support wont work. i recompiled the most recent update of drm-devel-kmod on 14-current and still no dice i cant get navi support to work please help! the following is the dmesg of it being initialized:

AMD-Vi: IVRS Info VAsize = 64 PAsize = 48 GVAsize = 2 flags:0
driver bug: Unable to set devclass (class: ppc devname: (unknown))
ivhd0: <AMD-Vi/IOMMU ivhd with EFR> on acpi0
ivhd0: Flag:b0<IotlbSup,Coherent>
ivhd0: Features(type:0x11) MsiNumPPR = 0 PNBanks= 2 PNCounters= 0
ivhd0: Extended features[31:0]:22294ade<PPRSup,,NXSup,GTSup,IASup> HATS = 0x2 GATS = 0x0 GLXSup = 0x1 SmiFSup = 0x1 SmiFRC = 0x2 GAMSup = 0x1 DualPortLogSup = 0x2 DualEventLogSup = 0x2
ivhd0: Extended features[62:32]:58f77ef Max PASID: 0x2f DevTblSegSup = 0x3 MarcSup = 0x1
ivhd0: supported paging level:7, will use only: 4
ivhd0: device range: 0x0 - 0xfffe
ivhd0: PCI cap 0x190b640f@0x40 feature:19<IOTLB,EFR,CapExt>
ivhd1: <AMD-Vi/IOMMU ivhd with EFR> on acpi0
ivhd1: Flag:b0<IotlbSup,Coherent>
ivhd1: Features(type:0x11) MsiNumPPR = 0 PNBanks= 2 PNCounters= 0
ivhd1: Extended features[31:0]:22294ade<PPRSup,,NXSup,GTSup,IASup> HATS = 0x2 GATS = 0x0 GLXSup = 0x1 SmiFSup = 0x1 SmiFRC = 0x2 GAMSup = 0x1 DualPortLogSup = 0x2 DualEventLogSup = 0x2
ivhd1: Extended features[62:32]:58f77ef Max PASID: 0x2f DevTblSegSup = 0x3 MarcSup = 0x1
ivhd1: supported paging level:7, will use only: 4
ivhd1: device range: 0x0 - 0xfffe
ivhd1: PCI cap 0x190b640f@0x40 feature:19<IOTLB,EFR,CapExt>
ivhd2: <AMD-Vi/IOMMU ivhd with EFR> on acpi0
ivhd2: Flag:b0<IotlbSup,Coherent>
ivhd2: Features(type:0x11) MsiNumPPR = 0 PNBanks= 2 PNCounters= 0
ivhd2: Extended features[31:0]:22294ade<PPRSup,,NXSup,GTSup,IASup> HATS = 0x2 GATS = 0x0 GLXSup = 0x1 SmiFSup = 0x1 SmiFRC = 0x2 GAMSup = 0x1 DualPortLogSup = 0x2 DualEventLogSup = 0x2
ivhd2: Extended features[62:32]:58f77ef Max PASID: 0x2f DevTblSegSup = 0x3 MarcSup = 0x1
ivhd2: supported paging level:7, will use only: 4
ivhd2: device range: 0x0 - 0x5ffe
ivhd2: PCI cap 0x190b640f@0x40 feature:19<IOTLB,EFR,CapExt>
ivhd3: <AMD-Vi/IOMMU ivhd with EFR> on acpi0
ivhd3: Flag:b0<IotlbSup,Coherent>
ivhd3: Features(type:0x11) MsiNumPPR = 0 PNBanks= 2 PNCounters= 0
ivhd3: Extended features[31:0]:22294ade<PPRSup,,NXSup,GTSup,IASup> HATS = 0x2 GATS = 0x0 GLXSup = 0x1 SmiFSup = 0x1 SmiFRC = 0x2 GAMSup = 0x1 DualPortLogSup = 0x2 DualEventLogSup = 0x2
ivhd3: Extended features[62:32]:58f77ef Max PASID: 0x2f DevTblSegSup = 0x3 MarcSup = 0x1
ivhd3: supported paging level:7, will use only: 4
ivhd3: device range: 0x0 - 0x5ffe
ivhd3: PCI cap 0x190b640f@0x40 feature:19<IOTLB,EFR,CapExt>
[drm] amdgpu kernel modesetting enabled.
drmn0: on vgapci0
vgapci0: child drmn0 requested pci_enable_io
vgapci0: child drmn0 requested pci_enable_io
sysctl_warn_reuse: can't re-use a leaf (hw.dri.debug)!
[drm] initializing kernel modesetting (NAVI10 0x1002:0x731F 0x148C:0x2400 0xC0).
[drm] register mmio base: 0xE1C00000
[drm] register mmio size: 524288
[drm] set register base offset for ATHUB
[drm] set register base offset for CLKA
[drm] set register base offset for CLKA
[drm] set register base offset for CLKA
[drm] set register base offset for CLKA
[drm] set register base offset for CLKA
[drm] set register base offset for DF
[drm] set register base offset for DMU
[drm] set register base offset for GC
[drm] set register base offset for HDP
[drm] set register base offset for MMHUB
[drm] set register base offset for MP0
[drm] set register base offset for MP1
[drm] set register base offset for NBIF
[drm] set register base offset for NBIF
[drm] set register base offset for OSSSYS
[drm] set register base offset for SDMA0
[drm] set register base offset for SDMA1
[drm] set register base offset for SMUIO
[drm] set register base offset for THM
[drm] set register base offset for UVD
[drm] add ip block number 0 <nv_common>
[drm] add ip block number 1 <gmc_v10_0>
[drm] add ip block number 2 <navi10_ih>
[drm] add ip block number 3
[drm] add ip block number 4
[drm] add ip block number 5
[drm] add ip block number 6 <gfx_v10_0>
[drm] add ip block number 7 <sdma_v5_0>
[drm] add ip block number 8 <vcn_v2_0>
KLD amdgpu_navi10_gpu_info_bin.ko: depends on kernel - not available or version mismatch
linker_load_file: /boot/modules/amdgpu_navi10_gpu_info_bin.ko - unsupported file type
drmn0: could not load firmware image 'amdgpu/navi10_gpu_info.bin'
drmn0: Failed to load gpu_info firmware "amdgpu/navi10_gpu_info.bin"
drmn0: Fatal error during GPU init
[drm] amdgpu: finishing device.
Warning: can't remove non-dynamic nodes (dri)!
device_attach: drmn0 attach returned 2

please help thank you

FreeBSD 13.0-ALPHA1 linker_load_file: /boot/modules/radeonkms.ko - unsupported file type

Description

After updating from FreeBSD-CURRENT main-c572-g82397d791:

  • radeonkms no longer loads.

PCI Info

From today's https://bsd-hardware.info/?probe=fcedf7a28d for non-bugged main-c572-g82397d791:

FreeBSD version

Output from uname -a for one of the bugged builds:

FreeBSD mowa219-gjp4-8570p 13.0-ALPHA1 FreeBSD 13.0-ALPHA1 #76 main-c1739-gc3e75b6c1a: Tue Jan 19 00:51:44 GMT 2021 root@mowa219-gjp4-8570p:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG amd64

To Reproduce

Update from main-c572-g82397d791 to main-c1739-gc3e75b6c1a.

Screenshots

None taken (no GUI).

Additional context

Towards bisection: at least one earlier ALPHA is similarly bugged but at the moment, I can't tell the build reference.

root@mowa219-gjp4-8570p:~ # grep -C 1 linker /var/log/messages
Jan 19 06:37:32 mowa219-gjp4-8570p kernel: link_elf_obj: symbol linux_pci_get_class undefined
Jan 19 06:37:32 mowa219-gjp4-8570p kernel: linker_load_file: /boot/modules/radeonkms.ko - unsupported file type
Jan 19 06:37:47 mowa219-gjp4-8570p login[2382]: ROOT LOGIN (root) ON ttyv1
--
Jan 19 06:53:52 mowa219-gjp4-8570p kernel: link_elf_obj: symbol linux_pci_get_class undefined
Jan 19 06:53:52 mowa219-gjp4-8570p kernel: linker_load_file: /boot/modules/radeonkms.ko - unsupported file type
Jan 19 06:54:08 mowa219-gjp4-8570p login[2300]: 2 LOGIN FAILURES ON ttyv1
--
Jan 19 06:57:38 mowa219-gjp4-8570p kernel: Warning: memory type linuxcurrent leaked memory on destroy (2 allocations, 320 bytes leaked).
Jan 19 06:57:38 mowa219-gjp4-8570p kernel: linker_load_file: /boot/modules/radeonkms.ko - unsupported file type
Jan 19 06:57:53 mowa219-gjp4-8570p devd[1637]: notify_clients: send() failed; dropping unresponsive client
root@mowa219-gjp4-8570p:~ # 
root@mowa219-gjp4-8570p:~ # grep -v \# /etc/make.conf
WITH_DEBUG_PORTS=webcamd

ICA_CERTS=QuoVadisRootCA2.crt

WITHOUT_LLVM_TARGET_ALL=
root@mowa219-gjp4-8570p:~ # grep -v \# /etc/src.conf
PORTS_MODULES= graphics/gpu-firmware-kmod graphics/drm-devel-kmod

BOOT_FRAMEBUFFER_MODE=yes
root@mowa219-gjp4-8570p:~ # 

โ€“ and if I recall correctly, with the earlier ALPHA, drm-current-kmod was similarly bugged.

panic on attach a NAVI10 card: Unregistered use of FPU in kernel

I spent some time trying to on the current master branch at commit efc692b with a Radeon 5700XT card (NAVI 10). The code needs an adjustment for the firmware to finish loading. That is, the PSP_SOS has mdelay of 20 in psp_v11_0.c:302 as it waits for something to "finish", but fails in FreeBSD (too quick?) I increased it to 200 and it worked.

Once that finishes, the kernel panics with an unregistered use of the FPU in the kernel.

The backtrace is:

Unread portion of the kernel message buffer:
<6>[drm] reserve 0x900000 from 0x8002400000 for PSP TMR
<6>amdgpu: [powerplay] smu driver if version = 0x00000033, smu fw if version = 0x00000035, smu fw version = 0x002a3200 (42.50.0)
<4>amdgpu: [powerplay] SMU driver if version not matched
<6>amdgpu: [powerplay] SMU is initialized successfully!
panic: Unregistered use of FPU in kernel
cpuid = 9
time = 1592673856
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe00ea3b8bd0
vpanic() at vpanic+0x182/frame 0xfffffe00ea3b8c20
panic() at panic+0x43/frame 0xfffffe00ea3b8c80
trap() at trap+0x828/frame 0xfffffe00ea3b8d90
calltrap() at calltrap+0x8/frame 0xfffffe00ea3b8d90
--- trap 0x16, rip = 0xffffffff8488afcb, rsp = 0xfffffe00ea3b8e60, rbp = 0xfffffe00ea3b91c0 ---
dcn20_create_resource_pool() at dcn20_create_resource_pool+0x13ab/frame 0xfffffe00ea3b91c0
dc_create_resource_pool() at dc_create_resource_pool+0xc0/frame 0xfffffe00ea3b9220
dc_create() at dc_create+0x2df/frame 0xfffffe00ea3b9280
dm_hw_init() at dm_hw_init+0x27a/frame 0xfffffe00ea3b93b0
amdgpu_device_init() at amdgpu_device_init+0x1d27/frame 0xfffffe00ea3b9480
amdgpu_driver_load_kms() at amdgpu_driver_load_kms+0xd0/frame 0xfffffe00ea3b94b0
drm_dev_register() at drm_dev_register+0xc6/frame 0xfffffe00ea3b94e0
amdgpu_pci_probe() at amdgpu_pci_probe+0x17d/frame 0xfffffe00ea3b9520
linux_pci_attach_device() at linux_pci_attach_device+0x569/frame 0xfffffe00ea3b9580
device_attach() at device_attach+0x3dd/frame 0xfffffe00ea3b95d0
bus_generic_driver_added() at bus_generic_driver_added+0xb6/frame 0xfffffe00ea3b9600
devclass_driver_added() at devclass_driver_added+0x39/frame 0xfffffe00ea3b9640
devclass_add_driver() at devclass_add_driver+0x13d/frame 0xfffffe00ea3b9680
_linux_pci_register_driver() at _linux_pci_register_driver+0xdf/frame 0xfffffe00ea3b96b0
amdgpu_evh() at amdgpu_evh+0x92/frame 0xfffffe00ea3b96c0
module_register_init() at module_register_init+0xa4/frame 0xfffffe00ea3b96f0
linker_load_module() at linker_load_module+0xba9/frame 0xfffffe00ea3b9a10
kern_kldload() at kern_kldload+0xb8/frame 0xfffffe00ea3b9a60
sys_kldload() at sys_kldload+0x5b/frame 0xfffffe00ea3b9a90
amd64_syscall() at amd64_syscall+0x119/frame 0xfffffe00ea3b9bb0
fast_syscall_common() at fast_syscall_common+0x101/frame 0xfffffe00ea3b9bb0
--- syscall (304, FreeBSD ELF64, sys_kldload), rip = 0x8002db06a, rsp = 0x7fffffffd538, rbp = 0x7fffffffdab0 ---
KDB: enter: panic

I looked at the dcn20_create_resource_pool() function and it seems to happen somewhere in the pool's construction. The file has a kernel_fpu_begin/end pair in one function, but perhaps FreeBSD is being more strict or something is touching the FPU along the way, or something else is wrong with the functions. There are some places where floating-point variables are being initialized but are not wrapped by these pairs.

I don't know enough about these FPU kernel semantics to fix this. I naively just tried to wrap the dcn20_create_resource_pool() with the kernel_fpu_begin/end, but that didn't solve the issue (and is likely not reenterant).

I can certainly try out things if there is a need.

Dmesg for the amdgpu load:

[drm] amdgpu kernel modesetting enabled.
drmn0: <drmn> on vgapci0
vgapci0: child drmn0 requested pci_enable_io
vgapci0: child drmn0 requested pci_enable_io
sysctl_warn_reuse: can't re-use a leaf (hw.dri.debug)!
[drm] initializing kernel modesetting (NAVI10 0x1002:0x731F 0x1DA2:0xE411 0xC1).
[drm] register mmio base: 0xFCB00000
[drm] register mmio size: 524288
[drm] set register base offset for ATHUB
[drm] set register base offset for CLKA
[drm] set register base offset for CLKA
[drm] set register base offset for CLKA
[drm] set register base offset for CLKA
[drm] set register base offset for CLKA
[drm] set register base offset for DF
[drm] set register base offset for DMU
[drm] set register base offset for GC
[drm] set register base offset for HDP
[drm] set register base offset for MMHUB
[drm] set register base offset for MP0
[drm] set register base offset for MP1
[drm] set register base offset for NBIF
[drm] set register base offset for NBIF
[drm] set register base offset for OSSSYS
[drm] set register base offset for SDMA0
[drm] set register base offset for SDMA1
[drm] set register base offset for SMUIO
[drm] set register base offset for THM
[drm] set register base offset for UVD
[drm] add ip block number 0 <nv_common>
[drm] add ip block number 1 <gmc_v10_0>
[drm] add ip block number 2 <navi10_ih>
[drm] add ip block number 3 <psp>
[drm] add ip block number 4 <smu>
[drm] add ip block number 5 <dm>
[drm] add ip block number 6 <gfx_v10_0>
[drm] add ip block number 7 <sdma_v5_0>
[drm] add ip block number 8 <vcn_v2_0>
drmn0: successfully loaded firmware image with name: amdgpu/navi10_gpu_info.bin
ATOM BIOS: 113-1E4112U-O45
[drm] VCN decode is enabled in VM mode
[drm] VCN encode is enabled in VM mode
[drm] VCN jpeg decode is enabled in VM mode
pci_is_thunderbolt_attached not implemented -- see your local kernel hacker
[drm] vm size is 262144 GB, 4 levels, block size is 9-bit, fragment size is 9-bit
drmn0: VRAM: 8176M 0x0000008000000000 - 0x00000081FEFFFFFF (8176M used)
drmn0: GART: 512M 0x0000000000000000 - 0x000000001FFFFFFF
Successfully added WC MTRR for [0xe0000000-0xefffffff]: 0; 
[drm] Detected VRAM RAM=8176M, BAR=256M
[drm] RAM width 256bits GDDR6
[TTM] Zone  kernel: Available graphics memory: 16712344 KiB
[TTM] Zone   dma32: Available graphics memory: 2097152 KiB
[TTM] Initializing pool allocator
[drm] amdgpu: 8176M of VRAM memory ready
[drm] amdgpu: 8176M of GTT memory ready.
[drm] GART: num cpu pages 131072, num gpu pages 131072
[drm] PCIE GART of 512M enabled (table at 0x0000008001FA4000).
get_nr_swap_pages not implemented -- see your local kernel hacker
Jun 20 19:24:09 concordia kernel: pci_is_thunderbolt_attached not implemented -- see your local kernel hacker
Jun 20 19:24:09 concordia kernel: Successfully added WC MTRR for [0xe0000000-0xefffffff]: 0; 
Jun 20 19:24:09 concordia kernel: get_nr_swap_pages not implemented -- see your local kernel hacker
drmn0: successfully loaded firmware image with name: amdgpu/navi10_sos.bin
drmn0: successfully loaded firmware image with name: amdgpu/navi10_asd.bin
drmn0: successfully loaded firmware image with name: amdgpu/navi10_smc.bin
[drm] ppt_offset_bytes: 3
[drm] ppt_size_bytes: 262912
drmn0: successfully loaded firmware image with name: amdgpu/navi10_pfp.bin
drmn0: successfully loaded firmware image with name: amdgpu/navi10_me.bin
drmn0: successfully loaded firmware image with name: amdgpu/navi10_ce.bin
drmn0: successfully loaded firmware image with name: amdgpu/navi10_rlc.bin
drmn0: successfully loaded firmware image with name: amdgpu/navi10_mec.bin
drmn0: successfully loaded firmware image with name: amdgpu/navi10_mec2.bin
sched_setscheduler not implemented -- see your local kernel hacker
Jun 20 19:24:14 concordia kernel: sched_setscheduler not implemented -- see your local kernel hacker
drmn0: successfully loaded firmware image with name: amdgpu/navi10_sdma.bin
drmn0: successfully loaded firmware image with name: amdgpu/navi10_sdma1.bin
[drm] use_doorbell being set to: [true]
[drm] use_doorbell being set to: [true]
drmn0: successfully loaded firmware image with name: amdgpu/navi10_vcn.bin
[drm] Found VCN firmware Version ENC: 1.7 DEC: 4 VEP: 0 Revision: 17
[drm] PSP loading VCN firmware
[drm] reserve 0x900000 from 0x8002400000 for PSP TMR
amdgpu: [powerplay] smu driver if version = 0x00000033, smu fw if version = 0x00000035, smu fw version = 0x002a3200 (42.50.0)
amdgpu: [powerplay] SMU driver if version not matched
amdgpu: [powerplay] SMU is initialized successfully!
panic: Unregistered use of FPU in kernel
cpuid = 9
time = 1592673856
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe00ea3b8bd0
vpanic() at vpanic+0x182/frame 0xfffffe00ea3b8c20
panic() at panic+0x43/frame 0xfffffe00ea3b8c80
trap() at trap+0x828/frame 0xfffffe00ea3b8d90
calltrap() at calltrap+0x8/frame 0xfffffe00ea3b8d90
--- trap 0x16, rip = 0xffffffff8488afcb, rsp = 0xfffffe00ea3b8e60, rbp = 0xfffffe00ea3b91c0 ---
dcn20_create_resource_pool() at dcn20_create_resource_pool+0x13ab/frame 0xfffffe00ea3b91c0
dc_create_resource_pool() at dc_create_resource_pool+0xc0/frame 0xfffffe00ea3b9220
dc_create() at dc_create+0x2df/frame 0xfffffe00ea3b9280
dm_hw_init() at dm_hw_init+0x27a/frame 0xfffffe00ea3b93b0
amdgpu_device_init() at amdgpu_device_init+0x1d27/frame 0xfffffe00ea3b9480
amdgpu_driver_load_kms() at amdgpu_driver_load_kms+0xd0/frame 0xfffffe00ea3b94b0
drm_dev_register() at drm_dev_register+0xc6/frame 0xfffffe00ea3b94e0
amdgpu_pci_probe() at amdgpu_pci_probe+0x17d/frame 0xfffffe00ea3b9520
linux_pci_attach_device() at linux_pci_attach_device+0x569/frame 0xfffffe00ea3b9580
device_attach() at device_attach+0x3dd/frame 0xfffffe00ea3b95d0
bus_generic_driver_added() at bus_generic_driver_added+0xb6/frame 0xfffffe00ea3b9600
devclass_driver_added() at devclass_driver_added+0x39/frame 0xfffffe00ea3b9640
devclass_add_driver() at devclass_add_driver+0x13d/frame 0xfffffe00ea3b9680
_linux_pci_register_driver() at _linux_pci_register_driver+0xdf/frame 0xfffffe00ea3b96b0
amdgpu_evh() at amdgpu_evh+0x92/frame 0xfffffe00ea3b96c0
module_register_init() at module_register_init+0xa4/frame 0xfffffe00ea3b96f0
linker_load_module() at linker_load_module+0xba9/frame 0xfffffe00ea3b9a10
kern_kldload() at kern_kldload+0xb8/frame 0xfffffe00ea3b9a60
sys_kldload() at sys_kldload+0x5b/frame 0xfffffe00ea3b9a90
amd64_syscall() at amd64_syscall+0x119/frame 0xfffffe00ea3b9bb0
fast_syscall_common() at fast_syscall_common+0x101/frame 0xfffffe00ea3b9bb0
--- syscall (304, FreeBSD ELF64, sys_kldload), rip = 0x8002db06a, rsp = 0x7fffffffd538, rbp = 0x7fffffffdab0 ---
KDB: enter: panic

No console when external HDMI monitor connected

I'm not sure if this is due to the system or drm-kmod, but now after I kldload i915kms.ko in console, the main monitor on my laptop hangs if there is an external HDMI monitor connected, all the following updates only display on the external monitor. If I disconnect the external monitor, the main monitor on the laptop will catch up all the updates. Under X, both monitors work fine.

Is this an intentional behavior? This is different than before and is a bit inconvenient if you want to do presentation.

System information:
FreeBSD x1c.lwhsu.org 13.0-CURRENT FreeBSD 13.0-CURRENT #19 r363121M: Mon Jul 13 18:41:40 CST 2020 [email protected]:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG amd64

I've tested this with 5.3.g20200708 and 5.3.g20200710, both have this situation.

Wanted to revert to 5.3.g20200612 but it cannot compile on 13.0-CURRENT r363121 currently.

kernel panic from intel_frontbuffer_put() running OBS

Describe the bug
Running OBS built from git at obsproject/obs-studio@95c4db3 with a scene comprising a USB webcam, encountered the panic below. (Note was OCR'd from a photo so there are some errors)
This has been happening on occasion for a couple of months.

panic: general protection fault 
cpuid = 0 
time = 1610898758 
KDB: stack backtrace: 
db_trace_self_wrapper() at db_trace self wrapper+8x2b/frame 8xfffffe011567c5a0 
vpanic() at vpanic+em181/frame exffiffelli1567c5f8 
panic() at panic+48x43/frame Oxfffffe811567c658 
trap_fatal() at trap_fatal+8x367/frame 8xfffffe011567c6b8 
trap() at trap+Oxallframe 8xfffffe811567c7c8 
calltrap() at calltrap+Ox8/frame 8xfffffe011567c7c8 
--- trap 0x9. rip = 8xffffffff831698dd, rsp = 8xfffffe811567c898, rbp = 8xfffffe011567c8a0 --
intel_frontbuffer_put() at intel_frontbuffer_put+Oxd/frame Oxfffffe811567c8a8 
intel_user_framebuffer_destroy() at intel_user_framebuffer destrovexla/frame Oxfffffe811567(
_drm atomic_helper_plane_destroy_state() at __drm_atomic_helper_plane destroy_state+Ox1b/fri
drm_atomic_helper_plane_destroy_state() at drm_atomic helper_plane desirog_state+8x11/frame I
drm_atomic_state_default_clear() at drm_atomic state_aefault_clear;Oxldciframe Oxfffffe81156.
intel_atomic_state_clear() at intel_atomic_staie clear+Oxe/frame Oxfffffe011567c96B
__drm_atomic_state_free() at drm_atomic_state_iree+8x28/frame 8xfffffe811567c988intel_atomic_cleanup_work() at into l atomic_cleanup_work+8x43/frame exfffffe011567c9b0
linux_work_fn() at linux work_fn+Oxeilframe Oxfffffe011567ca88 
taskqueue_run locked() at taskqueue_run_locked+ftaa/frame Oxfffffe811567ca88 
taskqueue_thrad_loop() at taskqueue thread_loop+Ox94/frame 8xfffffe011567cab0
fork_exit() at fork exit+8x88/frame ixfffffe011567caf8 
fork trampoline() at fork_trampoline+Oxe/frame 8xfffffe811567caf8 
--- trap 0, rip = 0, rsp = 0, rbp = 0 ---
KDB: enter: panic 
[ thread pid 0 tid 188598 ]
Stopped at kdb_enter+8x37: mow, $8,8x18cf1be(rip)
db> 

FreeBSD version
FreeBSD nazar 13.0-CURRENT FreeBSD 13.0-CURRENT #25 laptop-c255860-gc529d54f882e: Sat Jan 16 20:58:04 EST 2021 emaste@nazar:/usr/obj/usr/home/emaste/src/freebsd-git/head/amd64.amd64/sys/GENERIC amd64

This is upstream rev 685de460bc91737331eaf475b0f517517b2ddbd0 with some unrelated userland WIP.

PCI Info

vgapci0@pci0:0:2:0:     class=0x030000 rev=0x02 hdr=0x00 vendor=0x8086 device=0x3ea0 subvendor=0x17aa subdevice=0x2292
    vendor     = 'Intel Corporation'
    device     = 'UHD Graphics 620 (Whiskey Lake)'
    class      = display
    subclass   = VGA

To Reproduce
I am unsure of the specific trigger; it occurs at a seemingly random time while OBS is running (not in relation to some event such as scene switching, starting/stopping recording etc.)

"panic: <something>: called with spinlock or critical section held" on KabyLake

5.0+ drm-kmods including 5,2_10 often panics on KabyLake GPUs with following backtrace:

panic: free: called with spinlock or critical section held
cpuid = 6
time = 1591959282
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe006e974fc0
vpanic() at vpanic+0x182/frame 0xfffffe006e975010
panic() at panic+0x43/frame 0xfffffe006e975070
free() at free+0xe4/frame 0xfffffe006e9750a0
kfree() at kfree+0x1c/frame 0xfffffe006e9750c0
dma_i915_sw_fence_wake() at dma_i915_sw_fence_wake+0x47/frame 0xfffffe006e975100
dma_fence_signal() at dma_fence_signal+0x16b/frame 0xfffffe006e9751a0
dma_fence_is_signaled() at dma_fence_is_signaled+0x80/frame 0xfffffe006e9751e0
reservation_object_add_shared_inplace() at reservation_object_add_shared_inplace+0xe7/frame 0xfffffe006e975240
reservation_object_add_shared_fence() at reservation_object_add_shared_fence+0x51/frame 0xfffffe006e975270
export_fence() at export_fence+0x7c/frame 0xfffffe006e9752b0
i915_vma_move_to_active() at i915_vma_move_to_active+0x1cb/frame 0xfffffe006e9752f0
eb_move_to_gpu() at eb_move_to_gpu+0x21f/frame 0xfffffe006e975350
eb_submit() at eb_submit+0x15/frame 0xfffffe006e975380
i915_gem_do_execbuffer() at i915_gem_do_execbuffer+0x71f/frame 0xfffffe006e975590
i915_gem_execbuffer2_ioctl() at i915_gem_execbuffer2_ioctl+0x1c1/frame 0xfffffe006e975620
drm_ioctl_kernel() at drm_ioctl_kernel+0xce/frame 0xfffffe006e975690
drm_ioctl() at drm_ioctl+0x5ba/frame 0xfffffe006e975840
linux_file_ioctl() at linux_file_ioctl+0x326/frame 0xfffffe006e9758a0
kern_ioctl() at kern_ioctl+0x1e5/frame 0xfffffe006e975900
sys_ioctl() at sys_ioctl+0x127/frame 0xfffffe006e9759d0
amd64_syscall() at amd64_syscall+0x133/frame 0xfffffe006e975af0
fast_syscall_common() at fast_syscall_common+0x101/frame 0xfffffe006e975af0
--- syscall (54, FreeBSD ELF64, sys_ioctl), rip = 0x8005c669a, rsp = 0x7fffffffcbc8, rbp = 0x7fffffffcbf0 ---
KDB: enter: panic

Easy way to trigger the panic is to run Xorg with GUC firmware or run vp8enc from multimedia/libva-utils port. Sometimes it happens while running Xorg with standard firmware. See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=247166 for example.

Exact command asserting the panics changes from time to time. Most often it is locking of sleep-able or nonsleep-able mutex or free(). That command is called through use of dma_fence_is_signaled() routine surrounded by critical section in reservation_object_add_shared_fence() in linuxkpi/gplv2/src/linux_reservation.c

Error building drm-current-kmod-5.4.62.g20210113 on recent CURRENT

This happens on powerpc64le, but it doesn't seem to be architecture-dependent (although I can't test on other architectures, my amd64 box is currently on 12.2-RELEASE).

cc  -O2 -pipe -fno-strict-aliasing '-DKBUILD_MODNAME="linuxkpi_gplv2"' -DLINUXKPI_VERSION=50000 -DCONFIG_DRM_AMDGPU_CIK -DCONFIG_DRM_AMDGPU_SI -DCONFIG_DRM_AMD_DC -DCONFIG_DRM_AMD_DC_FBC -DCONFIG_DRM_AMD_POWERPLAY -DCONFIG_DRM_I915_ALPHA_SUPPORT -DCONFIG_DRM_I915_FORCE_PROBE='"*"' -DCONFIG_DRM_I915_CAPTURE_ERROR -DCONFIG_DRM_I915_SPIN_REQUEST=5 -DCONFIG_DRM_I915_USERFAULT_AUTOSUSPEND=250 -DCONFIG_DRM_LOAD_EDID_FIRMWARE -DCONFIG_DRM_MIPI_DSI -DCONFIG_DRM_PANEL_ORIENTATION_QUIRKS -DCONFIG_DRM_VMWGFX_FBCON -DCONFIG_DRM_FBDEV_EMULATION -DCONFIG_DRM_FBDEV_OVERALLOC=100 -DCONFIG_DRM_LEGACY -DCONFIG_DRM_VM -DCONFIG_ARCH_HAVE_NMI_SAFE_CMPXCHG -DCONFIG_BACKLIGHT_CLASS_DEVICE -DCONFIG_DMI -DCONFIG_FB -DCONFIG_MTRR -DCONFIG_PCI -DCONFIG_PM -DCONFIG_SMP  -Werror -D_KERNEL -DKLD_MODULE -nostdinc  -I/tmp/usr/ports/graphics/drm-current-kmod/work/drm-kmod-drm_v5.4.62_7/include -I/tmp/usr/ports/graphics/drm-current-kmod/work/drm-kmod-drm_v5.4.62_7/linuxkpi/dummy/include -I/tmp/usr/ports/graphics/drm-current-kmod/work/drm-kmod-drm_v5.4.62_7/linuxkpi/gplv2/include -I/usr/src/sys/compat/linuxkpi/common/include -include /tmp/usr/ports/graphics/drm-current-kmod/work/drm-kmod-drm_v5.4.62_7/obj/tmp/usr/ports/graphics/drm-current-kmod/work/drm-kmod-drm_v5.4.62_7/linuxkpi/opt_global.h -I. -I/usr/src/sys -I/usr/src/sys/contrib/ck/include -fno-common  -fPIC -mlongcall -fno-omit-frame-pointer -fdebug-prefix-map=./machine=/usr/src/sys/powerpc/include     -MD  -MF.depend.linux_notifier.o -MTlinux_notifier.o -mno-altivec -msoft-float -mabi=elfv2 -ffreestanding -fwrapv -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -Wno-error-shift-negative-value -Wno-address-of-packed-member -Wno-format-zero-length -Wno-pointer-arith     -std=iso9899:1999 -c /tmp/usr/ports/graphics/drm-current-kmod/work/drm-kmod-drm_v5.4.62_7/linuxkpi/gplv2/src/linux_notifier.c -o linux_notifier.o
/tmp/usr/ports/graphics/drm-current-kmod/work/drm-kmod-drm_v5.4.62_7/linuxkpi/gplv2/src/linux_notifier.c:28:31: error: too few arguments provided to function-like macro invocation
static LIST_HEAD(shrinker_list);
                              ^
/usr/src/sys/sys/queue.h:443:9: note: macro 'LIST_HEAD' defined here
#define LIST_HEAD(name, type)                                           \
        ^
/tmp/usr/ports/graphics/drm-current-kmod/work/drm-kmod-drm_v5.4.62_7/linuxkpi/gplv2/src/linux_notifier.c:28:8: error: type specifier missing, defaults to 'int' [-Werror,-Wimplicit-int]
static LIST_HEAD(shrinker_list);
~~~~~~ ^
2 errors generated.
*** Error code 1

Stop.

I'm currently on 79a5c790bdf08cb925693add4699f3e785c12bc6

drm-devel-kmod fails to build on powerpc64(le)

===> amd/amdgpu (all)
Warning: Object directory not changed from original /tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.62_4/amd/amdgpu
cc  -O2 -pipe -mcpu=power9 -fno-strict-aliasing '-DKBUILD_MODNAME="amdgpu"' '-DLINUXKPI_PARAM_PREFIX=amdgpu_' -DDRM_SYSCTL_PARAM_PREFIX=_amdgpu -DLINUXKPI_VERSION=50000 -DCONFIG_DRM_AMDGPU_CIK -DCONFIG_DRM_AMDGPU_SI -DCONFIG_DRM_AMD_DC -DCONFIG_DRM_AMD_DC_FBC -DCONFIG_DRM_AMD_POWERPLAY -DCONFIG_DRM_I915_ALPHA_SUPPORT -DCONFIG_DRM_I915_FORCE_PROBE='"*"' -DCONFIG_DRM_I915_CAPTURE_ERROR -DCONFIG_DRM_I915_SPIN_REQUEST=5 -DCONFIG_DRM_I915_USERFAULT_AUTOSUSPEND=250 -DCONFIG_DRM_LOAD_EDID_FIRMWARE -DCONFIG_DRM_MIPI_DSI -DCONFIG_DRM_PANEL_ORIENTATION_QUIRKS -DCONFIG_DRM_VMWGFX_FBCON -DCONFIG_DRM_FBDEV_EMULATION -DCONFIG_DRM_FBDEV_OVERALLOC=100 -DCONFIG_DRM_LEGACY -DCONFIG_DRM_VM -DCONFIG_ARCH_HAVE_NMI_SAFE_CMPXCHG -DCONFIG_BACKLIGHT_CLASS_DEVICE -DCONFIG_DMI -DCONFIG_FB -DCONFIG_MTRR -DCONFIG_PCI -DCONFIG_PM -DCONFIG_SMP -mcpu=power9  -Werror -D_KERNEL -DKLD_MODULE -nostdinc  -I/tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.62_4/linuxkpi/gplv2/include -I/usr/src/sys/compat/linuxkpi/common/include -I/tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.62_4/linuxkpi/dummy/include -I/tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.62_4/include -I/tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.62_4/include/drm -I/tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.62_4/include/uapi -I/tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.62_4/drivers/gpu -I/tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.62_4/drivers/gpu/drm/amd -I/tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.62_4/drivers/gpu/drm/amd/acp/include -I/tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.62_4/drivers/gpu/drm/amd/amdgpu -I/tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.62_4/drivers/gpu/drm/amd/display -I/tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.62_4/drivers/gpu/drm/amd/display/amdgpu_dm -I/tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.62_4/drivers/gpu/drm/amd/display/dc -I/tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.62_4/drivers/gpu/drm/amd/display/dc/clk_mgr/ -I/tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.62_4/drivers/gpu/drm/amd/display/dc/inc -I/tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.62_4/drivers/gpu/drm/amd/display/dc/inc/hw -I/tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.62_4/drivers/gpu/drm/amd/display/include -I/tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.62_4/drivers/gpu/drm/amd/display/modules/inc -I/tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.62_4/drivers/gpu/drm/amd/include -I/tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.62_4/drivers/gpu/drm/amd/include/asic_reg -I/tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.62_4/drivers/gpu/drm/amd/powerplay/hwmgr -I/tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.62_4/drivers/gpu/drm/amd/powerplay/inc -I/tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.62_4/drivers/gpu/drm/amd/powerplay/smumgr -I/tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.62_4/drivers/gpu/drm/scheduler -include /tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.62_4/amd/amdgpu/opt_global.h -I. -I/usr/src/sys -I/usr/src/sys/contrib/ck/include -fno-common  -fPIC -mlongcall -fno-omit-frame-pointer -fdebug-prefix-map=./machine=/usr/src/sys/powerpc/include     -MD  -MF.depend.amdgpu_bios.o -MTamdgpu_bios.o -mno-altivec -msoft-float -mabi=elfv2 -ffreestanding -fwrapv -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -Wno-error-shift-negative-value -Wno-address-of-packed-member -Wno-format-zero-length -Wno-pointer-arith -Wno-format -Wno-cast-qual -Wno-pointer-sign     -std=iso9899:1999 -c /tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.62_4/drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c -o amdgpu_bios.o
In file included from /tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.62_4/drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c:34:
In file included from /tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.62_4/linuxkpi/gplv2/include/linux/acpi.h:56:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/acpi.h:36:
In file included from /tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.62_4/linuxkpi/gplv2/include/acpi/acpi.h:24:
In file included from /usr/src/sys/compat/linuxkpi/common/include/acpi/acpi.h:48:
In file included from /usr/src/sys/contrib/dev/acpica/include/acpi.h:164:
In file included from /usr/src/sys/contrib/dev/acpica/include/platform/acenv.h:318:
/usr/src/sys/contrib/dev/acpica/include/platform/acfreebsd.h:181:10: fatal error: 'machine/acpica_machdep.h' file not found
#include <machine/acpica_machdep.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

The reason is that acpica_machdep.h is only for aarch64, amd64 and i386:

pkubaj@talos:$/usr/ports/graphics/drm-devel-kmod$ find /usr/src/ -name acpica_machdep.h
/usr/src/sys/arm64/include/acpica_machdep.h
/usr/src/sys/x86/include/acpica_machdep.h
/usr/src/sys/i386/include/acpica_machdep.h
/usr/src/sys/amd64/include/acpica_machdep.h

drm ERROR :amdgpu_job_timedout] ring gfx timeout, but soft recovered

Describe the bug
Some times I get:
notebook

drmn0: [gfxhub0] retry page fault (src_id:0 ring:0 vmid:5 pasid:32772, for process  pid 101038 thread  pid 101038)
drmn0:   in page starting at address 0x0000800104e00000 from client 27
drmn0: VM_L2_PROTECTION_FAULT_STATUS:0x00541051
drmn0: 	 MORE_FAULTS: 0x1
drmn0: 	 WALKER_ERROR: 0x0
drmn0: 	 PERMISSION_FAULTS: 0x5
drmn0: 	 MAPPING_ERROR: 0x0
drmn0: 	 RW: 0x1
drmn0: [gfxhub0] retry page fault (src_id:0 ring:0 vmid:5 pasid:32772, for process  pid 101038 thread  pid 101038)
drmn0:   in page starting at address 0x0000800104e04000 from client 27
drmn0: VM_L2_PROTECTION_FAULT_STATUS:0x00541051
drmn0: 	 MORE_FAULTS: 0x1
drmn0: 	 WALKER_ERROR: 0x0
drmn0: 	 PERMISSION_FAULTS: 0x5
drmn0: 	 MAPPING_ERROR: 0x0
drmn0: 	 RW: 0x1
Limiting closed port RST response from 309 to 100 packets/sec
drmn0: [gfxhub0] retry page fault (src_id:0 ring:0 vmid:5 pasid:32772, for process  pid 101038 thread  pid 101038)
drmn0:   in page starting at address 0x0000800104e02000 from client 27
drmn0: VM_L2_PROTECTION_FAULT_STATUS:0x00541051
drmn0: 	 MORE_FAULTS: 0x1
drmn0: 	 WALKER_ERROR: 0x0
drmn0: 	 PERMISSION_FAULTS: 0x5
drmn0: 	 MAPPING_ERROR: 0x0
drmn0: 	 RW: 0x1
drmn0: [gfxhub0] retry page fault (src_id:0 ring:0 vmid:5 pasid:32772, for process  pid 101038 thread  pid 101038)
drmn0:   in page starting at address 0x0000800104e02000 from client 27
drmn0: VM_L2_PROTECTION_FAULT_STATUS:0x00541051
drmn0: 	 MORE_FAULTS: 0x1
drmn0: 	 WALKER_ERROR: 0x0
drmn0: 	 PERMISSION_FAULTS: 0x5
drmn0: 	 MAPPING_ERROR: 0x0
drmn0: 	 RW: 0x1
drmn0: [gfxhub0] retry page fault (src_id:0 ring:0 vmid:5 pasid:32772, for process  pid 101038 thread  pid 101038)
drmn0:   in page starting at address 0x0000800104e03000 from client 27
drmn0: VM_L2_PROTECTION_FAULT_STATUS:0x00541051
drmn0: 	 MORE_FAULTS: 0x1
drmn0: 	 WALKER_ERROR: 0x0
drmn0: 	 PERMISSION_FAULTS: 0x5
drmn0: 	 MAPPING_ERROR: 0x0
drmn0: 	 RW: 0x1
drmn0: [gfxhub0] retry page fault (src_id:0 ring:0 vmid:5 pasid:32772, for process  pid 101038 thread  pid 101038)
drmn0:   in page starting at address 0x0000800104e04000 from client 27
drmn0: VM_L2_PROTECTION_FAULT_STATUS:0x00541051
drmn0: 	 MORE_FAULTS: 0x1
drmn0: 	 WALKER_ERROR: 0x0
drmn0: 	 PERMISSION_FAULTS: 0x5
drmn0: 	 MAPPING_ERROR: 0x0
drmn0: 	 RW: 0x1
[drm ERROR :amdgpu_dm_commit_planes] Waiting for fences timed out!drmn0: [gfxhub0] retry page fault (src_id:0 ring:0 vmid:5 pasid:32772, for process  pid 101038 thread  pid 101038)
drmn0:   in page starting at address 0x0000800104e04000 from client 27
drmn0: VM_L2_PROTECTION_FAULT_STATUS:0x00541051
drmn0: 	 MORE_FAULTS: 0x1
drmn0: 	 WALKER_ERROR: 0x0
drmn0: 	 PERMISSION_FAULTS: 0x5
drmn0: 	 MAPPING_ERROR: 0x0
drmn0: 	 RW: 0x1
drmn0: [gfxhub0] retry page fault (src_id:0 ring:0 vmid:5 pasid:32772, for process  pid 101038 thread  pid 101038)
drmn0:   in page starting at address 0x0000800104e02000 from client 27
drmn0: VM_L2_PROTECTION_FAULT_STATUS:0x00541051
drmn0: 	 MORE_FAULTS: 0x1
drmn0: 	 WALKER_ERROR: 0x0
drmn0: 	 PERMISSION_FAULTS: 0x5
drmn0: 	 MAPPING_ERROR: 0x0
drmn0: 	 RW: 0x1
drmn0: [gfxhub0] retry page fault (src_id:0 ring:0 vmid:5 pasid:32772, for process  pid 101038 thread  pid 101038)
drmn0:   in page starting at address 0x0000800104e04000 from client 27
drmn0: VM_L2_PROTECTION_FAULT_STATUS:0x00541051
drmn0: 	 MORE_FAULTS: 0x1
drmn0: 	 WALKER_ERROR: 0x0
drmn0: 	 PERMISSION_FAULTS: 0x5
drmn0: 	 MAPPING_ERROR: 0x0
drmn0: 	 RW: 0x1
drmn0: [gfxhub0] retry page fault (src_id:0 ring:0 vmid:5 pasid:32772, for process  pid 101038 thread  pid 101038)
drmn0:   in page starting at address 0x0000800104e04000 from client 27
drmn0: VM_L2_PROTECTION_FAULT_STATUS:0x00541051
drmn0: 	 MORE_FAULTS: 0x1
drmn0: 	 WALKER_ERROR: 0x0
drmn0: 	 PERMISSION_FAULTS: 0x5
drmn0: 	 MAPPING_ERROR: 0x0
drmn0: 	 RW: 0x1
drmn0: [gfxhub0] retry page fault (src_id:0 ring:0 vmid:5 pasid:32772, for process  pid 101038 thread  pid 101038)
drmn0:   in page starting at address 0x0000800104f19000 from client 27
drmn0: VM_L2_PROTECTION_FAULT_STATUS:0x00000000
drmn0: 	 MORE_FAULTS: 0x0
drmn0: 	 WALKER_ERROR: 0x0
drmn0: 	 PERMISSION_FAULTS: 0x0
drmn0: 	 MAPPING_ERROR: 0x0
drmn0: 	 RW: 0x0
[drm ERROR :amdgpu_job_timedout] ring gfx timeout, but soft recovered

desktop:

May 19 21:02:55 rimwks kernel: [drm ERROR :amdgpu_dm_commit_planes] Waiting for fences timed out!
May 19 21:03:00 rimwks kernel: [drm ERROR :amdgpu_job_timedout] ring gfx_0.0.0 timeout, signaled seq=44912544, emitted seq=44912546
May 19 21:03:00 rimwks kernel: [drm ERROR :amdgpu_job_timedout] Process information: process  pid 615483 thread  pid 615483
May 19 21:03:00 rimwks kernel: [drm] GPU recovery disabled.
May 19 21:03:00 rimwks kernel: [drm ERROR :amdgpu_dm_commit_planes] Waiting for fences timed out!
May 19 21:03:00 rimwks kernel: May 19 21:03:00 rimwks kernel: [drm] GPU recovery disabled.

And gui stop work until reboot.

FreeBSD version
FreeBSD rimwks.local 13.0-STABLE FreeBSD 13.0-STABLE RIM_WKS amd64

PCI Info

pciconf -lv

hostb0@pci0:0:0:0: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1450 subvendor=0x1849 subdevice=0x1450
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 17h (Models 00h-0fh) Root Complex'
class = bridge
subclass = HOST-PCI
none0@pci0:0:0:2: class=0x080600 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1451 subvendor=0x1022 subdevice=0x1451
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 17h (Models 00h-0fh) I/O Memory Management Unit'
class = base peripheral
subclass = IOMMU
hostb1@pci0:0:1:0: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1452 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge'
class = bridge
subclass = HOST-PCI
pcib1@pci0:0:1:3: class=0x060400 rev=0x00 hdr=0x01 vendor=0x1022 device=0x1453 subvendor=0x1022 subdevice=0x1453
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 17h (Models 00h-0fh) PCIe GPP Bridge'
class = bridge
subclass = PCI-PCI
hostb2@pci0:0:2:0: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1452 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge'
class = bridge
subclass = HOST-PCI
hostb3@pci0:0:3:0: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1452 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge'
class = bridge
subclass = HOST-PCI
pcib12@pci0:0:3:1: class=0x060400 rev=0x00 hdr=0x01 vendor=0x1022 device=0x1453 subvendor=0x1022 subdevice=0x1453
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 17h (Models 00h-0fh) PCIe GPP Bridge'
class = bridge
subclass = PCI-PCI
hostb4@pci0:0:4:0: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1452 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge'
class = bridge
subclass = HOST-PCI
hostb5@pci0:0:7:0: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1452 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge'
class = bridge
subclass = HOST-PCI
pcib15@pci0:0:7:1: class=0x060400 rev=0x00 hdr=0x01 vendor=0x1022 device=0x1454 subvendor=0x1022 subdevice=0x1454
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 17h (Models 00h-0fh) Internal PCIe GPP Bridge 0 to Bus B'
class = bridge
subclass = PCI-PCI
hostb6@pci0:0:8:0: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1452 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge'
class = bridge
subclass = HOST-PCI
pcib16@pci0:0:8:1: class=0x060400 rev=0x00 hdr=0x01 vendor=0x1022 device=0x1454 subvendor=0x1022 subdevice=0x1454
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 17h (Models 00h-0fh) Internal PCIe GPP Bridge 0 to Bus B'
class = bridge
subclass = PCI-PCI
intsmb0@pci0:0:20:0: class=0x0c0500 rev=0x59 hdr=0x00 vendor=0x1022 device=0x790b subvendor=0x1849 subdevice=0x790b
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'FCH SMBus Controller'
class = serial bus
subclass = SMBus
isab0@pci0:0:20:3: class=0x060100 rev=0x51 hdr=0x00 vendor=0x1022 device=0x790e subvendor=0x1849 subdevice=0x790e
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'FCH LPC Bridge'
class = bridge
subclass = PCI-ISA
hostb7@pci0:0:24:0: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1460 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 0'
class = bridge
subclass = HOST-PCI
hostb8@pci0:0:24:1: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1461 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 1'
class = bridge
subclass = HOST-PCI
hostb9@pci0:0:24:2: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1462 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 2'
class = bridge
subclass = HOST-PCI
hostb10@pci0:0:24:3: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1463 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 3'
class = bridge
subclass = HOST-PCI
hostb11@pci0:0:24:4: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1464 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 4'
class = bridge
subclass = HOST-PCI
hostb12@pci0:0:24:5: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1465 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 5'
class = bridge
subclass = HOST-PCI
hostb13@pci0:0:24:6: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1466 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 6'
class = bridge
subclass = HOST-PCI
hostb14@pci0:0:24:7: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1467 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 7'
class = bridge
subclass = HOST-PCI
xhci0@pci0:1:0:0: class=0x0c0330 rev=0x02 hdr=0x00 vendor=0x1022 device=0x43b9 subvendor=0x1849 subdevice=0x43d0
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'X370 Series Chipset USB 3.1 xHCI Controller'
class = serial bus
subclass = USB
ahci0@pci0:1:0:1: class=0x010601 rev=0x02 hdr=0x00 vendor=0x1022 device=0x43b5 subvendor=0x1849 subdevice=0x43c8
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'X370 Series Chipset SATA Controller'
class = mass storage
subclass = SATA
pcib2@pci0:1:0:2: class=0x060400 rev=0x02 hdr=0x01 vendor=0x1022 device=0x43b0 subvendor=0x1849 subdevice=0x43c6
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'X370 Series Chipset PCIe Upstream Port'
class = bridge
subclass = PCI-PCI
pcib3@pci0:2:0:0: class=0x060400 rev=0x02 hdr=0x01 vendor=0x1022 device=0x43b4 subvendor=0x1849 subdevice=0x43c7
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = '300 Series Chipset PCIe Port'
class = bridge
subclass = PCI-PCI
pcib4@pci0:2:2:0: class=0x060400 rev=0x02 hdr=0x01 vendor=0x1022 device=0x43b4 subvendor=0x1849 subdevice=0x43c7
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = '300 Series Chipset PCIe Port'
class = bridge
subclass = PCI-PCI
pcib5@pci0:2:3:0: class=0x060400 rev=0x02 hdr=0x01 vendor=0x1022 device=0x43b4 subvendor=0x1849 subdevice=0x43c7
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = '300 Series Chipset PCIe Port'
class = bridge
subclass = PCI-PCI
pcib11@pci0:2:4:0: class=0x060400 rev=0x02 hdr=0x01 vendor=0x1022 device=0x43b4 subvendor=0x1849 subdevice=0x43c7
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = '300 Series Chipset PCIe Port'
class = bridge
subclass = PCI-PCI
ahci1@pci0:4:0:0: class=0x010601 rev=0x02 hdr=0x00 vendor=0x1b21 device=0x0612 subvendor=0x1849 subdevice=0x0612
vendor = 'ASMedia Technology Inc.'
device = 'ASM1062 Serial ATA Controller'
class = mass storage
subclass = SATA
pcib6@pci0:5:0:0: class=0x060400 rev=0x00 hdr=0x01 vendor=0x1b21 device=0x1184 subvendor=0x1849 subdevice=0x1184
vendor = 'ASMedia Technology Inc.'
device = 'ASM1184e 4-Port PCIe x1 Gen2 Packet Switch'
class = bridge
subclass = PCI-PCI
pcib7@pci0:6:1:0: class=0x060400 rev=0x00 hdr=0x01 vendor=0x1b21 device=0x1184 subvendor=0x1849 subdevice=0x1184
vendor = 'ASMedia Technology Inc.'
device = 'ASM1184e 4-Port PCIe x1 Gen2 Packet Switch'
class = bridge
subclass = PCI-PCI
pcib8@pci0:6:3:0: class=0x060400 rev=0x00 hdr=0x01 vendor=0x1b21 device=0x1184 subvendor=0x1849 subdevice=0x1184
vendor = 'ASMedia Technology Inc.'
device = 'ASM1184e 4-Port PCIe x1 Gen2 Packet Switch'
class = bridge
subclass = PCI-PCI
pcib9@pci0:6:5:0: class=0x060400 rev=0x00 hdr=0x01 vendor=0x1b21 device=0x1184 subvendor=0x1849 subdevice=0x1184
vendor = 'ASMedia Technology Inc.'
device = 'ASM1184e 4-Port PCIe x1 Gen2 Packet Switch'
class = bridge
subclass = PCI-PCI
pcib10@pci0:6:7:0: class=0x060400 rev=0x00 hdr=0x01 vendor=0x1b21 device=0x1184 subvendor=0x1849 subdevice=0x1184
vendor = 'ASMedia Technology Inc.'
device = 'ASM1184e 4-Port PCIe x1 Gen2 Packet Switch'
class = bridge
subclass = PCI-PCI
igb0@pci0:9:0:0: class=0x020000 rev=0x03 hdr=0x00 vendor=0x8086 device=0x1539 subvendor=0x1849 subdevice=0x1539
vendor = 'Intel Corporation'
device = 'I211 Gigabit Network Connection'
class = network
subclass = ethernet
pcib13@pci0:12:0:0: class=0x060400 rev=0xca hdr=0x01 vendor=0x1002 device=0x1478 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'Navi 10 XL Upstream Port of PCI Express Switch'
class = bridge
subclass = PCI-PCI
pcib14@pci0:13:0:0: class=0x060400 rev=0x00 hdr=0x01 vendor=0x1002 device=0x1479 subvendor=0x1002 subdevice=0x1479
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'Navi 10 XL Downstream Port of PCI Express Switch'
class = bridge
subclass = PCI-PCI
vgapci0@pci0:14:0:0: class=0x030000 rev=0xca hdr=0x00 vendor=0x1002 device=0x731f subvendor=0x1458 subdevice=0x231d
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT]'
class = display
subclass = VGA
hdac0@pci0:14:0:1: class=0x040300 rev=0x00 hdr=0x00 vendor=0x1002 device=0xab38 subvendor=0x1002 subdevice=0xab38
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'Navi 10 HDMI Audio'
class = multimedia
subclass = HDA
none1@pci0:15:0:0: class=0x130000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x145a subvendor=0x1022 subdevice=0x145a
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Zeppelin/Raven/Raven2 PCIe Dummy Function'
class = non-essential instrumentation
none2@pci0:15:0:2: class=0x108000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1456 subvendor=0x1022 subdevice=0x1456
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 17h (Models 00h-0fh) Platform Security Processor'
class = encrypt/decrypt
xhci1@pci0:15:0:3: class=0x0c0330 rev=0x00 hdr=0x00 vendor=0x1022 device=0x145f subvendor=0x1849 subdevice=0x7914
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Zeppelin USB 3.0 Host controller'
class = serial bus
subclass = USB
none3@pci0:16:0:0: class=0x130000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1455 subvendor=0x1022 subdevice=0x1455
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Zeppelin/Renoir PCIe Dummy Function'
class = non-essential instrumentation
ahci2@pci0:16:0:2: class=0x010601 rev=0x51 hdr=0x00 vendor=0x1022 device=0x7901 subvendor=0x1849 subdevice=0x7901
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'FCH SATA Controller [AHCI mode]'
class = mass storage
subclass = SATA

DRM KMOD version
drm-fbsd13-kmod 5.4.92.g20210419

To Reproduce
Steps to reproduce the behavior:
On notebook this start after I move WiFi driver to byhive.
On desktopp - then zoom map in google pas.

Additional context
I found workaround for this:
add to /boot/loader conf

compat.linuxkpi.amdgpu_gpu_recovery="1"		# Enable GPU recovery mechanism, (1 = enable, 0 = disable, -1 = auto)
compat.linuxkpi.amdgpu_job_hang_limit="32"	# how much times allow a job hang and not drop it (default 0) / number of times to allow a job to hang before dropping it

Probably this should be noted in pkg-message or driver defaults changed.

panic on 14-CURRENT with AMD NAVI10

Describe the bug
System panics when issuing sysctl -a

FreeBSD version
FreeBSD direwolf.local. 14.0-CURRENT FreeBSD 14.0-CURRENT #0 main-n245338-221622ec0c8-dirty: Tue Mar 9 15:30:10 AWST 2021 [email protected].:/tmp/direwolf/usr/src/amd64.amd64/sys/DIREWOLF_DEBUG amd64

dirty because of:

index 30d6d94723f..fbcd176457d 100644
--- a/sbin/sysctl/sysctl.c
+++ b/sbin/sysctl/sysctl.c
@@ -336,6 +336,12 @@ parse_numeric(const char *newvalstr, const char *fmt, u_int kind,
        return (true);
 }

+/*
+#define                sysctl(...) ({ \
+       usleep(100000); \
+       sysctl(__VA_ARGS__); })
+*/
+

Which is used for debugging this panic.

PCI Info

hostb0@pci0:0:0:0: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1480 subvendor=0x1022 subdevice=0x1480
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Starship/Matisse Root Complex'
class = bridge
subclass = HOST-PCI
none0@pci0:0:0:2: class=0x080600 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1481 subvendor=0x1022 subdevice=0x1481
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Starship/Matisse IOMMU'
class = base peripheral
subclass = IOMMU
hostb1@pci0:0:1:0: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1482 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Starship/Matisse PCIe Dummy Host Bridge'
class = bridge
subclass = HOST-PCI
pcib1@pci0:0:1:2: class=0x060400 rev=0x00 hdr=0x01 vendor=0x1022 device=0x1483 subvendor=0x1022 subdevice=0x1453
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Starship/Matisse GPP Bridge'
class = bridge
subclass = PCI-PCI
hostb2@pci0:0:2:0: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1482 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Starship/Matisse PCIe Dummy Host Bridge'
class = bridge
subclass = HOST-PCI
hostb3@pci0:0:3:0: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1482 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Starship/Matisse PCIe Dummy Host Bridge'
class = bridge
subclass = HOST-PCI
pcib14@pci0:0:3:1: class=0x060400 rev=0x00 hdr=0x01 vendor=0x1022 device=0x1483 subvendor=0x1022 subdevice=0x1453
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Starship/Matisse GPP Bridge'
class = bridge
subclass = PCI-PCI
hostb4@pci0:0:4:0: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1482 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Starship/Matisse PCIe Dummy Host Bridge'
class = bridge
subclass = HOST-PCI
hostb5@pci0:0:5:0: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1482 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Starship/Matisse PCIe Dummy Host Bridge'
class = bridge
subclass = HOST-PCI
hostb6@pci0:0:7:0: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1482 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Starship/Matisse PCIe Dummy Host Bridge'
class = bridge
subclass = HOST-PCI
pcib17@pci0:0:7:1: class=0x060400 rev=0x00 hdr=0x01 vendor=0x1022 device=0x1484 subvendor=0x1022 subdevice=0x1484
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Starship/Matisse Internal PCIe GPP Bridge 0 to bus[E:B]'
class = bridge
subclass = PCI-PCI
hostb7@pci0:0:8:0: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1482 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Starship/Matisse PCIe Dummy Host Bridge'
class = bridge
subclass = HOST-PCI
pcib18@pci0:0:8:1: class=0x060400 rev=0x00 hdr=0x01 vendor=0x1022 device=0x1484 subvendor=0x1022 subdevice=0x1484
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Starship/Matisse Internal PCIe GPP Bridge 0 to bus[E:B]'
class = bridge
subclass = PCI-PCI
intsmb0@pci0:0:20:0: class=0x0c0500 rev=0x61 hdr=0x00 vendor=0x1022 device=0x790b subvendor=0x1849 subdevice=0xffff
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'FCH SMBus Controller'
class = serial bus
subclass = SMBus
isab0@pci0:0:20:3: class=0x060100 rev=0x51 hdr=0x00 vendor=0x1022 device=0x790e subvendor=0x1849 subdevice=0xffff
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'FCH LPC Bridge'
class = bridge
subclass = PCI-ISA
hostb8@pci0:0:24:0: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1440 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Matisse Device 24: Function 0'
class = bridge
subclass = HOST-PCI
hostb9@pci0:0:24:1: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1441 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Matisse Device 24: Function 1'
class = bridge
subclass = HOST-PCI
hostb10@pci0:0:24:2: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1442 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Matisse Device 24: Function 2'
class = bridge
subclass = HOST-PCI
hostb11@pci0:0:24:3: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1443 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Matisse Device 24: Function 3'
class = bridge
subclass = HOST-PCI
hostb12@pci0:0:24:4: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1444 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Matisse Device 24: Function 4'
class = bridge
subclass = HOST-PCI
hostb13@pci0:0:24:5: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1445 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Matisse Device 24: Function 5'
class = bridge
subclass = HOST-PCI
hostb14@pci0:0:24:6: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1446 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Matisse Device 24: Function 6'
class = bridge
subclass = HOST-PCI
hostb15@pci0:0:24:7: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1447 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Matisse Device 24: Function 7'
class = bridge
subclass = HOST-PCI
pcib2@pci0:1:0:0: class=0x060400 rev=0x00 hdr=0x01 vendor=0x1022 device=0x57ad subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Matisse Switch Upstream'
class = bridge
subclass = PCI-PCI
pcib3@pci0:2:1:0: class=0x060400 rev=0x00 hdr=0x01 vendor=0x1022 device=0x57a3 subvendor=0x1022 subdevice=0x1453
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Matisse PCIe GPP Bridge'
class = bridge
subclass = PCI-PCI
pcib4@pci0:2:3:0: class=0x060400 rev=0x00 hdr=0x01 vendor=0x1022 device=0x57a3 subvendor=0x1022 subdevice=0x1453
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Matisse PCIe GPP Bridge'
class = bridge
subclass = PCI-PCI
pcib9@pci0:2:5:0: class=0x060400 rev=0x00 hdr=0x01 vendor=0x1022 device=0x57a3 subvendor=0x1022 subdevice=0x1453
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Matisse PCIe GPP Bridge'
class = bridge
subclass = PCI-PCI
pcib11@pci0:2:8:0: class=0x060400 rev=0x00 hdr=0x01 vendor=0x1022 device=0x57a4 subvendor=0x1022 subdevice=0x1484
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Matisse PCIe GPP Bridge'
class = bridge
subclass = PCI-PCI
pcib12@pci0:2:9:0: class=0x060400 rev=0x00 hdr=0x01 vendor=0x1022 device=0x57a4 subvendor=0x1022 subdevice=0x1484
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Matisse PCIe GPP Bridge'
class = bridge
subclass = PCI-PCI
pcib13@pci0:2:10:0: class=0x060400 rev=0x00 hdr=0x01 vendor=0x1022 device=0x57a4 subvendor=0x1022 subdevice=0x1484
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Matisse PCIe GPP Bridge'
class = bridge
subclass = PCI-PCI
igb0@pci0:3:0:0: class=0x020000 rev=0x01 hdr=0x00 vendor=0x8086 device=0x1521 subvendor=0x8086 subdevice=0x0002
vendor = 'Intel Corporation'
device = 'I350 Gigabit Network Connection'
class = network
subclass = ethernet
igb1@pci0:3:0:1: class=0x020000 rev=0x01 hdr=0x00 vendor=0x8086 device=0x1521 subvendor=0x8086 subdevice=0x0002
vendor = 'Intel Corporation'
device = 'I350 Gigabit Network Connection'
class = network
subclass = ethernet
pcib5@pci0:5:0:0: class=0x060400 rev=0x00 hdr=0x01 vendor=0x1b21 device=0x1184 subvendor=0x1849 subdevice=0x1184
vendor = 'ASMedia Technology Inc.'
device = 'ASM1184e PCIe Switch Port'
class = bridge
subclass = PCI-PCI
pcib6@pci0:6:3:0: class=0x060400 rev=0x00 hdr=0x01 vendor=0x1b21 device=0x1184 subvendor=0x1849 subdevice=0x1184
vendor = 'ASMedia Technology Inc.'
device = 'ASM1184e PCIe Switch Port'
class = bridge
subclass = PCI-PCI
pcib7@pci0:6:5:0: class=0x060400 rev=0x00 hdr=0x01 vendor=0x1b21 device=0x1184 subvendor=0x1849 subdevice=0x1184
vendor = 'ASMedia Technology Inc.'
device = 'ASM1184e PCIe Switch Port'
class = bridge
subclass = PCI-PCI
pcib8@pci0:6:7:0: class=0x060400 rev=0x00 hdr=0x01 vendor=0x1b21 device=0x1184 subvendor=0x1849 subdevice=0x1184
vendor = 'ASMedia Technology Inc.'
device = 'ASM1184e PCIe Switch Port'
class = bridge
subclass = PCI-PCI
igb2@pci0:8:0:0: class=0x020000 rev=0x03 hdr=0x00 vendor=0x8086 device=0x1539 subvendor=0x1849 subdevice=0x1539
vendor = 'Intel Corporation'
device = 'I211 Gigabit Network Connection'
class = network
subclass = ethernet
pcib10@pci0:10:0:0: class=0x060400 rev=0x04 hdr=0x01 vendor=0x1b21 device=0x1080 subvendor=0x0000 subdevice=0x0000
vendor = 'ASMedia Technology Inc.'
device = 'ASM1083/1085 PCIe to PCI Bridge'
class = bridge
subclass = PCI-PCI
fwohci0@pci0:11:4:0: class=0x0c0010 rev=0x01 hdr=0x00 vendor=0x104c device=0x8025 subvendor=0x0f2e subdevice=0x8025
vendor = 'Texas Instruments'
device = 'TSB82AA2 IEEE-1394b Link Layer Controller'
class = serial bus
subclass = FireWire
none1@pci0:12:0:0: class=0x130000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1485 subvendor=0x1022 subdevice=0x1485
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Starship/Matisse Reserved SPP'
class = non-essential instrumentation
xhci0@pci0:12:0:1: class=0x0c0330 rev=0x00 hdr=0x00 vendor=0x1022 device=0x149c subvendor=0x1022 subdevice=0x1486
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Matisse USB 3.0 Host Controller'
class = serial bus
subclass = USB
xhci1@pci0:12:0:3: class=0x0c0330 rev=0x00 hdr=0x00 vendor=0x1022 device=0x149c subvendor=0x1022 subdevice=0x148c
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Matisse USB 3.0 Host Controller'
class = serial bus
subclass = USB
ahci0@pci0:13:0:0: class=0x010601 rev=0x51 hdr=0x00 vendor=0x1022 device=0x7901 subvendor=0x1022 subdevice=0x7901
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'FCH SATA Controller [AHCI mode]'
class = mass storage
subclass = SATA
ahci1@pci0:14:0:0: class=0x010601 rev=0x51 hdr=0x00 vendor=0x1022 device=0x7901 subvendor=0x1022 subdevice=0x7901
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'FCH SATA Controller [AHCI mode]'
class = mass storage
subclass = SATA
pcib15@pci0:15:0:0: class=0x060400 rev=0xc1 hdr=0x01 vendor=0x1002 device=0x1478 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'Navi 10 XL Upstream Port of PCI Express Switch'
class = bridge
subclass = PCI-PCI
pcib16@pci0:16:0:0: class=0x060400 rev=0x00 hdr=0x01 vendor=0x1002 device=0x1479 subvendor=0x1002 subdevice=0x1479
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'Navi 10 XL Downstream Port of PCI Express Switch'
class = bridge
subclass = PCI-PCI
vgapci0@pci0:17:0:0: class=0x030000 rev=0xc1 hdr=0x00 vendor=0x1002 device=0x731f subvendor=0x1462 subdevice=0x3810
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT]'
class = display
subclass = VGA
hdac0@pci0:17:0:1: class=0x040300 rev=0x00 hdr=0x00 vendor=0x1002 device=0xab38 subvendor=0x1002 subdevice=0xab38
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'Navi 10 HDMI Audio'
class = multimedia
subclass = HDA
none2@pci0:18:0:0: class=0x130000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x148a subvendor=0x1022 subdevice=0x148a
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Starship/Matisse PCIe Dummy Function'
class = non-essential instrumentation
none3@pci0:19:0:0: class=0x130000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1485 subvendor=0x1022 subdevice=0x1485
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Starship/Matisse Reserved SPP'
class = non-essential instrumentation
none4@pci0:19:0:1: class=0x108000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1486 subvendor=0x1022 subdevice=0x1486
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Starship/Matisse Cryptographic Coprocessor PSPCPP'
class = encrypt/decrypt
xhci2@pci0:19:0:3: class=0x0c0330 rev=0x00 hdr=0x00 vendor=0x1022 device=0x149c subvendor=0x1849 subdevice=0xffff
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Matisse USB 3.0 Host Controller'
class = serial bus
subclass = USB
hdac1@pci0:19:0:4: class=0x040300 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1487 subvendor=0x1849 subdevice=0x2221
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Starship/Matisse HD Audio Controller'
class = multimedia
subclass = HDA

DRM KMOD version

drm-devel-kmod 5.4.92.g20210128_1

To Reproduce
Steps to reproduce the behavior:
sysctl -a

Additional context

https://docs.freebsd.org/cgi/getmsg.cgi?fetch=202014+0+archive/2021/freebsd-current/20210207.freebsd-current

vmwgfx panics after loading

Windows 10, VMware Workstation Pro 16.0 (same for previous versions of hypervisor). Running 8 "core" FreeBSD VM (UEFI boot): FreeBSD 13.0-CURRENT #0 r366332; drm-devel-kmod-5.4.62.g20200914. The workaround of using just 1 "core" doesn't not help and is not something I would find useful, it defeats this VM usage. Tried setting different amount of VRAM in the VM settings, no changes.

getting the following panic right after loading vmwgfx.ko:

Unread portion of the kernel message buffer:
<6>[drm] Fifo max 0x00040000 min 0x00001000 cap 0x0000077f
kernel trap 12 with interrupts disabled


Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address   = 0x18
fault code              = supervisor read data, page not present
instruction pointer     = 0x20:0xffffffff80bb6814
stack pointer           = 0x28:0xfffffe004d79b3f0
frame pointer           = 0x28:0xfffffe004d79b3f0
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags        = resume, IOPL = 0
current process         = 0 (deadlkres)
trap number             = 12
panic: page fault
cpuid = 0
time = 1601584668
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe004d79b0a0
vpanic() at vpanic+0x182/frame 0xfffffe004d79b0f0
panic() at panic+0x43/frame 0xfffffe004d79b150
trap_fatal() at trap_fatal+0x387/frame 0xfffffe004d79b1b0
trap_pfault() at trap_pfault+0x97/frame 0xfffffe004d79b210
trap() at trap+0x2ab/frame 0xfffffe004d79b320
calltrap() at calltrap+0x8/frame 0xfffffe004d79b320
--- trap 0xc, rip = 0xffffffff80bb6814, rsp = 0xfffffe004d79b3f0, rbp = 0xfffffe004d79b3f0 ---
thread_lock_validate() at thread_lock_validate+0x4/frame 0xfffffe004d79b3f0
_thread_lock() at _thread_lock+0x45/frame 0xfffffe004d79b430
deadlkres() at deadlkres+0x14e/frame 0xfffffe004d79b470
fork_exit() at fork_exit+0x80/frame 0xfffffe004d79b4b0
fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe004d79b4b0
--- trap 0, rip = 0, rsp = 0, rbp = 0 ---
Uptime: 33s
Dumping 565 out of 8151 MB:..3%..12%..23%..32%..43%..51%..63%..71%..83%..91%

relevant dmesg entries:

drmn0: <drmn> on vgapci0
vgapci0: child drmn0 requested pci_enable_io
vgapci0: child drmn0 requested pci_enable_io
sysctl_warn_reuse: can't re-use a leaf (hw.dri.debug)!
[drm] DMA map mode: Caching DMA mappings.
[drm] Capabilities:
[drm]   Rect copy.
[drm]   Cursor.
[drm]   Cursor bypass.
[drm]   Cursor bypass 2.
[drm]   8bit emulation.
[drm]   Alpha cursor.
[drm]   3D.
[drm]   Extended Fifo.
[drm]   Multimon.
[drm]   Pitchlock.
[drm]   Irq mask.
[drm]   Display Topology.
[drm]   GMR.
[drm]   Traces.
[drm]   GMR2.
[drm]   Screen Object 2.
[drm]   Command Buffers.
[drm]   Command Buffers 2.
[drm]   Guest Backed Resources.
[drm]   DX Features.
[drm]   HP Command Queue.
[drm] Capabilities2:
[drm]   Grow oTable.
[drm]   IntraSurface copy.
[drm] Max GMR ids is 64
[drm] Max number of GMR pages is 65536
[drm] Max dedicated hypervisor surface memory is 0 kiB
[drm] Maximum display memory size is 262144 kiB
[drm] VRAM at 0xf0000000 size is 131072 kiB
[drm] MMIO at 0xfb800000 size is 256 kiB
[TTM] Zone  kernel: Available graphics memory: 4173806 KiB
[TTM] Zone   dma32: Available graphics memory: 2097152 KiB
[TTM] Initializing pool allocator
[drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[drm] No driver support for vblank timestamp query.
[drm] Connector Virtual-1: get mode from tunables:
[drm]   - kern.vt.fb.modes.Virtual-1
[drm]   - kern.vt.fb.default_mode
[drm] Connector Virtual-2: get mode from tunables:
[drm]   - kern.vt.fb.modes.Virtual-2
[drm]   - kern.vt.fb.default_mode
[drm] Connector Virtual-3: get mode from tunables:
[drm]   - kern.vt.fb.modes.Virtual-3
[drm]   - kern.vt.fb.default_mode
[drm] Connector Virtual-4: get mode from tunables:
[drm]   - kern.vt.fb.modes.Virtual-4
[drm]   - kern.vt.fb.default_mode
[drm] Connector Virtual-5: get mode from tunables:
[drm]   - kern.vt.fb.modes.Virtual-5
[drm]   - kern.vt.fb.default_mode
[drm] Connector Virtual-6: get mode from tunables:
[drm]   - kern.vt.fb.modes.Virtual-6
[drm]   - kern.vt.fb.default_mode
[drm] Connector Virtual-7: get mode from tunables:
[drm]   - kern.vt.fb.modes.Virtual-7
[drm]   - kern.vt.fb.default_mode
[drm] Connector Virtual-8: get mode from tunables:
[drm]   - kern.vt.fb.modes.Virtual-8
[drm]   - kern.vt.fb.default_mode
[drm] Screen Target Display device initialized
[drm] width 1024
[drm] height 768
[drm] bpp 32
[drm] Fifo max 0x00040000 min 0x00001000 cap 0x0000077f
kernel trap 12 with interrupts disabled

[i915kms] broken suspend/resume on MacbookPro15/13.0-RC3

After upgrade to 13.0-RC3 from 12.2-RELEASE, suspend/resume is not working any more:

% pkg info -x drm
drm-fbsd13-kmod-5.4.92.g20210202
drm-kmod-g20190710_1
libdrm-2.4.104,1

before suspend:
#dmesg|grep drm
drmn0: on vgapci0
vgapci0: child drmn0 requested pci_enable_io
vgapci0: child drmn0 requested pci_enable_io
[drm] Unable to create a private tmpfs mount, hugepage support will be disabled(-19).
drmn0: Found 128MB of eDRAM
[drm] Got stolen memory base 0x79a00000, size 0x6000000
[drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[drm] Driver supports precise vblank timestamp query.
[drm] Connector eDP-1: get mode from tunables:
[drm] - kern.vt.fb.modes.eDP-1
[drm] - kern.vt.fb.default_mode
[drm] Connector DP-1: get mode from tunables:
[drm] - kern.vt.fb.modes.DP-1
[drm] - kern.vt.fb.default_mode
[drm] Connector HDMI-A-1: get mode from tunables:
[drm] - kern.vt.fb.modes.HDMI-A-1
[drm] - kern.vt.fb.default_mode
[drm] Connector DP-2: get mode from tunables:
[drm] - kern.vt.fb.modes.DP-2
[drm] - kern.vt.fb.default_mode
[drm] Connector HDMI-A-2: get mode from tunables:
[drm] - kern.vt.fb.modes.HDMI-A-2
[drm] - kern.vt.fb.default_mode
[drm] Connector HDMI-A-3: get mode from tunables:
[drm] - kern.vt.fb.modes.HDMI-A-3
[drm] - kern.vt.fb.default_mode
[drm] Initialized i915 1.6.0 20190822 for drmn0 on minor 0
name=drmn0 flags=0x0 stride=11776 bpp=32
drmn0: fb0: i915drmfb frame buffer device

glxinfo | grep OpenGL

OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Iris(R) Pro Graphics P5200 (HSW GT3)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 20.2.3
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 20.2.3
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.1 Mesa 20.2.3
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10
OpenGL ES profile extensions:

after resume:
#dmesg|grep drm
% dmesg | grep drm
drmn0: on vgapci0
vgapci0: child drmn0 requested pci_enable_io
vgapci0: child drmn0 requested pci_enable_io
[drm] Unable to create a private tmpfs mount, hugepage support will be disabled(-19).
drmn0: Found 128MB of eDRAM
[drm] Got stolen memory base 0x79a00000, size 0x6000000
[drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[drm] Driver supports precise vblank timestamp query.
[drm] Connector eDP-1: get mode from tunables:
[drm] - kern.vt.fb.modes.eDP-1
[drm] - kern.vt.fb.default_mode
[drm] Connector DP-1: get mode from tunables:
[drm] - kern.vt.fb.modes.DP-1
[drm] - kern.vt.fb.default_mode
[drm] Connector HDMI-A-1: get mode from tunables:
[drm] - kern.vt.fb.modes.HDMI-A-1
[drm] - kern.vt.fb.default_mode
[drm] Connector DP-2: get mode from tunables:
[drm] - kern.vt.fb.modes.DP-2
[drm] - kern.vt.fb.default_mode
[drm] Connector HDMI-A-2: get mode from tunables:
[drm] - kern.vt.fb.modes.HDMI-A-2
[drm] - kern.vt.fb.default_mode
[drm] Connector HDMI-A-3: get mode from tunables:
[drm] - kern.vt.fb.modes.HDMI-A-3
[drm] - kern.vt.fb.default_mode
[drm] Initialized i915 1.6.0 20190822 for drmn0 on minor 0
name=drmn0 flags=0x0 stride=11776 bpp=32
drmn0: fb0: i915drmfb frame buffer device
vgapci0: child drmn0 requested pci_set_powerstate
vgapci0: child drmn0 requested pci_set_powerstate
vgapci0: child drmn0 requested pci_enable_io
vgapci0: child drmn0 requested pci_enable_io
drmn0: Failed to idle engines, declaring wedged!

#glxinfo | grep OpenGL
OpenGL vendor string: Mesa/X.org
OpenGL renderer string: llvmpipe (LLVM 10.0.1, 256 bits)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 20.2.3
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.1 Mesa 20.2.3
OpenGL shading language version string: 1.40
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 20.2.3
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
OpenGL ES profile extensions:

amdgpu_dm_irq_schedule_work FAILED src 5

Describe the bug
I have RX560 running on 13.0-BETA3 on amd64 workstation.

When my monitors are off, I'm getting the following errors on the console:
<6>[drm] amdgpu_dm_irq_schedule_work FAILED src 5

When it happens, X11 stops working, but I can still log in via SSH. Shortly after that, SSH and console logging stops working as well.

Restarting X11, in the time window where I can still log in, doesn't help. Xorg doesn't start at all.
Only reboot helps in that case.

FreeBSD version
FreeBSD KGPE-D16 13.0-BETA3 FreeBSD 13.0-BETA3 #0 releng/13.0-n244525-150b4388d3b: Fri Feb 19 01:36:53 CET 2021 root@KGPE-D16:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64

PCI Info

pciconf -lv

hostb0@pci0:0:0:0: class=0x060000 rev=0x02 hdr=0x00 vendor=0x1002 device=0x5a10 subvendor=0x1002 subdevice=0x5a10
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'RD890 Northbridge only dual slot (2x16) PCI-e GFX Hydra part'
class = bridge
subclass = HOST-PCI
none0@pci0:0:0:2: class=0x080600 rev=0x00 hdr=0x00 vendor=0x1002 device=0x5a23 subvendor=0x1002 subdevice=0x5a23
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'RD890S/RD990 I/O Memory Management Unit (IOMMU)'
class = base peripheral
subclass = IOMMU
pcib1@pci0:0:2:0: class=0x060400 rev=0x00 hdr=0x01 vendor=0x1002 device=0x5a16 subvendor=0x1002 subdevice=0x5a10
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'RD890/RD9x0/RX980 PCI to PCI bridge (PCI Express GFX port 0)'
class = bridge
subclass = PCI-PCI
pcib2@pci0:0:4:0: class=0x060400 rev=0x00 hdr=0x01 vendor=0x1002 device=0x5a18 subvendor=0x1002 subdevice=0x5a10
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'RD890/RD9x0/RX980 PCI to PCI bridge (PCI Express GPP Port 0)'
class = bridge
subclass = PCI-PCI
pcib3@pci0:0:9:0: class=0x060400 rev=0x00 hdr=0x01 vendor=0x1002 device=0x5a1c subvendor=0x1002 subdevice=0x5a10
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'RD890/RD9x0/RX980 PCI to PCI bridge (PCI Express GPP Port 4)'
class = bridge
subclass = PCI-PCI
pcib4@pci0:0:10:0: class=0x060400 rev=0x00 hdr=0x01 vendor=0x1002 device=0x5a1d subvendor=0x1002 subdevice=0x5a10
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'RD890/RD9x0/RX980 PCI to PCI bridge (PCI Express GPP Port 5)'
class = bridge
subclass = PCI-PCI
pcib5@pci0:0:11:0: class=0x060400 rev=0x00 hdr=0x01 vendor=0x1002 device=0x5a1f subvendor=0x1002 subdevice=0x5a10
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'RD890/RD990 PCI to PCI bridge (PCI Express GFX2 port 0)'
class = bridge
subclass = PCI-PCI
pcib6@pci0:0:12:0: class=0x060400 rev=0x00 hdr=0x01 vendor=0x1002 device=0x5a20 subvendor=0x1002 subdevice=0x5a10
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'RD890/RD990 PCI to PCI bridge (PCI Express GFX2 port 1)'
class = bridge
subclass = PCI-PCI
pcib7@pci0:0:13:0: class=0x060400 rev=0x00 hdr=0x01 vendor=0x1002 device=0x5a1e subvendor=0x1002 subdevice=0x5a10
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'RD890/RD9x0/RX980 PCI to PCI bridge (PCI Express GPP2 Port 0)'
class = bridge
subclass = PCI-PCI
ahci0@pci0:0:17:0: class=0x010601 rev=0x00 hdr=0x00 vendor=0x1002 device=0x4394 subvendor=0x1043 subdevice=0x8163
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode]'
class = mass storage
subclass = SATA
ohci0@pci0:0:18:0: class=0x0c0310 rev=0x00 hdr=0x00 vendor=0x1002 device=0x4397 subvendor=0x1043 subdevice=0x8163
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'SB7x0/SB8x0/SB9x0 USB OHCI0 Controller'
class = serial bus
subclass = USB
ohci1@pci0:0:18:1: class=0x0c0310 rev=0x00 hdr=0x00 vendor=0x1002 device=0x4398 subvendor=0x1043 subdevice=0x8163
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'SB7x0 USB OHCI1 Controller'
class = serial bus
subclass = USB
ehci0@pci0:0:18:2: class=0x0c0320 rev=0x00 hdr=0x00 vendor=0x1002 device=0x4396 subvendor=0x1043 subdevice=0x8163
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'SB7x0/SB8x0/SB9x0 USB EHCI Controller'
class = serial bus
subclass = USB
ohci2@pci0:0:19:0: class=0x0c0310 rev=0x00 hdr=0x00 vendor=0x1002 device=0x4397 subvendor=0x1043 subdevice=0x8163
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'SB7x0/SB8x0/SB9x0 USB OHCI0 Controller'
class = serial bus
subclass = USB
ohci3@pci0:0:19:1: class=0x0c0310 rev=0x00 hdr=0x00 vendor=0x1002 device=0x4398 subvendor=0x1043 subdevice=0x8163
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'SB7x0 USB OHCI1 Controller'
class = serial bus
subclass = USB
ehci1@pci0:0:19:2: class=0x0c0320 rev=0x00 hdr=0x00 vendor=0x1002 device=0x4396 subvendor=0x1043 subdevice=0x8163
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'SB7x0/SB8x0/SB9x0 USB EHCI Controller'
class = serial bus
subclass = USB
intsmb0@pci0:0:20:0: class=0x0c0500 rev=0x3d hdr=0x00 vendor=0x1002 device=0x4385 subvendor=0x1043 subdevice=0x8163
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'SBx00 SMBus Controller'
class = serial bus
subclass = SMBus
atapci0@pci0:0:20:1: class=0x01018a rev=0x00 hdr=0x00 vendor=0x1002 device=0x439c subvendor=0x1043 subdevice=0x8163
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'SB7x0/SB8x0/SB9x0 IDE Controller'
class = mass storage
subclass = ATA
hdac2@pci0:0:20:2: class=0x040300 rev=0x00 hdr=0x00 vendor=0x1002 device=0x4383 subvendor=0x1043 subdevice=0x8163
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'SBx00 Azalia (Intel HDA)'
class = multimedia
subclass = HDA
isab0@pci0:0:20:3: class=0x060100 rev=0x00 hdr=0x00 vendor=0x1002 device=0x439d subvendor=0x1043 subdevice=0x8163
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'SB7x0/SB8x0/SB9x0 LPC host controller'
class = bridge
subclass = PCI-ISA
pcib8@pci0:0:20:4: class=0x060401 rev=0x00 hdr=0x01 vendor=0x1002 device=0x4384 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'SBx00 PCI to PCI Bridge'
class = bridge
subclass = PCI-PCI
ohci4@pci0:0:20:5: class=0x0c0310 rev=0x00 hdr=0x00 vendor=0x1002 device=0x4399 subvendor=0x1043 subdevice=0x8163
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'SB7x0/SB8x0/SB9x0 USB OHCI2 Controller'
class = serial bus
subclass = USB
hostb1@pci0:0:24:0: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1600 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 15h Processor Function 0'
class = bridge
subclass = HOST-PCI
hostb2@pci0:0:24:1: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1601 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 15h Processor Function 1'
class = bridge
subclass = HOST-PCI
hostb3@pci0:0:24:2: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1602 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 15h Processor Function 2'
class = bridge
subclass = HOST-PCI
hostb4@pci0:0:24:3: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1603 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 15h Processor Function 3'
class = bridge
subclass = HOST-PCI
hostb5@pci0:0:24:4: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1604 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 15h Processor Function 4'
class = bridge
subclass = HOST-PCI
hostb6@pci0:0:24:5: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1605 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 15h Processor Function 5'
class = bridge
subclass = HOST-PCI
hostb7@pci0:0:25:0: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1600 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 15h Processor Function 0'
class = bridge
subclass = HOST-PCI
hostb8@pci0:0:25:1: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1601 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 15h Processor Function 1'
class = bridge
subclass = HOST-PCI
hostb9@pci0:0:25:2: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1602 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 15h Processor Function 2'
class = bridge
subclass = HOST-PCI
hostb10@pci0:0:25:3: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1603 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 15h Processor Function 3'
class = bridge
subclass = HOST-PCI
hostb11@pci0:0:25:4: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1604 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 15h Processor Function 4'
class = bridge
subclass = HOST-PCI
hostb12@pci0:0:25:5: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1605 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 15h Processor Function 5'
class = bridge
subclass = HOST-PCI
hostb13@pci0:0:26:0: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1600 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 15h Processor Function 0'
class = bridge
subclass = HOST-PCI
hostb14@pci0:0:26:1: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1601 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 15h Processor Function 1'
class = bridge
subclass = HOST-PCI
hostb15@pci0:0:26:2: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1602 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 15h Processor Function 2'
class = bridge
subclass = HOST-PCI
hostb16@pci0:0:26:3: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1603 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 15h Processor Function 3'
class = bridge
subclass = HOST-PCI
hostb17@pci0:0:26:4: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1604 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 15h Processor Function 4'
class = bridge
subclass = HOST-PCI
hostb18@pci0:0:26:5: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1605 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 15h Processor Function 5'
class = bridge
subclass = HOST-PCI
hostb19@pci0:0:27:0: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1600 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 15h Processor Function 0'
class = bridge
subclass = HOST-PCI
hostb20@pci0:0:27:1: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1601 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 15h Processor Function 1'
class = bridge
subclass = HOST-PCI
hostb21@pci0:0:27:2: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1602 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 15h Processor Function 2'
class = bridge
subclass = HOST-PCI
hostb22@pci0:0:27:3: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1603 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 15h Processor Function 3'
class = bridge
subclass = HOST-PCI
hostb23@pci0:0:27:4: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1604 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 15h Processor Function 4'
class = bridge
subclass = HOST-PCI
hostb24@pci0:0:27:5: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1605 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 15h Processor Function 5'
class = bridge
subclass = HOST-PCI
nvme0@pci0:1:0:0: class=0x010802 rev=0x01 hdr=0x00 vendor=0x1987 device=0x5012 subvendor=0x1987 subdevice=0x5012
vendor = 'Phison Electronics Corporation'
device = 'E12 NVMe Controller'
class = mass storage
subclass = NVM
em0@pci0:3:0:0: class=0x020000 rev=0x00 hdr=0x00 vendor=0x8086 device=0x10d3 subvendor=0x1043 subdevice=0x8369
vendor = 'Intel Corporation'
device = '82574L Gigabit Network Connection'
class = network
subclass = ethernet
em1@pci0:4:0:0: class=0x020000 rev=0x00 hdr=0x00 vendor=0x8086 device=0x10d3 subvendor=0x1043 subdevice=0x8369
vendor = 'Intel Corporation'
device = '82574L Gigabit Network Connection'
class = network
subclass = ethernet
vgapci0@pci0:5:0:0: class=0x030000 rev=0xe5 hdr=0x00 vendor=0x1002 device=0x67ef subvendor=0x1da2 subdevice=0xe348
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'Baffin [Radeon RX 460/560D / Pro 450/455/460/555/555X/560/560X]'
class = display
subclass = VGA
hdac0@pci0:5:0:1: class=0x040300 rev=0x00 hdr=0x00 vendor=0x1002 device=0xaae0 subvendor=0x1da2 subdevice=0xaae0
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'Baffin HDMI/DP Audio [Radeon RX 550 640SP / RX 560/560X]'
class = multimedia
subclass = HDA
hdac1@pci0:7:0:0: class=0x040300 rev=0x04 hdr=0x00 vendor=0x1102 device=0x000b subvendor=0x1102 subdevice=0x0043
vendor = 'Creative Labs'
device = 'EMU20k2 [Sound Blaster X-Fi Titanium Series]'
class = multimedia
subclass = HDA
vgapci1@pci0:8:1:0: class=0x030000 rev=0x10 hdr=0x00 vendor=0x1a03 device=0x2000 subvendor=0x1a03 subdevice=0x2000
vendor = 'ASPEED Technology, Inc.'
device = 'ASPEED Graphics Family'
class = display
subclass = VGA
none1@pci0:8:2:0: class=0x0c0010 rev=0x70 hdr=0x00 vendor=0x11c1 device=0x5811 subvendor=0x1043 subdevice=0x8259
vendor = 'LSI Corporation'
device = 'FW322/323 [TrueFire] 1394a Controller'
class = serial bus
subclass = FireWire
emu10kx0@pci0:8:3:0: class=0x040100 rev=0x0a hdr=0x00 vendor=0x1102 device=0x0002 subvendor=0x1102 subdevice=0x8065
vendor = 'Creative Labs'
device = 'EMU10k1 [Sound Blaster Live! Series]'
class = multimedia
subclass = audio
none2@pci0:8:3:1: class=0x098000 rev=0x0a hdr=0x00 vendor=0x1102 device=0x7002 subvendor=0x1102 subdevice=0x0020
vendor = 'Creative Labs'
device = 'SB Live! Game Port'
class = input device

DRM KMOD version
drm-fbsd13-kmod 5.4.92.g20210202

To Reproduce
Steps to reproduce the behavior:
With DPMS on, allow your screen to be suspended and wait some time.

Additional context
I'm not sure whether it happens with one screen connected, I have two screens.
Everything worked fine on 12.2-RELEASE.
Disabling DPMS doesn't help.
I can see that host still responds to pings even after crash.
During the time I can still log in remotely, if I try to reboot, rebooting stalls after:

WARNING !(0) failed at /usr/local/sys/modules/drm-fbsd13-kmod/drivers/gpu/drm/amd/display/dc/gpio/gpio_base.c:66
#0 0xffffffff80e3da83 at linux_dump_stack+0x23
#1 0xffffffff82bd9c41 at dal_gpio_open_ex+0x31
#2 0xffffffff82bdacbf at dal_ddc_open+0x1f
#3 0xffffffff82b492e7 at dce_aux_transfer_raw+0x77
#4 0xffffffff82b109a3 at dm_dp_aux_transfer+0x93
#5 0xffffffff82d2b25f at drm_dp_dpcd_access+0xaf
#6 0xffffffff82d2b337 at drm_dp_dpcd_write+0x27
#7 0xffffffff82b0f219 at dm_helpers_dp_write_dpcd+0x29
#8 0xffffffff82b37108 at dp_enable_link_phy+0x168
#9 0xffffffff82b3ca18 at enable_link_dp+0x128
#10 0xffffffff82b3a7a1 at core_link_enable_stream+0x381
#11 0xffffffff82b5d1a9 at dce110_apply_ctx_to_hw+0x669
#12 0xffffffff82b44252 at dc_commit_state+0x3e2
#13 0xffffffff82b18a8b at amdgpu_dm_atomic_commit_tail+0x46b
#14 0xffffffff82d1b129 at commit_tail+0x49
#15 0xffffffff82d1a468 at drm_atomic_helper_commit+0x1e8
#16 0xffffffff82d1bbc9 at drm_atomic_helper_set_config+0x89
#17 0xffffffff82d27dc5 at drm_mode_setcrtc+0x325
WARNING !(0) failed at /usr/local/sys/modules/drm-fbsd13-kmod/drivers/gpu/drm/amd/display/dc/gpio/gpio_service.c:551
#0 0xffffffff80e3da83 at linux_dump_stack+0x23
#1 0xffffffff82bdacec at dal_ddc_open+0x4c
#2 0xffffffff82b492e7 at dce_aux_transfer_raw+0x77
#3 0xffffffff82b109a3 at dm_dp_aux_transfer+0x93
#4 0xffffffff82d2b25f at drm_dp_dpcd_access+0xaf
#5 0xffffffff82d2b337 at drm_dp_dpcd_write+0x27
#6 0xffffffff82b0f219 at dm_helpers_dp_write_dpcd+0x29
#7 0xffffffff82b37108 at dp_enable_link_phy+0x168
#8 0xffffffff82b3ca18 at enable_link_dp+0x128
#9 0xffffffff82b3a7a1 at core_link_enable_stream+0x381
#10 0xffffffff82b5d1a9 at dce110_apply_ctx_to_hw+0x669
#11 0xffffffff82b44252 at dc_commit_state+0x3e2
#12 0xffffffff82b18a8b at amdgpu_dm_atomic_commit_tail+0x46b
#13 0xffffffff82d1b129 at commit_tail+0x49
#14 0xffffffff82d1a468 at drm_atomic_helper_commit+0x1e8
#15 0xffffffff82d1bbc9 at drm_atomic_helper_set_config+0x89
#16 0xffffffff82d27dc5 at drm_mode_setcrtc+0x325
#17 0xffffffff82d45374 at drm_ioctl_kernel+0x74

I can't load radeonkms (drm-devel-kmod)

I'm on head on powerpc64, r361749. Using 5.2.g20200601, I could successfully load radeonkms, now I'm on 5.2.g20200602.
When executing kldload radeonkms:

link_elf: symbol drm_timestamp_precision undefined
KLD radeonkms.ko: depends on drmn - not available or version mismatch
kldload: can't load radeonkms: No such file or directory

no screens found error

I encountered no screens found error in freebsd 13, the following is detailed information, how can I solve this situation?

kernel:

13.0-CURRENT #2 629b165ee71-c269837(master): Fri Jul 10 22:50:17 CST 2020

drm-devel-kmod:

$ pkg info drm-devel-kmod 
drm-devel-kmod-5.3.g20200708
Name           : drm-devel-kmod
Version        : 5.3.g20200708
Installed on   : Mon Jul 13 11:14:06 2020 CST
Origin         : graphics/drm-devel-kmod
Architecture   : FreeBSD:13:amd64
Prefix         : /usr/local
Categories     : graphics kld
Licenses       : BSD2CLAUSE, MIT, GPLv2
Maintainer     : [email protected]
WWW            : https://github.com/FreeBSDDesktop/kms-drm
Comment        : DRM modules for the linuxkpi-based KMS components (development version)
Options        :
        DEBUG          : off
Annotations    :
        FreeBSD_version: 1300100
Flat size      : 11.0MiB
Description    :
amdgpu, i915, and radeon DRM modules for the linuxkpi-based KMS components.
Currently corresponding to Linux 5.0 DRM.
This version is the development version and only works on FreeBSD CURRENT.
amdgpu and radeonkms are known to fail with EFI boot.

WWW: https://github.com/FreeBSDDesktop/kms-drm

vga๏ผš

$ pciconf -lv | grep -B4 VGA  
vgapci0@pci0:3:0:0:     class=0x030000 rev=0xc1 hdr=0x00 vendor=0x1002 device=0x15d8 subvendor=0x19e5 subdevice=0x3e18
    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
    device     = 'Picasso'
    class      = display
    subclass   = VGA

/etc/X11/xorg.conf:

Section "Device"
        Identifier  "Card0"
        Driver      "amdgpu"
        BusID       "PCI:3:0:0"
        Option "TearFree" "On"
        Option "DRI" "True"
        Option "AccelMethod" "exa"
        Option "MigrationHeuristic" "greedy"
EndSection

boot log:

Trying to mount root from ufs:/dev/nvd0p10 [rw]...
WARNING: WITNESS option enabled, expect reduced performance.
uhub1: 3 ports with 3 removable, self powered
uhub0: 8 ports with 8 removable, self powered
[drm:drm_core_init] Initialized
[drm] amdgpu kernel modesetting enabled.
ugen1.2: <Shenzhen Goodix Technology Co.,Ltd. Goodix Fingerprint Device> at usbus1
ugen0.2: <PixArt A4Tech OpticalMouse> at usbus0
ums0 on uhub0
ums0: <PixArt A4Tech OpticalMouse, class 0/0, rev 2.00/1.00, addr 1> on usbus0
ums0: 5 buttons and [XYZ] coordinates ID=0

Xorg log:

[   372.017] (II) LoadModule: "amdgpu"
[   372.018] (II) Loading /usr/local/lib/xorg/modules/drivers/amdgpu_drv.so
[   372.018] (II) Module amdgpu: vendor="X.Org Foundation"
[   372.018]    compiled for 1.20.8, module version = 19.1.0
[   372.018]    Module class: X.Org Video Driver
[   372.018]    ABI class: X.Org Video Driver, version 24.1
[   372.018] (II) AMDGPU: Driver for AMD Radeon:
        All GPUs supported by the amdgpu kernel driver
[   372.018] (--) Using syscons driver with X support (version 2.0)
[   372.018] (--) using VT number 9

[   372.020] (II) AMDGPU(0): [KMS] drm report modesetting isn't supported.
[   372.020] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[   372.020] (EE) Screen 0 deleted because of no matching config section.
[   372.020] (II) UnloadModule: "amdgpu"
[   372.020] (EE) Device(s) detected, but none match those in the config file.
[   372.020] (EE) 
Fatal server error:
[   372.020] (EE) no screens found(EE) 
[   372.020] (EE) 

Panic when running sysctl sys.device.drmn0.pcie_replay_count with amdgpu

There seems to be a panic when running the sysctl device.drmn0.pcie_replay_count with the amdgpu loaded (a Navi10 card).

The dump does not look very helpful:

panic: page fault

GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "amd64-marcel-freebsd"...

Unread portion of the kernel message buffer:


Fatal trap 12: page fault while in kernel mode
cpuid = 23; apic id = 17
fault virtual address   = 0x0
fault code              = supervisor read instruction, page not present
instruction pointer     = 0x20:0x0
stack pointer           = 0x28:0xfffffe00f834e7f8
frame pointer           = 0x28:0xfffffe00f834e810
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = 3330 (sysctl)
trap number             = 12
panic: page fault
cpuid = 23
time = 1595050508
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe00f834e4b0
vpanic() at vpanic+0x182/frame 0xfffffe00f834e500
panic() at panic+0x43/frame 0xfffffe00f834e560
trap_fatal() at trap_fatal+0x387/frame 0xfffffe00f834e5c0
trap_pfault() at trap_pfault+0x4f/frame 0xfffffe00f834e610
trap() at trap+0x271/frame 0xfffffe00f834e720
calltrap() at calltrap+0x8/frame 0xfffffe00f834e720
--- trap 0xc, rip = 0, rsp = 0xfffffe00f834e7f8, rbp = 0xfffffe00f834e810 ---
??() at 0/frame 0xfffffe00f834e810
sysctl_handle_attr() at sysctl_handle_attr+0x70/frame 0xfffffe00f834e860
sysctl_root_handler_locked() at sysctl_root_handler_locked+0x91/frame 0xfffffe00f834e8b0
sysctl_root() at sysctl_root+0x249/frame 0xfffffe00f834e930
userland_sysctl() at userland_sysctl+0x173/frame 0xfffffe00f834e9e0
sys___sysctl() at sys___sysctl+0x5f/frame 0xfffffe00f834ea90
amd64_syscall() at amd64_syscall+0x119/frame 0xfffffe00f834ebb0
fast_syscall_common() at fast_syscall_common+0x101/frame 0xfffffe00f834ebb0
--- syscall (202, FreeBSD ELF64, sys___sysctl), rip = 0x800414caa, rsp = 0x7fffffffc3b8, rbp = 0x7fffffffc3f0 ---
KDB: enter: panic

I put the core.txt up on pastebin if more information is wanted.

Kernel panic while transcoding a video with Plex

Hi,

I upgraded to FreeBSD 13.0-CURRENT r364031 to be able to leverage hardware video transcoding with the integrated Intel chipset on my Celeron G5900 by installing the port drm-devel-kmod.

Whille hardware transcoding has been working fine with various videos, I encountered a kernel crash while a video was being transcoded which occurs all the time on that particular one :

Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address   = 0xdf
fault code              = supervisor read data, page not present
instruction pointer     = 0x20:0xffffffff80bdd2b4
stack pointer           = 0x0:0xfffffe00d2be56d0
frame pointer           = 0x0:0xfffffe00d2be56d0
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = 4611 (Plex Transcoder)
trap number             = 12
panic: page fault
cpuid = 0
time = 1596976796
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe00d2be5390
vpanic() at vpanic+0x182/frame 0xfffffe00d2be53e0
panic() at panic+0x43/frame 0xfffffe00d2be5440
trap_fatal() at trap_fatal+0x387/frame 0xfffffe00d2be54a0
trap_pfault() at trap_pfault+0x4f/frame 0xfffffe00d2be54f0
trap() at trap+0x271/frame 0xfffffe00d2be5600
calltrap() at calltrap+0x8/frame 0xfffffe00d2be5600
--- trap 0xc, rip = 0xffffffff80bdd2b4, rsp = 0xfffffe00d2be56d0, rbp = 0xfffffe00d2be56d0 ---
_rw_wowned() at _rw_wowned+0x4/frame 0xfffffe00d2be56d0
vm_page_busy_acquire() at vm_page_busy_acquire+0x141/frame 0xfffffe00d2be5710
remap_io_mapping() at remap_io_mapping+0x120/frame 0xfffffe00d2be5760
i915_gem_fault() at i915_gem_fault+0x25f/frame 0xfffffe00d2be57d0
linux_cdev_pager_populate() at linux_cdev_pager_populate+0x11b/frame 0xfffffe00d2be5840
vm_fault() at vm_fault+0x3d1/frame 0xfffffe00d2be5950
vm_fault_trap() at vm_fault_trap+0x60/frame 0xfffffe00d2be5990
trap_pfault() at trap_pfault+0x19c/frame 0xfffffe00d2be59e0
trap() at trap+0x3f1/frame 0xfffffe00d2be5af0
calltrap() at calltrap+0x8/frame 0xfffffe00d2be5af0
--- trap 0xc, rip = 0x80296659a, rsp = 0x7fffffffbd38, rbp = 0x80fc00000 ---
KDB: enter: panic

There is nothing of interest in Plex transcoder or server logs (DEBUG level).

No crash dump was generated either in /var/crash. Not sure what other information to include but happy to run/include whatever is required to investigate this further.

Thank you.

Add support for at least one qemu virtual gpu

Description
Could you please add support for at least one of these qemu virtual devices:

  • Virtio-gpu

  • Qxl

  • Bochs

FreeBSD version
13 or higher

Additional context
I have try by myself to support on of those, alas I always have the same result, when I load the kernel module, I obtain a black screen :(

Here are my git branches based on 5.4.x branch if it helps:

drm-kmod crash on i915kms when Xorg is loaded

Describe the bug

When I load i915kms and then gdm, I get a coredump. This happens on the first boot, but not subsequent boots.

Coredump:

I am using Xorg. The system is a HP Spectre x360 13-ap0053dx (WhiskeyLake).

FreeBSD version

FreeBSD spectre.local 14.0-CURRENT FreeBSD 14.0-CURRENT #0 main-n246975-8d5c7813061: Thu May 27 09:39:01 UTC 2021     [email protected]:/usr/obj/usr/src/amd64.amd64/sys/GENERIC  amd64

PCI Info

hostb0@pci0:0:0:0:	class=0x060000 rev=0x0b hdr=0x00 vendor=0x8086 device=0x3e34 subvendor=0x103c subdevice=0x8514
    vendor     = 'Intel Corporation'
    device     = 'Coffee Lake HOST and DRAM Controller'
    class      = bridge
    subclass   = HOST-PCI
vgapci0@pci0:0:2:0:	class=0x030000 rev=0x00 hdr=0x00 vendor=0x8086     device=0x3ea0 subvendor=0x103c subdevice=0x8514
    vendor     = 'Intel Corporation'
    device     = 'WhiskeyLake-U GT2 [UHD Graphics 620]'
    class      = display
    subclass   = VGA
none0@pci0:0:4:0:	class=0x118000 rev=0x0b hdr=0x00 vendor=0x8086 device=0x1903 subvendor=0x103c subdevice=0x8514
    vendor     = 'Intel Corporation'
    device     = 'Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem'
    class      = dasp
pchtherm0@pci0:0:18:0:	class=0x118000 rev=0x30 hdr=0x00 vendor=0x8086 device=0x9df9 subvendor=0x103c subdevice=0x8514
    vendor     = 'Intel Corporation'
    device     = 'Cannon Point-LP Thermal Controller'
    class      = dasp
none1@pci0:0:19:0:	class=0x070000 rev=0x30 hdr=0x00 vendor=0x8086 device=0x9dfc subvendor=0x103c subdevice=0x8514
    vendor     = 'Intel Corporation'
    device     = 'Cannon Point-LP Integrated Sensor Hub'
    class      = simple comms
    subclass   = UART
xhci0@pci0:0:20:0:	class=0x0c0330 rev=0x30 hdr=0x00 vendor=0x8086 device=0x9ded subvendor=0x103c subdevice=0x8514
    vendor     = 'Intel Corporation'
    device     = 'Cannon Point-LP USB 3.1 xHCI Controller'
    class      = serial bus
    subclass   = USB
none2@pci0:0:20:2:	class=0x050000 rev=0x30 hdr=0x00 vendor=0x8086 device=0x9def subvendor=0x103c subdevice=0x8514
    vendor     = 'Intel Corporation'
    device     = 'Cannon Point-LP Shared SRAM'
    class      = memory
    subclass   = RAM
iwm0@pci0:0:20:3:	class=0x028000 rev=0x30 hdr=0x00 vendor=0x8086 device=0x9df0 subvendor=0x8086 subdevice=0x0034
    vendor     = 'Intel Corporation'
    device     = 'Cannon Point-LP CNVi [Wireless-AC]'
    class      = network
ig4iic0@pci0:0:21:0:	class=0x0c8000 rev=0x30 hdr=0x00 vendor=0x8086 device=0x9de8 subvendor=0x103c subdevice=0x8514
    vendor     = 'Intel Corporation'
    device     = 'Cannon Point-LP Serial IO I2C Controller'
    class      = serial bus
ig4iic1@pci0:0:21:1:	class=0x0c8000 rev=0x30 hdr=0x00 vendor=0x8086 device=0x9de9 subvendor=0x103c subdevice=0x8514
    vendor     = 'Intel Corporation'
    device     = 'Cannon Point-LP Serial IO I2C Controller'
    class      = serial bus
none3@pci0:0:22:0:	class=0x078000 rev=0x30 hdr=0x00 vendor=0x8086 device=0x9de0 subvendor=0x103c subdevice=0x8514
    vendor     = 'Intel Corporation'
    device     = 'Cannon Point-LP MEI Controller'
    class      = simple comms
ahci0@pci0:0:23:0:	class=0x010400 rev=0x30 hdr=0x00 vendor=0x8086 device=0x282a subvendor=0x103c subdevice=0x8514
    vendor     = 'Intel Corporation'
    device     = '82801 Mobile SATA Controller [RAID mode]'
    class      = mass storage
    subclass   = RAID
pcib1@pci0:0:28:0:	class=0x060400 rev=0xf0 hdr=0x01 vendor=0x8086 device=0x9dba subvendor=0x103c subdevice=0x8514
    vendor     = 'Intel Corporation'
    class      = bridge
    subclass   = PCI-PCI
pcib2@pci0:0:28:4:	class=0x060400 rev=0xf0 hdr=0x01 vendor=0x8086 device=0x9dbc subvendor=0x103c subdevice=0x8514
    vendor     = 'Intel Corporation'
    device     = 'Cannon Point-LP PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI
pcib8@pci0:0:29:0:	class=0x060400 rev=0xf0 hdr=0x01 vendor=0x8086 device=0x9db4 subvendor=0x103c subdevice=0x8514
    vendor     = 'Intel Corporation'
    device     = 'Cannon Point-LP PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI
pcib9@pci0:0:29:6:	class=0x060400 rev=0xf0 hdr=0x01 vendor=0x8086 device=0x9db6 subvendor=0x103c subdevice=0x8514
    vendor     = 'Intel Corporation'
    device     = 'Cannon Point-LP PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI
isab0@pci0:0:31:0:	class=0x060100 rev=0x30 hdr=0x00 vendor=0x8086 device=0x9d84 subvendor=0x103c subdevice=0x8514
    vendor     = 'Intel Corporation'
    device     = 'Cannon Point-LP LPC Controller'
    class      = bridge
    subclass   = PCI-ISA
hdac0@pci0:0:31:3:	class=0x040100 rev=0x30 hdr=0x00 vendor=0x8086 device=0x9dc8 subvendor=0x103c subdevice=0x8514
    vendor     = 'Intel Corporation'
    device     = 'Cannon Point-LP High Definition Audio Controller'
    class      = multimedia
    subclass   = audio
none4@pci0:0:31:4:	class=0x0c0500 rev=0x30 hdr=0x00 vendor=0x8086 device=0x9da3 subvendor=0x103c subdevice=0x8514
    vendor     = 'Intel Corporation'
    device     = 'Cannon Point-LP SMBus Controller'
    class      = serial bus
    subclass   = SMBus
none5@pci0:0:31:5:	class=0x0c8000 rev=0x30 hdr=0x00 vendor=0x8086 device=0x9da4 subvendor=0x103c subdevice=0x8514
    vendor     = 'Intel Corporation'
    device     = 'Cannon Point-LP SPI Controller'
    class      = serial bus
rtsx0@pci0:1:0:0:	class=0xff0000 rev=0x01 hdr=0x00 vendor=0x10ec device=0x525a subvendor=0x103c subdevice=0x8514
    vendor     = 'Realtek Semiconductor Co., Ltd.'
    device     = 'RTS525A PCI Express Card Reader'
pcib3@pci0:2:0:0:	class=0x060400 rev=0x02 hdr=0x01 vendor=0x8086 device=0x15d3 subvendor=0x103c subdevice=0x8514
    vendor     = 'Intel Corporation'
    device     = 'JHL6540 Thunderbolt 3 Bridge (C step) [Alpine Ridge 4C 2016]'
    class      = bridge
    subclass   = PCI-PCI
pcib4@pci0:3:0:0:	class=0x060400 rev=0x02 hdr=0x01 vendor=0x8086 device=0x15d3 subvendor=0x103c subdevice=0x8514
    vendor     = 'Intel Corporation'
    device     = 'JHL6540 Thunderbolt 3 Bridge (C step) [Alpine Ridge 4C 2016]'
    class      = bridge
    subclass   = PCI-PCI
pcib5@pci0:3:1:0:	class=0x060400 rev=0x02 hdr=0x01 vendor=0x8086 device=0x15d3 subvendor=0x103c subdevice=0x8514
    vendor     = 'Intel Corporation'
    device     = 'JHL6540 Thunderbolt 3 Bridge (C step) [Alpine Ridge 4C 2016]'
    class      = bridge
    subclass   = PCI-PCI
pcib6@pci0:3:2:0:	class=0x060400 rev=0x02 hdr=0x01 vendor=0x8086 device=0x15d3 subvendor=0x103c subdevice=0x8514
    vendor     = 'Intel Corporation'
    device     = 'JHL6540 Thunderbolt 3 Bridge (C step) [Alpine Ridge 4C 2016]'
    class      = bridge
    subclass   = PCI-PCI
pcib7@pci0:3:4:0:	class=0x060400 rev=0x02 hdr=0x01 vendor=0x8086 device=0x15d3 subvendor=0x103c subdevice=0x8514
    vendor     = 'Intel Corporation'
    device     = 'JHL6540 Thunderbolt 3 Bridge (C step) [Alpine Ridge 4C 2016]'
    class      = bridge
    subclass   = PCI-PCI
none6@pci0:4:0:0:	class=0x088000 rev=0x02 hdr=0x00 vendor=0x8086 device=0x15d2 subvendor=0x103c subdevice=0x8514
    vendor     = 'Intel Corporation'
    device     = 'JHL6540 Thunderbolt 3 NHI (C step) [Alpine Ridge 4C 2016]'
    class      = base peripheral
xhci1@pci0:56:0:0:	class=0x0c0330 rev=0x02 hdr=0x00 vendor=0x8086 device=0x15d4 subvendor=0x103c subdevice=0x8514
    vendor     = 'Intel Corporation'
    device     = 'JHL6540 Thunderbolt 3 USB Controller (C step) [Alpine Ridge 4C 2016]'
    class      = serial bus
    subclass   = USB
nvme0@pci0:109:0:0:	class=0x010802 rev=0x03 hdr=0x00 vendor=0x8086 device=0x0975 subvendor=0x8086 subdevice=0x8410
    vendor     = 'Intel Corporation'
    class      = mass storage
    subclass   = NVM
nvme1@pci0:110:0:0:	class=0x010802 rev=0x00 hdr=0x00 vendor=0x8086 device=0x0975 subvendor=0x8086 subdevice=0x8510
    vendor     = 'Intel Corporation'
    class      = mass storage
    subclass   = NVM

DRM KMOD version

5.5-wip branch, but with cherry-picked e5194b8949b316adfcda4895fc117cf1045d9336 and b8a85669f61ffea54860a76f72b8c5c0bb647127 to unbreak the build.

To Reproduce

  1. Checkout 5.5-wip branch.
  2. Cherry pick commits e5194b8949b316adfcda4895fc117cf1045d9336 and b8a85669f61ffea54860a76f72b8c5c0bb647127 from master.
  3. make DEBUG_FLAGS=-g3 and make install the module
  4. kldload i915kms and gdm
  5. On the first boot, it should panic.

Screenshots

N/A.

Additional context

This happens (on my Spectre) on the first boot. Subsequent reboots after the first panic are not affected for me, and I can use gdm, gnome, firefox (WebGL fish), wine (Toontown Rewritten) normally.

@evadot has mentioned there is a crash when running Xorg or Weston, and I believe this is the same issue manifested differently.

How to merge code from Linux

What is the process for merging code from Linux? I mean, which commands are used to merge and cherry pick commits from Linux to drm-kmod?

I'm interested in this mainly because I'm thinking about getting 5.5-wip working with i915kms (to support TigerLake), and am willing to do (at least some of) the dirty work myself. Maybe this will land into a PR.

The next big release should be 5.11

  1. AMD Radeon Graphics Updates For Linux 5.11 Bring New Hardware ( for AMD RX6000 GPU)
  2. Intel Xe Graphics Are Looking Great On Linux 5.11 With Nice Performance Uplift
  3. NVIDIA RTX 30 "Ampere" Support In Linux 5.11 (with kmod)

DRM v5.2+ on FreeBSD 12.1

Hi,

I am runningFreeBSD 12.1-RELEASE-p7 and I have a Intel Celeron G5900 with Intel UHD Graphics 610 (chipset ID 0x9ba8) for which there is no driver from drm-fbsd12.0-kmod port.

vgapci0@pci0:0:2:0:     class=0x030000 card=0x9ba81849 chip=0x9ba88086 rev=0x03 hdr=0x00
    vendor     = 'Intel Corporation'
    class      = display
    subclass   = VGA

I tried to install drm-kmod port but then there is no /dev/drm* or /dev/dri*. I think the reason is that the drm-kmod is based on DRM v4.16 that doesn't have this chipset in i915_pciids.h.

After searching I found out that my chipset is supported from DRM v5.2 onward if I'm not mistaken. I think drm-devel-kmod port would provide a driver for my chipset but I can only build it if I run FreeBSD CURRENT which I'd like to avoid.

Should I still try to install drm-devel-kmod by modifying the Makefile (lift the OSVERSION constraint and maybe modify the GH_TAGNAME to point the the oldest good drm version for my case) ? Or are there too many risks of kernel crashing ?

drm-devel-kmod depends on gpu-firmware-kmod so should I also modify the port to use a more recent tag ? Last commit for i915 firmware seems to be 11 months ago so maybe I don't need to update the gpu-firmware-kmod port.

Thanks for the help.

Finally Fixing The AMD EFIFB Conflict

This years old issue FreeBSDDesktop/DEPRECATED-freebsd-base-graphics#170 that required hw.syscons.disable on some systems. I know the answer now.

So, amdgpu actually kicks the system (EFI) framebuffer driver out very early on, to prevent it from messing with VRAM (BAR 0). There's this remove_conflicting_pci_framebuffers function it uses to accomplish that. We have a very complete implementation of this stuff that supports all the registration and unregistration of Linux framebuffer driversโ€ฆ

See where this is going, right?

.

.

It only works with LinuxKPI fb drivers. It cannot kill our native efifb!

So what's happening is, our efifb keeps happily writing to VRAM way after amdgpu expects it to stop, and if the framebuffer is large enough (e.g. 2560x1440 which is GOP mode 0 for me) it would directly overwrite stuff like the firmware the driver is loading into the card. *facepalm*


My current prototype solution is: adding a dummy vt driver where all methods are no-ops (upd: can do that right in drm), adding a force flag to vt_allocate to avoid priority stuff, and doing the vt_allocate(&vt_dummy_driver, NULL) thing in __remove_conflicting.

If anyone has suggestions on less invasive / stupid ways to accomplish this, you're welcome. I have looked into replacing the driver with NULL (as if we booted with syscons.disable and none matched, right?) but the system freezes in that case.

amdgpu navi10, panic on 13-STABLE or 14-CURRENT

Describe the bug

I'm using a laptop, connected to a Thunderbolt 3 enclosure, with an AMD navi10 GPU. Laptop contains an Intel IGP (Kaby Lake), but as I use it in clamshell while connected to TB enclosure, I only kldload amdgpu, framebuffer swap to the external monitor (connected via DP directly to the navi10 card) leaving integrated panel orphan. So far so good ! :)

Issue raise a few seconds to minutes after loading the driver:

  • If I just use my terminal as usual, let's say launching a "make install clean" in the ports tree, screen will goes blank at some point (randomly within a two minutes) preventing me to see anything of the panic output, it will reboot accordingly to sysctl parameters triggered in case of panic.
  • If I launch a "high throughput command" like "sysctl -a", panic is instant (see attached pictures), followed by a few seconds from panic to screen going also blank (for what it's worth signal is still sent to monitor as DPMS is not triggered)

I'm posting with information from -CURRENT but had the same with 13-RC* or -STABLE.

FreeBSD version

FreeBSD gorthaur.int.7c5.fr 14.0-CURRENT FreeBSD 14.0-CURRENT #0: Mon Apr 12 03:37:29 CEST 2021 [email protected]:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG amd64

PCI Info

pciconf -lv

root@gorthaur:/home/zarock # pciconf -lv
hostb0@pci0:0:0:0: class=0x060000 rev=0x0c hdr=0x00 vendor=0x8086 device=0x3e34 subvendor=0x17aa subdevice=0x2286
vendor = 'Intel Corporation'
device = 'Coffee Lake HOST and DRAM Controller'
class = bridge
subclass = HOST-PCI
vgapci0@pci0:0:2:0: class=0x030000 rev=0x02 hdr=0x00 vendor=0x8086 device=0x3ea0 subvendor=0x17aa subdevice=0x2286
vendor = 'Intel Corporation'
device = 'WhiskeyLake-U GT2 [UHD Graphics 620]'
class = display
subclass = VGA
none0@pci0:0:4:0: class=0x118000 rev=0x0c hdr=0x00 vendor=0x8086 device=0x1903 subvendor=0x17aa subdevice=0x2286
vendor = 'Intel Corporation'
device = 'Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem'
class = dasp
none1@pci0:0:8:0: class=0x088000 rev=0x00 hdr=0x00 vendor=0x8086 device=0x1911 subvendor=0x17aa subdevice=0x2286
vendor = 'Intel Corporation'
device = 'Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model'
class = base peripheral
pchtherm0@pci0:0:18:0: class=0x118000 rev=0x30 hdr=0x00 vendor=0x8086 device=0x9df9 subvendor=0x17aa subdevice=0x2286
vendor = 'Intel Corporation'
device = 'Cannon Point-LP Thermal Controller'
class = dasp
xhci0@pci0:0:20:0: class=0x0c0330 rev=0x30 hdr=0x00 vendor=0x8086 device=0x9ded subvendor=0x17aa subdevice=0x2286
vendor = 'Intel Corporation'
device = 'Cannon Point-LP USB 3.1 xHCI Controller'
class = serial bus
subclass = USB
none2@pci0:0:20:2: class=0x050000 rev=0x30 hdr=0x00 vendor=0x8086 device=0x9def subvendor=0x17aa subdevice=0x2286
vendor = 'Intel Corporation'
device = 'Cannon Point-LP Shared SRAM'
class = memory
subclass = RAM
iwm0@pci0:0:20:3: class=0x028000 rev=0x30 hdr=0x00 vendor=0x8086 device=0x9df0 subvendor=0x8086 subdevice=0x0034
vendor = 'Intel Corporation'
device = 'Cannon Point-LP CNVi [Wireless-AC]'
class = network
none3@pci0:0:22:0: class=0x078000 rev=0x30 hdr=0x00 vendor=0x8086 device=0x9de0 subvendor=0x17aa subdevice=0x2286
vendor = 'Intel Corporation'
device = 'Cannon Point-LP MEI Controller'
class = simple comms
pcib1@pci0:0:28:0: class=0x060400 rev=0xf0 hdr=0x01 vendor=0x8086 device=0x9db8 subvendor=0x0000 subdevice=0x0000
vendor = 'Intel Corporation'
device = 'Cannon Point-LP PCI Express Root Port'
class = bridge
subclass = PCI-PCI
pcib2@pci0:0:28:4: class=0x060400 rev=0xf0 hdr=0x01 vendor=0x8086 device=0x9dbc subvendor=0x17aa subdevice=0x2286
vendor = 'Intel Corporation'
device = 'Cannon Point-LP PCI Express Root Port'
class = bridge
subclass = PCI-PCI
pcib17@pci0:0:29:0: class=0x060400 rev=0xf0 hdr=0x01 vendor=0x8086 device=0x9db0 subvendor=0x17aa subdevice=0x2286
vendor = 'Intel Corporation'
device = 'Cannon Point-LP PCI Express Root Port'
class = bridge
subclass = PCI-PCI
pcib18@pci0:0:29:4: class=0x060400 rev=0xf0 hdr=0x01 vendor=0x8086 device=0x9db4 subvendor=0x17aa subdevice=0x2286
vendor = 'Intel Corporation'
device = 'Cannon Point-LP PCI Express Root Port'
class = bridge
subclass = PCI-PCI
isab0@pci0:0:31:0: class=0x060100 rev=0x30 hdr=0x00 vendor=0x8086 device=0x9d84 subvendor=0x17aa subdevice=0x2286
vendor = 'Intel Corporation'
device = 'Cannon Point-LP LPC Controller'
class = bridge
subclass = PCI-ISA
hdac1@pci0:0:31:3: class=0x040380 rev=0x30 hdr=0x00 vendor=0x8086 device=0x9dc8 subvendor=0x17aa subdevice=0x2286
vendor = 'Intel Corporation'
device = 'Cannon Point-LP High Definition Audio Controller'
class = multimedia
subclass = HDA
none4@pci0:0:31:4: class=0x0c0500 rev=0x30 hdr=0x00 vendor=0x8086 device=0x9da3 subvendor=0x17aa subdevice=0x2286
vendor = 'Intel Corporation'
device = 'Cannon Point-LP SMBus Controller'
class = serial bus
subclass = SMBus
none5@pci0:0:31:5: class=0x0c8000 rev=0x30 hdr=0x00 vendor=0x8086 device=0x9da4 subvendor=0x17aa subdevice=0x2286
vendor = 'Intel Corporation'
device = 'Cannon Point-LP SPI Controller'
class = serial bus
em0@pci0:0:31:6: class=0x020000 rev=0x30 hdr=0x00 vendor=0x8086 device=0x15be subvendor=0x17aa subdevice=0x2286
vendor = 'Intel Corporation'
device = 'Ethernet Connection (6) I219-V'
class = network
subclass = ethernet
pcib3@pci0:2:0:0: class=0x060400 rev=0x01 hdr=0x01 vendor=0x8086 device=0x15c0 subvendor=0x17aa subdevice=0x2286
vendor = 'Intel Corporation'
device = 'JHL6240 Thunderbolt 3 Bridge (Low Power) [Alpine Ridge LP 2016]'
class = bridge
subclass = PCI-PCI
pcib4@pci0:3:0:0: class=0x060400 rev=0x01 hdr=0x01 vendor=0x8086 device=0x15c0 subvendor=0x17aa subdevice=0x2286
vendor = 'Intel Corporation'
device = 'JHL6240 Thunderbolt 3 Bridge (Low Power) [Alpine Ridge LP 2016]'
class = bridge
subclass = PCI-PCI
pcib5@pci0:3:1:0: class=0x060400 rev=0x01 hdr=0x01 vendor=0x8086 device=0x15c0 subvendor=0x17aa subdevice=0x2286
vendor = 'Intel Corporation'
device = 'JHL6240 Thunderbolt 3 Bridge (Low Power) [Alpine Ridge LP 2016]'
class = bridge
subclass = PCI-PCI
pcib16@pci0:3:2:0: class=0x060400 rev=0x01 hdr=0x01 vendor=0x8086 device=0x15c0 subvendor=0x17aa subdevice=0x2286
vendor = 'Intel Corporation'
device = 'JHL6240 Thunderbolt 3 Bridge (Low Power) [Alpine Ridge LP 2016]'
class = bridge
subclass = PCI-PCI
none6@pci0:4:0:0: class=0x088000 rev=0x01 hdr=0x00 vendor=0x8086 device=0x15bf subvendor=0x17aa subdevice=0x2286
vendor = 'Intel Corporation'
device = 'JHL6240 Thunderbolt 3 NHI (Low Power) [Alpine Ridge LP 2016]'
class = base peripheral
pcib6@pci0:5:0:0: class=0x060400 rev=0x02 hdr=0x01 vendor=0x8086 device=0x15d3 subvendor=0x1ab6 subdevice=0x0011
vendor = 'Intel Corporation'
device = 'JHL6540 Thunderbolt 3 Bridge (C step) [Alpine Ridge 4C 2016]'
class = bridge
subclass = PCI-PCI
pcib7@pci0:6:0:0: class=0x060400 rev=0x02 hdr=0x01 vendor=0x8086 device=0x15d3 subvendor=0x1ab6 subdevice=0x0011
vendor = 'Intel Corporation'
device = 'JHL6540 Thunderbolt 3 Bridge (C step) [Alpine Ridge 4C 2016]'
class = bridge
subclass = PCI-PCI
pcib8@pci0:6:1:0: class=0x060400 rev=0x02 hdr=0x01 vendor=0x8086 device=0x15d3 subvendor=0x1ab6 subdevice=0x0011
vendor = 'Intel Corporation'
device = 'JHL6540 Thunderbolt 3 Bridge (C step) [Alpine Ridge 4C 2016]'
class = bridge
subclass = PCI-PCI
pcib9@pci0:6:2:0: class=0x060400 rev=0x02 hdr=0x01 vendor=0x8086 device=0x15d3 subvendor=0x1ab6 subdevice=0x0011
vendor = 'Intel Corporation'
device = 'JHL6540 Thunderbolt 3 Bridge (C step) [Alpine Ridge 4C 2016]'
class = bridge
subclass = PCI-PCI
pcib10@pci0:6:3:0: class=0x060400 rev=0x02 hdr=0x01 vendor=0x8086 device=0x15d3 subvendor=0x1ab6 subdevice=0x0011
vendor = 'Intel Corporation'
device = 'JHL6540 Thunderbolt 3 Bridge (C step) [Alpine Ridge 4C 2016]'
class = bridge
subclass = PCI-PCI
pcib11@pci0:6:4:0: class=0x060400 rev=0x02 hdr=0x01 vendor=0x8086 device=0x15d3 subvendor=0x1ab6 subdevice=0x0011
vendor = 'Intel Corporation'
device = 'JHL6540 Thunderbolt 3 Bridge (C step) [Alpine Ridge 4C 2016]'
class = bridge
subclass = PCI-PCI
xhci1@pci0:7:0:0: class=0x0c0330 rev=0x10 hdr=0x00 vendor=0x1b73 device=0x1100 subvendor=0x1ab6 subdevice=0x1106
vendor = 'Fresco Logic'
device = 'FL1100 USB 3.0 Host Controller'
class = serial bus
subclass = USB
xhci2@pci0:8:0:0: class=0x0c0330 rev=0x10 hdr=0x00 vendor=0x1b73 device=0x1100 subvendor=0x1ab6 subdevice=0x1105
vendor = 'Fresco Logic'
device = 'FL1100 USB 3.0 Host Controller'
class = serial bus
subclass = USB
xhci3@pci0:9:0:0: class=0x0c0330 rev=0x00 hdr=0x00 vendor=0x1b21 device=0x1242 subvendor=0x1ab6 subdevice=0x1143
vendor = 'ASMedia Technology Inc.'
device = 'ASM1142 USB 3.1 Host Controller'
class = serial bus
subclass = USB
igb0@pci0:10:0:0: class=0x020000 rev=0x03 hdr=0x00 vendor=0x8086 device=0x1533 subvendor=0x1ab6 subdevice=0x0214
vendor = 'Intel Corporation'
device = 'I210 Gigabit Network Connection'
class = network
subclass = ethernet
pcib12@pci0:11:0:0: class=0x060400 rev=0x02 hdr=0x01 vendor=0x8086 device=0x15da subvendor=0x1a58 subdevice=0x0001
vendor = 'Intel Corporation'
device = 'JHL6340 Thunderbolt 3 Bridge (C step) [Alpine Ridge 2C 2016]'
class = bridge
subclass = PCI-PCI
pcib13@pci0:12:1:0: class=0x060400 rev=0x02 hdr=0x01 vendor=0x8086 device=0x15da subvendor=0x1a58 subdevice=0x0001
vendor = 'Intel Corporation'
device = 'JHL6340 Thunderbolt 3 Bridge (C step) [Alpine Ridge 2C 2016]'
class = bridge
subclass = PCI-PCI
pcib14@pci0:13:0:0: class=0x060400 rev=0xc1 hdr=0x01 vendor=0x1002 device=0x1478 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'Navi 10 XL Upstream Port of PCI Express Switch'
class = bridge
subclass = PCI-PCI
pcib15@pci0:14:0:0: class=0x060400 rev=0x00 hdr=0x01 vendor=0x1002 device=0x1479 subvendor=0x1002 subdevice=0x1479
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'Navi 10 XL Downstream Port of PCI Express Switch'
class = bridge
subclass = PCI-PCI
vgapci1@pci0:15:0:0: class=0x030000 rev=0xc1 hdr=0x00 vendor=0x1002 device=0x731f subvendor=0x1043 subdevice=0x04e2
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT]'
class = display
subclass = VGA
hdac0@pci0:15:0:1: class=0x040300 rev=0x00 hdr=0x00 vendor=0x1002 device=0xab38 subvendor=0x1002 subdevice=0xab38
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'Navi 10 HDMI Audio'
class = multimedia
subclass = HDA
xhci4@pci0:58:0:0: class=0x0c0330 rev=0x01 hdr=0x00 vendor=0x8086 device=0x15c1 subvendor=0x17aa subdevice=0x2286
vendor = 'Intel Corporation'
device = 'JHL6240 Thunderbolt 3 USB 3.1 Controller (Low Power) [Alpine Ridge LP 2016]'
class = serial bus
subclass = USB
nvme0@pci0:61:0:0: class=0x010802 rev=0x00 hdr=0x00 vendor=0x15b7 device=0x5006 subvendor=0x15b7 subdevice=0x5006
vendor = 'Sandisk Corp'
device = 'WD Black SN750 / PC SN730 NVMe SSD'
class = mass storage
subclass = NVM

DRM KMOD version
drm-current-kmod 5.4.92.g20210128_2
drm-kmod g20190710_1

To Reproduce
kldload amdgpu and wait a few seconds

Screenshots
panic

Additional context

  • I'm not sure if "lag" implied by Thunderbolt 3 link can create this kind of problem, wondering because of different behaviours between high throughput and quiet command, still, in the end, panic will happens. I tried to play with pci lane cap sysctl for examples, but no change at all :) I'm handling this setup on the same laptop on Windows 10 (20H2) or Linux (5.4; 5.11)

  • drm-kmod is built from ports (head)

  • tried hw.syscons.disable=1 in loader.conf and auto-load from kld_list in rc.conf, same result, bellow crash summary.

crash summary from this method as provider in /var/crash gorthaur.int.7c5.fr dumped core - see /var/crash/vmcore.1

Mon Apr 12 20:44:16 CEST 2021

FreeBSD gorthaur.int.7c5.fr 14.0-CURRENT FreeBSD 14.0-CURRENT #0: Mon Apr 12 03:37:29 CEST 2021 [email protected]:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG amd64

panic: page fault

GNU gdb (GDB) 10.1 [GDB v10.1 for FreeBSD]
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-portbld-freebsd14.0".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
https://www.gnu.org/software/gdb/bugs/.
Find the GDB manual and other documentation resources online at:
http://www.gnu.org/software/gdb/documentation/.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /boot/kernel/kernel...
Reading symbols from /usr/lib/debug//boot/kernel/kernel.debug...

Unread portion of the kernel message buffer:

Fatal trap 12: page fault while in kernel mode
cpuid = 5; apic id = 05
fault virtual address = 0x0
fault code = supervisor read instruction, page not present
instruction pointer = 0x20:0x0
stack pointer = 0x28:0xfffffe011e292728
frame pointer = 0x28:0xfffffe011e292740
code segment = base 0x0, limit 0xfffff, type 0x1b
= DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags = interrupt enabled, resume, IOPL = 0
current process = 82450 (sysctl)
trap number = 12
panic: page fault
cpuid = 5
time = 1618252871
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe011e2923d0
vpanic() at vpanic+0x181/frame 0xfffffe011e292420
panic() at panic+0x43/frame 0xfffffe011e292480
trap_fatal() at trap_fatal+0x387/frame 0xfffffe011e2924e0
trap_pfault() at trap_pfault+0x4f/frame 0xfffffe011e292540
trap() at trap+0x27d/frame 0xfffffe011e292650
calltrap() at calltrap+0x8/frame 0xfffffe011e292650
--- trap 0xc, rip = 0, rsp = 0xfffffe011e292728, rbp = 0xfffffe011e292740 ---
??() at 0/frame 0xfffffe011e292740
sysctl_handle_attr() at sysctl_handle_attr+0x70/frame 0xfffffe011e292790
sysctl_root_handler_locked() at sysctl_root_handler_locked+0x91/frame 0xfffffe011e2927e0
sysctl_root() at sysctl_root+0x2d0/frame 0xfffffe011e292860
userland_sysctl() at userland_sysctl+0x173/frame 0xfffffe011e292910
sys___sysctl() at sys___sysctl+0x5f/frame 0xfffffe011e2929c0
amd64_syscall() at amd64_syscall+0x10c/frame 0xfffffe011e292af0
fast_syscall_common() at fast_syscall_common+0xf8/frame 0xfffffe011e292af0
--- syscall (202, FreeBSD ELF64, sys___sysctl), rip = 0x3958c1e475ba, rsp = 0x7fffff6a0798, rbp = 0x7fffff6a07d0 ---
KDB: enter: panic

__curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:55
55 __asm("movq %%gs:%P1,%0" : "=r" (td) : "n" (offsetof(struct pcpu,
(kgdb) #0 __curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:55
#1 doadump (textdump=textdump@entry=0)
at /usr/src/sys/kern/kern_shutdown.c:399
#2 0xffffffff804c8fea in db_dump (dummy=,
dummy2=, dummy3=, dummy4=)
at /usr/src/sys/ddb/db_command.c:575
#3 0xffffffff804c8dae in db_command (last_cmdp=,
cmd_table=, dopager=dopager@entry=1)
at /usr/src/sys/ddb/db_command.c:482
#4 0xffffffff804c8aed in db_command_loop ()
at /usr/src/sys/ddb/db_command.c:535
#5 0xffffffff804cc266 in db_trap (type=, code=)
at /usr/src/sys/ddb/db_main.c:270
#6 0xffffffff80c7536b in kdb_trap (type=type@entry=3, code=code@entry=0,
tf=, tf@entry=0xfffffe011e292300)
at /usr/src/sys/kern/subr_kdb.c:727
#7 0xffffffff810c3e9b in trap (frame=0xfffffe011e292300)
at /usr/src/sys/amd64/amd64/trap.c:576
#8
#9 kdb_enter (why=0xffffffff812830ba "panic", msg=)
at /usr/src/sys/kern/subr_kdb.c:506
#10 0xffffffff80c252a2 in vpanic (fmt=, ap=,
ap@entry=0xfffffe011e292460) at /usr/src/sys/kern/kern_shutdown.c:907
#11 0xffffffff80c250e3 in panic (
fmt=0xffffffff818e7b08 <vt_conswindow+16> "\020<*\201\377\377\377\377")
at /usr/src/sys/kern/kern_shutdown.c:843
#12 0xffffffff810c4317 in trap_fatal (frame=0xfffffe011e292660, eva=0)
at /usr/src/sys/amd64/amd64/trap.c:915
#13 0xffffffff810c436f in trap_pfault (frame=frame@entry=0xfffffe011e292660,
usermode=false, signo=, signo@entry=0x0,
ucode=, ucode@entry=0x0)
at /usr/src/sys/amd64/amd64/trap.c:732
#14 0xffffffff810c39cd in trap (frame=0xfffffe011e292660)
at /usr/src/sys/amd64/amd64/trap.c:398
#15
#16 0x0000000000000000 in ?? ()
#17 0xffffffff83214f1e in amdgpu_device_get_pcie_replay_count ()
from /boot/modules/amdgpu.ko
#18 0xffffffff83214e50 in sysctl_handle_attr () from /boot/modules/amdgpu.ko
#19 0xffffffff80c357c1 in sysctl_root_handler_locked (oid=0xfffffe01235b0000,
oid@entry=0xfffff80017defe80, arg1=0xfffffe011e292880,
arg1@entry=0xfffff80017d28950, arg2=-8795693348528,
req=0xfffffe011e292880, tracker=0xfffff80017defe80,
tracker@entry=0xfffffe011e2927f0) at /usr/src/sys/kern/kern_sysctl.c:184
#20 0xffffffff80c34bb0 in sysctl_root (oidp=,
arg1=0xfffff80017d28950, arg1@entry=0xfffffe011e292940,
arg2=-2194135121920, arg2@entry=4, req=req@entry=0xfffffe011e292880)
at /usr/src/sys/kern/kern_sysctl.c:2252
#21 0xffffffff80c35283 in userland_sysctl (td=td@entry=0xfffffe011fa35c00,
name=name@entry=0xfffffe011e292940, namelen=4, old=,
oldlenp=, inkernel=, inkernel@entry=0,
new=0x0, newlen=0, retval=0xfffffe011e2929a8, flags=0)
at /usr/src/sys/kern/kern_sysctl.c:2409
#22 0xffffffff80c350cf in sys___sysctl (td=0xfffffe011fa35c00,
uap=0xfffffe011fa35fe8) at /usr/src/sys/kern/kern_sysctl.c:2282
#23 0xffffffff810c4c1c in syscallenter (td=0xfffffe011fa35c00)
at /usr/src/sys/amd64/amd64/../../kern/subr_syscall.c:189
#24 amd64_syscall (td=0xfffffe011fa35c00, traced=0)
at /usr/src/sys/amd64/amd64/trap.c:1156
#25
#26 0x00003958c1e475ba in ?? ()
Backtrace stopped: Cannot access memory at address 0x7fffff6a0798
(kgdb)


ps -axlww

UID PID PPID C PRI NI VSZ RSS MWCHAN STAT TT TIME COMMAND
0 0 0 7 -16 0 0 0 swapin DLs - 0:00.42 [kernel]
0 1 0 7 52 0 11852 1192 wait DLs - 0:00.07 [init]
0 2 0 1 -16 0 0 0 - DL - 0:00.00 [KTLS]
0 3 0 6 -16 0 0 0 crypto_w DL - 0:00.00 [crypto]
0 4 0 6 -16 0 0 0 crypto_r DL - 0:00.00 [crypto returns 0]
0 5 0 1 -16 0 0 0 crypto_r DL - 0:00.00 [crypto returns 1]
0 6 0 5 -16 0 0 0 crypto_r DL - 0:00.00 [crypto returns 2]
0 7 0 7 -16 0 0 0 crypto_r DL - 0:00.00 [crypto returns 3]
0 8 0 1 -16 0 0 0 crypto_r DL - 0:00.00 [crypto returns 4]
0 9 0 7 -16 0 0 0 crypto_r DL - 0:00.00 [crypto returns 5]
0 10 0 5 -16 0 0 0 audit_wo DL - 0:00.00 [audit]
0 11 0 0 155 0 0 0 - RL - 4:30.79 [idle]
0 12 0 2 -52 0 0 0 - WL - 0:04.52 [intr]
0 13 0 2 -8 0 0 0 - DL - 0:00.00 [geom]
0 14 0 7 -16 0 0 0 crypto_r DL - 0:00.00 [crypto returns 6]
0 15 0 4 -16 0 0 0 crypto_r DL - 0:00.00 [crypto returns 7]
0 16 0 6 -16 0 0 0 seqstate DL - 0:00.00 [sequencer 00]
0 17 0 5 -16 0 0 0 - DL - 0:00.00 [cam]
0 18 0 1 -68 0 0 0 - DL - 0:00.45 [usb]
0 19 0 1 -16 0 0 0 - DL - 0:00.00 [soaiod1]
0 20 0 0 -16 0 0 0 - DL - 0:00.00 [soaiod2]
0 21 0 6 -16 0 0 0 - DL - 0:00.00 [soaiod3]
0 22 0 1 -16 0 0 0 - DL - 0:00.00 [soaiod4]
0 23 0 1 -8 0 0 0 t->zthr_ DL - 0:00.18 [zfskern]
0 24 0 6 -16 0 0 0 tzpoll DL - 0:00.00 [acpi_thermal]
0 25 0 2 -16 0 0 0 - DL - 0:00.02 [rand_harvestq]
0 26 0 0 20 0 0 0 geli:w DL - 0:00.02 [g_eli[0] nvd0p3]
0 27 0 1 20 0 0 0 geli:w DL - 0:00.02 [g_eli[1] nvd0p3]
0 28 0 2 20 0 0 0 geli:w DL - 0:00.02 [g_eli[2] nvd0p3]
0 29 0 3 20 0 0 0 geli:w DL - 0:00.02 [g_eli[3] nvd0p3]
0 30 0 4 20 0 0 0 geli:w DL - 0:00.02 [g_eli[4] nvd0p3]
0 31 0 5 25 0 0 0 geli:w DL - 0:00.02 [g_eli[5] nvd0p3]
0 32 0 6 20 0 0 0 geli:w DL - 0:00.02 [g_eli[6] nvd0p3]
0 33 0 7 20 0 0 0 geli:w DL - 0:00.02 [g_eli[7] nvd0p3]
0 34 0 3 -16 0 0 0 psleep DL - 0:00.01 [pagedaemon]
0 35 0 3 -16 0 0 0 psleep DL - 0:00.00 [vmdaemon]
0 36 0 0 -16 0 0 0 qsleep DL - 0:00.01 [bufdaemon]
0 37 0 3 -16 0 0 0 vlruwt DL - 0:00.00 [vnlru]
0 38 0 7 16 0 0 0 syncer DL - 0:00.00 [syncer]
0 4121 1 3 20 0 24460 7368 select Ds - 0:00.01 [wpa_supplicant]
0 5312 1 1 52 0 14536 2840 select Ds - 0:00.00 [dhclient]
0 6506 1 0 4 0 14536 2908 select Ds - 0:00.00 [dhclient]
65 7048 1 5 52 0 14540 3028 select DCs - 0:00.00 [dhclient]
0 24876 1 1 20 0 27308 2928 select Ds - 0:00.01 [syslogd]
0 35134 1 2 52 0 17016 2376 piperd Ds - 0:00.00 [daemon]
0 35365 35134 6 52 0 13612 2356 select D - 0:00.00 [seatd]
0 40996 1 0 52 0 13928 2544 select Ds - 0:00.00 [moused]
556 44872 1 6 52 0 19736 3588 select Ds - 0:00.00 [dbus-daemon]
0 45273 1 0 52 0 17384 2548 select Ds - 0:00.00 [moused]
0 45347 1 7 20 0 25332 2380 select Ds - 0:00.01 [powerd]
0 47577 1 4 52 0 18664 2548 select Ds - 0:00.00 [moused]
0 51142 1 4 44 0 72944 7648 kqread Ds - 0:00.00 [cupsd]
0 52745 0 0 20 0 0 0 geli:w DL - 0:00.00 [g_eli[0] nvd0p2]
0 52797 0 1 20 0 0 0 geli:w DL - 0:00.00 [g_eli[1] nvd0p2]
0 53215 0 2 20 0 0 0 geli:w DL - 0:00.00 [g_eli[2] nvd0p2]
0 53247 0 3 20 0 0 0 geli:w DL - 0:00.00 [g_eli[3] nvd0p2]
0 53397 0 4 20 0 0 0 geli:w DL - 0:00.00 [g_eli[4] nvd0p2]
0 53421 0 5 20 0 0 0 geli:w DL - 0:00.00 [g_eli[5] nvd0p2]
0 53606 0 6 20 0 0 0 geli:w DL - 0:00.00 [g_eli[6] nvd0p2]
0 53813 0 7 20 0 0 0 geli:w DL - 0:00.00 [g_eli[7] nvd0p2]
0 57056 1 0 29 0 19284 2716 nanslp Ds - 0:00.00 [cron]
0 57537 1 4 23 0 30640 7264 select Ds - 0:00.01 [sendmail]
25 58256 1 4 52 0 27056 6716 pause Ds - 0:00.01 [sendmail]
0 63021 1 2 52 0 27964 8648 select Ds - 0:00.00 [sshd]
0 64474 1 1 52 0 13700 2904 wait D - 0:00.00 [sh]
0 64687 1 4 52 0 25392 2628 piperd DC - 0:00.03 [logger]
0 64690 64474 4 52 0 22924 2252 nanslp DC - 0:00.00 [sleep]
0 65329 1 2 -44 0 23428 8620 cuse-ser Ds - 0:00.02 [webcamd]
0 65995 1 7 52 0 25392 2504 select Ds - 0:00.00 [logger]
0 68550 1 5 22 0 16092 3372 wait Ds - 0:00.02 [login]
0 69072 1 4 52 0 22028 2428 ttyin Ds+ - 0:00.00 [getty]
0 69568 1 7 52 0 16652 2432 ttyin Ds+ - 0:00.00 [getty]
0 69897 1 6 52 0 19724 2424 ttyin Ds+ - 0:00.00 [getty]
0 70316 1 5 52 0 22284 2420 ttyin Ds+ - 0:00.00 [getty]
0 70809 1 1 52 0 16140 2424 ttyin Ds+ - 0:00.00 [getty]
0 71034 1 3 52 0 13068 2424 ttyin Ds+ - 0:00.00 [getty]
0 71545 1 2 52 0 22796 2428 ttyin Ds+ - 0:00.00 [getty]
0 81013 0 2 -16 0 0 0 sleep DL - 0:00.00 [ng_queue]
0 81191 68550 0 22 0 29184 4412 pause D - 0:00.04 [csh]
0 82450 81191 5 35 0 24988 4112 - R+ - 0:00.01 [sysctl]
0 86521 1 2 22 0 21244 1608 select Ds - 0:00.00 [devd]
702 93465 1 3 52 -20 21820 2528 select D<s - 0:00.00 [sndiod]
0 97686 1 1 52 0 22600 2788 select Ds - 0:00.00 [dhclient]
0 98529 1 0 4 0 22600 2908 select Ds - 0:00.00 [dhclient]
65 98723 1 0 52 0 22604 3032 select DCs - 0:00.00 [dhclient]


vmstat -s

172207 cpu context switches
25450 device interrupts
1016 software interrupts
286212 traps
477640 system calls
47 kernel threads created
1567 fork() calls
378 vfork() calls
58 rfork() calls
0 swap pager pageins
0 swap pager pages paged in
0 swap pager pageouts
0 swap pager pages paged out
1168 vnode pager pageins
7874 vnode pager pages paged in
0 vnode pager pageouts
0 vnode pager pages paged out
0 page daemon wakeups
0 pages examined by the page daemon
0 clean page reclamation shortfalls
0 pages reactivated by the page daemon
76094 copy-on-write faults
18 copy-on-write optimized faults
173467 zero fill pages zeroed
0 zero fill pages prezeroed
120 intransit blocking page faults
306820 total VM faults taken
1009 page faults requiring I/O
0 pages affected by kernel thread creation
2268948 pages affected by fork()
331281 pages affected by vfork()
132006 pages affected by rfork()
478233 pages freed
0 pages freed by daemon
0 pages freed by exiting processes
0 pages active
0 pages inactive
0 pages in the laundry queue
0 pages wired down
0 virtual user pages wired down
0 pages free
0 bytes per page
0 total name lookups
cache hits (0% pos + 0% neg) system 0% per-directory
deletions 0%, falsehits 0%, toolong 0%


vmstat -m

vmstat: memstat_kvm_malloc:
Type InUse MemUse Requests Size(s)


vmstat -z

ITEM SIZE LIMIT USED FREE REQ FAILSLEEP XDOMAIN
UMA Kegs: 384, 0, 174, 0, 174, 0, 0, 0
UMA Zones: 1536, 0, 205, 0, 205, 0, 0, 0
UMA Slabs 0: 80, 0, 17616, 0, 17616, 0, 0, 0
UMA Slabs 1: 112, 0, 8, 0, 8, 0, 0, 0
UMA Hash: 256, 0, 0, 0, 0, 0, 0, 0
2 Bucket: 32, 0, 370, 764, 4648, 0, 0, 0
4 Bucket: 48, 0, 121, 551, 8672, 0, 0, 0
8 Bucket: 80, 0, 116, 284, 1478, 9, 0, 0
16 Bucket: 144, 0, 68, 212, 6253, 7, 0, 0
32 Bucket: 256, 0, 192, 183, 1509, 3, 0, 0
64 Bucket: 512, 0, 111, 25, 2025, 60, 0, 0
128 Bucket: 1024, 0, 138, 89, 2105,10295, 0, 0
256 Bucket: 2048, 0, 224, 4, 6993, 44, 0, 0
SMR SHARED: 24, 0, 2, 61, 2, 0, 0, 0
SMR CPU: 32, 0, 2, 61, 2, 0, 0, 0
vmem: 1856, 0, 1, 1, 1, 0, 0, 0
vmem btag: 56, 0, 15041, 347, 15041, 421, 0, 0
VM OBJECT: 264, 0, 1771, 194, 42401, 0, 0, 0
RADIX NODE: 144, 0, 6428, 540, 86704, 0, 0, 0
KMAP ENTRY: 96, 0, 108, 0, 128, 0, 0, 0
MAP ENTRY: 96, 0, 1574, 1072, 125050, 0, 0, 0
VMSPACE: 2544, 0, 38, 46, 2005, 0, 0, 0
fakepg: 104, 0, 0, 0, 0, 0, 0, 0
pcpu-4: 4, 0, 0, 0, 0, 0, 0, 0
pcpu-8: 8, 0, 3352, 1252, 3364, 0, 0, 0
pcpu-16: 16, 0, 28, 994, 28, 0, 0, 0
pcpu-32: 32, 0, 0, 0, 0, 0, 0, 0
pcpu-64: 64, 0, 476, 292, 476, 0, 0, 0
malloc-16: 16, 0, 17608, 1040, 335025, 0, 0, 0
malloc-32: 32, 0, 10589, 625, 59174, 0, 0, 0
malloc-64: 64, 0, 27773, 2404, 140829, 0, 0, 0
malloc-128: 128, 0, 31983, 722, 414136, 0, 0, 0
malloc-256: 256, 0, 2949, 96, 14001, 0, 0, 0
malloc-384: 384, 0, 1921, 79, 58993, 0, 0, 0
malloc-512: 512, 0, 190, 266, 2537, 0, 0, 0
malloc-1024: 1024, 0, 2331, 77, 14092, 0, 0, 0
malloc-2048: 2048, 0, 610, 26, 5994, 0, 0, 0
malloc-4096: 4096, 0, 1224, 17, 37758, 0, 0, 0
malloc-8192: 8192, 0, 80, 17, 1039, 0, 0, 0
malloc-16384: 16384, 0, 41, 20, 1712, 0, 0, 0
malloc-32768: 32768, 0, 40, 13, 1086, 0, 0, 0
malloc-65536: 65536, 0, 26, 14, 1025, 0, 0, 0
SLEEPQUEUE: 80, 0, 757, 107, 757, 0, 0, 0
kenv: 258, 0, 21, 114, 12757, 0, 0, 0
Files: 80, 0, 151, 399, 25911, 0, 0, 0
filedesc0: 1072, 0, 85, 76, 2051, 0, 0, 0
PWD: 32, 0, 21, 987, 230, 0, 0, 0
rl_entry: 40, 0, 66, 742, 66, 0, 0, 0
TURNSTILE: 136, 0, 757, 83, 757, 0, 0, 0
rangeset pctrie nodes: 144, 0, 0, 0, 0, 0, 0, 0
umtx pi: 96, 0, 0, 0, 0, 0, 0, 0
umtx_shm: 88, 0, 0, 0, 0, 0, 0, 0
swrbuf: 2360, 128, 0, 0, 0, 0, 0, 0
swwbuf: 2360, 64, 0, 0, 0, 0, 0, 0
nfspbuf: 2360, 128, 0, 0, 0, 0, 0, 0
mdpbuf: 2360, 25, 0, 0, 0, 0, 0, 0
vnpbuf: 2360, 512, 0, 0, 0, 0, 0, 0
clpbuf: 2360, 128, 0, 0, 0, 0, 0, 0
pbuf: 2360, 16, 0, 0, 0, 0, 0, 0
MAC labels: 40, 0, 0, 0, 0, 0, 0, 0
PROC: 1336, 0, 84, 39, 2050, 0, 0, 0
PGRP: 88, 0, 35, 333, 71, 0, 0, 0
THREAD: 1792, 0, 728, 27, 758, 0, 0, 0
cpuset: 104, 0, 23, 225, 23, 0, 0, 0
domainset: 40, 0, 0, 0, 0, 0, 0, 0
audit_record: 1280, 0, 0, 0, 0, 0, 0, 0
mbuf_packet: 256, 0, 1, 134, 96, 0, 0, 0
mbuf: 256, 6427201, 12942, 213, 15083, 0, 0, 0
mbuf_cluster: 2048, 1004250, 8453, 19, 8477, 0, 0, 0
mbuf_jumbo_page: 4096, 502125, 512, 16, 1463, 0, 0, 0
mbuf_jumbo_9k: 9216, 148777, 0, 0, 0, 0, 0, 0
mbuf_jumbo_16k: 16384, 83687, 0, 0, 0, 0, 0, 0
epoch_record pcpu: 256, 0, 4, 12, 4, 0, 0, 0
ktls_session: 192, 0, 0, 0, 0, 0, 0, 0
IOMMU_MAP_ENTRY: 120, 0, 0, 0, 0, 0, 0, 0
DEVCTL: 1024, 1000, 0, 0, 772, 0, 0, 0
ttyinq: 160, 0, 120, 105, 750, 0, 0, 0
FPU_save_area: 1088, 0, 1, 6, 1, 0, 0, 0
ttyoutq: 256, 0, 64, 71, 400, 0, 0, 0
g_bio: 376, 0, 0, 360, 12287, 0, 0, 0
linux_dma_pctrie: 144, 0, 0, 0, 0, 0, 0, 0
linux_dma_object: 24, 0, 0, 0, 0, 0, 0, 0
vtnet_tx_hdr: 24, 0, 0, 0, 0, 0, 0, 0
cryptop: 280, 0, 0, 112, 12331, 0, 0, 0
taskq_zone: 192, 0, 0, 357, 763, 0, 0, 0
VNODE: 448, 0, 1075, 212, 1766, 0, 0, 0
BUF TRIE: 144, 0, 5, 243, 5, 0, 0, 0
NAMEI: 1024, 0, 0, 56, 52633, 0, 0, 0
S VFS Cache: 104, 0, 1821, 246, 1905, 0, 0, 0
STS VFS Cache: 144, 0, 0, 0, 0, 0, 0, 0
L VFS Cache: 320, 0, 0, 12, 1, 0, 0, 0
LTS VFS Cache: 360, 0, 0, 0, 0, 0, 0, 0
TMPFS node: 224, 0, 0, 0, 0, 0, 0, 0
NCLNODE: 584, 0, 0, 0, 0, 0, 0, 0
DIRHASH: 1024, 0, 0, 0, 0, 0, 0, 0
AIO: 208, 0, 0, 0, 0, 0, 0, 0
AIOP: 32, 0, 0, 0, 0, 0, 0, 0
AIOCB: 552, 0, 0, 0, 0, 0, 0, 0
AIOLIO: 272, 0, 0, 0, 0, 0, 0, 0
pipe: 744, 0, 7, 68, 673, 0, 0, 0
Mountpoints: 2752, 0, 13, 15, 13, 0, 0, 0
zfs_btree_leaf_cache: 4096, 0, 164, 70, 957, 0, 0, 0
metaslab_alloc_trace_cache: 72, 0, 0, 0, 0, 0, 0, 0
ddt_cache: 24840, 0, 13, 0, 13, 0, 0, 0
ddt_entry_cache: 392, 0, 0, 0, 0, 0, 0, 0
zio_cache: 1232, 0, 12, 255, 63377, 0, 0, 0
zio_link_cache: 48, 0, 0, 1680, 18156, 0, 0, 0
zio_buf_comb_512: 512, 0, 101, 635, 19719, 0, 0, 0
zio_buf_comb_1024: 1024, 0, 91, 13, 114, 0, 0, 0
zio_buf_comb_1536: 1536, 0, 45, 20, 73, 0, 0, 0
zio_buf_comb_2048: 2048, 0, 108, 6, 128, 0, 0, 0
zio_buf_comb_2560: 2560, 0, 28, 17, 62, 0, 0, 0
zio_buf_comb_3072: 3072, 0, 26, 14, 37, 0, 0, 0
zio_buf_comb_3584: 3584, 0, 9, 5, 11, 0, 0, 0
zio_buf_comb_4096: 4096, 0, 940, 22, 2412, 0, 0, 0
zio_buf_comb_5120: 5120, 0, 3, 20, 41, 0, 0, 0
zio_buf_comb_6144: 6144, 0, 5, 6, 15, 0, 0, 0
zio_buf_comb_7168: 7168, 0, 7, 7, 17, 0, 0, 0
zio_buf_comb_8192: 8192, 0, 8, 22, 351, 0, 0, 0
zio_buf_comb_10240: 10240, 0, 5, 12, 26, 0, 0, 0
zio_buf_comb_12288: 12288, 0, 6, 20, 191, 0, 0, 0
zio_buf_comb_14336: 14336, 0, 3, 11, 25, 0, 0, 0
zio_buf_comb_16384: 16384, 0, 357, 18, 1057, 0, 0, 0
zio_buf_comb_20480: 20480, 0, 6, 16, 103, 0, 0, 0
zio_buf_comb_24576: 24576, 0, 2, 16, 72, 0, 0, 0
zio_buf_comb_28672: 28672, 0, 2, 14, 57, 0, 0, 0
zio_buf_comb_32768: 32768, 0, 1, 18, 51, 0, 0, 0
zio_buf_comb_40960: 40960, 0, 8, 13, 98, 0, 0, 0
zio_buf_comb_49152: 49152, 0, 4, 18, 141, 0, 0, 0
zio_buf_comb_57344: 57344, 0, 4, 17, 90, 0, 0, 0
zio_buf_comb_65536: 65536, 0, 1, 14, 99, 0, 0, 0
zio_buf_comb_81920: 81920, 0, 5, 21, 231, 0, 0, 0
zio_buf_comb_98304: 98304, 0, 0, 25, 203, 0, 0, 0
zio_buf_comb_114688: 114688, 0, 1, 23, 91, 0, 0, 0
zio_buf_comb_131072: 131072, 0, 198, 26, 1039, 0, 0, 0
zio_buf_comb_163840: 163840, 0, 0, 0, 0, 0, 0, 0
zio_buf_comb_196608: 196608, 0, 0, 0, 0, 0, 0, 0
zio_buf_comb_229376: 229376, 0, 0, 0, 0, 0, 0, 0
zio_buf_comb_262144: 262144, 0, 0, 0, 0, 0, 0, 0
zio_buf_comb_327680: 327680, 0, 0, 0, 0, 0, 0, 0
zio_buf_comb_393216: 393216, 0, 0, 0, 0, 0, 0, 0
zio_buf_comb_458752: 458752, 0, 0, 0, 0, 0, 0, 0
zio_buf_comb_524288: 524288, 0, 0, 0, 0, 0, 0, 0
zio_buf_comb_655360: 655360, 0, 0, 0, 0, 0, 0, 0
zio_buf_comb_786432: 786432, 0, 0, 0, 0, 0, 0, 0
zio_buf_comb_917504: 917504, 0, 0, 0, 0, 0, 0, 0
zio_buf_comb_1048576: 1048576, 0, 0, 0, 0, 0, 0, 0
zio_buf_comb_1310720: 1310720, 0, 0, 0, 0, 0, 0, 0
zio_buf_comb_1572864: 1572864, 0, 0, 0, 0, 0, 0, 0
zio_buf_comb_1835008: 1835008, 0, 0, 0, 0, 0, 0, 0
zio_buf_comb_2097152: 2097152, 0, 0, 0, 0, 0, 0, 0
zio_buf_comb_2621440: 2621440, 0, 0, 0, 0, 0, 0, 0
zio_buf_comb_3145728: 3145728, 0, 0, 0, 0, 0, 0, 0
zio_buf_comb_3670016: 3670016, 0, 0, 0, 0, 0, 0, 0
zio_buf_comb_4194304: 4194304, 0, 0, 0, 0, 0, 0, 0
zio_buf_comb_5242880: 5242880, 0, 0, 0, 0, 0, 0, 0
zio_buf_comb_6291456: 6291456, 0, 0, 0, 0, 0, 0, 0
zio_buf_comb_7340032: 7340032, 0, 0, 0, 0, 0, 0, 0
zio_buf_comb_8388608: 8388608, 0, 0, 0, 0, 0, 0, 0
zio_buf_comb_10485760: 10485760, 0, 0, 0, 0, 0, 0, 0
zio_buf_comb_12582912: 12582912, 0, 0, 0, 0, 0, 0, 0
zio_buf_comb_14680064: 14680064, 0, 0, 0, 0, 0, 0, 0
zio_buf_comb_16777216: 16777216, 0, 0, 0, 0, 0, 0, 0
abd_chunk: 4096, 0, 7379, 49, 9463, 0, 0, 0
sa_cache: 288, 0, 976, 60, 1019, 0, 0, 0
dnode_t: 816, 0, 1331, 9, 2215, 0, 0, 0
arc_buf_hdr_t_full: 248, 0, 1952, 96, 11454, 0, 0, 0
arc_buf_hdr_t_full_crypt: 312, 0, 0, 0, 0, 0, 0, 0
arc_buf_hdr_t_l2only: 96, 0, 0, 0, 0, 0, 0, 0
arc_buf_t: 64, 0, 751, 1013, 12194, 0, 0, 0
dmu_buf_impl_t: 296, 0, 1894, 199, 12748, 0, 0, 0
zil_lwb_cache: 360, 0, 2, 53, 13, 0, 0, 0
zil_zcw_cache: 80, 0, 0, 200, 12, 0, 0, 0
sio_cache_0: 136, 0, 0, 0, 0, 0, 0, 0
sio_cache_1: 152, 0, 0, 0, 0, 0, 0, 0
sio_cache_2: 168, 0, 0, 0, 0, 0, 0, 0
zfs_znode_cache: 472, 0, 976, 64, 1019, 0, 0, 0
ksiginfo: 112, 0, 93, 915, 177, 0, 0, 0
itimer: 352, 0, 0, 0, 0, 0, 0, 0
KNOTE: 160, 0, 8, 67, 19, 0, 0, 0
socket: 944, 516811, 37, 43, 6911, 0, 0, 0
unpcb: 256, 516811, 26, 109, 6710, 0, 0, 0
ipq: 56, 31382, 0, 0, 0, 0, 0, 0
udp_inpcb: 488, 516811, 1, 63, 126, 0, 0, 0
udpcb: 32, 516811, 1, 1007, 126, 0, 0, 0
tcp_inpcb: 488, 516811, 5, 35, 9, 0, 0, 0
tcpcb: 1048, 516811, 5, 50, 9, 0, 0, 0
tcptw: 88, 27767, 0, 0, 0, 0, 0, 0
syncache: 168, 15360, 0, 0, 0, 0, 0, 0
hostcache: 80, 15360, 0, 0, 0, 0, 0, 0
sackhole: 32, 0, 0, 0, 0, 0, 0, 0
tfo: 4, 0, 0, 0, 0, 0, 0, 0
tfo_ccache_entries: 80, 0, 0, 0, 0, 0, 0, 0
tcpreass: 48, 62765, 0, 0, 0, 0, 0, 0
tcp_log: 408, 5000000, 0, 0, 0, 0, 0, 0
tcp_log_bucket: 176, 0, 0, 0, 0, 0, 0, 0
tcp_log_node: 120, 0, 0, 0, 0, 0, 0, 0
udplite_inpcb: 488, 516811, 0, 0, 0, 0, 0, 0
ripcb: 488, 516811, 2, 22, 8, 0, 0, 0
IPsec SA lft_c: 16, 0, 0, 0, 0, 0, 0, 0
routing nhops: 256, 0, 15, 105, 22, 0, 0, 0
rtentry: 176, 0, 18, 166, 22, 0, 0, 0
swpctrie: 144, 2008524, 0, 0, 0, 0, 0, 0
swblk: 136, 2008511, 0, 0, 0, 0, 0, 0
drm_sched_fence: 184, 0, 3, 39, 3, 0, 0, 0
amdgpu_sync: 32, 0, 0, 0, 0, 0, 0, 0
amdgpu_fence: 72, 0, 11, 53, 24, 0, 0, 0
NetGraph items: 72, 4096, 0, 160, 60, 0, 0, 0
NetGraph data items: 72, 4096, 0, 256, 54, 0, 0, 0


vmstat -i

interrupt total rate
irq1: atkbd0 2 0
irq9: acpi0 202 7
cpu0:timer 5343 185
cpu1:timer 2991 103
cpu2:timer 4145 143
cpu3:timer 5139 178
cpu4:timer 3260 113
cpu5:timer 4678 162
cpu6:timer 5609 194
cpu7:timer 4094 142
irq128: xhci0 18882 653
irq131: xhci1 133 5
irq132: xhci2 885 31
irq134: igb0:rxq0 34 1
irq135: igb0:rxq1 6 0
irq136: igb0:rxq2 7 0
irq137: igb0:rxq3 4 0
irq138: igb0:aq 2 0
irq140: hdac0 5 0
irq143: nvme0:admin 14 0
irq144: nvme0:io0 861 30
irq145: nvme0:io1 703 24
irq146: nvme0:io2 719 25
irq147: nvme0:io3 771 27
irq148: hdac1 24 1
irq149: em0:irq0 1 0
irq150: iwm0 2170 75
irq151: vgapci1 25 1
Total 60709 2099


pstat -T

151/516811 files
0M/0M swap space


pstat -s

Device 1K-blocks Used Avail Capacity


iostat

   tty            nvd0              da0            pass0             cpu

tin tout KB/t tps MB/s KB/t tps MB/s KB/t tps MB/s us ni sy in id
1 10095 16.8 83 1.4 0.0 0 0.0 0.0 0 0.0 1 0 4 2 94


ipcs -a

Message Queues:
T ID KEY MODE OWNER GROUP CREATOR CGROUP CBYTES QNUM QBYTES LSPID LRPID STIME RTIME CTIME

Shared Memory:
T ID KEY MODE OWNER GROUP CREATOR CGROUP NATTCH SEGSZ CPID LPID ATIME DTIME CTIME

Semaphores:
T ID KEY MODE OWNER GROUP CREATOR CGROUP NSEMS OTIME CTIME


ipcs -T

msginfo:
msgmax: 16384 (max characters in a message)
msgmni: 40 (# of message queues)
msgmnb: 2048 (max characters in a message queue)
msgtql: 40 (max # of messages in system)
msgssz: 8 (size of a message segment)
msgseg: 2048 (# of message segments in system)

shminfo:
shmmax: 536870912 (max shared memory segment size)
shmmin: 1 (min shared memory segment size)
shmmni: 192 (max number of shared memory identifiers)
shmseg: 128 (max shared memory segments per process)
shmall: 131072 (max amount of shared memory in pages)

seminfo:
semmni: 50 (# of semaphore identifiers)
semmns: 340 (# of semaphores in system)
semmnu: 150 (# of undo structures in system)
semmsl: 340 (max # of semaphores per id)
semopm: 100 (max # of operations per semop call)
semume: 50 (max # of undo entries per process)
semusz: 632 (size in bytes of undo structure)
semvmx: 32767 (semaphore maximum value)
semaem: 16384 (adjust on exit max value)


netstat -s

tcp:
0 packets sent
0 data packets (0 bytes)
0 data packets (0 bytes) retransmitted
0 data packets unnecessarily retransmitted
0 resends initiated by MTU discovery
0 ack-only packets (0 delayed)
0 URG only packets
0 window probe packets
0 window update packets
0 control packets
0 packets received
0 acks (for 0 bytes)
0 duplicate acks
0 acks for unsent data
0 packets (0 bytes) received in-sequence
0 completely duplicate packets (0 bytes)
0 old duplicate packets
0 packets with some dup. data (0 bytes duped)
0 out-of-order packets (0 bytes)
0 packets (0 bytes) of data after window
0 window probes
0 window update packets
0 packets received after close
0 discarded for bad checksums
0 discarded for bad header offset fields
0 discarded because packet too short
0 discarded due to full reassembly queue
0 connection requests
0 connection accepts
0 bad connection attempts
0 listen queue overflows
0 ignored RSTs in the windows
0 connections established (including accepts)
0 times used RTT from hostcache
0 times used RTT variance from hostcache
0 times used slow-start threshold from hostcache
4 connections closed (including 0 drops)
0 connections updated cached RTT on close
0 connections updated cached RTT variance on close
0 connections updated cached ssthresh on close
0 embryonic connections dropped
0 segments updated rtt (of 0 attempts)
0 retransmit timeouts
0 connections dropped by rexmit timeout
0 persist timeouts
0 connections dropped by persist timeout
0 Connections (fin_wait_2) dropped because of timeout
0 keepalive timeouts
0 keepalive probes sent
0 connections dropped by keepalive
0 correct ACK header predictions
0 correct data packet header predictions
0 syncache entries added
0 retransmitted
0 dupsyn
0 dropped
0 completed
0 bucket overflow
0 cache overflow
0 reset
0 stale
0 aborted
0 badack
0 unreach
0 zone failures
0 cookies sent
0 cookies received
0 hostcache entries added
0 bucket overflow
0 SACK recovery episodes
0 segment rexmits in SACK recovery episodes
0 byte rexmits in SACK recovery episodes
0 SACK options (SACK blocks) received
0 SACK options (SACK blocks) sent
0 SACK scoreboard overflow
0 packets with ECN CE bit set
0 packets with ECN ECT(0) bit set
0 packets with ECN ECT(1) bit set
0 successful ECN handshakes
0 times ECN reduced the congestion window
0 packets with matching signature received
0 packets with bad signature received
0 times failed to make signature due to no SA
0 times unexpected signature received
0 times no signature provided by segment
0 Path MTU discovery black hole detection activations
0 Path MTU discovery black hole detection min MSS activations
0 Path MTU discovery black hole detection failures
TCP connection count by state:
0 connections in CLOSED state
5 connections in LISTEN state
0 connections in SYN_SENT state
0 connections in SYN_RCVD state
0 connections in ESTABLISHED state
0 connections in CLOSE_WAIT state
0 connections in FIN_WAIT_1 state
0 connections in CLOSING state
0 connections in LAST_ACK state
0 connections in FIN_WAIT_2 state
0 connections in TIME_WAIT state
udp:
57 datagrams received
0 with incomplete header
0 with bad data length field
0 with bad checksum
0 with no checksum
43 dropped due to no socket
5 broadcast/multicast datagrams undelivered
0 dropped due to full socket buffers
0 not for hashed pcb
9 delivered
14 datagrams output
0 times multicast source filter matched
ip:
48 total packets received
0 bad header checksums
0 with size smaller than minimum
0 with data size < data length
0 with ip length > max ip packet size
0 with header length < data size
0 with data length < header length
0 with bad options
0 with incorrect version number
0 fragments received
0 fragments dropped (dup or out of space)
0 fragments dropped after timeout
0 packets reassembled ok
46 packets for this host
0 packets for unknown/unsupported protocol
0 packets forwarded (0 packets fast forwarded)
2 packets not forwardable
0 packets received for unknown multicast group
0 redirects sent
14 packets sent from this host
0 packets sent with fabricated ip header
0 output packets dropped due to no bufs, etc.
0 output packets discarded due to no route
0 output datagrams fragmented
0 fragments created
0 datagrams that can't be fragmented
0 tunneling packets that can't find gif
0 datagrams with bad address in header
icmp:
0 calls to icmp_error
0 errors not generated in response to an icmp message
0 messages with bad code fields
0 messages less than the minimum length
0 messages with bad checksum
0 messages with bad length
0 multicast echo requests ignored
0 multicast timestamp requests ignored
0 message responses generated
0 invalid return addresses
0 no return routes
arp:
3 ARP requests sent
0 ARP requests failed to sent
1 ARP reply sent
3 ARP requests received
1 ARP reply received
10 ARP packets received
0 total packets dropped due to no ARP entry
0 ARP entrys timed out
0 Duplicate IPs seen
ip6:
16 total packets received
0 with size smaller than minimum
0 with data size < data length
0 with bad options
0 with incorrect version number
4 fragments received
0 fragments dropped (dup or out of space)
0 fragments dropped after timeout
0 fragments that exceeded limit
0 atomic fragments
2 packets reassembled ok
16 packets for this host
0 packets forwarded
0 packets not forwardable
0 redirects sent
15 packets sent from this host
0 packets sent with fabricated ip header
0 output packets dropped due to no bufs, etc.
0 output packets discarded due to no route
0 output datagrams fragmented
0 fragments created
0 datagrams that can't be fragmented
0 packets that violated scope rules
3 multicast packets which we don't join
Input histogram:
UDP: 9
fragment: 4
ICMP6: 3
Mbuf statistics:
0 one mbuf
16 one ext mbuf
0 two or more ext mbuf
0 packets whose headers are not contiguous
0 tunneling packets that can't find gif
0 packets discarded because of too many headers
0 failures of source address selection
icmp6:
0 calls to icmp6_error
0 errors not generated in response to an icmp6 message
0 errors not generated because of rate limitation
Output histogram:
neighbor solicitation: 3
0 messages with bad code fields
0 messages < minimum length
0 bad checksums
0 messages with bad length
Histogram of error messages to be generated:
0 no route
0 administratively prohibited
0 beyond scope
0 address unreachable
0 port unreachable
0 packet too big
0 time exceed transit
0 time exceed reassembly
0 erroneous header field
0 unrecognized next header
0 unrecognized option
0 redirect
0 unknown
0 message responses generated
0 messages with too many ND options
0 messages with bad ND options
0 bad neighbor solicitation messages
0 bad neighbor advertisement messages
0 bad router solicitation messages
0 bad router advertisement messages
0 bad redirect messages
0 default routers overflows
0 prefix overflows
0 neighbour entries overflows
0 redirect overflows
0 messages with invalid hop limit
0 path MTU changes
rip6:
0 messages received
0 checksum calculations on inbound
0 messages with bad checksum
0 messages dropped due to no socket
0 multicast messages dropped due to no socket
0 messages dropped due to full socket buffers
0 delivered
0 datagrams output
pfkey:
0 requests sent from userland
0 bytes sent from userland
0 messages with invalid length field
0 messages with invalid version field
0 messages with invalid message type field
0 messages too short
0 messages with memory allocation failure
0 messages with duplicate extension
0 messages with invalid extension type
0 messages with invalid sa type
0 messages with invalid address extension
0 requests sent to userland
0 bytes sent to userland
0 messages toward single socket
0 messages toward all sockets
0 messages toward registered sockets
0 messages with memory allocation failure


netstat -m

netstat: memstat_kvm_all:


netstat -anA

Active Internet connections (including servers)
Tcpcb Proto Recv-Q Send-Q Local Address Foreign Address (state)
fffff8001332bb70 udp4 0 0 . .


netstat -aL

Current listen queue sizes (qlen/incqlen/maxqlen)
Proto Listen Local Address
unix 0/0/128 /var/run/cups/cups.sock
unix 0/0/128 /var/run/dbus/system_bus_socket
unix 0/0/16 /var/run/seatd.sock
unix 0/0/1 /tmp/sndio/sock0
unix 0/0/4 /var/run/devd.pipe
unix 0/0/4 /var/run/devd.seqpacket.pipe


fstat

USER CMD PID FD MOUNT INUM MODE SZ|DV R/W
root sysctl 82450 root / 34 drwxr-xr-x 25 r
root sysctl 82450 wd / 138 drwxr-xr-x 9 r
root sysctl 82450 text / 233578 -r-xr-xr-x 24664 r
root sysctl 82450 ctty /dev 110 crw------- ttyv0 rw
root sysctl 82450 0 /dev 110 crw------- ttyv0 rw
root sysctl 82450 1 /dev 110 crw------- ttyv0 rw
root sysctl 82450 2 /dev 110 crw------- ttyv0 rw
root csh 81191 root / 34 drwxr-xr-x 25 r
root csh 81191 wd / 138 drwxr-xr-x 9 r
root csh 81191 text / 233034 -r-xr-xr-x 465064 r
root csh 81191 ctty /dev 110 crw------- ttyv0 rw
root csh 81191 15 /dev 110 crw------- ttyv0 rw
root csh 81191 16 /dev 110 crw------- ttyv0 rw
root csh 81191 17 /dev 110 crw------- ttyv0 rw
root csh 81191 18 /dev 110 crw------- ttyv0 rw
root csh 81191 19 /dev 110 crw------- ttyv0 rw
root getty 71545 root / 34 drwxr-xr-x 25 r
root getty 71545 wd / 34 drwxr-xr-x 25 r
root getty 71545 text / 232347 -r-xr-xr-x 35520 r
root getty 71545 ctty /dev 117 crw------- ttyv7 rw
root getty 71545 0 /dev 117 crw------- ttyv7 rw
root getty 71545 1 /dev 117 crw------- ttyv7 rw
root getty 71545 2 /dev 117 crw------- ttyv7 rw
root getty 71034 root / 34 drwxr-xr-x 25 r
root getty 71034 wd / 34 drwxr-xr-x 25 r
root getty 71034 text / 232347 -r-xr-xr-x 35520 r
root getty 71034 ctty /dev 116 crw------- ttyv6 rw
root getty 71034 0 /dev 116 crw------- ttyv6 rw
root getty 71034 1 /dev 116 crw------- ttyv6 rw
root getty 71034 2 /dev 116 crw------- ttyv6 rw
root getty 70809 root / 34 drwxr-xr-x 25 r
root getty 70809 wd / 34 drwxr-xr-x 25 r
root getty 70809 text / 232347 -r-xr-xr-x 35520 r
root getty 70809 ctty /dev 115 crw------- ttyv5 rw
root getty 70809 0 /dev 115 crw------- ttyv5 rw
root getty 70809 1 /dev 115 crw------- ttyv5 rw
root getty 70809 2 /dev 115 crw------- ttyv5 rw
root getty 70316 root / 34 drwxr-xr-x 25 r
root getty 70316 wd / 34 drwxr-xr-x 25 r
root getty 70316 text / 232347 -r-xr-xr-x 35520 r
root getty 70316 ctty /dev 114 crw------- ttyv4 rw
root getty 70316 0 /dev 114 crw------- ttyv4 rw
root getty 70316 1 /dev 114 crw------- ttyv4 rw
root getty 70316 2 /dev 114 crw------- ttyv4 rw
root getty 69897 root / 34 drwxr-xr-x 25 r
root getty 69897 wd / 34 drwxr-xr-x 25 r
root getty 69897 text / 232347 -r-xr-xr-x 35520 r
root getty 69897 ctty /dev 113 crw------- ttyv3 rw
root getty 69897 0 /dev 113 crw------- ttyv3 rw
root getty 69897 1 /dev 113 crw------- ttyv3 rw
root getty 69897 2 /dev 113 crw------- ttyv3 rw
root getty 69568 root / 34 drwxr-xr-x 25 r
root getty 69568 wd / 34 drwxr-xr-x 25 r
root getty 69568 text / 232347 -r-xr-xr-x 35520 r
root getty 69568 ctty /dev 112 crw------- ttyv2 rw
root getty 69568 0 /dev 112 crw------- ttyv2 rw
root getty 69568 1 /dev 112 crw------- ttyv2 rw
root getty 69568 2 /dev 112 crw------- ttyv2 rw
root getty 69072 root / 34 drwxr-xr-x 25 r
root getty 69072 wd / 34 drwxr-xr-x 25 r
root getty 69072 text / 232347 -r-xr-xr-x 35520 r
root getty 69072 ctty /dev 111 crw------- ttyv1 rw
root getty 69072 0 /dev 111 crw------- ttyv1 rw
root getty 69072 1 /dev 111 crw------- ttyv1 rw
root getty 69072 2 /dev 111 crw------- ttyv1 rw
root login 68550 root / 34 drwxr-xr-x 25 r
root login 68550 wd / 138 drwxr-xr-x 9 r
root login 68550 text / 240655 -r-sr-xr-x 26488 r
root login 68550 ctty /dev 110 crw------- ttyv0 rw
root login 68550 0 /dev 110 crw------- ttyv0 rw
root login 68550 1 /dev 110 crw------- ttyv0 rw
root login 68550 2 /dev 110 crw------- ttyv0 rw
root login 68550 3* local dgram fffff8001f853d00 <-> fffff80017d80800
root logger 65995 root / 34 drwxr-xr-x 25 r
root logger 65995 wd / 34 drwxr-xr-x 25 r
root logger 65995 text / 239860 -r-xr-xr-x 16976 r
root logger 65995 0 /dev 28 crw-rw-rw- null rw
root logger 65995 1 /dev 28 crw-rw-rw- null rw
root logger 65995 2 /dev 28 crw-rw-rw- null rw
root logger 65995 3
root logger 65995 6* local stream fffff80017ed9700 <-> fffff80017ed9800
root sleep 64690 root / 34 drwxr-xr-x 25 r
root sleep 64690 wd / 34 drwxr-xr-x 25 r
root sleep 64690 text / 232811 -r-xr-xr-x 8232 r
root sleep 64690 0 /dev 28 crw-rw-rw- null r
root sleep 64690 1* pipe fffff800344ed448 <-> fffff800344ed2e8 0 rw
root sleep 64690 2* pipe fffff800344ed448 <-> fffff800344ed2e8 0 rw
root logger 64687 root / 34 drwxr-xr-x 25 r
root logger 64687 wd / 34 drwxr-xr-x 25 r
root logger 64687 text / 239860 -r-xr-xr-x 16976 r
root logger 64687 0* pipe fffff800344ed2e8 <-> fffff800344ed448 0 rw
root logger 64687 1 - - bad -
root logger 64687 2 - - bad -
root logger 64687 4* local stream fffff80017ed9800 <-> fffff80017ed9700
root sh 64474 root / 34 drwxr-xr-x 25 r
root sh 64474 wd / 34 drwxr-xr-x 25 r
root sh 64474 text / 232748 -r-xr-xr-x 171776 r
root sh 64474 0 /dev 28 crw-rw-rw- null r
root sh 64474 1* pipe fffff800344ed448 <-> fffff800344ed2e8 0 rw
root sh 64474 2* pipe fffff800344ed448 <-> fffff800344ed2e8 0 rw
root sshd 63021 root / 34 drwxr-xr-x 25 r
root sshd 63021 wd / 34 drwxr-xr-x 25 r
root sshd 63021 text / 234481 -r-xr-xr-x 326224 r
root sshd 63021 0 /dev 28 crw-rw-rw- null rw
root sshd 63021 1 /dev 28 crw-rw-rw- null rw
root sshd 63021 2 /dev 28 crw-rw-rw- null rw
root sshd 63021 3 /dev 82 crw-rw-rw- crypto rw
root sshd 63021 4* internet6 stream tcp fffffe01234f48f0
root sshd 63021 5* internet stream tcp fffffe01234f44d8
smmsp sendmail 58256 root / 34 drwxr-xr-x 25 r
smmsp sendmail 58256 wd / 15537 drwxrwx--- 3 r
smmsp sendmail 58256 text / 244639 -r-xr-sr-x 803728 r
smmsp sendmail 58256 0 /dev 28 crw-rw-rw- null r
smmsp sendmail 58256 1 /dev 28 crw-rw-rw- null w
smmsp sendmail 58256 2 /dev 28 crw-rw-rw- null w
smmsp sendmail 58256 3* local dgram fffff80017d80c00 <-> fffff8001f9faa00
smmsp sendmail 58256 4 / 492425 -rw------- 51 w
root sendmail 57537 root / 34 drwxr-xr-x 25 r
root sendmail 57537 wd / 15532 drwxr-xr-x 2 r
root sendmail 57537 text / 244639 -r-xr-sr-x 803728 r
root sendmail 57537 0 /dev 28 crw-rw-rw- null r
root sendmail 57537 1 /dev 28 crw-rw-rw- null w
root sendmail 57537 2 /dev 28 crw-rw-rw- null w
root sendmail 57537 3 /dev 82 crw-rw-rw- crypto rw
root sendmail 57537 4* local dgram fffff80017d8b600 <-> fffff80017d80800
root sendmail 57537 5* internet stream tcp fffffe01234498f0
root sendmail 57537 6 / 491908 -rw------- 80 w
root cron 57056 root / 34 drwxr-xr-x 25 r
root cron 57056 wd / 15516 drwxr-x--- 3 r
root cron 57056 text / 243115 -r-xr-xr-x 48392 r
root cron 57056 0 /dev 28 crw-rw-rw- null rw
root cron 57056 1 /dev 28 crw-rw-rw- null rw
root cron 57056 2 /dev 28 crw-rw-rw- null rw
root cron 57056 3 / 15512 drwxr-xr-x 35 r
root cron 57056 4 / 491651 -rw------- 5 w
root g_eli[7] nvd0p2 53813 root / 34 drwxr-xr-x 25 r
root g_eli[7] nvd0p2 53813 wd / 34 drwxr-xr-x 25 r
root g_eli[6] nvd0p2 53606 root / 34 drwxr-xr-x 25 r
root g_eli[6] nvd0p2 53606 wd / 34 drwxr-xr-x 25 r
root g_eli[5] nvd0p2 53421 root / 34 drwxr-xr-x 25 r
root g_eli[5] nvd0p2 53421 wd / 34 drwxr-xr-x 25 r
root g_eli[4] nvd0p2 53397 root / 34 drwxr-xr-x 25 r
root g_eli[4] nvd0p2 53397 wd / 34 drwxr-xr-x 25 r
root g_eli[3] nvd0p2 53247 root / 34 drwxr-xr-x 25 r
root g_eli[3] nvd0p2 53247 wd / 34 drwxr-xr-x 25 r
root g_eli[2] nvd0p2 53215 root / 34 drwxr-xr-x 25 r
root g_eli[2] nvd0p2 53215 wd / 34 drwxr-xr-x 25 r
root g_eli[1] nvd0p2 52797 root / 34 drwxr-xr-x 25 r
root g_eli[1] nvd0p2 52797 wd / 34 drwxr-xr-x 25 r
root g_eli[0] nvd0p2 52745 root / 34 drwxr-xr-x 25 r
root g_eli[0] nvd0p2 52745 wd / 34 drwxr-xr-x 25 r
root cupsd 51142 root / 34 drwxr-xr-x 25 r
root cupsd 51142 wd / 34 drwxr-xr-x 25 r
root cupsd 51142 text / 268555 -r-x------ 427184 r
root cupsd 51142 0 /dev 28 crw-rw-rw- null r
root cupsd 51142 1 /dev 28 crw-rw-rw- null w
root cupsd 51142 2 /dev 28 crw-rw-rw- null w
root cupsd 51142 4* local stream fffff80030395c00 <-> fffff80017d80600
root cupsd 51142 5* internet6 stream tcp fffffe01233208f0
root cupsd 51142 6* internet stream tcp fffffe01233204d8
root cupsd 51142 7* local stream fffff8001f8e2d00
root cupsd 51142 8* pipe fffff8003409bba0 <-> fffff8003409bd00 0 rw
root cupsd 51142 9* pipe fffff8003409bd00 <-> fffff8003409bba0 0 rw
root moused 47577 root / 34 drwxr-xr-x 25 r
root moused 47577 wd / 34 drwxr-xr-x 25 r
root moused 47577 text / 244052 -r-xr-xr-x 44664 r
root moused 47577 0 /dev 28 crw-rw-rw- null rw
root moused 47577 1 /dev 28 crw-rw-rw- null rw
root moused 47577 2 /dev 28 crw-rw-rw- null rw
root moused 47577 3 /dev 74 crw-rw-rw- psm0 rw
root moused 47577 4 /dev 14 crw------- consolectl rw
root moused 47577 5 / 15512 drwxr-xr-x 35 r
root moused 47577 6 / 492292 -rw------- 5 w
root powerd 45347 root / 34 drwxr-xr-x 25 r
root powerd 45347 wd / 34 drwxr-xr-x 25 r
root powerd 45347 text / 243051 -r-xr-xr-x 16880 r
root powerd 45347 0 /dev 28 crw-rw-rw- null rw
root powerd 45347 1 /dev 28 crw-rw-rw- null rw
root powerd 45347 2 /dev 28 crw-rw-rw- null rw
root powerd 45347 3 / 15512 drwxr-xr-x 35 r
root powerd 45347 4 / 492164 -rw------- 5 w
root powerd 45347 5* local stream fffff8000cfcde00 <-> fffff80017d8b700
messageb dbus-daemon 44872 root / 34 drwxr-xr-x 25 r
messageb dbus-daemon 44872 wd / 34 drwxr-xr-x 25 r
messageb dbus-daemon 44872 text / 47962 -rwxr-xr-x 205752 r
messageb dbus-daemon 44872 0 /dev 28 crw-rw-rw- null rw
messageb dbus-daemon 44872 1 /dev 28 crw-rw-rw- null rw
messageb dbus-daemon 44872 2 /dev 28 crw-rw-rw- null rw
messageb dbus-daemon 44872 3* local stream fffff80017ee6d00
messageb dbus-daemon 44872 5 / 47953 drwxr-xr-x 2 r
messageb dbus-daemon 44872 6 / 268437 drwxr-xr-x 6 r
messageb dbus-daemon 44872 7 / 47952 drwxr-xr-x 4 r
messageb dbus-daemon 44872 8* local stream fffff80017ee6e00 <-> fffff80017d80300
messageb dbus-daemon 44872 9* local stream fffff80017d80300 <-> fffff80017ee6e00
messageb dbus-daemon 44872 10* local stream fffff80017d80600 <-> fffff80030395c00
root seatd 35365 root / 34 drwxr-xr-x 25 r
root seatd 35365 wd / 34 drwxr-xr-x 25 r
root seatd 35365 text / 51932 -rwxr-xr-x 41016 r
root seatd 35365 0 - - bad -
root seatd 35365 1* pipe fffff8003409b730 <-> fffff8003409b5d0 0 rw
root seatd 35365 2* pipe fffff8003409b730 <-> fffff8003409b5d0 0 rw
root seatd 35365 3* pipe fffff8003009b000 <-> fffff8003009b160 0 rw
root seatd 35365 4* pipe fffff8003009b160 <-> fffff8003009b000 0 rw
root seatd 35365 5* local stream fffff8001f853e00
root daemon 35134 root / 34 drwxr-xr-x 25 r
root daemon 35134 wd / 34 drwxr-xr-x 25 r
root daemon 35134 text / 242891 -r-xr-xr-x 17312 r
root daemon 35134 0 - - bad -
root daemon 35134 1 - - bad -
root daemon 35134 2 - - bad -
root daemon 35134 3* local dgram fffff80017d8bc00 <-> fffff80017d80800
root daemon 35134 4 / 15512 drwxr-xr-x 35 r
root daemon 35134 5 / 492289 -rw------- 5 w
root daemon 35134 6* pipe fffff8003409b5d0 <-> fffff8003409b730 0 rw
root syslogd 24876 root / 34 drwxr-xr-x 25 r
root syslogd 24876 wd / 34 drwxr-xr-x 25 r
root syslogd 24876 text / 243260 -r-xr-xr-x 57856 r
root syslogd 24876 0 /dev 28 crw-rw-rw- null rw
root syslogd 24876 1 /dev 28 crw-rw-rw- null rw
root syslogd 24876 2 /dev 28 crw-rw-rw- null rw
root syslogd 24876 3* pipe fffff80017d86000 <-> fffff80017d86160 0 rw
root syslogd 24876 4* pipe fffff80017d86160 <-> fffff80017d86000 0 rw
root syslogd 24876 5 /dev 13 crw------- klog r
root syslogd 24876 6* local dgram fffff8001f9faa00
root syslogd 24876 7* local dgram fffff80017d80800
root syslogd 24876 8 / 15512 drwxr-xr-x 35 r
root syslogd 24876 9 / 492421 -rw------- 5 w
root syslogd 24876 11 - - bad -
root syslogd 24876 12 /var/log 260 -rw-r--r-- 501091 w
root syslogd 24876 13 /var/log 262 -rw------- 65 w
root syslogd 24876 14 /var/log 256 -rw------- 7559 w
root syslogd 24876 15 /var/log 259 -rw-r----- 9706 w
root syslogd 24876 16 /var/log 257 -rw------- 24595 w
root syslogd 24876 17 /var/log 258 -rw------- 170 w
root syslogd 24876 18 /var/log 263 -rw-r--r-- 4895 w
root syslogd 24876 20 /var/log 264 -rw------- 65 w
root syslogd 24876 21 /var/log 265 -rw-r--r-- 65 w
root syslogd 24876 22 /var/log 266 -rw-r----- 65 w
_sndio sndiod 93465 root / 34 drwxr-xr-x 25 r
_sndio sndiod 93465 wd / 34 drwxr-xr-x 25 r
_sndio sndiod 93465 text / 51622 -rwxr-xr-x 104584 r
_sndio sndiod 93465 0 /dev 28 crw-rw-rw- null rw
_sndio sndiod 93465 1 /dev 28 crw-rw-rw- null rw
_sndio sndiod 93465 2 /dev 28 crw-rw-rw- null rw
_sndio sndiod 93465 3* local stream fffff80017d80500
root devd 86521 root / 34 drwxr-xr-x 25 r
root devd 86521 wd / 34 drwxr-xr-x 25 r
root devd 86521 text / 234180 -r-xr-xr-x 1021168 r
root devd 86521 0 /dev 28 crw-rw-rw- null rw
root devd 86521 1 /dev 28 crw-rw-rw- null rw
root devd 86521 2 /dev 28 crw-rw-rw- null rw
root devd 86521 3 /dev 6 crw------- devctl r
root devd 86521 4* local stream fffff80030395d00
root devd 86521 5* local seqpak fffff80017d80900
root devd 86521 6 / 15512 drwxr-xr-x 35 r
root devd 86521 7 / 491907 -rw------- 5 w
root devd 86521 8* local stream fffff80017d8b700 -> fffff8000cfcde00
root devd 86521 9* local dgram fffff8001f9fad00 <-> fffff80017d80800
root moused 45273 root / 34 drwxr-xr-x 25 r
root moused 45273 wd / 34 drwxr-xr-x 25 r
root moused 45273 text / 244052 -r-xr-xr-x 44664 r
root moused 45273 0 /dev 28 crw-rw-rw- null rw
root moused 45273 1 /dev 28 crw-rw-rw- null rw
root moused 45273 2 /dev 28 crw-rw-rw- null rw
root moused 45273 3 /dev 441 crw-r--r-- ums1 rw
root moused 45273 4 /dev 14 crw------- consolectl rw
root moused 45273 5 / 15512 drwxr-xr-x 35 r
root moused 45273 6 / 491906 -rw------- 5 w
root moused 40996 root / 34 drwxr-xr-x 25 r
root moused 40996 wd / 34 drwxr-xr-x 25 r
root moused 40996 text / 244052 -r-xr-xr-x 44664 r
root moused 40996 0 /dev 28 crw-rw-rw- null rw
root moused 40996 1 /dev 28 crw-rw-rw- null rw
root moused 40996 2 /dev 28 crw-rw-rw- null rw
root moused 40996 3 /dev 437 crw-r--r-- ums0 rw
root moused 40996 4 /dev 14 crw------- consolectl rw
root moused 40996 5 / 15512 drwxr-xr-x 35 r
root moused 40996 6 / 491650 -rw------- 5 w
_dhcp dhclient 7048 root / 34 drwxr-xr-x 25 r
_dhcp dhclient 7048 wd / 34 drwxr-xr-x 25 r
_dhcp dhclient 7048 text / 233796 -r-xr-xr-x 121120 r
_dhcp dhclient 7048 0 /dev 28 crw-rw-rw- null rw
_dhcp dhclient 7048 1 /dev 28 crw-rw-rw- null rw
_dhcp dhclient 7048 2 /dev 28 crw-rw-rw- null rw
_dhcp dhclient 7048 3 / 15978 drwxr-xr-x 4 r
_dhcp dhclient 7048 4* local stream fffff80030395a00 <-> fffff80030395e00
_dhcp dhclient 7048 5 / 491524 -rw-r--r-- 4 w
_dhcp dhclient 7048 7 /dev 32 crw------- bpf r
_dhcp dhclient 7048 8* route raw 0 fffff8001f7c3760
_dhcp dhclient 7048 9 / 33032 ---------- 846 w
_dhcp dhclient 7048 11* pipe fffff8000c9b8a18 <-> fffff8000c9b88b8 0 rw
root dhclient 6506 root / 34 drwxr-xr-x 25 r
root dhclient 6506 wd / 34 drwxr-xr-x 25 r
root dhclient 6506 text / 233796 -r-xr-xr-x 121120 r
root dhclient 6506 0 /dev 28 crw-rw-rw- null rw
root dhclient 6506 1 /dev 28 crw-rw-rw- null rw
root dhclient 6506 2 /dev 28 crw-rw-rw- null rw
root dhclient 6506 3 / 15978 drwxr-xr-x 4 r
root dhclient 6506 4* local stream fffff80030395a00 <-> fffff80030395e00
root dhclient 6506 5 / 491524 -rw-r--r-- 4 w
root dhclient 6506 8 /dev 32 crw------- bpf w
root dhclient 6506 9* internet raw ip fffff8001f762b70
root dhclient 6506 10* pipe fffff8000c9b88b8 <-> fffff8000c9b8a18 0 rw
root dhclient 5312 root / 34 drwxr-xr-x 25 r
root dhclient 5312 wd / 34 drwxr-xr-x 25 r
root dhclient 5312 text / 233796 -r-xr-xr-x 121120 r
root dhclient 5312 0 /dev 28 crw-rw-rw- null rw
root dhclient 5312 1 /dev 28 crw-rw-rw- null rw
root dhclient 5312 2 /dev 28 crw-rw-rw- null rw
root dhclient 5312 3
root dhclient 5312 6* local stream fffff80030395e00 <-> fffff80030395a00
_dhcp dhclient 98723 root / 34 drwxr-xr-x 25 r
_dhcp dhclient 98723 wd / 34 drwxr-xr-x 25 r
_dhcp dhclient 98723 text / 233796 -r-xr-xr-x 121120 r
_dhcp dhclient 98723 0 /dev 28 crw-rw-rw- null rw
_dhcp dhclient 98723 1 /dev 28 crw-rw-rw- null rw
_dhcp dhclient 98723 2 /dev 28 crw-rw-rw- null rw
_dhcp dhclient 98723 3 / 15978 drwxr-xr-x 4 r
_dhcp dhclient 98723 4* local stream fffff8001f8e2e00 <-> fffff80017d80200
_dhcp dhclient 98723 5 / 492288 -rw-r--r-- 5 w
_dhcp dhclient 98723 7 /dev 32 crw------- bpf r
_dhcp dhclient 98723 8* route raw 0 fffff80017eb0000
_dhcp dhclient 98723 9 / 65668 ---------- 844 w
_dhcp dhclient 98723 11* pipe fffff800344ed730 <-> fffff800344ed5d0 0 rw
root dhclient 98529 root / 34 drwxr-xr-x 25 r
root dhclient 98529 wd / 34 drwxr-xr-x 25 r
root dhclient 98529 text / 233796 -r-xr-xr-x 121120 r
root dhclient 98529 0 /dev 28 crw-rw-rw- null rw
root dhclient 98529 1 /dev 28 crw-rw-rw- null rw
root dhclient 98529 2 /dev 28 crw-rw-rw- null rw
root dhclient 98529 3 / 15978 drwxr-xr-x 4 r
root dhclient 98529 4* local stream fffff8001f8e2e00 <-> fffff80017d80200
root dhclient 98529 5 / 492288 -rw-r--r-- 5 w
root dhclient 98529 8 /dev 32 crw------- bpf w
root dhclient 98529 9* internet raw ip fffff80030376988
root dhclient 98529 10* pipe fffff800344ed5d0 <-> fffff800344ed730 0 rw
root dhclient 97686 root / 34 drwxr-xr-x 25 r
root dhclient 97686 wd / 34 drwxr-xr-x 25 r
root dhclient 97686 text / 233796 -r-xr-xr-x 121120 r
root dhclient 97686 0 /dev 28 crw-rw-rw- null rw
root dhclient 97686 1 /dev 28 crw-rw-rw- null rw
root dhclient 97686 2 /dev 28 crw-rw-rw- null rw
root dhclient 97686 3
root dhclient 97686 6* local stream fffff80017d80200 <-> fffff8001f8e2e00
root ng_queue 81013 root / 34 drwxr-xr-x 25 r
root ng_queue 81013 wd / 34 drwxr-xr-x 25 r
root webcamd 65329 root / 34 drwxr-xr-x 25 r
root webcamd 65329 wd / 34 drwxr-xr-x 25 r
root webcamd 65329 text / 416765 -r-xr-xr-x 5934064 r
root webcamd 65329 0 /dev 28 crw-rw-rw- null rw
root webcamd 65329 1 /dev 28 crw-rw-rw- null rw
root webcamd 65329 2 /dev 28 crw-rw-rw- null rw
root webcamd 65329 3 / 15512 drwxr-xr-x 35 r
root webcamd 65329 4 / 492162 -rw------- 5 w
root webcamd 65329 5 /dev 4 crw------- cuse rw
root webcamd 65329 6 /dev 143 crw------- usb/0.2.0 rw
root webcamd 65329 7 /dev 143 crw------- usb/0.2.0 rw
root wpa_supplicant 4121 root / 34 drwxr-xr-x 25 r
root wpa_supplicant 4121 wd / 34 drwxr-xr-x 25 r
root wpa_supplicant 4121 text / 244651 -r-xr-xr-x 969352 r
root wpa_supplicant 4121 0 /dev 28 crw-rw-rw- null rw
root wpa_supplicant 4121 1 /dev 28 crw-rw-rw- null rw
root wpa_supplicant 4121 2 /dev 28 crw-rw-rw- null rw
root wpa_supplicant 4121 3* internet dgram udp fffff8003025db70
root wpa_supplicant 4121 4* route raw 0 fffff80017f26b10
root wpa_supplicant 4121 5 /dev 32 crw------- bpf rw
root wpa_supplicant 4121 6 /dev 82 crw-rw-rw- crypto rw
root wpa_supplicant 4121 7* local dgram fffff80017d80700
root wpa_supplicant 4121 8 / 15976 drwxr-xr-x 4 r
root wpa_supplicant 4121 9 / 492034 -rw------- 4 w
root init 1 root / 34 drwxr-xr-x 25 r
root init 1 wd / 34 drwxr-xr-x 25 r
root init 1 text / 233333 -r-xr-xr-x 1284944 r
root kernel 0 root / 34 drwxr-xr-x 25 r
root kernel 0 wd / 34 drwxr-xr-x 25 r


dmesg

---<>---
Copyright (c) 1992-2021 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 14.0-CURRENT #0: Mon Apr 12 03:37:29 CEST 2021
[email protected]:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG amd64
FreeBSD clang version 11.0.1 ([email protected]:llvm/llvm-project.git llvmorg-11.0.1-0-g43ff75f2c3fe)
VT(vga): resolution 640x480
CPU: Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz (1800.10-MHz K8-class CPU)
Origin="GenuineIntel" Id=0x806ec Family=0x6 Model=0x8e Stepping=12
Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
Features2=0x7ffafbbf<SSE3,PCLMULQDQ,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,SDBG,FMA,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,TSCDLT,AESNI,XSAVE,OSXSAVE,AVX,F16C,RDRAND>
AMD Features=0x2c100800<SYSCALL,NX,Page1GB,RDTSCP,LM>
AMD Features2=0x121<LAHF,ABM,Prefetch>
Structured Extended Features=0x29c67af<FSGSBASE,TSCADJ,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,NFPUSG,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PROCTRACE>
Structured Extended Features3=0xbc000600<MCUOPT,MD_CLEAR,IBPB,STIBP,L1DFL,ARCH_CAP,SSBD>
XSAVE Features=0xf<XSAVEOPT,XSAVEC,XINUSE,XSAVES>
IA32_ARCH_CAPS=0x2b<RDCL_NO,IBRS_ALL,SKIP_L1DFL_VME,MDS_NO>
VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID
TSC: P-state invariant, performance statistics
real memory = 17179869184 (16384 MB)
avail memory = 16400846848 (15641 MB)
CPU microcode: no matching update found
Event timer "LAPIC" quality 600
ACPI APIC Table:
FreeBSD/SMP: Multiprocessor System Detected: 8 CPUs
FreeBSD/SMP: 1 package(s) x 4 core(s) x 2 hardware threads
random: registering fast source Intel Secure Key RNG
random: fast provider: "Intel Secure Key RNG"
random: unblocking device.
ioapic0 <Version 2.0> irqs 0-119
Launching APs: 1 6 7 5 4 2 3
Timecounter "TSC" frequency 1800100782 Hz quality 1000
Cuse v0.1.36 @ /dev/cuse
random: entropy device external interface
WARNING: Device "kbd" is Giant locked and may be deleted before FreeBSD 14.0.
kbd1 at kbdmux0
mlx5en: Mellanox Ethernet driver 3.6.0 (December 2020)
vtvga0:
efirtc0:
efirtc0: registered as a time-of-day clock, resolution 1.000000s
smbios0: at iomem 0x98502000-0x9850201e
smbios0: Version: 3.1, BCD Revision: 3.1
aesni0: <AES-CBC,AES-CCM,AES-GCM,AES-ICM,AES-XTS>
acpi0:
Firmware Error (ACPI): Failure creating named object [\134_SB.PCI0.RP07.BRST], AE_ALREADY_EXISTS (20210331/dswload2-480)
ACPI Error: AE_ALREADY_EXISTS, During name lookup/catalog (20210331/psobject-372)
Firmware Error (ACPI): Failure creating named object [\134_SB.PCI0.RP07.RSTX], AE_ALREADY_EXISTS (20210331/dswload2-480)
ACPI Error: AE_ALREADY_EXISTS, During name lookup/catalog (20210331/psobject-372)
Firmware Error (ACPI): Failure creating named object [\134_SB.PCI0.RP07.RSTG], AE_ALREADY_EXISTS (20210331/dswload2-480)
ACPI Error: AE_ALREADY_EXISTS, During name lookup/catalog (20210331/psobject-372)
Firmware Error (ACPI): Failure creating named object [\134_SB.PCI0.RP07.PXSX.L850], AE_ALREADY_EXISTS (20210331/dswload2-480)
ACPI Error: AE_ALREADY_EXISTS, During name lookup/catalog (20210331/psobject-372)
Firmware Error (ACPI): Failure creating named object [\134_SB.PCI0.RP07.PXSX._RST], AE_ALREADY_EXISTS (20210331/dswload2-480)
ACPI Error: AE_ALREADY_EXISTS, During name lookup/catalog (20210331/psobject-372)
acpi_ec0: <Embedded Controller: GPE 0x16, ECDT> port 0x62,0x66 on acpi0
acpi0: Power Button (fixed)
cpu0: on acpi0
hpet0: iomem 0xfed00000-0xfed003ff on acpi0
Timecounter "HPET" frequency 24000000 Hz quality 950
Event timer "HPET" frequency 24000000 Hz quality 550
atrtc0: port 0x70-0x77 irq 8 on acpi0
atrtc0: Warning: Couldn't map I/O.
atrtc0: registered as a time-of-day clock, resolution 1.000000s
Event timer "RTC" frequency 32768 Hz quality 0
attimer0: port 0x40-0x43,0x50-0x53 irq 0 on acpi0
Timecounter "i8254" frequency 1193182 Hz quality 0
Event timer "i8254" frequency 1193182 Hz quality 100
Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1808-0x180b on acpi0
pcib0: port 0xcf8-0xcff on acpi0
pci0: on pcib0
vgapci0: port 0x5000-0x503f mem 0xd0000000-0xd0ffffff,0xc0000000-0xcfffffff at device 2.0 on pci0
vgapci0: Boot video device
xhci0: <XHCI (generic) USB 3.0 controller> mem 0xd3620000-0xd362ffff at device 20.0 on pci0
xhci0: 32 bytes context size, 64-bit DMA
usbus0 on xhci0
usbus0: 5.0Gbps Super Speed USB v3.0
pci0: <memory, RAM> at device 20.2 (no driver attached)
pci0: at device 20.3 (no driver attached)
pci0: at device 22.0 (no driver attached)
pcib1: at device 28.0 on pci0
pci1: on pcib1
pcib2: at device 28.4 on pci0
pci2: on pcib2
pcib3: at device 0.0 on pci2
pci3: on pcib3
pcib4: at device 0.0 on pci3
pci4: on pcib4
pcib5: at device 1.0 on pci3
pci5: on pcib5
pcib6: at device 0.0 on pci5
pci6: on pcib6
pcib7: at device 0.0 on pci6
pci7: on pcib7
xhci1: <Fresco Logic FL1100 USB 3.0 controller> mem 0xd2600000-0xd260ffff,0xd2610000-0xd2610fff,0xd2611000-0xd2611fff at device 0.0 on pci7
xhci1: 32 bytes context size, 64-bit DMA
usbus1 on xhci1
usbus1: 5.0Gbps Super Speed USB v3.0
pcib8: at device 1.0 on pci6
pci8: on pcib8
xhci2: <Fresco Logic FL1100 USB 3.0 controller> mem 0xd2700000-0xd270ffff,0xd2710000-0xd2710fff,0xd2711000-0xd2711fff at device 0.0 on pci8
xhci2: 32 bytes context size, 64-bit DMA
usbus2 on xhci2
usbus2: 5.0Gbps Super Speed USB v3.0
pcib9: at device 2.0 on pci6
pci9: on pcib9
xhci3: <XHCI (generic) USB 3.0 controller> mem 0xd2800000-0xd2807fff at device 0.0 on pci9
xhci3: 32 bytes context size, 64-bit DMA
usbus3 on xhci3
usbus3: 5.0Gbps Super Speed USB v3.0
pcib10: at device 3.0 on pci6
pci10: on pcib10
igb0: <Intel(R) PRO/1000 PCI-Express Network Driver> mem 0xd2900000-0xd297ffff,0xd2980000-0xd2983fff at device 0.0 on pci10
igb0: Using 1024 TX descriptors and 1024 RX descriptors
igb0: Using 4 RX queues 4 TX queues
igb0: Using MSI-X interrupts with 5 vectors
igb0: Ethernet address: 64:4b:f0:19:3d:be
igb0: netmap queues/slots: TX 4/1024, RX 4/1024
pcib11: at device 4.0 on pci6
pci11: on pcib11
pcib12: at device 0.0 on pci11
pci12: on pcib12
pcib13: at device 1.0 on pci12
pcib13: failed to allocate initial I/O port window: 0x3000-0x3fff
pci13: on pcib13
pcib14: mem 0xd2a00000-0xd2a03fff at device 0.0 on pci13
pcib14: failed to allocate initial I/O port window: 0x3000-0x3fff
pcib14: failed to allocate initial memory window: 0xd2a00000-0xd2dfffff
pci14: on pcib14
pcib15: at device 0.0 on pci14
pcib15: failed to allocate initial I/O port window: 0x3000-0x3fff
pci15: on pcib15
vgapci1: mem 0xa0000000-0xafffffff,0xb0000000-0xb01fffff,0xd2b00000-0xd2b7ffff at device 0.0 on pci15
hdac0: <ATI (0xab38) HDA Controller> mem 0xd2b80000-0xd2b83fff at device 0.1 on pci15
pcib16: at device 2.0 on pci3
pci16: on pcib16
xhci4: <XHCI (generic) USB 3.0 controller> mem 0xd3400000-0xd340ffff at device 0.0 on pci16
xhci4: 32 bytes context size, 64-bit DMA
usbus4 on xhci4
usbus4: 5.0Gbps Super Speed USB v3.0
pcib17: at device 29.0 on pci0
pcib18: at device 29.4 on pci0
pci17: on pcib18
nvme0: mem 0xd1b00000-0xd1b03fff,0xd1b04000-0xd1b040ff at device 0.0 on pci17
isab0: at device 31.0 on pci0
isa0: on isab0
hdac1: mem 0xd363c000-0xd363ffff,0xd1a00000-0xd1afffff at device 31.3 on pci0
pci0: at device 31.5 (no driver attached)
em0: <Intel(R) PRO/1000 Network Connection> mem 0xd3600000-0xd361ffff at device 31.6 on pci0
em0: Using 1024 TX descriptors and 1024 RX descriptors
em0: Using an MSI interrupt
em0: Ethernet address: 98:fa:9b:e0:30:00
em0: netmap queues/slots: TX 1/1024, RX 1/1024
acpi_button0: on acpi0
acpi_lid0: on acpi0
acpi_tz0: on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
WARNING: Device "psm" is Giant locked and may be deleted before FreeBSD 14.0.
psm0: model Elantech Touchpad, device ID 0
acpi_syscontainer0: on acpi0
acpi_ibm0: on acpi0
acpi_ibm0: Firmware version is 0x200
acpi_acad0: on acpi0
battery0: on acpi0
coretemp0: on cpu0
hwpstate_intel0: on cpu0
hwpstate_intel1: on cpu1
hwpstate_intel2: on cpu2
hwpstate_intel3: on cpu3
hwpstate_intel4: on cpu4
hwpstate_intel5: on cpu5
hwpstate_intel6: on cpu6
hwpstate_intel7: on cpu7
Timecounters tick every 1.000 msec
ZFS filesystem version: 5
ZFS storage pool version: features support (5000)
hdacc0: at cad 0 on hdac0
hdaa0: at nid 1 on hdacc0
pcm0: <ATI R6xx (HDMI)> at nid 3 on hdaa0
pcm1: <ATI R6xx (HDMI)> at nid 5 on hdaa0
pcm2: <ATI R6xx (HDMI)> at nid 7 on hdaa0
pcm3: <ATI R6xx (HDMI)> at nid 9 on hdaa0
pcm4: <ATI R6xx (HDMI)> at nid 11 on hdaa0
pcm5: <ATI R6xx (HDMI)> at nid 13 on hdaa0
ugen3.1: <0x1b21 XHCI root HUB> at usbus3
ugen2.1: <0x1b73 XHCI root HUB> at usbus2
ugen1.1: <0x1b73 XHCI root HUB> at usbus1
ugen0.1: <0x8086 XHCI root HUB> at usbus0
ugen4.1: <0x8086 XHCI root HUB> at usbus4
uhub0 on usbus3
uhub0: <0x1b21 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus3
uhub1 on usbus1
uhub1: <0x1b73 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus1
uhub2 on usbus0
uhub2: <0x8086 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0
uhub3 on usbus2
uhub3: <0x1b73 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus2
uhub4 on usbus4
uhub4: <0x8086 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus4
nvd0: NVMe namespace
nvd0: 488386MB (1000215216 512 byte sectors)
GEOM_ELI: Device nvd0p3.eli created.
hdacc1: GEOM_ELI: Encryption: AES-XTS 256
GEOM_ELI: Crypto: accelerated software
at cad 0 on hdac1
hdaa1: at nid 1 on hdacc1
pcm6: <Realtek ALC257 (Analog 2.0+HP/2.0)> at nid 20,33 and 18 on hdaa1
pcm7: <Realtek ALC257 (Right Analog Mic)> at nid 25 on hdaa1
hdacc2: at cad 2 on hdac1
hdaa2: at nid 1 on hdacc2
pcm8: <Intel Kaby Lake (HDMI/DP 8ch)> at nid 3 on hdaa2
Trying to mount root from zfs:zroot/ROOT/default []...
Root mount waiting for: usbus0 usbus1 usbus2 usbus3 usbus4
uhub0: 4 ports with 4 removable, self powered
uhub4: 4 ports with 4 removable, self powered
uhub3: 8 ports with 8 removable, self powered
uhub1: 8 ports with 8 removable, self powered
uhub2: 18 ports with 18 removable, self powered
ugen2.2: at usbus2
ukbd0 on uhub3
ukbd0: <Lenovo TrackPoint Keyboard II, class 0/0, rev 2.00/1.27, addr 1> on usbus2
kbd2 at ukbd0
ugen1.2: <CalDigit, Inc. CalDigit Thunderbolt 3 Audio> at usbus1
Root mount waiting for: usbus0 usbus2
ugen0.2: at usbus0
ugen2.3: at usbus2
ukbd1 on uhub3
ukbd1: <Logitech Gaming Mouse G502, class 0/0, rev 2.00/88.02, addr 2> on usbus2
kbd3 at ukbd1
Root mount waiting for: usbus0 usbus2
ugen0.3: <vendor 0x8087 product 0x0aaa> at usbus0
ugen2.4: <ATOLL Electronique USB Audio 24bit 96khz> at usbus2
Root mount waiting for: usbus2
ugen2.5: at usbus2
umass0 on uhub3
umass0: <CalDigit Card Reader, class 0/0, rev 3.10/10.38, addr 4> on usbus2
(probe0:umass-sim0:0:0:0): REPORT LUNS. CDB: a0 00 00 00 00 00 00 00 00 10 00 00
(probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error
(probe0:umass-sim0:0:0:0): SCSI status: Check Condition
(probe0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present)
(probe0:umass-sim0:0:0:0): Error 6, Unretryable error
da0 at umass-sim0 bus 0 scbus0 target 0 lun 0
da0: <CalDigit Card Reader 1038> Removable Direct Access SPC-4 SCSI device
da0: Serial Number 000000000010
da0: 400.000MB/s transfers
da0: Attempt to query device size failed: NOT READY, Medium not present
da0: quirks=0x2<NO_6_BYTE>
Setting hostuuid: 875bf94c-285f-11b2-a85c-cead450dc797.
Setting hostid: 0x8d66c8a7.
no pools available to import
Starting file system checks:
/dev/nvd0p1: FILESYSTEM CLEAN; SKIPPING CHECKS
Mounting local filesystems:.
Autoloading module: acpi_wmi.ko
Autoloading module: if_iwm.ko
Autoloading module: pchtherm.ko
pchtherm0: mem 0xd3643000-0xd3643fff at device 18.0 on pci0
iwm0: <Intel(R) Dual Band Wireless AC 9560> mem 0xd3638000-0xd363bfff at device 20.3 on pci0
iwm0: hw rev 0x310, fw ver 34.3125811985.0, address 50:eb:71:97:dd:08
acpi_wmi0: on acpi0
acpi_wmi1: on acpi0
acpi_wmi1: Embedded MOF found
ACPI: \134_SB.WFDE.WQCC: 1 arguments were passed to a non-method ACPI object (Buffer) (20210331/nsarguments-361)
acpi_wmi2: on acpi0
acpi_wmi2: Embedded MOF found
ACPI: \134_SB.WFTE.WQCC: 1 arguments were passed to a non-method ACPI object (Buffer) (20210331/nsarguments-361)
acpi_wmi3: on acpi0
acpi_wmi3: Embedded MOF found
ACPI: \134_SB.WMI1.WQBA: 1 arguments were passed to a non-method ACPI object (Buffer) (20210331/nsarguments-361)
acpi_wmi4: on acpi0
acpi_wmi4: Embedded MOF found
ACPI: \134_SB.WMI2.WQBB: 1 arguments were passed to a non-method ACPI object (Buffer) (20210331/nsarguments-361)
acpi_wmi5: on acpi0
acpi_wmi5: Embedded MOF found
ACPI: \134_SB.WMI3.WQBC: 1 arguments were passed to a non-method ACPI object (Buffer) (20210331/nsarguments-361)
Loading kernel modules:
[drm] amdgpu kernel modesetting enabled.
drmn1: on vgapci1
vgapci1: child drmn1 requested pci_enable_io
vgapci1: child drmn1 requested pci_enable_io
sysctl_warn_reuse: can't re-use a leaf (hw.dri.debug)!
[drm] initializing kernel modesetting (NAVI10 0x1002:0x731F 0x1043:0x04E2 0xC1).
[drm] register mmio base: 0xD2B00000
[drm] register mmio size: 524288
[drm] set register base offset for ATHUB
[drm] set register base offset for CLKA
[drm] set register base offset for CLKA
[drm] set register base offset for CLKA
[drm] set register base offset for CLKA
[drm] set register base offset for CLKA
[drm] set register base offset for DF
[drm] set register base offset for DMU
[drm] set register base offset for GC
[drm] set register base offset for HDP
[drm] set register base offset for MMHUB
[drm] set register base offset for MP0
[drm] set register base offset for MP1
[drm] set register base offset for NBIF
[drm] set register base offset for NBIF
[drm] set register base offset for OSSSYS
[drm] set register base offset for SDMA0
[drm] set register base offset for SDMA1
[drm] set register base offset for SMUIO
[drm] set register base offset for THM
[drm] set register base offset for UVD
[drm] add ip block number 0 <nv_common>
[drm] add ip block number 1 <gmc_v10_0>
[drm] add ip block number 2 <navi10_ih>
[drm] add ip block number 3
[drm] add ip block number 4
[drm] add ip block number 5
[drm] add ip block number 6 <gfx_v10_0>
[drm] add ip block number 7 <sdma_v5_0>
[drm] add ip block number 8 <vcn_v2_0>
drmn1: successfully loaded firmware image 'amdgpu/navi10_gpu_info.bin'
ATOM BIOS: 115-D182PI0-100
[drm] VCN decode is enabled in VM mode
[drm] VCN encode is enabled in VM mode
[drm] VCN jpeg decode is enabled in VM mode
[drm] GPU posting now...
[drm] vm size is 262144 GB, 4 levels, block size is 9-bit, fragment size is 9-bit
drmn1: VRAM: 8176M 0x0000008000000000 - 0x00000081FEFFFFFF (8176M used)
drmn1: GART: 512M 0x0000000000000000 - 0x000000001FFFFFFF
Failed to add WC MTRR for [0xa0000000-0xafffffff]: -22; performance may suffer
[drm] Detected VRAM RAM=8176M, BAR=256M
[drm] RAM width 256bits GDDR6
[TTM] Zone kernel: Available graphics memory: 8268990 KiB
[TTM] Zone dma32: Available graphics memory: 2097152 KiB
[TTM] Initializing pool allocator
[drm] amdgpu: 8176M of VRAM memory ready
[drm] amdgpu: 8176M of GTT memory ready.
[drm] GART: num cpu pages 131072, num gpu pages 131072
[drm] PCIE GART of 512M enabled (table at 0x0000008000000000).
drmn1: successfully loaded firmware image 'amdgpu/navi10_sos.bin'
drmn1: successfully loaded firmware image 'amdgpu/navi10_asd.bin'
drmn1: successfully loaded firmware image 'amdgpu/navi10_smc.bin'
drmn1: successfully loaded firmware image 'amdgpu/navi10_pfp.bin'
drmn1: successfully loaded firmware image 'amdgpu/navi10_me.bin'
drmn1: successfully loaded firmware image 'amdgpu/navi10_ce.bin'
drmn1: successfully loaded firmware image 'amdgpu/navi10_rlc.bin'
drmn1: successfully loaded firmware image 'amdgpu/navi10_mec.bin'
drmn1: successfully loaded firmware image 'amdgpu/navi10_mec2.bin'
drmn1: successfully loaded firmware image 'amdgpu/navi10_sdma.bin'
drmn1: successfully loaded firmware image 'amdgpu/navi10_sdma1.bin'
[drm] use_doorbell being set to: [true]
[drm] use_doorbell being set to: [true]
drmn1: successfully loaded firmware image 'amdgpu/navi10_vcn.bin'
[drm] Found VCN firmware Version ENC: 1.10 DEC: 5 VEP: 0 Revision: 13
[drm] PSP loading VCN firmware
[drm] reserve 0x900000 from 0x81fe400000 for PSP TMR
amdgpu: [powerplay] smu driver if version = 0x00000033, smu fw if version = 0x00000037, smu fw version = 0x002a3d00 (42.61.0)
amdgpu: [powerplay] SMU driver if version not matched
amdgpu: [powerplay] SMU is initialized successfully!
[drm] Display Core initialized with v3.2.48!
[drm] Connector DP-1: get mode from tunables:
[drm] - kern.vt.fb.modes.DP-1
[drm] - kern.vt.fb.default_mode
[drm] Connector DP-2: get mode from tunables:
[drm] - kern.vt.fb.modes.DP-2
[drm] - kern.vt.fb.default_mode
[drm] Connector DP-3: get mode from tunables:
[drm] - kern.vt.fb.modes.DP-3
[drm] - kern.vt.fb.default_mode
[drm] Connector HDMI-A-1: get mode from tunables:
[drm] - kern.vt.fb.modes.HDMI-A-1
[drm] - kern.vt.fb.default_mode
[drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[drm] Driver supports precise vblank timestamp query.
[drm] kiq ring mec 2 pipe 1 q 0
[drm] ring test on 10 succeeded in 38 usecs
[drm] ring test on 10 succeeded in 12 usecs
[drm] gfx 0 ring me 0 pipe 0 q 0
[drm] ring test on 0 succeeded in 12 usecs
[drm] gfx 1 ring me 0 pipe 1 q 0
[drm] ring test on 1 succeeded in 2 usecs
[drm] compute ring 0 mec 1 pipe 0 q 0
[drm] ring test on 2 succeeded in 4 usecs
[drm] compute ring 1 mec 1 pipe 1 q 0
[drm] ring test on 3 succeeded in 2 usecs
[drm] compute ring 2 mec 1 pipe 2 q 0
[drm] ring test on 4 succeeded in 2 usecs
[drm] compute ring 3 mec 1 pipe 3 q 0
[drm] ring test on 5 succeeded in 3 usecs
[drm] compute ring 4 mec 1 pipe 0 q 1
[drm] ring test on 6 succeeded in 4 usecs
[drm] compute ring 5 mec 1 pipe 1 q 1
[drm] ring test on 7 succeeded in 2 usecs
[drm] compute ring 6 mec 1 pipe 2 q 1
[drm] ring test on 8 succeeded in 2 usecs
[drm] compute ring 7 mec 1 pipe 3 q 1
[drm] ring test on 9 succeeded in 2 usecs
[drm] ring test on 11 succeeded in 32 usecs
[drm] ring test on 12 succeeded in 33 usecs
[drm] VCN decode and encode initialized successfully(under DPG Mode).
[drm] fb mappable at 0xA01C9000
[drm] vram apper at 0xA0000000
[drm] size 18432000
[drm] fb depth is 24
[drm] pitch is 15360
WARNING: Device "fb" is Giant locked and may be deleted before FreeBSD 14.0.
VT: Replacing driver "vga" with new "fb".
start FB_INFO:
type=11 height=1200 width=3840 depth=32
cmsize=16 size=18432000
pbase=0xa01c9000 vbase=0xfffff800a01c9000
name=drmn1 flags=0x0 stride=15360 bpp=32
cmap[0]=0 cmap[1]=7f0000 cmap[2]=7f00 cmap[3]=c4a000
end FB_INFO
drmn1: fb0: amdgpudrmfb frame buffer device
drmn1: ring 0(gfx_0.0.0) uses VM inv eng 4 on hub 0
drmn1: ring 1(gfx_0.1.0) uses VM inv eng 5 on hub 0
drmn1: ring 2(comp_1.0.0) uses VM inv eng 6 on hub 0
drmn1: ring 3(comp_1.1.0) uses VM inv eng 7 on hub 0
drmn1: ring 4(comp_1.2.0) uses VM inv eng 8 on hub 0
drmn1: ring 5(comp_1.3.0) uses VM inv eng 9 on hub 0
drmn1: ring 6(comp_1.0.1) uses VM inv eng 10 on hub 0
drmn1: ring 7(comp_1.1.1) uses VM inv eng 11 on hub 0
drmn1: ring 8(comp_1.2.1) uses VM inv eng 12 on hub 0
drmn1: ring 9(comp_1.3.1) uses VM inv eng 13 on hub 0
drmn1: ring 10(kiq_2.1.0) uses VM inv eng 14 on hub 0
drmn1: ring 11(sdma0) uses VM inv eng 15 on hub 0
drmn1: ring 12(sdma1) uses VM inv eng 16 on hub 0
drmn1: ring 13(vcn_dec) uses VM inv eng 4 on hub 1
drmn1: ring 14(vcn_enc0) uses VM inv eng 5 on hub 1
drmn1: ring 15(vcn_enc1) uses VM inv eng 6 on hub 1
drmn1: ring 16(vcn_jpeg) uses VM inv eng 7 on hub 1
[drm] Initialized amdgpu 3.35.0 20150101 for drmn1 on minor 0
Updating CPU Microcode...
CPU: Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz (1800.10-MHz K8-class CPU)
Origin="GenuineIntel" Id=0x806ec Family=0x6 Model=0x8e Stepping=12
Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
Features2=0x7ffafbbf<SSE3,PCLMULQDQ,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,SDBG,FMA,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,TSCDLT,AESNI,XSAVE,OSXSAVE,AVX,F16C,RDRAND>
AMD Features=0x2c100800<SYSCALL,NX,Page1GB,RDTSCP,LM>
AMD Features2=0x121<LAHF,ABM,Prefetch>
Structured Extended Features=0x29c67af<FSGSBASE,TSCADJ,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,NFPUSG,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PROCTRACE>
Structured Extended Features3=0xbc000600<MCUOPT,MD_CLEAR,IBPB,STIBP,L1DFL,ARCH_CAP,SSBD>
XSAVE Features=0xf<XSAVEOPT,XSAVEC,XINUSE,XSAVES>
IA32_ARCH_CAPS=0x2b<RDCL_NO,IBRS_ALL,SKIP_L1DFL_VME,MDS_NO>
VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID
TSC: P-state invariant, performance statistics
Done.
mixer: unknown device: speaker
mixer: unknown device: mic
ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/local/lib /usr/local/lib/compat/pkg /usr/local/lib/compat/pkg /usr/local/lib/gcc10 /usr/local/lib/graphviz /usr/local/lib/perl5/5.32/mach/CORE /usr/local/llvm10/lib /usr/local/llvm11/lib
32-bit compatibility ldconfig path: /usr/lib32
Setting up harvesting: PURE_RDRAND,[UMA],[FS_ATIME],SWI,INTERRUPT,NET_NG,[NET_ETHER],NET_TUN,MOUSE,KEYBOARD,ATTACH,CACHED
Feeding entropy: .
Setting hostname: gorthaur.int.7c5.fr.
wlan0: Ethernet address: 50:eb:71:97:dd:08
Created wlan(4) interfaces: wlan0.
lo0: link state changed to UP
[drm] ib test on ring 0 succeeded
[drm] ib test on ring 1 succeeded
[drm] ib test on ring 2 succeeded
[drm] ib test on ring 3 succeeded
[drm] ib test on ring 4 succeeded
[drm] ib test on ring 5 succeeded
[drm] ib test on ring 6 succeeded
[drm] ib test on ring 7 succeeded
[drm] ib test on ring 8 succeeded
[drm] ib test on ring 9 succeeded
[drm] ib test on ring 10 succeeded
[drm] ib test on ring 11 succeeded
[drm] ib test on ring 12 succeeded
rtsol: ioctl(SIOCGIFFLAGS): Not permitted in capability mode
rtsol: ioctl(SIOCGIFFLAGS): Not permitted in capability mode
Starting wpa_supplicant.
igb0: link state changed to UP
rtsol: ioctl(SIOCGIFFLAGS): Not permitted in capability mode
wlan0: link state changed to UP
Starting Network: lo0 igb0 em0 wlan0.
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
inet 127.0.0.1 netmask 0xff000000
groups: lo
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
igb0: flags=8863<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=4e507bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWFILTER,VLAN_HWTSO,RXCSUM_IPV6,TXCSUM_IPV6,NOMAP>
ether 64:4b:f0:19:3d:be
inet6 fe80::664b:f0ff:fe19:3dbe%igb0 prefixlen 64 scopeid 0x1
media: Ethernet autoselect (1000baseT )
status: active
nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>
em0: flags=8863<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=481049b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LRO,VLAN_HWFILTER,NOMAP>
ether 98:fa:9b:e0:30:00
inet6 fe80::9afa:9bff:fee0:3000%em0 prefixlen 64 scopeid 0x2
media: Ethernet autoselect
status: no carrier
nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 50:eb:71:97:dd:08
inet6 fe80::52eb:71ff:fe97:dd08%wlan0 prefixlen 64 scopeid 0x4
groups: wlan
ssid "VaLouille's Airport" channel 11 (2462 MHz 11g) bssid 90:72:40:20:a4:3a
regdomain ETSI country FR authmode WPA2/802.11i privacy ON
deftxkey UNDEF txpower 30 bmiss 10 scanvalid 60 protmode CTS wme
roaming MANUAL
parent interface: iwm0
media: IEEE 802.11 Wireless Ethernet OFDM/36Mbps mode 11g
status: associated
nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>
add host 127.0.0.1: gateway lo0 fib 0: route already in table
add host ::1: gateway lo0 fib 0: route already in table
add net fe80::: gateway ::1
add net ff02::: gateway ::1
add net ::ffff:0.0.0.0: gateway ::1
add net ::0.0.0.0: gateway ::1
Starting devd.
Autoloading module: pchtherm.ko
Autoloading module: if_iwm.ko
Autoloading module: acpi_wmi.ko
Autoloading module: acpi_wmi.ko
Autoloading module: acpi_wmi.ko
Autoloading module: acpi_wmi.ko
Autoloading module: acpi_wmi.ko
Autoloading module: acpi_wmi.ko
Autoloading module: uhid.ko
Autoloading module: ums.ko
Autoloading module: usbhid.ko
ums0 on uhub3
ums0: <Lenovo TrackPoint Keyboard II, class 0/0, rev 2.00/1.27, addr 1> on usbus2
ums0: 3 buttons and [XYZT] coordinates ID=1
uhid0 on uhub1
uhid0: <CalDigit, Inc. CalDigit Thunderbolt 3 Audio, class 0/0, rev 2.00/1.01, addr 1> on usbus1
uhid1 on uhub3
uhid1: <Lenovo TrackPoint Keyboard II, class 0/0, rev 2.00/1.27, addr 1> on usbus2
ums1 on uhub3
ums1: <Logitech Gaming Mouse G502, class 0/0, rev 2.00/88.02, addr 2> on usbus2
ums1: 16 buttons and [XYZT] coordinates ID=0
devmatch: devinfo_init: Invalid argument
uhid2 on uhub3
uhid2: <ATOLL Electronique USB Audio 24bit 96khz, class 0/0, rev 1.10/0.01, addr 3> on usbus2
Autoloading module: snd_uaudio.ko
uaudio0 on uhub3
uaudio1 on uhub1
uaudio1: <CalDigit, Inc. CalDigit Thunderbolt 3 Audio, class 0/0, rev 2.00/1.01, addr 1> on usbus1
uaudio0: on usbus2
uaudio0: Play[0]: 96000 Hz, 2 ch, 24-bit S-LE PCM format, 2x8ms buffer.
uaudio0: Play[0]: 48000 Hz, 2 ch, 24-bit S-LE PCM format, 2x8ms buffer.
uaudio0: Play[0]: 44100 Hz, 2 ch, 24-bit S-LE PCM format, 2x8ms buffer.
uaudio0: Play[0]: 32000 Hz, 2 ch, 24-bit S-LE PCM format, 2x8ms buffer.
uaudio0: Play[0]: 16000 Hz, 2 ch, 24-bit S-LE PCM format, 2x8ms buffer.
uaudio0: Play[0]: 8000 Hz, 2 ch, 24-bit S-LE PCM format, 2x8ms buffer.
uaudio0: No recording.
uaudio0: No MIDI sequencer.
pcm9: on uaudio0
uaudio1: Play[0]: 96000 Hz, 2 ch, 24-bit S-LE PCM format, 2x8ms buffer.
uaudio1: Play[0]: 88200 Hz, 2 ch, 24-bit S-LE PCM format, 2x8ms buffer.
uaudio1: Play[0]: 48000 Hz, 2 ch, 24-bit S-LE PCM format, 2x8ms buffer.
uaudio1: Play[0]: 44100 Hz, 2 ch, 24-bit S-LE PCM format, 2x8ms buffer.
uaudio1: Play[0]: 32000 Hz, 2 ch, 24-bit S-LE PCM format, 2x8ms buffer.
uaudio1: Play[0]: 22050 Hz, 2 ch, 24-bit S-LE PCM format, 2x8ms buffer.
uaudio1: Play[0]: 16000 Hz, 2 ch, 24-bit S-LE PCM format, 2x8ms buffer.
uaudio1: Play[0]: 11025 Hz, 2 ch, 24-bit S-LE PCM format, 2x8ms buffer.
uaudio1: Play[0]: 8000 Hz, 2 ch, 24-bit S-LE PCM format, 2x8ms buffer.
uaudio1: Record[0]: 48000 Hz, 2 ch, 16-bit S-LE PCM format, 2x8ms buffer.
uaudio1: Record[0]: 44100 Hz, 2 ch, 16-bit S-LE PCM format, 2x8ms buffer.
uaudio1: Record[0]: 32000 Hz, 2 ch, 16-bit S-LE PCM format, 2x8ms buffer.
uaudio1: Record[0]: 22050 Hz, 2 ch, 16-bit S-LE PCM format, 2x8ms buffer.
uaudio1: Record[0]: 16000 Hz, 2 ch, 16-bit S-LE PCM format, 2x8ms buffer.
uaudio1: Record[0]: 11025 Hz, 2 ch, 16-bit S-LE PCM format, 2x8ms buffer.
uaudio1: Record[0]: 8000 Hz, 2 ch, 16-bit S-LE PCM format, 2x8ms buffer.
uaudio1: No MIDI sequencer.
pcm10: on uaudio1
uaudio1: HID volume keys found.
uaudio0: No HID volume keys found.
Autoloading module: uhid.ko
Autoloading module: usbhid.ko
Autoloading module: wmt.ko
webcamd 65117 - - Attached to ugen0.2[0]
webcamd 67099 - - Webcamd is already running for ugen0.2.0
webcamd 68566 - - Webcamd is already running for ugen0.2.0
webcamd 69779 - - Webcamd is already running for ugen0.2.0
Autoloading module: uhid.ko
Autoloading module: ums.ko
Autoloading module: usbhid.ko
Autoloading module: ng_ubt.ko
Autoloading module: ng_ubt.ko
Autoloading module: uhid.ko
Autoloading module: usbhid.ko
Autoloading module: wmt.ko
Autoloading module: snd_uaudio.ko
Starting dhclient.
Starting dhclient.
Autoloading module: snd_uaudio.ko
Autoloading module: ng_ubt.ko
Autoloading module: ng_ubt.ko
Starting ums0 moused.
Starting ums1 moused.
Autoloading module: snd_uaudio.ko
Autoloading module: ng_ubt.ko
Autoloading module: ng_ubt.ko
Autoloading module: ng_ubt.ko
Autoloading module: ng_ubt.ko
Autoloading module: ng_ubt.ko
Autoloading module: ng_ubt.ko
Starting sndiod.
Creating and/or trimming log files.
Clearing /tmp.
Updating motd:.
Updating /var/run/os-release done.
Starting syslogd.
Apr 12 20:40:57 gorthaur kernel: Failed to add WC MTRR for [0xa0000000-0xafffffff]: -22; performance may suffer
Apr 12 20:40:57 gorthaur kernel: amdgpu: [powerplay] SMU driver if version not matched
No core dumps found.
Starting seatd.
Mounting late filesystems:.
Security policy loaded: MAC/ntpd (mac_ntpd)
Starting ntpd.
pid 43407 (ntpd), jid 0, uid 123: exited on signal 11
Starting dbus.
Starting powerd.
Starting default moused.
Starting cupsd.
GEOM_ELI: Device nvd0p2.eli created.
GEOM_ELI: Encryption: AES-XTS 128
GEOM_ELI: Crypto: accelerated software
Starting webcamd.
Starting cron.
Starting sendmail_submit.
Starting sendmail_msp_queue.
Performing sanity check on sshd configuration.
Starting sshd.
Configuring vt: blanktime.
Starting background file system checks in 60 seconds.

Mon Apr 12 20:40:57 CEST 2021
ng_ubt: HCI command 0xfc05 timed out
ubt0 on uhub2
ubt0: <vendor 0x8087 product 0x0aaa, class 224/1, rev 2.00/0.02, addr 2> on usbus0
WARNING: attempt to domain_add(bluetooth) after domainfinalize()
WARNING: attempt to domain_add(netgraph) after domainfinalize()
Apr 12 20:41:06 gorthaur login[68550]: ROOT LOGIN (root) ON ttyv0

Fatal trap 12: page fault while in kernel mode
cpuid = 5; apic id = 05
fault virtual address = 0x0
fault code = supervisor read instruction, page not present
instruction pointer = 0x20:0x0
stack pointer = 0x28:0xfffffe011e292728
frame pointer = 0x28:0xfffffe011e292740
code segment = base 0x0, limit 0xfffff, type 0x1b
= DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags = interrupt enabled, resume, IOPL = 0
current process = 82450 (sysctl)
trap number = 12
panic: page fault
cpuid = 5
time = 1618252871
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe011e2923d0
vpanic() at vpanic+0x181/frame 0xfffffe011e292420
panic() at panic+0x43/frame 0xfffffe011e292480
trap_fatal() at trap_fatal+0x387/frame 0xfffffe011e2924e0
trap_pfault() at trap_pfault+0x4f/frame 0xfffffe011e292540
trap() at trap+0x27d/frame 0xfffffe011e292650
calltrap() at calltrap+0x8/frame 0xfffffe011e292650
--- trap 0xc, rip = 0, rsp = 0xfffffe011e292728, rbp = 0xfffffe011e292740 ---
??() at 0/frame 0xfffffe011e292740
sysctl_handle_attr() at sysctl_handle_attr+0x70/frame 0xfffffe011e292790
sysctl_root_handler_locked() at sysctl_root_handler_locked+0x91/frame 0xfffffe011e2927e0
sysctl_root() at sysctl_root+0x2d0/frame 0xfffffe011e292860
userland_sysctl() at userland_sysctl+0x173/frame 0xfffffe011e292910
sys___sysctl() at sys___sysctl+0x5f/frame 0xfffffe011e2929c0
amd64_syscall() at amd64_syscall+0x10c/frame 0xfffffe011e292af0
fast_syscall_common() at fast_syscall_common+0xf8/frame 0xfffffe011e292af0
--- syscall (202, FreeBSD ELF64, sys___sysctl), rip = 0x3958c1e475ba, rsp = 0x7fffff6a0798, rbp = 0x7fffff6a07d0 ---
KDB: enter: panic


kernel config

options CONFIG_AUTOGENERATED
ident GENERIC-NODEBUG
machine amd64
cpu HAMMER
makeoptions WITH_CTF=1
makeoptions DEBUG=-g
options IICHID_SAMPLING
options EVDEV_SUPPORT
options XENHVM
options ATH_ENABLE_11N
options AH_AR5416_INTERRUPT_MITIGATION
options IEEE80211_SUPPORT_MESH
options IEEE80211_DEBUG
options SC_PIXEL_MODE
options VESA
options COMPAT_LINUXKPI
options PCI_IOV
options PCI_HP
options IOMMU
options EARLY_AP_STARTUP
options SMP
options NETGDB
options NETDUMP
options DEBUGNET
options ZSTDIO
options GZIO
options EKCD
options VERBOSE_SYSINIT=0
options GDB
options DDB
options KDB_TRACE
options KDB
options RCTL
options RACCT_DEFAULT_TO_DISABLED
options RACCT
options INCLUDE_CONFIG_FILE
options DDB_CTF
options KDTRACE_HOOKS
options KDTRACE_FRAME
options MAC
options CAPABILITIES
options CAPABILITY_MODE
options AUDIT
options HWPMC_HOOKS
options KBD_INSTALL_CDEV
options PRINTF_BUFR_SIZE=128
options _KPOSIX_PRIORITY_SCHEDULING
options SYSVSEM
options SYSVMSG
options SYSVSHM
options STACK
options KTRACE
options SCSI_DELAY=5000
options COMPAT_FREEBSD12
options COMPAT_FREEBSD11
options COMPAT_FREEBSD10
options COMPAT_FREEBSD9
options COMPAT_FREEBSD7
options COMPAT_FREEBSD6
options COMPAT_FREEBSD5
options COMPAT_FREEBSD4
options COMPAT_FREEBSD32
options EFIRT
options GEOM_LABEL
options GEOM_RAID
options TMPFS
options PSEUDOFS
options PROCFS
options CD9660
options MSDOSFS
options NFS_ROOT
options NFSLOCKD
options NFSD
options NFSCL
options MD_ROOT
options QUOTA
options UFS_GJOURNAL
options UFS_DIRHASH
options UFS_ACL
options SOFTUPDATES
options FFS
options KERN_TLS
options SCTP_SUPPORT
options TCP_RFC7413
options TCP_HHOOK
options TCP_BLACKBOX
options TCP_OFFLOAD
options ROUTE_MPATH
options IPSEC_SUPPORT
options INET6
options INET
options VIMAGE
options PREEMPTION
options NUMA
options SCHED_ULE
options NEW_PCIB
options GEOM_PART_GPT
options GEOM_PART_MBR
options GEOM_PART_EBR
options GEOM_PART_BSD
device isa
device mem
device io
device uart_ns8250
device cpufreq
device acpi
device smbios
device pci
device fdc
device ahci
device ata
device mvs
device siis
device ahc
device ahd
device esp
device hptiop
device isp
device mpt
device mps
device mpr
device sym
device isci
device ocs_fc
device pvscsi
device scbus
device ch
device da
device sa
device cd
device pass
device ses
device amr
device arcmsr
device ciss
device iir
device ips
device mly
device twa
device smartpqi
device tws
device aac
device aacp
device aacraid
device ida
device mfi
device mlx
device mrsas
device pmspcv
device twe
device nvme
device nvd
device vmd
device vmd_bus
device atkbdc
device atkbd
device psm
device kbdmux
device vga
device splash
device sc
device vt
device vt_vga
device vt_efifb
device vt_vbefb
device agp
device cbb
device pccard
device cardbus
device uart
device ppc
device ppbus
device lpt
device ppi
device puc
device iflib
device em
device ix
device ixv
device ixl
device iavf
device ice
device vmx
device axp
device bxe
device le
device ti
device mlx5
device mlxfw
device mlx5en
device miibus
device ae
device age
device alc
device ale
device bce
device bfe
device bge
device cas
device dc
device et
device fxp
device gem
device jme
device lge
device msk
device nfe
device nge
device re
device rl
device sge
device sis
device sk
device ste
device stge
device vge
device vr
device xl
device wlan
device wlan_wep
device wlan_ccmp
device wlan_tkip
device wlan_amrr
device an
device ath
device ath_pci
device ath_hal
device ath_rate_sample
device ipw
device iwi
device iwn
device malo
device mwl
device ral
device wpi
device crypto
device aesni
device loop
device padlock_rng
device rdrand_rng
device ether
device vlan
device tuntap
device md
device gif
device firmware
device xz
device bpf
device uhci
device ohci
device ehci
device xhci
device usb
device ukbd
device umass
device sound
device snd_cmi
device snd_csa
device snd_emu10kx
device snd_es137x
device snd_hda
device snd_ich
device snd_via8233
device mmc
device mmcsd
device sdhci
device rtsx
device virtio
device virtio_pci
device vtnet
device virtio_blk
device virtio_scsi
device virtio_balloon
device hyperv
device xenpci
device netmap
device evdev
device uinput
device hid


ddb capture buffer

Extra data gathered from ssh after kenv hw.dri.drm_debug=0xffffffff then kldload amdgpu

Apr 12 14:28:40 gorthaur login[91815]: ROOT LOGIN (root) ON ttyv0
Apr 12 14:28:47 gorthaur kernel: [drm] amdgpu kernel modesetting enabled.
Apr 12 14:28:47 gorthaur kernel: drmn1: on vgapci1
Apr 12 14:28:47 gorthaur kernel: vgapci1: child drmn1 requested pci_enable_io
Apr 12 14:28:47 gorthaur syslogd: last message repeated 1 times
Apr 12 14:28:47 gorthaur kernel: sysctl_warn_reuse: can't re-use a leaf (hw.dri.debug)!
Apr 12 14:28:47 gorthaur kernel: [drm] initializing kernel modesetting (NAVI10 0x1002:0x731F 0x1043:0x04E2 0xC1).
Apr 12 14:28:47 gorthaur kernel: [drm] register mmio base: 0xD2B00000
Apr 12 14:28:47 gorthaur kernel: [drm] register mmio size: 524288
Apr 12 14:28:48 gorthaur kernel: [drm] set register base offset for ATHUB
Apr 12 14:28:48 gorthaur kernel: [drm] set register base offset for CLKA
Apr 12 14:28:48 gorthaur syslogd: last message repeated 4 times
Apr 12 14:28:48 gorthaur kernel: [drm] set register base offset for DF
Apr 12 14:28:48 gorthaur kernel: [drm] set register base offset for DMU
Apr 12 14:28:48 gorthaur kernel: [drm] set register base offset for GC
Apr 12 14:28:48 gorthaur kernel: [drm] set register base offset for HDP
Apr 12 14:28:48 gorthaur kernel: [drm] set register base offset for MMHUB
Apr 12 14:28:48 gorthaur kernel: [drm] set register base offset for MP0
Apr 12 14:28:48 gorthaur kernel: [drm] set register base offset for MP1
Apr 12 14:28:48 gorthaur kernel: [drm] set register base offset for NBIF
Apr 12 14:28:48 gorthaur syslogd: last message repeated 1 times
Apr 12 14:28:48 gorthaur kernel: [drm] set register base offset for OSSSYS
Apr 12 14:28:48 gorthaur kernel: [drm] set register base offset for SDMA0
Apr 12 14:28:48 gorthaur kernel: [drm] set register base offset for SDMA1
Apr 12 14:28:48 gorthaur kernel: [drm] set register base offset for SMUIO
Apr 12 14:28:48 gorthaur kernel: [drm] set register base offset for THM
Apr 12 14:28:48 gorthaur kernel: [drm] set register base offset for UVD
Apr 12 14:28:48 gorthaur kernel: [drm] add ip block number 0 <nv_common>
Apr 12 14:28:48 gorthaur kernel: [drm] add ip block number 1 <gmc_v10_0>
Apr 12 14:28:48 gorthaur kernel: [drm] add ip block number 2 <navi10_ih>
Apr 12 14:28:48 gorthaur kernel: [drm] add ip block number 3
Apr 12 14:28:48 gorthaur kernel: [drm] add ip block number 4
Apr 12 14:28:48 gorthaur kernel: [drm] add ip block number 5
Apr 12 14:28:48 gorthaur kernel: [drm] add ip block number 6 <gfx_v10_0>
Apr 12 14:28:48 gorthaur kernel: [drm] add ip block number 7 <sdma_v5_0>
Apr 12 14:28:48 gorthaur kernel: [drm] add ip block number 8 <vcn_v2_0>
Apr 12 14:28:48 gorthaur kernel: drmn1: successfully loaded firmware image 'amdgpu/navi10_gpu_info.bin'
Apr 12 14:28:48 gorthaur kernel: ATOM BIOS: 115-D182PI0-100
Apr 12 14:28:48 gorthaur kernel: [drm] VCN decode is enabled in VM mode
Apr 12 14:28:48 gorthaur kernel: [drm] VCN encode is enabled in VM mode
Apr 12 14:28:48 gorthaur kernel: [drm] VCN jpeg decode is enabled in VM mode
Apr 12 14:28:48 gorthaur kernel: [drm] GPU posting now...
Apr 12 14:28:48 gorthaur kernel: [drm] vm size is 262144 GB, 4 levels, block size is 9-bit, fragment size is 9-bit
Apr 12 14:28:48 gorthaur kernel: drmn1: VRAM: 8176M 0x0000008000000000 - 0x00000081FEFFFFFF (8176M used)
Apr 12 14:28:48 gorthaur kernel: drmn1: GART: 512M 0x0000000000000000 - 0x000000001FFFFFFF
Apr 12 14:28:48 gorthaur kernel: Failed to add WC MTRR for [0xa0000000-0xafffffff]: -22; performance may suffer
Apr 12 14:28:48 gorthaur kernel: [drm] Detected VRAM RAM=8176M, BAR=256M
Apr 12 14:28:48 gorthaur kernel: [drm] RAM width 256bits GDDR6
Apr 12 14:28:48 gorthaur kernel: [TTM] Zone kernel: Available graphics memory: 8268990 KiB
Apr 12 14:28:48 gorthaur kernel: [TTM] Zone dma32: Available graphics memory: 2097152 KiB
Apr 12 14:28:48 gorthaur kernel: [TTM] Initializing pool allocator
Apr 12 14:28:48 gorthaur kernel: [drm] amdgpu: 8176M of VRAM memory ready
Apr 12 14:28:48 gorthaur kernel: [drm] amdgpu: 8176M of GTT memory ready.
Apr 12 14:28:48 gorthaur kernel: [drm] GART: num cpu pages 131072, num gpu pages 131072
Apr 12 14:28:48 gorthaur kernel: [drm] PCIE GART of 512M enabled (table at 0x0000008000000000).
Apr 12 14:28:50 gorthaur kernel: drmn1: successfully loaded firmware image 'amdgpu/navi10_sos.bin'
Apr 12 14:28:50 gorthaur kernel: drmn1: successfully loaded firmware image 'amdgpu/navi10_asd.bin'
Apr 12 14:28:50 gorthaur kernel: drmn1: successfully loaded firmware image 'amdgpu/navi10_smc.bin'
Apr 12 14:28:50 gorthaur kernel: drmn1: successfully loaded firmware image 'amdgpu/navi10_pfp.bin'
Apr 12 14:28:50 gorthaur kernel: drmn1: successfully loaded firmware image 'amdgpu/navi10_me.bin'
Apr 12 14:28:50 gorthaur kernel: drmn1: successfully loaded firmware image 'amdgpu/navi10_ce.bin'
Apr 12 14:28:50 gorthaur kernel: drmn1: successfully loaded firmware image 'amdgpu/navi10_rlc.bin'
Apr 12 14:28:50 gorthaur kernel: drmn1: successfully loaded firmware image 'amdgpu/navi10_mec.bin'
Apr 12 14:28:50 gorthaur kernel: drmn1: successfully loaded firmware image 'amdgpu/navi10_mec2.bin'
Apr 12 14:28:50 gorthaur kernel: drmn1: successfully loaded firmware image 'amdgpu/navi10_sdma.bin'
Apr 12 14:28:50 gorthaur kernel: drmn1: successfully loaded firmware image 'amdgpu/navi10_sdma1.bin'
Apr 12 14:28:50 gorthaur kernel: [drm] use_doorbell being set to: [true]
Apr 12 14:28:50 gorthaur syslogd: last message repeated 1 times
Apr 12 14:28:50 gorthaur kernel: drmn1: successfully loaded firmware image 'amdgpu/navi10_vcn.bin'
Apr 12 14:28:50 gorthaur kernel: [drm] Found VCN firmware Version ENC: 1.10 DEC: 5 VEP: 0 Revision: 13
Apr 12 14:28:50 gorthaur kernel: [drm] PSP loading VCN firmware
Apr 12 14:28:50 gorthaur kernel: [drm] reserve 0x900000 from 0x81fe400000 for PSP TMR
Apr 12 14:28:50 gorthaur kernel: amdgpu: [powerplay] smu driver if version = 0x00000033, smu fw if version = 0x00000037, smu fw version = 0x002a3d00 (42.61.0)
Apr 12 14:28:50 gorthaur kernel: amdgpu: [powerplay] SMU driver if version not matched
Apr 12 14:28:50 gorthaur kernel: amdgpu: [powerplay] SMU is initialized successfully!
Apr 12 14:28:50 gorthaur kernel: [drm] Display Core initialized with v3.2.48!
Apr 12 14:28:50 gorthaur kernel: [drm] Connector DP-1: get mode from tunables:
Apr 12 14:28:50 gorthaur kernel: [drm] - kern.vt.fb.modes.DP-1
Apr 12 14:28:50 gorthaur kernel: [drm] - kern.vt.fb.default_mode
Apr 12 14:28:50 gorthaur kernel: [drm] Connector DP-2: get mode from tunables:
Apr 12 14:28:50 gorthaur kernel: [drm] - kern.vt.fb.modes.DP-2
Apr 12 14:28:50 gorthaur kernel: [drm] - kern.vt.fb.default_mode
Apr 12 14:28:50 gorthaur kernel: [drm] Connector DP-3: get mode from tunables:
Apr 12 14:28:50 gorthaur kernel: [drm] - kern.vt.fb.modes.DP-3
Apr 12 14:28:50 gorthaur kernel: [drm] - kern.vt.fb.default_mode
Apr 12 14:28:50 gorthaur kernel: [drm] Connector HDMI-A-1: get mode from tunables:
Apr 12 14:28:50 gorthaur kernel: [drm] - kern.vt.fb.modes.HDMI-A-1
Apr 12 14:28:50 gorthaur kernel: [drm] - kern.vt.fb.default_mode
Apr 12 14:28:50 gorthaur kernel: [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
Apr 12 14:28:50 gorthaur kernel: [drm] Driver supports precise vblank timestamp query.
Apr 12 14:28:50 gorthaur kernel: [drm] kiq ring mec 2 pipe 1 q 0
Apr 12 14:28:50 gorthaur kernel: [drm] ring test on 10 succeeded in 38 usecs
Apr 12 14:28:50 gorthaur kernel: [drm] ring test on 10 succeeded in 12 usecs
Apr 12 14:28:50 gorthaur kernel: [drm] gfx 0 ring me 0 pipe 0 q 0
Apr 12 14:28:50 gorthaur kernel: [drm] ring test on 0 succeeded in 11 usecs
Apr 12 14:28:50 gorthaur kernel: [drm] gfx 1 ring me 0 pipe 1 q 0
Apr 12 14:28:50 gorthaur kernel: [drm] ring test on 1 succeeded in 2 usecs
Apr 12 14:28:50 gorthaur kernel: [drm] compute ring 0 mec 1 pipe 0 q 0
Apr 12 14:28:50 gorthaur kernel: [drm] ring test on 2 succeeded in 4 usecs
Apr 12 14:28:50 gorthaur kernel: [drm] compute ring 1 mec 1 pipe 1 q 0
Apr 12 14:28:50 gorthaur kernel: [drm] ring test on 3 succeeded in 2 usecs
Apr 12 14:28:50 gorthaur kernel: [drm] compute ring 2 mec 1 pipe 2 q 0
Apr 12 14:28:50 gorthaur kernel: [drm] ring test on 4 succeeded in 2 usecs
Apr 12 14:28:50 gorthaur kernel: [drm] compute ring 3 mec 1 pipe 3 q 0
Apr 12 14:28:50 gorthaur kernel: [drm] ring test on 5 succeeded in 2 usecs
Apr 12 14:28:50 gorthaur kernel: [drm] compute ring 4 mec 1 pipe 0 q 1
Apr 12 14:28:50 gorthaur kernel: [drm] ring test on 6 succeeded in 3 usecs
Apr 12 14:28:50 gorthaur kernel: [drm] compute ring 5 mec 1 pipe 1 q 1
Apr 12 14:28:50 gorthaur kernel: [drm] ring test on 7 succeeded in 2 usecs
Apr 12 14:28:50 gorthaur kernel: [drm] compute ring 6 mec 1 pipe 2 q 1
Apr 12 14:28:50 gorthaur kernel: [drm] ring test on 8 succeeded in 2 usecs
Apr 12 14:28:50 gorthaur kernel: [drm] compute ring 7 mec 1 pipe 3 q 1
Apr 12 14:28:50 gorthaur kernel: [drm] ring test on 9 succeeded in 2 usecs
Apr 12 14:28:50 gorthaur kernel: [drm] ring test on 11 succeeded in 31 usecs
Apr 12 14:28:50 gorthaur kernel: [drm] ring test on 12 succeeded in 33 usecs
Apr 12 14:28:50 gorthaur kernel: [drm] VCN decode and encode initialized successfully(under DPG Mode).
Apr 12 14:28:50 gorthaur kernel: [drm] fb mappable at 0xA01C9000
Apr 12 14:28:50 gorthaur kernel: [drm] vram apper at 0xA0000000
Apr 12 14:28:50 gorthaur kernel: [drm] size 18432000
Apr 12 14:28:50 gorthaur kernel: [drm] fb depth is 24
Apr 12 14:28:50 gorthaur kernel: [drm] pitch is 15360
Apr 12 14:28:50 gorthaur kernel: WARNING: Device "fb" is Giant locked and may be deleted before FreeBSD 14.0.
Apr 12 14:28:50 gorthaur kernel: VT: Replacing driver "efifb" with new "fb".
Apr 12 14:28:50 gorthaur kernel: start FB_INFO:
Apr 12 14:28:50 gorthaur kernel: type=11 height=1200 width=3840 depth=32
Apr 12 14:28:50 gorthaur kernel: cmsize=16 size=18432000
Apr 12 14:28:50 gorthaur kernel: pbase=0xa01c9000 vbase=0xfffff800a01c9000
Apr 12 14:28:50 gorthaur kernel: name=drmn1 flags=0x0 stride=15360 bpp=32
Apr 12 14:28:50 gorthaur kernel: cmap[0]=0 cmap[1]=7f0000 cmap[2]=7f00 cmap[3]=c4a000
Apr 12 14:28:50 gorthaur kernel: end FB_INFO
Apr 12 14:28:50 gorthaur kernel: drmn1: fb0: amdgpudrmfb frame buffer device
Apr 12 14:28:50 gorthaur kernel: drmn1: ring 0(gfx_0.0.0) uses VM inv eng 4 on hub 0
Apr 12 14:28:50 gorthaur kernel: drmn1: ring 1(gfx_0.1.0) uses VM inv eng 5 on hub 0
Apr 12 14:28:50 gorthaur kernel: drmn1: ring 2(comp_1.0.0) uses VM inv eng 6 on hub 0
Apr 12 14:28:50 gorthaur kernel: drmn1: ring 3(comp_1.1.0) uses VM inv eng 7 on hub 0
Apr 12 14:28:50 gorthaur kernel: drmn1: ring 4(comp_1.2.0) uses VM inv eng 8 on hub 0
Apr 12 14:28:50 gorthaur kernel: drmn1: ring 5(comp_1.3.0) uses VM inv eng 9 on hub 0
Apr 12 14:28:50 gorthaur kernel: drmn1: ring 6(comp_1.0.1) uses VM inv eng 10 on hub 0
Apr 12 14:28:50 gorthaur kernel: drmn1: ring 7(comp_1.1.1) uses VM inv eng 11 on hub 0
Apr 12 14:28:50 gorthaur kernel: drmn1: ring 8(comp_1.2.1) uses VM inv eng 12 on hub 0
Apr 12 14:28:50 gorthaur kernel: drmn1: ring 9(comp_1.3.1) uses VM inv eng 13 on hub 0
Apr 12 14:28:50 gorthaur kernel: drmn1: ring 10(kiq_2.1.0) uses VM inv eng 14 on hub 0
Apr 12 14:28:50 gorthaur kernel: drmn1: ring 11(sdma0) uses VM inv eng 15 on hub 0
Apr 12 14:28:50 gorthaur kernel: drmn1: ring 12(sdma1) uses VM inv eng 16 on hub 0
Apr 12 14:28:50 gorthaur kernel: drmn1: ring 13(vcn_dec) uses VM inv eng 4 on hub 1
Apr 12 14:28:50 gorthaur kernel: drmn1: ring 14(vcn_enc0) uses VM inv eng 5 on hub 1
Apr 12 14:28:50 gorthaur kernel: drmn1: ring 15(vcn_enc1) uses VM inv eng 6 on hub 1
Apr 12 14:28:50 gorthaur kernel: drmn1: ring 16(vcn_jpeg) uses VM inv eng 7 on hub 1
Apr 12 14:28:50 gorthaur kernel: [drm] Initialized amdgpu 3.35.0 20150101 for drmn1 on minor 0
Apr 12 14:28:52 gorthaur kernel: [drm] ib test on ring 0 succeeded
Apr 12 14:28:52 gorthaur kernel: [drm] ib test on ring 1 succeeded
Apr 12 14:28:52 gorthaur kernel: [drm] ib test on ring 2 succeeded
Apr 12 14:28:52 gorthaur kernel: [drm] ib test on ring 3 succeeded
Apr 12 14:28:52 gorthaur kernel: [drm] ib test on ring 4 succeeded
Apr 12 14:28:52 gorthaur kernel: [drm] ib test on ring 5 succeeded
Apr 12 14:28:52 gorthaur kernel: [drm] ib test on ring 6 succeeded
Apr 12 14:28:52 gorthaur kernel: [drm] ib test on ring 7 succeeded
Apr 12 14:28:52 gorthaur kernel: [drm] ib test on ring 8 succeeded
Apr 12 14:28:52 gorthaur kernel: [drm] ib test on ring 9 succeeded
Apr 12 14:28:52 gorthaur kernel: [drm] ib test on ring 10 succeeded
Apr 12 14:28:52 gorthaur kernel: [drm] ib test on ring 11 succeeded
Apr 12 14:28:52 gorthaur kernel: [drm] ib test on ring 12 succeeded

  • Of course feel free to ask any tests you may want o/

amdgpu no hw acceleration on gnome3 ?? - workaround amdgpu disable DRI3 in xorg.conf and switch to DRI2

Did anyone have a problem similar to mine with Gnome3. Namely, when starting, I have a big lag on loading that never goes away. If i switch betwen consoles only then is it seen that Gnome3 "works" . Other windows managers works OK (i try Mate/Xfce/Kde and i dont see any problem). HW acceleration works OK. Have tryed both 13-RELEASE and 14-current and same problem on both.

Is this mutter/gnome3 related problem or maye is something with drm-kmod-devel on amdgpu ??

rut@pila:~ % pciconf -lv
hostb0@pci0:0:0:0: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x15d0 subvendor=0x1022 subdevice=0x15d0
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Raven/Raven2 Root Complex'
class = bridge
subclass = HOST-PCI
none0@pci0:0:0:2: class=0x080600 rev=0x00 hdr=0x00 vendor=0x1022 device=0x15d1 subvendor=0x1022 subdevice=0x15d1
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Raven/Raven2 IOMMU'
class = base peripheral
subclass = IOMMU
hostb1@pci0:0:1:0: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1452 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge'
class = bridge
subclass = HOST-PCI
pcib1@pci0:0:1:2: class=0x060400 rev=0x00 hdr=0x01 vendor=0x1022 device=0x15d3 subvendor=0x1022 subdevice=0x1453
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Raven/Raven2 PCIe GPP Bridge [6:0]'
class = bridge
subclass = PCI-PCI
pcib2@pci0:0:1:7: class=0x060400 rev=0x00 hdr=0x01 vendor=0x1022 device=0x15d3 subvendor=0x1022 subdevice=0x1453
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Raven/Raven2 PCIe GPP Bridge [6:0]'
class = bridge
subclass = PCI-PCI
hostb2@pci0:0:8:0: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1452 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge'
class = bridge
subclass = HOST-PCI
pcib3@pci0:0:8:1: class=0x060400 rev=0x00 hdr=0x01 vendor=0x1022 device=0x15db subvendor=0x1022 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Raven/Raven2 Internal PCIe GPP Bridge 0 to Bus A'
class = bridge
subclass = PCI-PCI
intsmb0@pci0:0:20:0: class=0x0c0500 rev=0x61 hdr=0x00 vendor=0x1022 device=0x790b subvendor=0x19e5 subdevice=0x3e14
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'FCH SMBus Controller'
class = serial bus
subclass = SMBus
isab0@pci0:0:20:3: class=0x060100 rev=0x51 hdr=0x00 vendor=0x1022 device=0x790e subvendor=0x19e5 subdevice=0x3e14
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'FCH LPC Bridge'
class = bridge
subclass = PCI-ISA
hostb3@pci0:0:24:0: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x15e8 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Raven/Raven2 Device 24: Function 0'
class = bridge
subclass = HOST-PCI
hostb4@pci0:0:24:1: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x15e9 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Raven/Raven2 Device 24: Function 1'
class = bridge
subclass = HOST-PCI
hostb5@pci0:0:24:2: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x15ea subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Raven/Raven2 Device 24: Function 2'
class = bridge
subclass = HOST-PCI
hostb6@pci0:0:24:3: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x15eb subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Raven/Raven2 Device 24: Function 3'
class = bridge
subclass = HOST-PCI
hostb7@pci0:0:24:4: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x15ec subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Raven/Raven2 Device 24: Function 4'
class = bridge
subclass = HOST-PCI
hostb8@pci0:0:24:5: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x15ed subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Raven/Raven2 Device 24: Function 5'
class = bridge
subclass = HOST-PCI
hostb9@pci0:0:24:6: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x15ee subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Raven/Raven2 Device 24: Function 6'
class = bridge
subclass = HOST-PCI
hostb10@pci0:0:24:7: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x15ef subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Raven/Raven2 Device 24: Function 7'
class = bridge
subclass = HOST-PCI
iwm0@pci0:1:0:0: class=0x028000 rev=0x93 hdr=0x00 vendor=0x8086 device=0x08b4 subvendor=0x8086 subdevice=0x8270
vendor = 'Intel Corporation'
device = 'Wireless 3160'
class = network
nvme0@pci0:2:0:0: class=0x010802 rev=0x00 hdr=0x00 vendor=0x144d device=0xa808 subvendor=0x144d subdevice=0xa801
vendor = 'Samsung Electronics Co Ltd'
device = 'NVMe SSD Controller SM981/PM981/PM983'
class = mass storage
subclass = NVM
vgapci0@pci0:3:0:0: class=0x030000 rev=0xc2 hdr=0x00 vendor=0x1002 device=0x15d8 subvendor=0x19e5 subdevice=0x3e14
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'Picasso'
class = display
subclass = VGA
hdac0@pci0:3:0:1: class=0x040300 rev=0x00 hdr=0x00 vendor=0x1002 device=0x15de subvendor=0x19e5 subdevice=0x3e14
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'Raven/Raven2/Fenghuang HDMI/DP Audio Controller'
class = multimedia
subclass = HDA
none1@pci0:3:0:2: class=0x108000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x15df subvendor=0x19e5 subdevice=0x3e14
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 17h (Models 10h-1fh) Platform Security Processor'
class = encrypt/decrypt
xhci0@pci0:3:0:3: class=0x0c0330 rev=0x00 hdr=0x00 vendor=0x1022 device=0x15e0 subvendor=0x19e5 subdevice=0x3e14
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Raven USB 3.1'
class = serial bus
subclass = USB
xhci1@pci0:3:0:4: class=0x0c0330 rev=0x00 hdr=0x00 vendor=0x1022 device=0x15e1 subvendor=0x19e5 subdevice=0x3e14
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Raven USB 3.1'
class = serial bus
subclass = USB
none2@pci0:3:0:5: class=0x048000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x15e2 subvendor=0x19e5 subdevice=0x3e14
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Raven/Raven2/FireFlight/Renoir Audio Processor'
class = multimedia
hdac1@pci0:3:0:6: class=0x040300 rev=0x00 hdr=0x00 vendor=0x1022 device=0x15e3 subvendor=0x19e5 subdevice=0x3e14
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 17h (Models 10h-1fh) HD Audio Controller'
class = multimedia
subclass = HDA

rut@pila:~ % pkg info | grep drm-
drm-devel-kmod-5.4.92.g20210419 DRM modules for the linuxkpi-based KMS components (development version)
libdrm-2.4.104,1 Userspace interface to kernel Direct Rendering Module services

To Reproduce
start gdm or gnome-session (latest from ports or binary pkg)

https://i.postimg.cc/9F6zDk3r/20210420-112811.jpg
https://i.postimg.cc/rpcmJtwT/20210420-112823.jpg
https://i.postimg.cc/SNCYf4fW/20210420-112842.jpg
https://i.postimg.cc/B6jBqy9M/20210420-113439.jpg

https://i.postimg.cc/MT1Jr9Pr/20210420-113120.jpg

last picture is from MATE where hw acceleration works OK .

Vulkan app frozen after DPMS

On my AMD Ryzen 7 with a Picasso GPU (RAVEN/VEGA10) vulkan apps do not redraw after waking up the screen.
No idea if it was always the case of if it's recent.

vboxvideo module does not load

As written in the mail thread: https://lists.freebsd.org/pipermail/freebsd-x11/2020-July/026391.html

I tried the vboxvideo module of drm-devel-kmod-5.3.g20200710. I get this error when kldload-ing the module.

Jul 16 08:12:15 sjakie kernel: link_elf_obj: symbol drm_gem_vram_pin undefined
Jul 16 08:12:16 sjakie kernel: linker_load_file: /boot/modules/vboxvideo.ko - unsupported file type

Running on:
FreeBSD sjakie 13.0-CURRENT FreeBSD 13.0-CURRENT #7 r363210M: Wed Jul 15 16:25:10 CEST 2020 builder@sjakie:/data/src/obj-freebsd-current/data/src/freebsd-current/amd64.amd64/sys/GENERIC-NODEBUG amd64

I tried the drm-devel-kmod package and also recompiled it with the /usr/src version of my running kernel.

"same file descriptor" warning on amdgpu

Not sure if this is a bug or enhancement, but we do get this warning from time-to-time with the amdgpu (for example when running X or vdpauinfo with a NAVI10 card.

amdgpu: os_same_file_description couldn't determine if two DRM fds reference the same file description.
If they do, bad things may happen!

Apparently this is handled via the kcmp syscall on Linux, at least according to this commit from Gentoo.

Probably kcmp is not implemented yet on FreeBSD? At this point, it's hard to know "bad things" are actually happening (I don't understand how the DRM fds work, but I guess there are two here since it seems strange to see the message otherwise). So, it might point to problems in the future, and it therefore might be something worth fixing if its easy enough to implement.

kernel panic from linux_dump_stack() caused by drm_atomic_helper.c:621

Describe the bug
kernel panic from linux_dump_stack() caused by drm_atomic_helper.c:621 while I was running Firefox and compiling kernel sources.

relevant ports source path graphics/drm-fbsd13-kmod/work/drm-kmod-drm_v5.4.92_2/drivers/gpu/drm/drm_atomic_helper.c:621

Fatal trap 9: general protection fault while in kernel mode
cpuid = 2; apic id = 04
instruction pointer	= 0x20:0xffffffff81075b79
stack pointer	        = 0x28:0xfffffe00d2d63a10
frame pointer	        = 0x28:0xfffffe00d2d63b60
code segment		= base 0x0, limit 0xfffff, type 0x1b
			= DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags	= interrupt enabled, resume, IOPL = 0
current process		= 15413 (c++)
trap number		= 9
WARNING !drm_modeset_is_locked(&crtc->mutex) failed at /wrkdirs/usr/ports/graphics/drm-fbsd13-kmod/work/drm-kmod-drm_v5.4.92_2/drivers/gpu/drm/drm_atomic_helper.c:621
#0 0xffffffff80e3acc3 at linux_dump_stack+0x23
#1 0xffffffff82a863c3 at drm_atomic_helper_check_modeset+0xb3
#2 0xffffffff8297eb8d at intel_atomic_check+0x8d
#3 0xffffffff82a85360 at drm_atomic_check_only+0x400
#4 0xffffffff82a85793 at drm_atomic_commit+0x13
#5 0xffffffff82a923b8 at drm_client_modeset_commit_atomic+0x148
#6 0xffffffff82a92119 at drm_client_modeset_commit_force+0x69
#7 0xffffffff82ad253a at drm_fb_helper_restore_fbdev_mode_unlocked+0x7a
#8 0xffffffff82acc527 at vt_kms_postswitch+0x167
#9 0xffffffff80a622cb at vt_window_switch+0x12b
#10 0xffffffff80a5f36f at vtterm_cngrab+0x4f
#11 0xffffffff80ba06d6 at cngrab+0x16
#12 0xffffffff80c05d6e at vpanic+0xee
#13 0xffffffff80c05c73 at panic+0x43
#14 0xffffffff810850c7 at trap_fatal+0x387
#15 0xffffffff81084577 at trap+0x67
#16 0xffffffff8105b8d8 at calltrap+0x8
#17 0xffffffff80f26a9f at vmspace_exit+0x7f
WARNING !drm_modeset_is_locked(&crtc->mutex) failed at /wrkdirs/usr/ports/graphics/drm-fbsd13-kmod/work/drm-kmod-drm_v5.4.92_2/drivers/gpu/drm/drm_atomic_helper.c:621

FreeBSD version

I'm running 13.0-STABLE on this laptop.

FreeBSD laptop 13.0-STABLE FreeBSD 13.0-STABLE #4 stable/13-659d71186: Wed Apr 14 00:01:48 IST 2021     sbz@laptop:/usr/obj/usr/src/amd64.amd64/sys/T410  amd64

PCI Info

Not a very recent Graphic controller

pciconf -lv
vgapci0@pci0:0:2:0:	class=0x030000 rev=0x02 hdr=0x00 vendor=0x8086 device=0x0046 subvendor=0x17aa subdevice=0x215a
    vendor     = 'Intel Corporation'
    device     = 'Core Processor Integrated Graphics Controller'
    class      = display
    subclass   = VGA

DRM KMOD version

drm-fbsd13-kmod 5.4.92.g20210202
drm-kmod g20190710_1

To Reproduce
Unsure if it will be possible to reproduce, I was running Firefox and compiling kernel source at the same time and suddenly it raised the panic.

Additional context
Thinkpad T410 running with xorg server xorg-server-1.20.9_3,1 with intel kms I have kld_list="i915kms" in rc.conf

kldstat |grep i915
 4    1 0xffffffff82920000   158458 i915kms.ko

dmesg report Intel Ironlake

agp0: <Intel Ironlake (M) SVGA controller> on vgapci0
drmn0: <drmn> on vgapci0
vgapci0: <VGA-compatible display> port 0x1800-0x1807 mem 0xf2000000-0xf23fffff,0xd0000000-0xdfffffff irq 16 at device 2.0 on pci1
vgapci0: child drmn0 requested pci_enable_io
drmn0: fb0: i915drmfb frame buffer device

System updates break on drm-kmod

Dear maintainers,

I updated from 12.1-RELEASE to 12.2-RELEASE and could not properly complete the procedure, because after the first reboot, the system does not come up to a shell. The error messages where not decipherable because the system output was scrambled.

I then had to reboot the old kernel, disable loading the i915kms kernel module (in my case) and then I could boot the new kernel, remove the drm-kmod and drm-fbsd12.0-kmod packages via pkg, build the ports and only then I could complete the update.
All of this was only possible after I had spent way too much time searching through vaguely related forum threads.
As some users reported on IRC, this has happened with several releases in the past.

I have two issues with that:

  1. Is there a way to have the proper package ready with the new release in order to avoid having to use ports?
  2. Is there a way to document this?

I may sound like I am only complaining here, but I'd actually like to help out if I can. I don't know how though.

Relevant System Specs:
Intel i5-4200U (Intelยฎ HD Graphics 4400)
FreeBSD 12.1-RELEASE/FreeBSD 12.2-RELEASE

Blank Screen when loading i915kms on Intel TigerLake

When I load i915kms on a HP Spectre x360 13t-aw200, I get a blank screen. No console output, nothing.

This was on the 5.4 branch, both self-compiled and drm-devel-kmod package/port.

My Spectre is a Intel TigerLake/"Evo" model. I believe this may affect other laptops including newer ThinkPads (e.g. X1 Carbon 9th Gen and sister models), but can't confirm.

OpenBSD has Linux 5.7 GPU drivers and a TigerLake-based Lenovo "X1 Nano" has graphics support (according to developer jcs@).

drm-kmod not installing i915kms.ko in FreeBSD 13-RELEASE i386

Describe the bug
drm-kmod (port or package) does not install the file i915kms.ko, so maybe it does not install at all drm-fbsd13-kmod.

FreeBSD version

FreeBSD myhost 13.0-RELEASE FreeBSD 13.0-RELEASE #0 releng/13.0-n244733-ea31abc261f: Fri Apr  9 04:04:45 UTC 2021     [email protected]:/usr/obj/usr/src/i386.i386/sys/GENERIC  i386

PCI Info

pciconf -lv
hostb0@pci0:0:0:0:	class=0x060000 rev=0x03 hdr=0x00 vendor=0x8086 device=0x2590 subvendor=0x1025 subdevice=0x006a
    vendor     = 'Intel Corporation'
    device     = 'Mobile 915GM/PM/GMS/910GML Express Processor to DRAM Controller'
    class      = bridge
    subclass   = HOST-PCI
vgapci0@pci0:0:2:0:	class=0x030000 rev=0x03 hdr=0x00 vendor=0x8086 device=0x2592 subvendor=0x1025 subdevice=0x006a
    vendor     = 'Intel Corporation'
    device     = 'Mobile 915GM/GMS/910GML Express Graphics Controller'
    class      = display
    subclass   = VGA
vgapci1@pci0:0:2:1:	class=0x038000 rev=0x03 hdr=0x00 vendor=0x8086 device=0x2792 subvendor=0x1025 subdevice=0x006a
    vendor     = 'Intel Corporation'
    device     = 'Mobile 915GM/GMS/910GML Express Graphics Controller'
    class      = display
uhci0@pci0:0:29:0:	class=0x0c0300 rev=0x03 hdr=0x00 vendor=0x8086 device=0x2658 subvendor=0x1025 subdevice=0x006a
    vendor     = 'Intel Corporation'
    device     = '82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI'
    class      = serial bus
    subclass   = USB
uhci1@pci0:0:29:1:	class=0x0c0300 rev=0x03 hdr=0x00 vendor=0x8086 device=0x2659 subvendor=0x1025 subdevice=0x006a
    vendor     = 'Intel Corporation'
    device     = '82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI'
    class      = serial bus
    subclass   = USB
uhci2@pci0:0:29:2:	class=0x0c0300 rev=0x03 hdr=0x00 vendor=0x8086 device=0x265a subvendor=0x1025 subdevice=0x006a
    vendor     = 'Intel Corporation'
    device     = '82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI'
    class      = serial bus
    subclass   = USB
uhci3@pci0:0:29:3:	class=0x0c0300 rev=0x03 hdr=0x00 vendor=0x8086 device=0x265b subvendor=0x1025 subdevice=0x006a
    vendor     = 'Intel Corporation'
    device     = '82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI'
    class      = serial bus
    subclass   = USB
ehci0@pci0:0:29:7:	class=0x0c0320 rev=0x03 hdr=0x00 vendor=0x8086 device=0x265c subvendor=0x1025 subdevice=0x006a
    vendor     = 'Intel Corporation'
    device     = '82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller'
    class      = serial bus
    subclass   = USB
pcib1@pci0:0:30:0:	class=0x060401 rev=0xd3 hdr=0x01 vendor=0x8086 device=0x2448 subvendor=0x1025 subdevice=0x006a
    vendor     = 'Intel Corporation'
    device     = '82801 Mobile PCI Bridge'
    class      = bridge
    subclass   = PCI-PCI
pcm0@pci0:0:30:2:	class=0x040100 rev=0x03 hdr=0x00 vendor=0x8086 device=0x266e subvendor=0x1025 subdevice=0x006a
    vendor     = 'Intel Corporation'
    device     = '82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Audio Controller'
    class      = multimedia
    subclass   = audio
none0@pci0:0:30:3:	class=0x070300 rev=0x03 hdr=0x00 vendor=0x8086 device=0x266d subvendor=0x1025 subdevice=0x006a
    vendor     = 'Intel Corporation'
    device     = '82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Modem Controller'
    class      = simple comms
    subclass   = generic modem
isab0@pci0:0:31:0:	class=0x060100 rev=0x03 hdr=0x00 vendor=0x8086 device=0x2641 subvendor=0x1025 subdevice=0x006a
    vendor     = 'Intel Corporation'
    device     = '82801FBM (ICH6M) LPC Interface Bridge'
    class      = bridge
    subclass   = PCI-ISA
atapci0@pci0:0:31:1:	class=0x01018a rev=0x03 hdr=0x00 vendor=0x8086 device=0x266f subvendor=0x1025 subdevice=0x006a
    vendor     = 'Intel Corporation'
    device     = '82801FB/FBM/FR/FW/FRW (ICH6 Family) IDE Controller'
    class      = mass storage
    subclass   = ATA
ichsmb0@pci0:0:31:3:	class=0x0c0500 rev=0x03 hdr=0x00 vendor=0x8086 device=0x266a subvendor=0x1025 subdevice=0x006a
    vendor     = 'Intel Corporation'
    device     = '82801FB/FBM/FR/FW/FRW (ICH6 Family) SMBus Controller'
    class      = serial bus
    subclass   = SMBus
ath0@pci0:6:5:0:	class=0x020000 rev=0x01 hdr=0x00 vendor=0x168c device=0x001a subvendor=0x1468 subdevice=0x0418
    vendor     = 'Qualcomm Atheros'
    device     = 'AR2413/AR2414 Wireless Network Adapter [AR5005G(S) 802.11bg]'
    class      = network
    subclass   = ethernet
rl0@pci0:6:7:0:	class=0x020000 rev=0x10 hdr=0x00 vendor=0x10ec device=0x8139 subvendor=0x1025 subdevice=0x006a
    vendor     = 'Realtek Semiconductor Co., Ltd.'
    device     = 'RTL-8100/8101L/8139 PCI Fast Ethernet Adapter'
    class      = network
    subclass   = ethernet
cbb0@pci0:6:9:0:	class=0x060700 rev=0x01 hdr=0x02 vendor=0x1524 device=0x1410 subvendor=0x1025 subdevice=0x006a
    vendor     = 'ENE Technology Inc'
    device     = 'CB1410 Cardbus Controller'
    class      = bridge
    subclass   = PCI-CardBus

DRM KMOD version

drm-fbsd13-kmod 5.4.92.g20210419
drm-kmod g20190710_1

To Reproduce
Make a fresh installation of FreeBSD 13-RELEASE and install drm-kmod, then search for i915kms.ko. It is not present.

Additional context
Output of freebsd-version -kru:

13.0-RELEASE
13.0-RELEASE
13.0-RELEASE

The package drm-fbsd13-kmod must be manually installed in order to obtain the file i915kms.ko in this system.

The issue is described in this freebsd-questions thread.

Renoir: panic when starting X with the amdgpu(4x) Xorg driver

I'm trying to start X on my Thinkpad T14 Gen1 AMD (Ryzen 7 Pro 4750U), but the system crashes to DDB.

I'm using latest -CURRENT and ports. The amdgpu kernel module from the 5.4.62.g20201003 drm-current-kmod port seems to load successfully when I put hw.amdgpu.exp_hw_support=1 into /boot/loader.conf.

It only crashes when I use the amdgpu driver for X:

Section "Device"
        Identifier "Card0"
        Driver "amdgpu"
EndSection

With scfb X start successfully.

If I'm reading the stacktrace correctly, page is NULL at this line here:

if (!vm_page_busy_acquire(page, VM_ALLOC_WAITFAIL))

part of core.txt.0:

Thu Oct 22 22:53:13 CEST 2020

FreeBSD 13.0-CURRENT FreeBSD 13.0-CURRENT #0 r366953+44cf9eb23ade-c272379(master): Thu Oct 22 22:41:23 CEST 2020     root@toluca:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG  amd64

panic: page fault

GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "amd64-marcel-freebsd"...

Unread portion of the kernel message buffer:
<4>__pm_runtime_resume not implemented -- see your local kernel hacker
<4>pm_runtime_mark_last_busy not implemented -- see your local kernel hacker
<4>__pm_runtime_suspend not implemented -- see your local kernel hacker
<4>__pm_runtime_resume not implemented -- see your local kernel hacker
<4>pm_runtime_mark_last_busy not implemented -- see your local kernel hacker
<4>__pm_runtime_suspend not implemented -- see your local kernel hacker


Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address	= 0x20
fault code		= supervisor read data, page not present
instruction pointer	= 0x20:0xffffffff80eda064
stack pointer	        = 0x0:0xfffffe00e823b750
frame pointer	        = 0x0:0xfffffe00e823b780
code segment		= base 0x0, limit 0xfffff, type 0x1b
			= DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags	= interrupt enabled, resume, IOPL = 0
current process		= 1756 (Xorg)
trap number		= 12
panic: page fault
cpuid = 0
time = 1603399896
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe00e823b400
vpanic() at vpanic+0x182/frame 0xfffffe00e823b450
panic() at panic+0x43/frame 0xfffffe00e823b4b0
trap_fatal() at trap_fatal+0x387/frame 0xfffffe00e823b510
trap_pfault() at trap_pfault+0x4f/frame 0xfffffe00e823b570
trap() at trap+0x27d/frame 0xfffffe00e823b680
calltrap() at calltrap+0x8/frame 0xfffffe00e823b680
--- trap 0xc, rip = 0xffffffff80eda064, rsp = 0xfffffe00e823b750, rbp = 0xfffffe00e823b780 ---
vm_page_busy_acquire() at vm_page_busy_acquire+0x14/frame 0xfffffe00e823b780
ttm_bo_vm_fault() at ttm_bo_vm_fault+0x2de/frame 0xfffffe00e823b810
linux_cdev_pager_populate() at linux_cdev_pager_populate+0x11b/frame 0xfffffe00e823b880
vm_fault_allocate() at vm_fault_allocate+0x2a2/frame 0xfffffe00e823b8f0
vm_fault() at vm_fault+0x418/frame 0xfffffe00e823b9f0
vm_fault_trap() at vm_fault_trap+0x6d/frame 0xfffffe00e823ba40
trap_pfault() at trap_pfault+0x1f8/frame 0xfffffe00e823baa0
trap() at trap+0x3fd/frame 0xfffffe00e823bbb0
calltrap() at calltrap+0x8/frame 0xfffffe00e823bbb0
--- trap 0xc, rip = 0x800a985cb, rsp = 0x7fffffffcb88, rbp = 0x7fffffffcbd0 ---
KDB: enter: panic

No symbol "zombproc" in current context.
Reading symbols from /boot/kernel/aesni.ko...Reading symbols from /usr/lib/debug//boot/kernel/aesni.ko.debug...done.
done.
Loaded symbols for /boot/kernel/aesni.ko
Reading symbols from /boot/kernel/zfs.ko...Reading symbols from /usr/lib/debug//boot/kernel/zfs.ko.debug...done.
done.
Loaded symbols for /boot/kernel/zfs.ko
Reading symbols from /boot/kernel/geom_eli.ko...Reading symbols from /usr/lib/debug//boot/kernel/geom_eli.ko.debug...done.
done.
Loaded symbols for /boot/kernel/geom_eli.ko
Reading symbols from /boot/kernel/cryptodev.ko...Reading symbols from /usr/lib/debug//boot/kernel/cryptodev.ko.debug...done.
done.
Loaded symbols for /boot/kernel/cryptodev.ko
Reading symbols from /boot/kernel/intpm.ko...Reading symbols from /usr/lib/debug//boot/kernel/intpm.ko.debug...done.
done.
Loaded symbols for /boot/kernel/intpm.ko
Reading symbols from /boot/kernel/smbus.ko...Reading symbols from /usr/lib/debug//boot/kernel/smbus.ko.debug...done.
done.
Loaded symbols for /boot/kernel/smbus.ko
Reading symbols from /boot/kernel/if_rtwn_usb.ko...Reading symbols from /usr/lib/debug//boot/kernel/if_rtwn_usb.ko.debug...done.
done.
Loaded symbols for /boot/kernel/if_rtwn_usb.ko
Reading symbols from /boot/kernel/rtwn.ko...Reading symbols from /usr/lib/debug//boot/kernel/rtwn.ko.debug...done.
done.
Loaded symbols for /boot/kernel/rtwn.ko
Reading symbols from /boot/kernel/ng_ubt.ko...Reading symbols from /usr/lib/debug//boot/kernel/ng_ubt.ko.debug...done.
done.
Loaded symbols for /boot/kernel/ng_ubt.ko
Reading symbols from /boot/kernel/netgraph.ko...Reading symbols from /usr/lib/debug//boot/kernel/netgraph.ko.debug...done.
done.
Loaded symbols for /boot/kernel/netgraph.ko
Reading symbols from /boot/kernel/ng_hci.ko...Reading symbols from /usr/lib/debug//boot/kernel/ng_hci.ko.debug...done.
done.
Loaded symbols for /boot/kernel/ng_hci.ko
Reading symbols from /boot/kernel/ng_bluetooth.ko...Reading symbols from /usr/lib/debug//boot/kernel/ng_bluetooth.ko.debug...done.
done.
Loaded symbols for /boot/kernel/ng_bluetooth.ko
Reading symbols from /boot/kernel/mac_ntpd.ko...Reading symbols from /usr/lib/debug//boot/kernel/mac_ntpd.ko.debug...done.
done.
Loaded symbols for /boot/kernel/mac_ntpd.ko
Reading symbols from /boot/kernel/amdgpu.ko...Reading symbols from /usr/lib/debug//boot/kernel/amdgpu.ko.debug...done.
done.
Loaded symbols for /boot/kernel/amdgpu.ko
Reading symbols from /boot/kernel/drm.ko...Reading symbols from /usr/lib/debug//boot/kernel/drm.ko.debug...done.
done.
Loaded symbols for /boot/kernel/drm.ko
Reading symbols from /boot/kernel/linuxkpi.ko...Reading symbols from /usr/lib/debug//boot/kernel/linuxkpi.ko.debug...done.
done.
Loaded symbols for /boot/kernel/linuxkpi.ko
Reading symbols from /boot/kernel/backlight.ko...Reading symbols from /usr/lib/debug//boot/kernel/backlight.ko.debug...done.
done.
Loaded symbols for /boot/kernel/backlight.ko
Reading symbols from /boot/kernel/linuxkpi_gplv2.ko...Reading symbols from /usr/lib/debug//boot/kernel/linuxkpi_gplv2.ko.debug...done.
done.
Loaded symbols for /boot/kernel/linuxkpi_gplv2.ko
Reading symbols from /boot/kernel/lindebugfs.ko...Reading symbols from /usr/lib/debug//boot/kernel/lindebugfs.ko.debug...done.
done.
Loaded symbols for /boot/kernel/lindebugfs.ko
Reading symbols from /boot/kernel/ttm.ko...Reading symbols from /usr/lib/debug//boot/kernel/ttm.ko.debug...done.
done.
Loaded symbols for /boot/kernel/ttm.ko
Reading symbols from /boot/modules/amdgpu_renoir_gpu_info_bin.ko...done.
Loaded symbols for /boot/modules/amdgpu_renoir_gpu_info_bin.ko
Reading symbols from /boot/modules/amdgpu_renoir_sdma_bin.ko...done.
Loaded symbols for /boot/modules/amdgpu_renoir_sdma_bin.ko
Reading symbols from /boot/modules/amdgpu_renoir_asd_bin.ko...done.
Loaded symbols for /boot/modules/amdgpu_renoir_asd_bin.ko
Reading symbols from /boot/modules/amdgpu_renoir_pfp_bin.ko...done.
Loaded symbols for /boot/modules/amdgpu_renoir_pfp_bin.ko
Reading symbols from /boot/modules/amdgpu_renoir_me_bin.ko...done.
Loaded symbols for /boot/modules/amdgpu_renoir_me_bin.ko
Reading symbols from /boot/modules/amdgpu_renoir_ce_bin.ko...done.
Loaded symbols for /boot/modules/amdgpu_renoir_ce_bin.ko
Reading symbols from /boot/modules/amdgpu_renoir_rlc_bin.ko...done.
Loaded symbols for /boot/modules/amdgpu_renoir_rlc_bin.ko
Reading symbols from /boot/modules/amdgpu_renoir_mec_bin.ko...done.
Loaded symbols for /boot/modules/amdgpu_renoir_mec_bin.ko
Reading symbols from /boot/modules/amdgpu_renoir_mec2_bin.ko...done.
Loaded symbols for /boot/modules/amdgpu_renoir_mec2_bin.ko
Reading symbols from /boot/modules/amdgpu_renoir_vcn_bin.ko...done.
Loaded symbols for /boot/modules/amdgpu_renoir_vcn_bin.ko
#0  doadump (textdump=0) at src/sys/amd64/include/pcpu_aux.h:55
55	src/sys/amd64/include/pcpu_aux.h: No such file or directory.
	in src/sys/amd64/include/pcpu_aux.h
(kgdb) #0  doadump (textdump=0) at src/sys/amd64/include/pcpu_aux.h:55
#1  0xffffffff804a127a in db_dump (dummy=Unhandled dwarf expression opcode 0xa3
) at /usr/src/sys/ddb/db_command.c:575
#2  0xffffffff804a1040 in db_command (cmd_table=<value optimized out>, 
    dopager=1) at /usr/src/sys/ddb/db_command.c:482
#3  0xffffffff804a0d9d in db_command_loop ()
    at /usr/src/sys/ddb/db_command.c:535
#4  0xffffffff804a40a6 in db_trap (type=<value optimized out>, 
    code=<value optimized out>) at /usr/src/sys/ddb/db_main.c:270
#5  0xffffffff80c40aa4 in kdb_trap (type=3, code=0, tf=<value optimized out>)
    at /usr/src/sys/kern/subr_kdb.c:699
#6  0xffffffff8102429c in trap (frame=0xfffffe00e823b330)
    at /usr/src/sys/amd64/amd64/trap.c:576
#7  0xffffffff80ff8628 in calltrap ()
    at /usr/src/sys/amd64/amd64/exception.S:290
#8  0xffffffff80c40237 in kdb_enter (why=0xffffffff811da12d "panic", 
    msg=<value optimized out>) at src/sys/amd64/include/cpufunc.h:65
#9  0xffffffff80bf1ebe in vpanic (fmt=<value optimized out>, 
    ap=<value optimized out>) at /usr/src/sys/kern/kern_shutdown.c:901
#10 0xffffffff80bf1d13 in panic (fmt=<value optimized out>)
    at /usr/src/sys/kern/kern_shutdown.c:838
#11 0xffffffff81024717 in trap_fatal (frame=<value optimized out>, 
    eva=<value optimized out>) at /usr/src/sys/amd64/amd64/trap.c:915
#12 0xffffffff8102476f in trap_pfault (frame=0xfffffe00e823b690, 
    signo=<value optimized out>, ucode=<value optimized out>)
    at src/sys/amd64/include/pcpu_aux.h:55
#13 0xffffffff81023dcd in trap (frame=0xfffffe00e823b690)
    at /usr/src/sys/amd64/amd64/trap.c:398
#14 0xffffffff80ff8628 in calltrap ()
    at /usr/src/sys/amd64/amd64/exception.S:290
#15 0xffffffff80eda064 in vm_page_busy_acquire (m=0x0, allocflags=16)
    at /usr/src/sys/vm/vm_page.c:874
#16 0xffffffff8352e48e in ttm_bo_vm_fault (dummy=<value optimized out>, 
    vmf=<value optimized out>)
    at /usr/local/sys/modules/drm-current-kmod/drivers/gpu/drm/ttm/ttm_bo_vm.c:322
#17 0xffffffff831d1bcb in linux_cdev_pager_populate (
    vm_obj=0xfffff800ba5c1420, pidx=<value optimized out>, 
    fault_type=<value optimized out>, max_prot=Unhandled dwarf expression opcode 0xa3
)
    at /usr/src/sys/compat/linuxkpi/common/src/linux_compat.c:557
#18 0xffffffff80ec3bd2 in vm_fault_allocate (fs=0xfffffe00e823b950)
    at src/sys/vm/vm_pager.h:171
#19 0xffffffff80ec2948 in vm_fault (map=<value optimized out>, 
    vaddr=34573647872, fault_type=2 '\002', fault_flags=<value optimized out>, 
    m_hold=<value optimized out>) at /usr/src/sys/vm/vm_fault.c:1404
#20 0xffffffff80ec240d in vm_fault_trap (map=0xfffffe00e789a000, 
    vaddr=<value optimized out>, fault_type=<value optimized out>, 
    fault_flags=0, signo=0xfffffe00e823bb84, ucode=0xfffffe00e823bb80)
    at /usr/src/sys/vm/vm_fault.c:631
#21 0xffffffff81024918 in trap_pfault (frame=0xfffffe00e823bbc0, 
    signo=<value optimized out>, ucode=<value optimized out>)
    at /usr/src/sys/amd64/amd64/trap.c:817
#22 0xffffffff81023f4d in trap (frame=0xfffffe00e823bbc0)
    at /usr/src/sys/amd64/amd64/trap.c:340
#23 0xffffffff80ff8628 in calltrap ()
    at /usr/src/sys/amd64/amd64/exception.S:290
#24 0x0000000800a985cb in ?? ()
Previous frame inner to this frame (corrupt stack?)
Current language:  auto; currently minimal
(kgdb) 

I could provide the full core.txt.0 and the vmcore if needed.

AMD Navi 5700XT on 13-CURRENT does not work

Unsure of the exact cause here as I was trying out FreeBSD today but unable to get past a base vanilla install; stuck at installing GPU drivers.

I installed drm-devel-kmod from ports but when attempting to load /boot/modules/amdgpu.ko either within /etc/rc.conf or manually via kldload the machine auto-restarts or hangs with no display output as I've been dropped into a debugger.

both sysctl debug.debugger_on_panic=0 and/or sysctl debug.witness.watch=-1 followed by kldload /boot/modules/amdgpu.ko do nothing to change this.

Here are some logs, if I am missing more please instruct on how to provide them (very, very new to FreeBSD).

Very long logs spoiler
tbsd dumped core - see /var/crash/vmcore.1

Sat Nov 28 20:26:28 AWST 2020

FreeBSD tbsd 13.0-CURRENT FreeBSD 13.0-CURRENT #0 9e082d278b9-c254726(main): Thu Nov 26 04:50:43 UTC 2020     [email protected]:/usr/obj/usr/src/amd64.amd64/sys/GENERIC  amd64

panic: dummy ctx

GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "amd64-marcel-freebsd"...

Unread portion of the kernel message buffer:
taskqueue_drain with the following non-sleepable locks held:
exclusive sleep mutex vtdev (vtdev) r = 0 (0xffffffff818e6350) locked @ /usr/src/sys/dev/vt/vt_core.c:2825
stack backtrace:
#0 0xffffffff80c540b1 at witnespanic: dummy ctx
cpuid = 13
time = 1606566339
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe00aa6044d8
vpanic() at vpanic+0x181/frame 0xfffffe00aa604528
panic() at panic+0x43/frame 0xfffffe00aa604588
fpu_kern_leave() at fpu_kern_leave+0x21c/frame 0xfffffe00aa6045b8
dcn20_validate_bandwidth() at dcn20_validate_bandwidth+0x15f/frame 0xfffffe00aa6045f0
dc_validate_global_state() at dc_validate_global_state+0x2ce/frame 0xfffffe00aa604650
amdgpu_dm_atomic_check() at amdgpu_dm_atomic_check+0xff0/frame 0xfffffe00aa604930
drm_atomic_check_only() at drm_atomic_check_only+0x400/frame 0xfffffe00aa6049b0
drm_atomic_commit() at drm_atomic_commit+0x13/frame 0xfffffe00aa6049d0
drm_client_modeset_commit_atomic() at drm_client_modeset_commit_atomic+0x148/frame 0xfffffe00aa604a40
drm_client_modeset_commit_force() at drm_client_modeset_commit_force+0x69/frame 0xfffffe00aa604a90
drm_fb_helper_restore_fbdev_mode_unlocked() at drm_fb_helper_restore_fbdev_mode_unlocked+0x7a/frame 0xfffffe00aa604ac0
taskqueue_run_locked() at taskqueue_run_locked+0xaa/frame 0xfffffe00aa604b40
taskqueue_thread_loop() at taskqueue_thread_loop+0x94/frame 0xfffffe00aa604b70
fork_exit() at fork_exit+0x80/frame 0xfffffe00aa604bb0
fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe00aa604bb0
--- trap 0, rip = 0, rsp = 0, rbp = 0 ---
Uptime: 2m22s
Dumping 1213 out of 32687 MB:..2%..11%..22%..31%..41%..51%..61%..72%..81%..91%

No symbol "zombproc" in current context.
Reading symbols from /boot/kernel/acpi_wmi.ko...Reading symbols from /usr/lib/debug//boot/kernel/acpi_wmi.ko.debug...done.
done.
Loaded symbols for /boot/kernel/acpi_wmi.ko
Reading symbols from /boot/kernel/if_iwm.ko...Reading symbols from /usr/lib/debug//boot/kernel/if_iwm.ko.debug...done.
done.
Loaded symbols for /boot/kernel/if_iwm.ko
Reading symbols from /boot/kernel/iwm3168fw.ko...Reading symbols from /usr/lib/debug//boot/kernel/iwm3168fw.ko.debug...done.
done.
Loaded symbols for /boot/kernel/iwm3168fw.ko
Reading symbols from /boot/kernel/intpm.ko...Reading symbols from /usr/lib/debug//boot/kernel/intpm.ko.debug...done.
done.
Loaded symbols for /boot/kernel/intpm.ko
Reading symbols from /boot/kernel/smbus.ko...Reading symbols from /usr/lib/debug//boot/kernel/smbus.ko.debug...done.
done.
Loaded symbols for /boot/kernel/smbus.ko
Reading symbols from /boot/kernel/uhid.ko...Reading symbols from /usr/lib/debug//boot/kernel/uhid.ko.debug...done.
done.
Loaded symbols for /boot/kernel/uhid.ko
Reading symbols from /boot/kernel/wmt.ko...Reading symbols from /usr/lib/debug//boot/kernel/wmt.ko.debug...done.
done.
Loaded symbols for /boot/kernel/wmt.ko
Reading symbols from /boot/kernel/ums.ko...Reading symbols from /usr/lib/debug//boot/kernel/ums.ko.debug...done.
done.
Loaded symbols for /boot/kernel/ums.ko
Reading symbols from /boot/kernel/ng_ubt.ko...Reading symbols from /usr/lib/debug//boot/kernel/ng_ubt.ko.debug...done.
done.
Loaded symbols for /boot/kernel/ng_ubt.ko
Reading symbols from /boot/kernel/netgraph.ko...Reading symbols from /usr/lib/debug//boot/kernel/netgraph.ko.debug...done.
done.
Loaded symbols for /boot/kernel/netgraph.ko
Reading symbols from /boot/kernel/ng_hci.ko...Reading symbols from /usr/lib/debug//boot/kernel/ng_hci.ko.debug...done.
done.
Loaded symbols for /boot/kernel/ng_hci.ko
Reading symbols from /boot/kernel/ng_bluetooth.ko...Reading symbols from /usr/lib/debug//boot/kernel/ng_bluetooth.ko.debug...done.
done.
Loaded symbols for /boot/kernel/ng_bluetooth.ko
Reading symbols from /boot/kernel/snd_uaudio.ko...Reading symbols from /usr/lib/debug//boot/kernel/snd_uaudio.ko.debug...done.
done.
Loaded symbols for /boot/kernel/snd_uaudio.ko
Reading symbols from /boot/kernel/ng_l2cap.ko...Reading symbols from /usr/lib/debug//boot/kernel/ng_l2cap.ko.debug...done.
done.
Loaded symbols for /boot/kernel/ng_l2cap.ko
Reading symbols from /boot/kernel/ng_btsocket.ko...Reading symbols from /usr/lib/debug//boot/kernel/ng_btsocket.ko.debug...done.
done.
Loaded symbols for /boot/kernel/ng_btsocket.ko
Reading symbols from /boot/kernel/ng_socket.ko...Reading symbols from /usr/lib/debug//boot/kernel/ng_socket.ko.debug...done.
done.
Loaded symbols for /boot/kernel/ng_socket.ko
Reading symbols from /boot/modules/amdgpu.ko...done.
Loaded symbols for /boot/modules/amdgpu.ko
Reading symbols from /boot/modules/drm.ko...done.
Loaded symbols for /boot/modules/drm.ko
Reading symbols from /boot/kernel/linuxkpi.ko...Reading symbols from /usr/lib/debug//boot/kernel/linuxkpi.ko.debug...done.
done.
Loaded symbols for /boot/kernel/linuxkpi.ko
Reading symbols from /boot/kernel/backlight.ko...Reading symbols from /usr/lib/debug//boot/kernel/backlight.ko.debug...done.
done.
Loaded symbols for /boot/kernel/backlight.ko
Reading symbols from /boot/modules/linuxkpi_gplv2.ko...done.
Loaded symbols for /boot/modules/linuxkpi_gplv2.ko
Reading symbols from /boot/kernel/lindebugfs.ko...Reading symbols from /usr/lib/debug//boot/kernel/lindebugfs.ko.debug...done.
done.
Loaded symbols for /boot/kernel/lindebugfs.ko
Reading symbols from /boot/modules/ttm.ko...done.
Loaded symbols for /boot/modules/ttm.ko
Reading symbols from /boot/modules/amdgpu_navi10_gpu_info_bin.ko...done.
Loaded symbols for /boot/modules/amdgpu_navi10_gpu_info_bin.ko
Reading symbols from /boot/modules/amdgpu_navi10_sos_bin.ko...done.
Loaded symbols for /boot/modules/amdgpu_navi10_sos_bin.ko
Reading symbols from /boot/modules/amdgpu_navi10_asd_bin.ko...done.
Loaded symbols for /boot/modules/amdgpu_navi10_asd_bin.ko
Reading symbols from /boot/modules/amdgpu_navi10_smc_bin.ko...done.
Loaded symbols for /boot/modules/amdgpu_navi10_smc_bin.ko
Reading symbols from /boot/modules/amdgpu_navi10_pfp_bin.ko...done.
Loaded symbols for /boot/modules/amdgpu_navi10_pfp_bin.ko
Reading symbols from /boot/modules/amdgpu_navi10_me_bin.ko...done.
Loaded symbols for /boot/modules/amdgpu_navi10_me_bin.ko
Reading symbols from /boot/modules/amdgpu_navi10_ce_bin.ko...done.
Loaded symbols for /boot/modules/amdgpu_navi10_ce_bin.ko
Reading symbols from /boot/modules/amdgpu_navi10_rlc_bin.ko...done.
Loaded symbols for /boot/modules/amdgpu_navi10_rlc_bin.ko
Reading symbols from /boot/modules/amdgpu_navi10_mec_bin.ko...done.
Loaded symbols for /boot/modules/amdgpu_navi10_mec_bin.ko
Reading symbols from /boot/modules/amdgpu_navi10_mec2_bin.ko...done.
Loaded symbols for /boot/modules/amdgpu_navi10_mec2_bin.ko
Reading symbols from /boot/modules/amdgpu_navi10_sdma_bin.ko...done.
Loaded symbols for /boot/modules/amdgpu_navi10_sdma_bin.ko
Reading symbols from /boot/modules/amdgpu_navi10_sdma1_bin.ko...done.
Loaded symbols for /boot/modules/amdgpu_navi10_sdma1_bin.ko
Reading symbols from /boot/modules/amdgpu_navi10_vcn_bin.ko...done.
Loaded symbols for /boot/modules/amdgpu_navi10_vcn_bin.ko
#0  doadump (textdump=1) at src/sys/amd64/include/pcpu_aux.h:55
55		__asm("movq %%gs:%P1,%0" : "=r" (td) : "n" (offsetof(struct pcpu,
(kgdb) #0  doadump (textdump=1) at src/sys/amd64/include/pcpu_aux.h:55
#1  0xffffffff80be4ea0 in kern_reboot (howto=260)
    at /usr/src/sys/kern/kern_shutdown.c:486
#2  0xffffffff80be5300 in vpanic (fmt=<value optimized out>, 
    ap=<value optimized out>) at /usr/src/sys/kern/kern_shutdown.c:919
#3  0xffffffff80be5053 in panic (fmt=<value optimized out>)
    at /usr/src/sys/kern/kern_shutdown.c:843
#4  0xffffffff8100928c in fpu_kern_leave (td=0x0, ctx=0xfffff800c6e72800)
    at /usr/src/sys/amd64/amd64/fpu.c:1222
#5  0xffffffff829a676f in dcn20_validate_bandwidth ()
   from /boot/modules/amdgpu.ko
#6  0xffffffff8293f09e in dc_validate_global_state ()
   from /boot/modules/amdgpu.ko
#7  0xffffffff82915a80 in amdgpu_dm_atomic_check ()
   from /boot/modules/amdgpu.ko
#8  0xffffffff82b21360 in drm_atomic_check_only () from /boot/modules/drm.ko
#9  0xffffffff82b21793 in drm_atomic_commit () from /boot/modules/drm.ko
#10 0xffffffff82b2e408 in drm_client_modeset_commit_atomic ()
   from /boot/modules/drm.ko
#11 0xffffffff82b2e169 in drm_client_modeset_commit_force ()
   from /boot/modules/drm.ko
#12 0xffffffff82b6e5aa in drm_fb_helper_restore_fbdev_mode_unlocked ()
   from /boot/modules/drm.ko
#13 0xffffffff80c464ba in taskqueue_run_locked (queue=0xfffffe00aa47ec00)
    at /usr/src/sys/kern/subr_taskqueue.c:476
#14 0xffffffff80c47544 in taskqueue_thread_loop (arg=Unhandled dwarf expression opcode 0xa3
)
    at /usr/src/sys/kern/subr_taskqueue.c:793
#15 0xffffffff80b9f8c0 in fork_exit (
    callout=0xffffffff80c474b0 <taskqueue_thread_loop>, 
    arg=0xffffffff81cf8f30, frame=0xfffffe00aa604bc0)
    at /usr/src/sys/kern/kern_fork.c:1069
#16 0xffffffff8100627e in fork_trampoline ()
    at /usr/src/sys/amd64/amd64/exception.S:1082
#17 0x0000000000000000 in ?? ()
Current language:  auto; currently minimal
(kgdb) 

------------------------------------------------------------------------
ps -axlww

 UID  PID PPID  C PRI NI   VSZ  RSS MWCHAN   STAT TT      TIME COMMAND
   0    0    0  3 -16  0     0    0 swapin   DLs   -   0:00.00 [kernel]
   0    1    0  2  20  0 11928 1168 wait     DLs   -   0:00.00 [init]
   0    2    0 10 -16  0     0    0 crypto_w DL    -   0:00.00 [crypto]
   0    3    0  8 -16  0     0    0 crypto_r DL    -   0:00.00 [crypto returns 0]
   0    4    0 10 -16  0     0    0 crypto_r DL    -   0:00.00 [crypto returns 1]
   0    5    0 12 -16  0     0    0 crypto_r DL    -   0:00.00 [crypto returns 2]
   0    6    0 10 -16  0     0    0 crypto_r DL    -   0:00.00 [crypto returns 3]
   0    7    0 10 -16  0     0    0 crypto_r DL    -   0:00.00 [crypto returns 4]
   0    8    0 15 -16  0     0    0 crypto_r DL    -   0:00.00 [crypto returns 5]
   0    9    0  8 -16  0     0    0 crypto_r DL    -   0:00.00 [crypto returns 6]
   0   10    0  5 -16  0     0    0 audit_wo DL    -   0:00.00 [audit]
   0   11    0  0 155  0     0    0 -        RL    -  23:50.76 [idle]
   0   12    0 -1 -56  0     0    0 -        WL    -   0:00.98 [intr]
   0   13    0  4  -8  0     0    0 -        DL    -   0:00.01 [geom]
   0   14    0 15 -16  0     0    0 seqstate DL    -   0:00.00 [sequencer 00]
   0   15    0 14 -16  0     0    0 crypto_r DL    -   0:00.00 [crypto returns 7]
   0   16    0 15 -16  0     0    0 crypto_r DL    -   0:00.00 [crypto returns 8]
   0   17    0 15 -16  0     0    0 crypto_r DL    -   0:00.00 [crypto returns 9]
   0   18    0  8 -16  0     0    0 crypto_r DL    -   0:00.00 [crypto returns 10]
   0   19    0 11 -16  0     0    0 crypto_r DL    -   0:00.00 [crypto returns 11]
   0   20    0 12 -16  0     0    0 crypto_r DL    -   0:00.00 [crypto returns 12]
   0   21    0 10 -16  0     0    0 crypto_r DL    -   0:00.00 [crypto returns 13]
   0   22    0 10 -16  0     0    0 crypto_r DL    -   0:00.00 [crypto returns 14]
   0   23    0 13 -16  0     0    0 crypto_r DL    -   0:00.00 [crypto returns 15]
   0   24    0 11 -16  0     0    0 -        RL    -   0:00.00 [cam]
   0   25    0  4 -68  0     0    0 -        DL    -   0:00.08 [usb]
   0   26    0  6 -16  0     0    0 -        DL    -   0:00.00 [soaiod1]
   0   27    0 14 -16  0     0    0 -        DL    -   0:00.00 [soaiod2]
   0   28    0  0 -16  0     0    0 -        DL    -   0:00.00 [soaiod3]
   0   29    0  9 -16  0     0    0 -        DL    -   0:00.00 [soaiod4]
   0   30    0  8 -16  0     0    0 -        DL    -   0:00.02 [rand_harvestq]
   0   31    0 15 -16  0     0    0 psleep   DL    -   0:00.01 [pagedaemon]
   0   32    0 14 -16  0     0    0 psleep   DL    -   0:00.00 [vmdaemon]
   0   33    0 11 -16  0     0    0 qsleep   DL    -   0:00.03 [bufdaemon]
   0   34    0  0 -16  0     0    0 vlruwt   DL    -   0:00.00 [vnlru]
   0   35    0 10  16  0     0    0 syncer   DL    -   0:00.00 [syncer]
   0  115    1  7  52  0 12864 2084 pause    Ds    -   0:00.00 [adjkerntz]
   0  732    0  8 -16  0     0    0 sleep    DL    -   0:00.00 [ng_queue]
   0  891    1 12  20  0 11592 1620 select   Ds    -   0:00.00 [devd]
   0  914    1  0  23  0 13284 2728 select   Ds    -   0:00.00 [dhclient]
   0  917    1  6   4  0 13284 2852 select   Ds    -   0:00.00 [dhclient]
  65 1001    1  3  22  0 13288 2984 select   DCs   -   0:00.00 [dhclient]
   0 1012    1  8  52  0 13192 2396 select   Ds    -   0:00.00 [moused]
   0 1035    1  9  52  0 13192 2396 select   Ds    -   0:00.00 [moused]
   0 1227    1 11   1  0 13012 2752 select   Ds    -   0:00.00 [syslogd]
   0 1377    1  6  20  0 18200 7012 select   Ds    -   0:00.00 [sendmail]
  25 1380    1  8  52  0 18200 5552 pause    Ds    -   0:00.00 [sendmail]
   0 1397    1  6  52  0 21036 8472 select   Ds    -   0:00.00 [sshd]
   0 1404    1 13  20  0 13056 2744 nanslp   Ds    -   0:00.00 [cron]
   0 1424    1 11  20  0 13696 3280 wait     Ds    -   0:00.01 [login]
   0 1425    1 12  52  0 12984 2320 ttyin    Ds+   -   0:00.00 [getty]
   0 1426    1 10  52  0 12984 2320 ttyin    Ds+   -   0:00.00 [getty]
   0 1427    1  7  52  0 12984 2320 ttyin    Ds+   -   0:00.00 [getty]
   0 1428    1  9  52  0 12984 2320 ttyin    Ds+   -   0:00.00 [getty]
   0 1429    1  4  52  0 12984 2320 ttyin    Ds+   -   0:00.00 [getty]
   0 1430    1 15  52  0 12984 2320 ttyin    Ds+   -   0:00.00 [getty]
   0 1431    1  3  52  0 12984 2320 ttyin    Ds+   -   0:00.00 [getty]
1000 1432 1424 11  20  0 15284 4872 wait     D     -   0:00.01 [bash]
   0 1446 1432  4  20  0 14668 4272 select   D+    -   0:00.00 [sudo]
   0 1447 1446  5  20  0 12864 2152 -        R+    -   0:00.00 [kldload]

------------------------------------------------------------------------
vmstat -s

   660846 cpu context switches
   295319 device interrupts
     3234 software interrupts
   520417 traps
   649516 system calls
       36 kernel threads created
     1092  fork() calls
      295 vfork() calls
       24 rfork() calls
        0 swap pager pageins
        0 swap pager pages paged in
        0 swap pager pageouts
        0 swap pager pages paged out
      755 vnode pager pageins
     5499 vnode pager pages paged in
        0 vnode pager pageouts
        0 vnode pager pages paged out
        0 page daemon wakeups
        0 pages examined by the page daemon
        0 clean page reclamation shortfalls
        0 pages reactivated by the page daemon
    55029 copy-on-write faults
      154 copy-on-write optimized faults
   478224 zero fill pages zeroed
        0 zero fill pages prezeroed
      403 intransit blocking page faults
   561317 total VM faults taken
      624 page faults requiring I/O
        0 pages affected by kernel thread creation
    90729 pages affected by  fork()
    10316 pages affected by vfork()
      846 pages affected by rfork()
   706865 pages freed
        0 pages freed by daemon
        0 pages freed by exiting processes
        0 pages active
        0 pages inactive
        0 pages in the laundry queue
        0 pages wired down
        0 virtual user pages wired down
        0 pages free
        0 bytes per page
        0 total name lookups
          cache hits (0% pos + 0% neg) system 0% per-directory
          deletions 0%, falsehits 0%, toolong 0%

------------------------------------------------------------------------
vmstat -m

         Type InUse MemUse Requests  Size(s)
        vtbuf    24  3072K       46  4096
           vt    11     5K       11  384
  ddb_capture     1    64K        1  65536
       DEVFS3   486   122K      510  256
       DEVFS1   452   452K      509  1024
   DEVFS_RULE    59    21K       59  64,384
        DEVFS    24     1K       27  16,128
       DEVFSP     4     1K        4  64
NFSD V4client     1     1K        1  256
 NFSD lckfile     1     1K        1  256
 NFSD session     1     1K        1  1024
    pfs_nodes    30    12K       30  384
  pfs_vncache     1    64K        1  65536
         GEOM   286    49K     1687  16,32,64,128,256,512,1024,2048,8192,16384,32768
    raid_data     0     0K      240  32,128,256
       isadev     8     1K        8  128
        evdev     9     9K       10  1024
     acpiintr     1     1K        1  64
         cdev     2     1K        2  256
     filedesc     5    37K       23  32,4096,16384
      pwddesc    60     4K     1448  64
        sigio     0     0K        1  64
     filecaps     1     1K      187  16,32,64
      kdtrace   392    87K     1780  64,256
         kenv    99    12K       99  16,32,64,128,8192
       kqueue    60     4K     1448  64
    proc-args   152     6K     1277  16,32,64,128,256
        hhook    13     4K       13  256
      ithread   199    34K      199  32,128,256
       prison    10     1K       10  32
       KTRACE   100    13K      100  128
       linker   761  3760K     1033  16,32,64,128,256,384,512,1024,2048,4096,8192,16384,32768,65536
       acpica 10405  1061K   471554  16,32,64,128,256,384,512,1024,2048,4096
        lockf    32     4K       67  64,128
   loginclass     2     1K        2  64
       devbuf 28046 49873K    29457  16,32,64,128,256,384,512,1024,2048,4096,8192,16384,65536
         temp    67    19K     5727  16,32,64,128,256,1024,2048,8192,16384,32768,65536
     acpitask     1    64K        1  65536
       kbdmux     9    22K       10  16,384,1024,2048,16384
       module   538    68K      538  128
     mtx_pool     2    72K        2  8192,65536
          osd     3     1K        9  16,32,64,128,256
     pmchooks     1     1K        1  128
          pmc     1     1K        1  64
         pgrp    23     3K       50  128
      session    21     3K       32  128
         proc     3   132K        3  4096,65536
      subproc   196   291K     1584  384,4096
         cred    28     7K      183  256
       plimit    19     5K      325  256
      uidinfo     5    17K       30  128,16384
       dumper     2     1K        2  128,512
       sysctl     0     0K      146  32,64
    sysctloid 34903  1987K    35246  16,32,64,128,256
    sysctltmp     0     0K     3293  16,32,64,256,1024
      tidhash     3   260K        3  8192
      callout    16  4096K       16  
         umtx   738    93K      738  128
     p1003.1b     1     1K        1  16
         SWAP     1   260K        1  
          bus  1653   156K    31562  16,32,64,128,256,2048,4096
       bus-sc   152  3971K    10032  16,32,64,128,256,384,512,1024,2048,4096,8192,16384,32768,65536
      devstat    16    33K       16  32,4096
 eventhandler   124    11K      124  64,128
     firmware    28     3K       28  16,32,128
   gtaskqueue   102    34K      102  16,32,256,8192
         kobj   354  1416K      762  4096
      Per-cpu     1     1K        1  32
         rman   395    43K      871  16,32,128
         sbuf     1     4K     2573  16,32,64,128,256,4096,32768,65536
    toponodes    43     6K       43  128
      acpisem    52     7K       52  128
      acpidev    80     5K       80  64
    taskqueue    57     7K       57  16,32,128,256
     terminal    11     3K       11  256
       Unitno    25     2K       67  32,64
         vmem     3   148K        4  2048,4096,16384
     ioctlops     0     0K      137  256,384,1024
       select    12     2K       81  128
          iov     0     0K   335820  16,64,128,256,384
        selfd    31     2K     7347  64
     procdesc     1     1K       24  128
          msg     4    30K        4  2048,4096,8192,16384
          sem     4   106K        4  2048,4096
          shm     1    32K        1  32768
          tty    17    17K       17  1024
     mbuf_tag     0     0K       24  32
        shmfd     1     8K        1  8192
       soname     4     1K    13663  16,32,64,128
          pcb    16  3081K       57  16,32,64,1024,2048
      CAM SIM     7     2K        7  256
          nvd     2     1K        2  64,256
         nvme  1055   152K    24708  128,1024,2048,4096
     vfscache     3  8240K        3  16384,32768
     vfs_hash     1  4096K        1  
       vnodes     1     1K        1  256
namei_tracker     0     0K       29  32
        mount    16     1K       89  16,32,64,128,256,1024
       statfs     0     0K       13  4096
  vnodemarker     2     1K       18  512
chacha20random     1     4K        1  4096
          BPF    10    18K       10  128,256,512,4096
        ifnet     3     5K        3  128,2048
       ifaddr    42    12K       42  16,32,64,128,256,384,2048,4096
  ether_multi    17     2K       22  16,32,64,128
        clone     8     1K        8  128
      lltable    10     3K       10  256,384
          tun     3     1K        3  32
         pfil     3     1K        3  128
        nhops     6     1K        6  128
     routetbl    15     4K       15  32,64,128,384,1024
         vnet     1     1K        1  64
    vnet_data     1   168K        1  
vnet_data_free     1     1K        1  32
    80211node     0     0K        9  16
    80211scan     1    16K        1  16384
         igmp     2     1K        2  128
     in_multi     2     1K        3  256
encap_export_host     8     1K        8  32,64
   tfo_ccache     1   128K        1  
    hostcache     1    32K        1  32768
      tcpfunc     1     1K        1  64
     syncache     1    68K        1  
    in6_multi    15     2K       15  32,256
          mld     2     1K        2  128
       ip6ndp     3     1K        3  64,256
  inpcbpolicy     6     1K       62  32
     secasvar     1     1K        1  1024
       sahead     1     1K        1  1024
  ipsecpolicy     1     1K        1  1024
    ipsec-saq     2     2K        2  1024
       crypto     3     3K        3  64,256,2048
      CAM XPT    38     3K       99  16,32,128,512,1024,2048,65536
audit_evclass   233     8K      291  32
      pagedep     2   513K       75  256
     inodedep     2  4097K       99  384
    bmsafemap     1     8K       73  256,8192
       newblk     2  8193K    33895  256
     indirdep     0     0K       11  256,32768
     freefrag     0     0K       11  128
     freeblks     0     0K       19  256
     freefile     0     0K       25  128
       diradd     1     1K       51  128
        mkdir     0     0K       14  128
       dirrem     0     0K       27  256
    newdirblk     0     0K        7  128
     freework     1     1K       24  16,256
      jaddref     0     0K       65  256
      jremref     0     0K       41  256
      jnewblk     0     0K    33894  128
    jfreefrag     0     0K       11  128
         jseg     5     2K       91  256
      jsegdep     3     1K    34011  128
        sbdep     0     0K        7  128
     savedino     0     0K       16  256
      jblocks     2     1K        2  128,256
      softdep     1     1K        1  1024
  ufs_dirhash    51    11K       51  16,32,64,128,256,512
    ufs_quota     1  4096K        1  
    ufs_mount     5    41K        6  32,64,512,8192,16384,32768
    vm_pgdata     1     1K        1  128
      entropy     1     1K       19  32,64,4096
      CAM DEV    10    20K       26  2048
          UMA   255     5K      255  16,32
      CAM CCB     0     0K      509  2048
     CAM path    13     1K       90  32
   CAM periph     8     2K       32  16,32,64,128,256
    acpi_perf    16     2K       16  128
         hdaa     9    68K        9  1024,2048,4096,8192,16384,32768
         hdac     2     2K        2  512,1024
        hdacc     2     1K        2  32
       feeder    34     4K       46  32,128
        mixer     9    36K        9  4096
          rpc     2     8K        2  4096
     pci_link    16     2K       16  32,128
     atkbddev     2     1K        2  64
       apmdev     1     1K        1  128
CAM I/O Scheduler     3     1K        3  128
         intr     4   472K        4  65536
          MCA    45    12K       45  128,512
         cpus     2     1K        2  64
     nexusdev     5     1K        5  16
    CAM queue    17     6K       68  16,32,512
         UART    15    15K       15  16,1024,2048
  fpukern_ctx     1     1K        6  1024
      memdesc     1     4K        1  4096
          USB    79   167K       95  16,32,128,256,384,1024,2048,4096,8192,32768
       USBdev    73    21K       84  32,64,128,256,384,512,2048,4096
CAM dev queue     7     1K        7  64
   madt_table     0     0K        2  128,4096
      io_apic     2     6K        2  2048,4096
   local_apic     1    16K        1  16384
          msi    22     3K       22  128
 netgraph_msg     0     0K       40  64,128,256,1024,32768
netgraph_hook    10     2K       10  128
netgraph_node     9     3K       19  128,256
 netgraph_hci     1     1K        1  256
netgraph_l2cap     1     1K        1  128
netgraph_btsocks_hci_raw     1     8K       23  128,8192
netgraph_btsocks_l2cap_raw     1     1K        1  32
netgraph_btsocks_l2cap     1     1K        1  32
netgraph_path     0     0K       11  16
netgraph_sock     0     0K       18  128
        linux  1461  1897K     1730  16,32,64,128,256,384,512,1024,2048,4096,8192,16384,32768,65536
 linuxcurrent    22     5K       38  64,256
          idr    48    17K       48  128,384
       lkpifw    13     1K       26  32
          idr     1     1K        1  16
   debugfsint     3     1K        3  16,64
   drm_driver     1     1K        1  32
      drm_kms     2     2K        2  64,1024

------------------------------------------------------------------------
vmstat -z

ITEM                   SIZE  LIMIT     USED     FREE      REQ     FAILSLEEP XDOMAIN
UMA Kegs:               384,      0,     197,       0,     197,   0,   0,   0
UMA Zones:             2560,      0,     227,       0,     227,   0,   0,   0
UMA Slabs 0:            112,      0,   11272,       0,   11272,   0,   0,   0
UMA Slabs 1:            176,      0,      10,       0,      10,   0,   0,   0
UMA Hash:               256,      0,       0,       0,       0,   0,   0,   0
2 Bucket:                32,      0,     347,    3559,   11765, 636,   0,   0
4 Bucket:                48,      0,      36,    1476,   13759, 294,   0,   0
8 Bucket:                80,      0,     238,     662,   70384,1562,   0,   0
16 Bucket:              144,      0,     175,    1141,    2973,   0,   0,   0
32 Bucket:              256,      0,     275,     880,    2402,  28,   0,   0
64 Bucket:              512,      0,     911,      49,    5982, 706,   0,   0
128 Bucket:            1024,      0,     615,     168,    4156, 800,   0,   0
256 Bucket:            2048,      0,     573,      15,   11887, 351,   0,   0
SMR SHARED:              24,      0,       2,      61,       2,   0,   0,   0
SMR CPU:                 32,      0,       2,      61,       2,   0,   0,   0
vmem:                  1856,      0,       1,       1,       1,   0,   0,   0
vmem btag:               56,      0,   13304,     428,   13304, 367,   0,   0
VM OBJECT:              264,      0,    1141,     344,   24678,   0,   0,   0
RADIX NODE:             144,      0,   25049,    1080,  106567,   0,   0,   0
KMAP ENTRY:              96,      0,     111,       0,     133,   0,   0,   0
MAP ENTRY:               96,      0,     891,    2301,   77828,   0,   0,   0
VMSPACE:               2544,      0,      24,      81,    1413,   0,   0,   0
fakepg:                 104,      0,       0,       0,       0,   0,   0,   0
pcpu-4:                   4,      0,       0,       0,       0,   0,   0,   0
pcpu-8:                   8,      0,    3170,    2204,    3173,   0,   0,   0
pcpu-16:                 16,      0,       7,     247,       7,   0,   0,   0
pcpu-32:                 32,      0,       0,       0,       0,   0,   0,   0
pcpu-64:                 64,      0,     452,     380,     452,   0,   0,   0
malloc-16:               16,      0,     290,    3960,  216653,   0,   0,   0
malloc-16:               16,      0,     250,    1750,     250,   0,   0,   0
malloc-16:               16,      0,      35,    1965,      38,   0,   0,   0
malloc-16:               16,      0,     378,    3372,    7874,   0,   0,   0
malloc-16:               16,      0,   14620,    2380,   14932,   0,   0,   0
malloc-16:               16,      0,      90,    2910,    1667,   0,   0,   0
malloc-16:               16,      0,     263,    3737,    1573,   0,   0,   0
malloc-16:               16,      0,      69,    2181,     150,   0,   0,   0
malloc-32:               32,      0,     549,    1971,   21766,   0,   0,   0
malloc-32:               32,      0,     361,    1403,     504,   0,   0,   0
malloc-32:               32,      0,      19,    1619,      37,   0,   0,   0
malloc-32:               32,      0,     272,    1870,    4724,   0,   0,   0
malloc-32:               32,      0,    7013,    1303,    7318,   0,   0,   0
malloc-32:               32,      0,      53,    1585,     334,   0,   0,   0
malloc-32:               32,      0,     349,    1793,     552,   0,   0,   0
malloc-32:               32,      0,      59,     823,     104,   0,   0,   0
malloc-64:               64,      0,    2959,    1010,   12296,   0,   0,   0
malloc-64:               64,      0,      30,     663,      41,   0,   0,   0
malloc-64:               64,      0,      39,     717,      68,   0,   0,   0
malloc-64:               64,      0,     726,     849,   10114,   0,   0,   0
malloc-64:               64,      0,    3161,     682,    3276,   0,   0,   0
malloc-64:               64,      0,     216,     792,    3153,   0,   0,   0
malloc-64:               64,      0,   11527,     821,  346641,   0,   0,   0
malloc-64:               64,      0,      51,     453,      87,   0,   0,   0
malloc-128:             128,      0,    6638,   34096,  252066,   0,   0,   0
malloc-128:             128,      0,     402,     311,     918,   0,   0,   0
malloc-128:             128,      0,     162,     396,     242,   0,   0,   0
malloc-128:             128,      0,     386,    9441,   35033,   0,   0,   0
malloc-128:             128,      0,   12658,     269,   12845,   0,   0,   0
malloc-128:             128,      0,    1187,    2347,   28451,   0,   0,   0
malloc-128:             128,      0,    4683,     370,   17231,   0,   0,   0
malloc-128:             128,      0,      64,     432,     285,   0,   0,   0
malloc-256:             256,      0,      39,     246,    4346,   0,   0,   0
malloc-256:             256,      0,      29,     196,     495,   0,   0,   0
malloc-256:             256,      0,      17,     223,      47,   0,   0,   0
malloc-256:             256,      0,     289,     176,    1013,   0,   0,   0
malloc-256:             256,      0,     326,     154,     379,   0,   0,   0
malloc-256:             256,      0,     406,     224,     960,   0,   0,   0
malloc-256:             256,      0,     844,     161,    1857,   0,   0,   0
malloc-256:             256,      0,     140,   33940,   34256,   0,   0,   0
malloc-384:             384,      0,       1,      19,      18,   0,   0,   0
malloc-384:             384,      0,       7,      33,       7,   0,   0,   0
malloc-384:             384,      0,      59,      41,      59,   0,   0,   0
malloc-384:             384,      0,     178,      62,    2235,   0,   0,   0
malloc-384:             384,      0,      76,      34,      77,   0,   0,   0
malloc-384:             384,      0,       3,      17,       3,   0,   0,   0
malloc-384:             384,      0,     226,     314,    1362,   0,   0,   0
malloc-384:             384,      0,       1,     129,      98,   0,   0,   0
malloc-512:             512,      0,      18,      62,      21,   0,   0,   0
malloc-512:             512,      0,      17,       7,      17,   0,   0,   0
malloc-512:             512,      0,       5,      59,      21,   0,   0,   0
malloc-512:             512,      0,       1,      47,     248,   0,   0,   0
malloc-512:             512,      0,      11,      29,      17,   0,   0,   0
malloc-512:             512,      0,      11,      21,      27,   0,   0,   0
malloc-512:             512,      0,       6,      26,       8,   0,   0,   0
malloc-512:             512,      0,       0,      56,     459,   0,   0,   0
malloc-1024:           1024,      0,       4,      60,     105,   0,   0,   0
malloc-1024:           1024,      0,      22,       2,      22,   0,   0,   0
malloc-1024:           1024,      0,      13,       3,      13,   0,   0,   0
malloc-1024:           1024,      0,      37,      43,     991,   0,   0,   0
malloc-1024:           1024,      0,     102,      30,     136,   0,   0,   0
malloc-1024:           1024,      0,      13,      55,    2426,   0,   0,   0
malloc-1024:           1024,      0,     543,      37,     605,   0,   0,   0
malloc-1024:           1024,      0,      12,      28,     163,   0,   0,   0
malloc-2048:           2048,      0,       7,      37,    1842,   0,   0,   0
malloc-2048:           2048,      0,       7,       1,       7,   0,   0,   0
malloc-2048:           2048,      0,      19,      97,     531,   0,   0,   0
malloc-2048:           2048,      0,       9,      13,     258,   0,   0,   0
malloc-2048:           2048,      0,      40,       4,      75,   0,   0,   0
malloc-2048:           2048,      0,       9,       7,    1152,   0,   0,   0
malloc-2048:           2048,      0,     354,      16,     406,   0,   0,   0
malloc-2048:           2048,      0,       1,      13,      41,   0,   0,   0
malloc-4096:           4096,      0,       1,       0,       1,   0,   0,   0
malloc-4096:           4096,      0,       2,       9,      19,   0,   0,   0
malloc-4096:           4096,      0,     379,       3,     796,   0,   0,   0
malloc-4096:           4096,      0,      64,      33,   21185,   0,   0,   0
malloc-4096:           4096,      0,      19,       2,      22,   0,   0,   0
malloc-4096:           4096,      0,      14,       1,      17,   0,   0,   0
malloc-4096:           4096,      0,     179,       5,     222,   0,   0,   0
malloc-4096:           4096,      0,       2,       0,       2,   0,   0,   0
malloc-8192:           8192,      0,       3,       0,       3,   0,   0,   0
malloc-8192:           8192,      0,       1,       0,       1,   0,   0,   0
malloc-8192:           8192,      0,       2,       0,       2,   0,   0,   0
malloc-8192:           8192,      0,       8,       4,     674,   0,   0,   0
malloc-8192:           8192,      0,       3,       1,       4,   0,   0,   0
malloc-8192:           8192,      0,       2,       0,       2,   0,   0,   0
malloc-8192:           8192,      0,      21,       1,      22,   0,   0,   0
malloc-8192:           8192,      0,       4,       5,     154,   0,   0,   0
malloc-16384:         16384,      0,       0,       0,       0,   0,   0,   0
malloc-16384:         16384,      0,       1,       0,       1,   0,   0,   0
malloc-16384:         16384,      0,       0,       0,       0,   0,   0,   0
malloc-16384:         16384,      0,       2,       2,    1022,   0,   0,   0
malloc-16384:         16384,      0,       5,       7,      15,   0,   0,   0
malloc-16384:         16384,      0,       1,      12,      22,   0,   0,   0
malloc-16384:         16384,      0,      12,       0,      13,   0,   0,   0
malloc-16384:         16384,      0,       2,      12,      56,   0,   0,   0
malloc-32768:         32768,      0,       0,       0,       0,   0,   0,   0
malloc-32768:         32768,      0,       1,       0,       1,   0,   0,   0
malloc-32768:         32768,      0,       1,       0,       1,   0,   0,   0
malloc-32768:         32768,      0,       5,       8,     869,   0,   0,   0
malloc-32768:         32768,      0,      14,       3,      49,   0,   0,   0
malloc-32768:         32768,      0,       2,       2,       4,   0,   0,   0
malloc-32768:         32768,      0,      11,       0,      11,   0,   0,   0
malloc-32768:         32768,      0,       0,       2,       6,   0,   0,   0
malloc-65536:         65536,      0,       2,       0,       2,   0,   0,   0
malloc-65536:         65536,      0,       1,       0,       1,   0,   0,   0
malloc-65536:         65536,      0,       0,       0,       0,   0,   0,   0
malloc-65536:         65536,      0,       1,       5,     788,   0,   0,   0
malloc-65536:         65536,      0,      10,       1,      34,   0,   0,   0
malloc-65536:         65536,      0,       0,       9,      36,   0,   0,   0
malloc-65536:         65536,      0,      12,       1,      14,   0,   0,   0
malloc-65536:         65536,      0,       2,       0,       2,   0,   0,   0
SLEEPQUEUE:              88,      0,     370,     238,     370,   0,   0,   0
kenv:                   258,      0,      21,     234,    6400,   0,   0,   0
Files:                   80,      0,      80,     720,   15784,   0,   0,   0
filedesc0:             1072,      0,      60,     171,    1448,   0,   0,   0
PWD:                     32,      0,      14,    2002,     170,   0,   0,   0
rl_entry:                40,      0,      81,    1535,      81,   0,   0,   0
TURNSTILE:              136,      0,     370,     113,     370,   0,   0,   0
rangeset pctrie nodes:    144,      0,       0,       0,       0,   0,   0,   0
umtx pi:                 96,      0,       0,       0,       0,   0,   0,   0
umtx_shm:                88,      0,       0,       0,       0,   0,   0,   0
swrbuf:                 832,    128,       0,       0,       0,   0,   0,   0
swwbuf:                 832,     64,       0,       0,       0,   0,   0,   0
nfspbuf:                832,    128,       0,       0,       0,   0,   0,   0
mdpbuf:                 832,     25,       0,       0,       0,   0,   0,   0
vnpbuf:                 832,    512,       0,       0,       0,   0,   0,   0
clpbuf:                 832,    128,       0,     128,    9246, 104,   0,   0
pbuf:                   832,     16,       0,       0,       0,   0,   0,   0
MAC labels:              40,      0,       0,       0,       0,   0,   0,   0
PROC:                  1320,      0,      59,      76,    1447,   0,   0,   0
THREAD:                1792,      0,     331,      37,     331,   0,   0,   0
cpuset:                 104,      0,      43,     422,      43,   0,   0,   0
domainset:               40,      0,       0,       0,       0,   0,   0,   0
audit_record:          1280,      0,       0,       0,       0,   0,   0,   0
mbuf_packet:            256,      0,     256,     689,    1393,   0,   0,   0
mbuf:                   256, 13039172,   16897,     773,   18420,   0,   0,   0
mbuf_cluster:          2048, 2037370,   17329,      19,   17338,   0,   0,   0
mbuf_jumbo_page:       4096, 1018685,     256,       0,     256,   0,   0,   0
mbuf_jumbo_9k:         9216, 301832,       0,       0,       0,   0,   0,   0
mbuf_jumbo_16k:       16384, 169780,       0,       0,       0,   0,   0,   0
epoch_record pcpu:      256,      0,       4,      12,       4,   0,   0,   0
FPU_save_area:          896,      0,       1,       8,       1,   0,   0,   0
ttyinq:                 160,      0,     120,     180,     585,   0,   0,   0
ttyoutq:                256,      0,      64,     116,     312,   0,   0,   0
IOMMU_MAP_ENTRY:        120,      0,       0,       0,       0,   0,   0,   0
DEVCTL:                1024,   1000,       0,       0,     756,   0,   0,   0
g_bio:                  384,      0,       0,    1350,   65514,   0,   0,   0
cryptop:                280,      0,       0,       0,       0,   0,   0,   0
crypto_session:          72,      0,       0,       0,       0,   0,   0,   0
vtnet_tx_hdr:            24,      0,       0,       0,       0,   0,   0,   0
VNODE:                  488,      0,     714,      94,     741,   0,   0,   0
BUF TRIE:               144,      0,    1011,    1097,   15159,   0,   0,   0
S VFS Cache:            104,      0,    1472,     361,    1518,   0,   0,   0
STS VFS Cache:          144,      0,       0,       0,       0,   0,   0,   0
L VFS Cache:            320,      0,       0,       0,       0,   0,   0,   0
LTS VFS Cache:          360,      0,       0,       0,       0,   0,   0,   0
NAMEI:                 1024,      0,       0,     104,   33894,   0,   0,   0
TMPFS node:             224,      0,       0,       0,       0,   0,   0,   0
DIRHASH:               1024,      0,      96,      16,      96,   0,   0,   0
NCLNODE:                592,      0,       0,       0,       0,   0,   0,   0
Mountpoints:           2752,      0,       2,       2,       2,   0,   0,   0
pipe:                   744,      0,       3,      92,     465,   0,   0,   0
AIO:                    208,      0,       0,       0,       0,   0,   0,   0
AIOP:                    32,      0,       0,       0,       0,   0,   0,   0
AIOCB:                  744,      0,       0,       0,       0,   0,   0,   0
AIOLIO:                 272,      0,       0,       0,       0,   0,   0,   0
ksiginfo:               112,      0,      91,    1205,     131,   0,   0,   0
itimer:                 352,      0,       0,       0,       0,   0,   0,   0
KNOTE:                  160,      0,       0,       0,       0,   0,   0,   0
socket:                 944, 1045984,      17,      67,    4385,   0,   0,   0
ipq:                     56,  51200,       0,       0,       0,   0,   0,   0
udp_inpcb:              488, 1045984,       2,      94,      56,   0,   0,   0
udpcb:                   32, 1045984,       2,    1510,      56,   0,   0,   0
tcp_inpcb:              488, 1045984,       3,      29,       5,   0,   0,   0
tcpcb:                 1048, 1045984,       3,      41,       5,   0,   0,   0
tcptw:                   88,  27767,       0,       0,       0,   0,   0,   0
syncache:               168,  15360,       0,       0,       0,   0,   0,   0
hostcache:               96,  15360,       0,       0,       0,   0,   0,   0
sackhole:                32,      0,       0,       0,       0,   0,   0,   0
tfo:                      4,      0,       0,       0,       0,   0,   0,   0
tfo_ccache_entries:      80,      0,       0,       0,       0,   0,   0,   0
tcpreass:                48, 127335,       0,       0,       0,   0,   0,   0
tcp_log:                416, 5000000,       0,       0,       0,   0,   0,   0
tcp_log_bucket:         176,      0,       0,       0,       0,   0,   0,   0
tcp_log_node:           120,      0,       0,       0,       0,   0,   0,   0
udplite_inpcb:          488, 1045984,       0,       0,       0,   0,   0,   0
ripcb:                  488, 1045984,       1,       7,       1,   0,   0,   0
IPsec SA lft_c:          16,      0,       0,       0,       0,   0,   0,   0
unpcb:                  256, 1045984,      10,     230,    4264,   0,   0,   0
routing nhops:          256,      0,       8,     112,      14,   0,   0,   0
rtentry:                176,      0,      11,     173,      14,   0,   0,   0
swpctrie:               144, 4074784,       0,       0,       0,   0,   0,   0
swblk:                  136, 4074761,       0,       0,       0,   0,   0,   0
FFS inode:              160,      0,     669,     181,     694,   0,   0,   0
FFS1 dinode:            128,      0,       0,       0,       0,   0,   0,   0
FFS2 dinode:            256,      0,     669,     141,     694,   0,   0,   0
NetGraph items:          72,   4096,       0,     256,      60,   0,   0,   0
NetGraph data items:     72,   4096,       0,     352,      54,   0,   0,   0
linux_dma_pctrie:       144,      0,       0,       0,       0,   0,   0,   0
linux_dma_object:        24,      0,       0,       0,       0,   0,   0,   0
drm_sched_fence:        184,      0,       3,      39,       3,   0,   0,   0
amdgpu_sync:             32,      0,       0,       0,       0,   0,   0,   0
amdgpu_fence:            72,      0,       4,      28,       4,   0,   0,   0

------------------------------------------------------------------------
vmstat -i

interrupt                          total       rate
irq3: uart2 uart4                      1          0
irq4: uart3 uart5+                     2          0
cpu0:timer                          3302        166
cpu1:timer                          1832         92
cpu2:timer                          1006         51
cpu3:timer                          2072        104
cpu4:timer                          1904         96
cpu5:timer                          1640         82
cpu6:timer                          1847         93
cpu7:timer                          2156        108
cpu8:timer                          1199         60
cpu9:timer                          2227        112
cpu10:timer                         1613         81
cpu11:timer                         2079        104
cpu12:timer                         1821         91
cpu13:timer                         3012        151
cpu14:timer                         3594        181
cpu15:timer                         3565        179
irq59: nvme0:admin                    22          1
irq60: nvme0:io0                    1703         86
irq61: nvme0:io1                    1272         64
irq62: nvme0:io2                    1416         71
irq63: nvme0:io3                    2005        101
irq64: nvme0:io4                    3370        169
irq65: nvme0:io5                    3502        176
irq66: nvme0:io6                    3631        182
irq67: nvme0:io7                    3894        196
irq68: xhci0                      272537      13694
irq69: ahci0                         443         22
irq70: re0                            76          4
irq71: hdac0                           4          0
irq72: xhci1                        1395         70
irq73: hdac1                          19          1
irq76: iwm0                           23          1
irq77: vgapci0                         4          0
Total                             330188      16591

------------------------------------------------------------------------
pstat -T

 80/1045984 files
0M/0M swap space

------------------------------------------------------------------------
pstat -s

Device          1K-blocks     Used    Avail Capacity

------------------------------------------------------------------------
iostat

       tty            nvd0             ada0             ada1             cpu
 tin  tout KB/t  tps  MB/s  KB/t  tps  MB/s  KB/t  tps  MB/s  us ni sy in id
   3   120  115  146  16.4   2.7    1   0.0   2.8    1   0.0   0  0  0  0 99

------------------------------------------------------------------------
ipcs -a

Message Queues:
T           ID          KEY MODE        OWNER    GROUP    CREATOR  CGROUP                 CBYTES                 QNUM               QBYTES        LSPID        LRPID STIME    RTIME    CTIME   

Shared Memory:
T           ID          KEY MODE        OWNER    GROUP    CREATOR  CGROUP         NATTCH        SEGSZ         CPID         LPID ATIME    DTIME    CTIME   

Semaphores:
T           ID          KEY MODE        OWNER    GROUP    CREATOR  CGROUP          NSEMS OTIME    CTIME   


------------------------------------------------------------------------
ipcs -T

msginfo:
	msgmax:        16384	(max characters in a message)
	msgmni:           40	(# of message queues)
	msgmnb:         2048	(max characters in a message queue)
	msgtql:           40	(max # of messages in system)
	msgssz:            8	(size of a message segment)
	msgseg:         2048	(# of message segments in system)

shminfo:
	shmmax:    536870912	(max shared memory segment size)
	shmmin:            1	(min shared memory segment size)
	shmmni:          192	(max number of shared memory identifiers)
	shmseg:          128	(max shared memory segments per process)
	shmall:       131072	(max amount of shared memory in pages)

seminfo:
	semmni:           50	(# of semaphore identifiers)
	semmns:          340	(# of semaphores in system)
	semmnu:          150	(# of undo structures in system)
	semmsl:          340	(max # of semaphores per id)
	semopm:          100	(max # of operations per semop call)
	semume:           50	(max # of undo entries per process)
	semusz:          632	(size in bytes of undo structure)
	semvmx:        32767	(semaphore maximum value)
	semaem:        16384	(adjust on exit max value)


------------------------------------------------------------------------
netstat -s

tcp:
	0 packets sent
		0 data packets (0 bytes)
		0 data packets (0 bytes) retransmitted
		0 data packets unnecessarily retransmitted
		0 resends initiated by MTU discovery
		0 ack-only packets (0 delayed)
		0 URG only packets
		0 window probe packets
		0 window update packets
		0 control packets
	0 packets received
		0 acks (for 0 bytes)
		0 duplicate acks
		0 acks for unsent data
		0 packets (0 bytes) received in-sequence
		0 completely duplicate packets (0 bytes)
		0 old duplicate packets
		0 packets with some dup. data (0 bytes duped)
		0 out-of-order packets (0 bytes)
		0 packets (0 bytes) of data after window
		0 window probes
		0 window update packets
		0 packets received after close
		0 discarded for bad checksums
		0 discarded for bad header offset fields
		0 discarded because packet too short
		0 discarded due to full reassembly queue
	0 connection requests
	0 connection accepts
	0 bad connection attempts
	0 listen queue overflows
	0 ignored RSTs in the windows
	0 connections established (including accepts)
		0 times used RTT from hostcache
		0 times used RTT variance from hostcache
		0 times used slow-start threshold from hostcache
	2 connections closed (including 0 drops)
		0 connections updated cached RTT on close
		0 connections updated cached RTT variance on close
		0 connections updated cached ssthresh on close
	0 embryonic connections dropped
	0 segments updated rtt (of 0 attempts)
	0 retransmit timeouts
		0 connections dropped by rexmit timeout
	0 persist timeouts
		0 connections dropped by persist timeout
	0 Connections (fin_wait_2) dropped because of timeout
	0 keepalive timeouts
		0 keepalive probes sent
		0 connections dropped by keepalive
	0 correct ACK header predictions
	0 correct data packet header predictions
	0 syncache entries added
		0 retransmitted
		0 dupsyn
		0 dropped
		0 completed
		0 bucket overflow
		0 cache overflow
		0 reset
		0 stale
		0 aborted
		0 badack
		0 unreach
		0 zone failures
	0 cookies sent
	0 cookies received
	0 hostcache entries added
		0 bucket overflow
	0 SACK recovery episodes
	0 segment rexmits in SACK recovery episodes
	0 byte rexmits in SACK recovery episodes
	0 SACK options (SACK blocks) received
	0 SACK options (SACK blocks) sent
	0 SACK scoreboard overflow
	0 packets with ECN CE bit set
	0 packets with ECN ECT(0) bit set
	0 packets with ECN ECT(1) bit set
	0 successful ECN handshakes
	0 times ECN reduced the congestion window
	0 packets with matching signature received
	0 packets with bad signature received
	0 times failed to make signature due to no SA
	0 times unexpected signature received
	0 times no signature provided by segment
	0 Path MTU discovery black hole detection activations
	0 Path MTU discovery black hole detection min MSS activations
	0 Path MTU discovery black hole detection failures
TCP connection count by state:
	0 connections in CLOSED state
	3 connections in LISTEN state
	0 connections in SYN_SENT state
	0 connections in SYN_RCVD state
	0 connections in ESTABLISHED state
	0 connections in CLOSE_WAIT state
	0 connections in FIN_WAIT_1 state
	0 connections in CLOSING state
	0 connections in LAST_ACK state
	0 connections in FIN_WAIT_2 state
	0 connections in TIME_WAIT state
udp:
	26 datagrams received
	0 with incomplete header
	0 with bad data length field
	0 with bad checksum
	0 with no checksum
	0 dropped due to no socket
	21 broadcast/multicast datagrams undelivered
	0 dropped due to full socket buffers
	0 not for hashed pcb
	5 delivered
	5 datagrams output
	0 times multicast source filter matched
ip:
	29 total packets received
	0 bad header checksums
	0 with size smaller than minimum
	0 with data size < data length
	0 with ip length > max ip packet size
	0 with header length < data size
	0 with data length < header length
	0 with bad options
	0 with incorrect version number
	0 fragments received
	0 fragments dropped (dup or out of space)
	0 fragments dropped after timeout
	0 packets reassembled ok
	27 packets for this host
	0 packets for unknown/unsupported protocol
	0 packets forwarded (0 packets fast forwarded)
	2 packets not forwardable
	0 packets received for unknown multicast group
	0 redirects sent
	5 packets sent from this host
	0 packets sent with fabricated ip header
	0 output packets dropped due to no bufs, etc.
	0 output packets discarded due to no route
	0 output datagrams fragmented
	0 fragments created
	0 datagrams that can't be fragmented
	0 tunneling packets that can't find gif
	0 datagrams with bad address in header
icmp:
	0 calls to icmp_error
	0 errors not generated in response to an icmp message
	0 messages with bad code fields
	0 messages less than the minimum length
	0 messages with bad checksum
	0 messages with bad length
	0 multicast echo requests ignored
	0 multicast timestamp requests ignored
	0 message responses generated
	0 invalid return addresses
	0 no return routes
arp:
	2 ARP requests sent
	0 ARP requests failed to sent
	1 ARP reply sent
	2 ARP requests received
	1 ARP reply received
	3 ARP packets received
	0 total packets dropped due to no ARP entry
	0 ARP entrys timed out
	0 Duplicate IPs seen
ip6:
	0 total packets received
	0 with size smaller than minimum
	0 with data size < data length
	0 with bad options
	0 with incorrect version number
	0 fragments received
	0 fragments dropped (dup or out of space)
	0 fragments dropped after timeout
	0 fragments that exceeded limit
	0 atomic fragments
	0 packets reassembled ok
	0 packets for this host
	0 packets forwarded
	0 packets not forwardable
	0 redirects sent
	0 packets sent from this host
	0 packets sent with fabricated ip header
	0 output packets dropped due to no bufs, etc.
	0 output packets discarded due to no route
	0 output datagrams fragmented
	0 fragments created
	0 datagrams that can't be fragmented
	0 packets that violated scope rules
	0 multicast packets which we don't join
	Mbuf statistics:
		0 one mbuf
		0 one ext mbuf
		0 two or more ext mbuf
	0 packets whose headers are not contiguous
	0 tunneling packets that can't find gif
	0 packets discarded because of too many headers
	0 failures of source address selection
icmp6:
	0 calls to icmp6_error
	0 errors not generated in response to an icmp6 message
	0 errors not generated because of rate limitation
	0 messages with bad code fields
	0 messages < minimum length
	0 bad checksums
	0 messages with bad length
	Histogram of error messages to be generated:
		0 no route
		0 administratively prohibited
		0 beyond scope
		0 address unreachable
		0 port unreachable
		0 packet too big
		0 time exceed transit
		0 time exceed reassembly
		0 erroneous header field
		0 unrecognized next header
		0 unrecognized option
		0 redirect
		0 unknown
	0 message responses generated
	0 messages with too many ND options
	0 messages with bad ND options
	0 bad neighbor solicitation messages
	0 bad neighbor advertisement messages
	0 bad router solicitation messages
	0 bad router advertisement messages
	0 bad redirect messages
	0 default routers overflows
	0 prefix overflows
	0 neighbour entries overflows
	0 redirect overflows
	0 messages with invalid hop limit
	0 path MTU changes
rip6:
	0 messages received
	0 checksum calculations on inbound
	0 messages with bad checksum
	0 messages dropped due to no socket
	0 multicast messages dropped due to no socket
	0 messages dropped due to full socket buffers
	0 delivered
	0 datagrams output
pfkey:
	0 requests sent from userland
	0 bytes sent from userland
	0 messages with invalid length field
	0 messages with invalid version field
	0 messages with invalid message type field
	0 messages too short
	0 messages with memory allocation failure
	0 messages with duplicate extension
	0 messages with invalid extension type
	0 messages with invalid sa type
	0 messages with invalid address extension
	0 requests sent to userland
	0 bytes sent to userland
	0 messages toward single socket
	0 messages toward all sockets
	0 messages toward registered sockets
	0 messages with memory allocation failure

------------------------------------------------------------------------
netstat -m

17153/1462/18615 mbufs in use (current/cache/total)
16640/708/17348/2037370 mbuf clusters in use (current/cache/total/max)
256/689 mbuf+clusters out of packet secondary zone in use (current/cache)
256/0/256/1018685 4k (page size) jumbo clusters in use (current/cache/total/max)
0/0/0/301832 9k jumbo clusters in use (current/cache/total/max)
0/0/0/169780 16k jumbo clusters in use (current/cache/total/max)
38592K/1781K/40373K bytes allocated to network (current/cache/total)
0/0/0 requests for mbufs denied (mbufs/clusters/mbuf+clusters)
0/0/0 requests for mbufs delayed (mbufs/clusters/mbuf+clusters)
0/0/0 requests for jumbo clusters delayed (4k/9k/16k)
0/0/0 requests for jumbo clusters denied (4k/9k/16k)
0 sendfile syscalls
0 sendfile syscalls completed without I/O request
0 requests for I/O initiated by sendfile
0 pages read by sendfile as part of a request
0 pages were valid at time of a sendfile request
0 pages were valid and substituted to bogus page
0 pages were requested for read ahead by applications
0 pages were read ahead by sendfile
0 times sendfile encountered an already busy page
0 requests for sfbufs denied
0 requests for sfbufs delayed

------------------------------------------------------------------------
netstat -anA

Active Internet connections (including servers)
Tcpcb            Proto Recv-Q Send-Q Local Address      Foreign Address    (state)    
fffff800be8cad58 udp4       0      0 *.514              *.*                
fffff800be8cab70 udp6       0      0 *.514              *.*                

------------------------------------------------------------------------
netstat -aL

Current listen queue sizes (qlen/incqlen/maxqlen)
Proto Listen                           Local Address         
unix  0/0/4                            /var/run/devd.pipe
unix  0/0/4                            /var/run/devd.seqpacket.pipe

------------------------------------------------------------------------
fstat

USER     CMD          PID   FD MOUNT      INUM MODE         SZ|DV R/W
root     kldload     1447 root /             2 drwxr-xr-x    1024  r
root     kldload     1447   wd /        20164544 drwxr-xr-x     512  r
root     kldload     1447 text /         80284 -r-xr-xr-x    8720  r
root     kldload     1447 ctty /dev        120 crw-------   ttyv0 rw
root     kldload     1447    0 /dev        120 crw-------   ttyv0 rw
root     kldload     1447    1 /dev        120 crw-------   ttyv0 rw
root     kldload     1447    2 /dev        120 crw-------   ttyv0 rw
root     sudo        1446 root /             2 drwxr-xr-x    1024  r
root     sudo        1446   wd /        20164544 drwxr-xr-x     512  r
root     sudo        1446 text /        20244858 -rwsr-xr-x  143872  r
root     sudo        1446 ctty /dev        120 crw-------   ttyv0 rw
root     sudo        1446    0 /dev        120 crw-------   ttyv0 rw
root     sudo        1446    1 /dev        120 crw-------   ttyv0 rw
root     sudo        1446    2 /dev        120 crw-------   ttyv0 rw
root     sudo        1446    3 /        9872080 -rw-------   40960  r
root     sudo        1446    5* pipe fffff8000562b8b8 <-> fffff8000562ba18      0 rw
root     sudo        1446    6* pipe fffff8000562ba18 <-> fffff8000562b8b8      0 rw
tsujp    bash        1432 root /             2 drwxr-xr-x    1024  r
tsujp    bash        1432   wd /        20164544 drwxr-xr-x     512  r
tsujp    bash        1432 text /        20244868 -rwxr-xr-x  911112  r
tsujp    bash        1432 ctty /dev        120 crw-------   ttyv0 rw
tsujp    bash        1432    0 /dev        120 crw-------   ttyv0 rw
tsujp    bash        1432    1 /dev        120 crw-------   ttyv0 rw
tsujp    bash        1432    2 /dev        120 crw-------   ttyv0 rw
tsujp    bash        1432  255 /dev        120 crw-------   ttyv0 rw
root     getty       1431 root /             2 drwxr-xr-x    1024  r
root     getty       1431   wd /             2 drwxr-xr-x    1024  r
root     getty       1431 text /        19826702 -r-xr-xr-x   31016  r
root     getty       1431 ctty /dev        127 crw-------   ttyv7 rw
root     getty       1431    0 /dev        127 crw-------   ttyv7 rw
root     getty       1431    1 /dev        127 crw-------   ttyv7 rw
root     getty       1431    2 /dev        127 crw-------   ttyv7 rw
root     getty       1430 root /             2 drwxr-xr-x    1024  r
root     getty       1430   wd /             2 drwxr-xr-x    1024  r
root     getty       1430 text /        19826702 -r-xr-xr-x   31016  r
root     getty       1430 ctty /dev        126 crw-------   ttyv6 rw
root     getty       1430    0 /dev        126 crw-------   ttyv6 rw
root     getty       1430    1 /dev        126 crw-------   ttyv6 rw
root     getty       1430    2 /dev        126 crw-------   ttyv6 rw
root     getty       1429 root /             2 drwxr-xr-x    1024  r
root     getty       1429   wd /             2 drwxr-xr-x    1024  r
root     getty       1429 text /        19826702 -r-xr-xr-x   31016  r
root     getty       1429 ctty /dev        125 crw-------   ttyv5 rw
root     getty       1429    0 /dev        125 crw-------   ttyv5 rw
root     getty       1429    1 /dev        125 crw-------   ttyv5 rw
root     getty       1429    2 /dev        125 crw-------   ttyv5 rw
root     getty       1428 root /             2 drwxr-xr-x    1024  r
root     getty       1428   wd /             2 drwxr-xr-x    1024  r
root     getty       1428 text /        19826702 -r-xr-xr-x   31016  r
root     getty       1428 ctty /dev        124 crw-------   ttyv4 rw
root     getty       1428    0 /dev        124 crw-------   ttyv4 rw
root     getty       1428    1 /dev        124 crw-------   ttyv4 rw
root     getty       1428    2 /dev        124 crw-------   ttyv4 rw
root     getty       1427 root /             2 drwxr-xr-x    1024  r
root     getty       1427   wd /             2 drwxr-xr-x    1024  r
root     getty       1427 text /        19826702 -r-xr-xr-x   31016  r
root     getty       1427 ctty /dev        123 crw-------   ttyv3 rw
root     getty       1427    0 /dev        123 crw-------   ttyv3 rw
root     getty       1427    1 /dev        123 crw-------   ttyv3 rw
root     getty       1427    2 /dev        123 crw-------   ttyv3 rw
root     getty       1426 root /             2 drwxr-xr-x    1024  r
root     getty       1426   wd /             2 drwxr-xr-x    1024  r
root     getty       1426 text /        19826702 -r-xr-xr-x   31016  r
root     getty       1426 ctty /dev        122 crw-------   ttyv2 rw
root     getty       1426    0 /dev        122 crw-------   ttyv2 rw
root     getty       1426    1 /dev        122 crw-------   ttyv2 rw
root     getty       1426    2 /dev        122 crw-------   ttyv2 rw
root     getty       1425 root /             2 drwxr-xr-x    1024  r
root     getty       1425   wd /             2 drwxr-xr-x    1024  r
root     getty       1425 text /        19826702 -r-xr-xr-x   31016  r
root     getty       1425 ctty /dev        121 crw-------   ttyv1 rw
root     getty       1425    0 /dev        121 crw-------   ttyv1 rw
root     getty       1425    1 /dev        121 crw-------   ttyv1 rw
root     getty       1425    2 /dev        121 crw-------   ttyv1 rw
root     login       1424 root /             2 drwxr-xr-x    1024  r
root     login       1424   wd /        20164544 drwxr-xr-x     512  r
root     login       1424 text /        19827745 -r-sr-xr-x   25472  r
root     login       1424 ctty /dev        120 crw-------   ttyv0 rw
root     login       1424    0 /dev        120 crw-------   ttyv0 rw
root     login       1424    1 /dev        120 crw-------   ttyv0 rw
root     login       1424    2 /dev        120 crw-------   ttyv0 rw
root     login       1424    3* local dgram fffff800058a6e00 <-> fffff80005653d00
root     cron        1404 root /             2 drwxr-xr-x    1024  r
root     cron        1404   wd /        11476629 drwxr-x---     512  r
root     cron        1404 text /        19824134 -r-xr-xr-x   45976  r
root     cron        1404    0 /dev         33 crw-rw-rw-    null rw
root     cron        1404    1 /dev         33 crw-rw-rw-    null rw
root     cron        1404    2 /dev         33 crw-rw-rw-    null rw
root     cron        1404    3 /        11476612 drwxr-xr-x    1024  r
root     cron        1404    4 /        11476883 -rw-------       4  w
root     sshd        1397 root /             2 drwxr-xr-x    1024  r
root     sshd        1397   wd /             2 drwxr-xr-x    1024  r
root     sshd        1397 text /        19824090 -r-xr-xr-x  309704  r
root     sshd        1397    0 /dev         33 crw-rw-rw-    null rw
root     sshd        1397    1 /dev         33 crw-rw-rw-    null rw
root     sshd        1397    2 /dev         33 crw-rw-rw-    null rw
root     sshd        1397    3* internet6 stream tcp fffffe00dae258f0
root     sshd        1397    4* internet stream tcp fffffe00dae254d8
smmsp    sendmail    1380 root /             2 drwxr-xr-x    1024  r
smmsp    sendmail    1380   wd /        11557294 drwxrwx---     512  r
smmsp    sendmail    1380 text /        19826858 -r-xr-sr-x  752648  r
smmsp    sendmail    1380    0 /dev         33 crw-rw-rw-    null  r
smmsp    sendmail    1380    1 /dev         33 crw-rw-rw-    null  w
smmsp    sendmail    1380    2 /dev         33 crw-rw-rw-    null  w
smmsp    sendmail    1380    3* local dgram fffff8000563ee00 <-> fffff800056fec00
smmsp    sendmail    1380    4 /        11557306 -rw-------      50  w
root     sendmail    1377 root /             2 drwxr-xr-x    1024  r
root     sendmail    1377   wd /        11557293 drwxr-xr-x     512  r
root     sendmail    1377 text /        19826858 -r-xr-sr-x  752648  r
root     sendmail    1377    0 /dev         33 crw-rw-rw-    null  r
root     sendmail    1377    1 /dev         33 crw-rw-rw-    null  w
root     sendmail    1377    2 /dev         33 crw-rw-rw-    null  w
root     sendmail    1377    3* internet stream tcp fffffe00dae228f0
root     sendmail    1377    4* local dgram fffff800058d9d00 <-> fffff80005653d00
root     sendmail    1377    5 /        11476881 -rw-------      79  w
root     syslogd     1227 root /             2 drwxr-xr-x    1024  r
root     syslogd     1227   wd /             2 drwxr-xr-x    1024  r
root     syslogd     1227 text /        19823999 -r-xr-xr-x   54424  r
root     syslogd     1227    0 /dev         33 crw-rw-rw-    null rw
root     syslogd     1227    1 /dev         33 crw-rw-rw-    null rw
root     syslogd     1227    2 /dev         33 crw-rw-rw-    null rw
root     syslogd     1227    3* pipe fffff80051191ba0 <-> fffff80051191d00      0 rw
root     syslogd     1227    4* pipe fffff80051191d00 <-> fffff80051191ba0      0 rw
root     syslogd     1227    5 /dev         19 crw-------    klog  r
root     syslogd     1227    6* internet6 dgram udp fffff800056cbd58
root     syslogd     1227    7* internet dgram udp fffff800056cbb70
root     syslogd     1227    8* local dgram fffff800056fec00
root     syslogd     1227    9* local dgram fffff80005653d00
root     syslogd     1227   10 /        11476612 drwxr-xr-x    1024  r
root     syslogd     1227   11 /        11476683 -rw-------       4  w
root     syslogd     1227   13 -         -         bad    -
root     syslogd     1227   14 /        11476670 -rw-r--r--   60800  w
root     syslogd     1227   15 /        11476672 -rw-------      60  w
root     syslogd     1227   16 /        11476666 -rw-------    1705  w
root     syslogd     1227   17 /        11476669 -rw-r-----     778  w
root     syslogd     1227   18 /        11476667 -rw-------     532  w
root     syslogd     1227   19 /        11476668 -rw-------      60  w
root     syslogd     1227   20 /        11476673 -rw-r--r--     200  w
root     syslogd     1227   22 /        11476674 -rw-------      60  w
root     syslogd     1227   23 /        11476675 -rw-r--r--      60  w
root     syslogd     1227   24 /        11476676 -rw-r-----      60  w
root     moused      1035 root /             2 drwxr-xr-x    1024  r
root     moused      1035   wd /             2 drwxr-xr-x    1024  r
root     moused      1035 text /        19824162 -r-xr-xr-x   41568  r
root     moused      1035    0 /dev         33 crw-rw-rw-    null rw
root     moused      1035    1 /dev         33 crw-rw-rw-    null rw
root     moused      1035    2 /dev         33 crw-rw-rw-    null rw
root     moused      1035    3 /dev        208 crw-r--r--    ums1 rw
root     moused      1035    4 /dev         20 crw-------  consolectl rw
root     moused      1035    5 /        11476612 drwxr-xr-x    1024  r
root     moused      1035    6 /        11476677 -rw-------       4  w
root     moused      1012 root /             2 drwxr-xr-x    1024  r
root     moused      1012   wd /             2 drwxr-xr-x    1024  r
root     moused      1012 text /        19824162 -r-xr-xr-x   41568  r
root     moused      1012    0 /dev         33 crw-rw-rw-    null rw
root     moused      1012    1 /dev         33 crw-rw-rw-    null rw
root     moused      1012    2 /dev         33 crw-rw-rw-    null rw
root     moused      1012    3 /dev        203 crw-r--r--    ums0 rw
root     moused      1012    4 /dev         20 crw-------  consolectl rw
root     moused      1012    5 /        11476612 drwxr-xr-x    1024  r
root     moused      1012    6 /        11476663 -rw-------       4  w
_dhcp    dhclient    1001 root /             2 drwxr-xr-x    1024  r
_dhcp    dhclient    1001   wd /             2 drwxr-xr-x    1024  r
_dhcp    dhclient    1001 text /         80307 -r-xr-xr-x  100232  r
_dhcp    dhclient    1001    0 /dev         33 crw-rw-rw-    null rw
_dhcp    dhclient    1001    1 /dev         33 crw-rw-rw-    null rw
_dhcp    dhclient    1001    2 /dev         33 crw-rw-rw-    null rw
_dhcp    dhclient    1001    3 /        11557302 drwxr-xr-x     512  r
_dhcp    dhclient    1001    4* local stream fffff80051581e00 <-> fffff80051581d00
_dhcp    dhclient    1001    5 /        11557307 -rw-r--r--       4  w
_dhcp    dhclient    1001    7 /dev         35 crw-------     bpf  r
_dhcp    dhclient    1001    8* route raw 0 fffff800056c2760
_dhcp    dhclient    1001    9 /        11476656 ----------     762  w
_dhcp    dhclient    1001   11* pipe fffff80005689160 <-> fffff80005689000      0 rw
root     dhclient     917 root /             2 drwxr-xr-x    1024  r
root     dhclient     917   wd /             2 drwxr-xr-x    1024  r
root     dhclient     917 text /         80307 -r-xr-xr-x  100232  r
root     dhclient     917    0 /dev         33 crw-rw-rw-    null rw
root     dhclient     917    1 /dev         33 crw-rw-rw-    null rw
root     dhclient     917    2 /dev         33 crw-rw-rw-    null rw
root     dhclient     917    3 /        11557302 drwxr-xr-x     512  r
root     dhclient     917    4* local stream fffff80051581e00 <-> fffff80051581d00
root     dhclient     917    5 /        11557307 -rw-r--r--       4  w
root     dhclient     917    8 /dev         35 crw-------     bpf  w
root     dhclient     917    9* internet raw ip fffff800a8bb8d58
root     dhclient     917   10* pipe fffff80005689000 <-> fffff80005689160      0 rw
root     dhclient     914 root /             2 drwxr-xr-x    1024  r
root     dhclient     914   wd /             2 drwxr-xr-x    1024  r
root     dhclient     914 text /         80307 -r-xr-xr-x  100232  r
root     dhclient     914    0 /dev         33 crw-rw-rw-    null rw
root     dhclient     914    1 /dev         33 crw-rw-rw-    null rw
root     dhclient     914    2 /dev         33 crw-rw-rw-    null rw
root     dhclient     914    3
root     dhclient     914    6* local stream fffff80051581d00 <-> fffff80051581e00
root     devd         891 root /             2 drwxr-xr-x    1024  r
root     devd         891   wd /             2 drwxr-xr-x    1024  r
root     devd         891 text /         80321 -r-xr-xr-x  1083816  r
root     devd         891    0 /dev         33 crw-rw-rw-    null rw
root     devd         891    1 /dev         33 crw-rw-rw-    null rw
root     devd         891    2 /dev         33 crw-rw-rw-    null rw
root     devd         891    3 /dev          5 crw-------  devctl  r
root     devd         891    4* local stream fffff800056fee00
root     devd         891    5* local seqpak fffff80005653e00
root     devd         891    6 /        11476612 drwxr-xr-x    1024  r
root     devd         891    7 /        11476648 -rw-------       3  w
root     devd         891    8* local dgram fffff80005653c00 <-> fffff80005653d00
root     ng_queue     732 root /             2 drwxr-xr-x    1024  r
root     ng_queue     732   wd /             2 drwxr-xr-x    1024  r
root     adjkerntz    115 root /             2 drwxr-xr-x    1024  r
root     adjkerntz    115   wd /             2 drwxr-xr-x    1024  r
root     adjkerntz    115 text /         80352 -r-xr-xr-x    9720  r
root     adjkerntz    115    0 /dev         33 crw-rw-rw-    null rw
root     adjkerntz    115    1 /dev         33 crw-rw-rw-    null rw
root     adjkerntz    115    2 /dev         33 crw-rw-rw-    null rw
root     init           1 root /             2 drwxr-xr-x    1024  r
root     init           1   wd /             2 drwxr-xr-x    1024  r
root     init           1 text /         80309 -r-xr-xr-x  1345832  r
root     kernel         0 root /             2 drwxr-xr-x    1024  r
root     kernel         0   wd /             2 drwxr-xr-x    1024  r

------------------------------------------------------------------------
dmesg

---<<BOOT>>---
Copyright (c) 1992-2020 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 13.0-CURRENT #0 9e082d278b9-c254726(main): Thu Nov 26 04:50:43 UTC 2020
    [email protected]:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64
FreeBSD clang version 11.0.0 ([email protected]:llvm/llvm-project.git llvmorg-11.0.0-0-g176249bd673)
WARNING: WITNESS option enabled, expect reduced performance.
VT(efifb): resolution 1024x768
CPU: AMD Ryzen 7 3700X 8-Core Processor              (3600.08-MHz K8-class CPU)
  Origin="AuthenticAMD"  Id=0x870f10  Family=0x17  Model=0x71  Stepping=0
  Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>
  Features2=0x7ed8320b<SSE3,PCLMULQDQ,MON,SSSE3,FMA,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AESNI,XSAVE,OSXSAVE,AVX,F16C,RDRAND>
  AMD Features=0x2e500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM>
  AMD Features2=0x75c237ff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW,IBS,SKINIT,WDT,TCE,Topology,PCXC,PNXC,DBE,PL2I,MWAITX,ADMSKX>
  Structured Extended Features=0x219c91a9<FSGSBASE,BMI1,AVX2,SMEP,BMI2,PQM,PQE,RDSEED,ADX,SMAP,CLFLUSHOPT,CLWB,SHA>
  Structured Extended Features2=0x400004<UMIP,RDPID>
  XSAVE Features=0xf<XSAVEOPT,XSAVEC,XINUSE,XSAVES>
  AMD Extended Feature Extensions ID EBX=0x108b657<CLZERO,IRPerf,XSaveErPtr,RDPRU,WBNOINVD,IBPB,STIBP,SSBD>
  SVM: NP,NRIP,VClean,AFlush,DAssist,NAsids=32768
  TSC: P-state invariant, performance statistics
real memory  = 34359738368 (32768 MB)
avail memory = 33284272128 (31742 MB)
Event timer "LAPIC" quality 600
ACPI APIC Table: <ALASKA A M I >
FreeBSD/SMP: Multiprocessor System Detected: 16 CPUs
FreeBSD/SMP: 1 package(s) x 2 cache groups x 4 core(s) x 2 hardware threads
random: registering fast source Intel Secure Key RNG
random: fast provider: "Intel Secure Key RNG"
random: unblocking device.
ioapic0 <Version 2.1> irqs 0-23
ioapic1 <Version 2.1> irqs 24-55
Launching APs: 15 14 9 12 11 1 13 10 8 2 4 7 5 6 3
Timecounter "TSC-low" frequency 1800039780 Hz quality 1000
random: entropy device external interface
WARNING: Device "kbd" is Giant locked and may be deleted before FreeBSD 13.0.
kbd1 at kbdmux0
000.000057 [4346] netmap_init               netmap: loaded module
[ath_hal] loaded
nexus0
efirtc0: <EFI Realtime Clock>
efirtc0: registered as a time-of-day clock, resolution 1.000000s
cryptosoft0: <software crypto>
acpi0: <ALASKA A M I >
acpi0: Power Button (fixed)
cpu0: <ACPI CPU> on acpi0
attimer0: <AT timer> port 0x40-0x43 irq 0 on acpi0
Timecounter "i8254" frequency 1193182 Hz quality 0
Event timer "i8254" frequency 1193182 Hz quality 100
atrtc0: <AT realtime clock> port 0x70-0x71 on acpi0
atrtc0: registered as a time-of-day clock, resolution 1.000000s
Event timer "RTC" frequency 32768 Hz quality 0
hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff irq 0,8 on acpi0
Timecounter "HPET" frequency 14318180 Hz quality 950
Event timer "HPET" frequency 14318180 Hz quality 350
Event timer "HPET1" frequency 14318180 Hz quality 350
Event timer "HPET2" frequency 14318180 Hz quality 350
Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
acpi_timer0: <32-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pci0: <base peripheral, IOMMU> at device 0.2 (no driver attached)
pcib1: <ACPI PCI-PCI bridge> at device 1.1 on pci0
pci1: <ACPI PCI bus> on pcib1
nvme0: <Generic NVMe Device> mem 0xfcf00000-0xfcf03fff at device 0.0 on pci1
pcib2: <ACPI PCI-PCI bridge> at device 1.3 on pci0
pci2: <ACPI PCI bus> on pcib2
xhci0: <XHCI (generic) USB 3.0 controller> mem 0xfcaa0000-0xfcaa7fff at device 0.0 on pci2
xhci0: 32 bytes context size, 64-bit DMA
usbus0 on xhci0
usbus0: 5.0Gbps Super Speed USB v3.0
ahci0: <AHCI SATA controller> mem 0xfca80000-0xfca9ffff at device 0.1 on pci2
ahci0: AHCI v1.31 with 8 6Gbps ports, Port Multiplier supported
ahcich0: <AHCI channel> at channel 0 on ahci0
ahcich1: <AHCI channel> at channel 1 on ahci0
ahcich4: <AHCI channel> at channel 4 on ahci0
ahcich5: <AHCI channel> at channel 5 on ahci0
pcib3: <ACPI PCI-PCI bridge> at device 0.2 on pci2
pci3: <ACPI PCI bus> on pcib3
pcib4: <ACPI PCI-PCI bridge> at device 0.0 on pci3
pci4: <ACPI PCI bus> on pcib4
pcib5: <ACPI PCI-PCI bridge> at device 1.0 on pci3
pci5: <ACPI PCI bus> on pcib5
pcib6: <ACPI PCI-PCI bridge> at device 4.0 on pci3
pci6: <ACPI PCI bus> on pcib6
re0: <RealTek 8168/8111 B/C/CP/D/DP/E/F/G PCIe Gigabit Ethernet> port 0xf000-0xf0ff mem 0xfc904000-0xfc904fff,0xfc900000-0xfc903fff at device 0.0 on pci6
re0: Using 1 MSI-X message
re0: Chip rev. 0x54000000
re0: MAC rev. 0x00100000
miibus0: <MII bus> on re0
rgephy0: <RTL8251/8153 1000BASE-T media interface> PHY 1 on miibus0
rgephy0:  none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow
re0: Using defaults for TSO: 65518/35/2048
re0: Ethernet address: 00:d8:61:a1:82:5f
re0: netmap queues/slots: TX 1/256, RX 1/256
pcib7: <ACPI PCI-PCI bridge> at device 5.0 on pci3
pci7: <ACPI PCI bus> on pcib7
pci7: <network> at device 0.0 (no driver attached)
pcib8: <ACPI PCI-PCI bridge> at device 6.0 on pci3
pci8: <ACPI PCI bus> on pcib8
pcib9: <ACPI PCI-PCI bridge> at device 7.0 on pci3
pci9: <ACPI PCI bus> on pcib9
pcib10: <ACPI PCI-PCI bridge> at device 3.1 on pci0
pci10: <ACPI PCI bus> on pcib10
pcib11: <PCI-PCI bridge> mem 0xfcc00000-0xfcc03fff at device 0.0 on pci10
pci11: <PCI bus> on pcib11
pcib12: <PCI-PCI bridge> at device 0.0 on pci11
pci12: <PCI bus> on pcib12
vgapci0: <VGA-compatible display> port 0xe000-0xe0ff mem 0xe0000000-0xefffffff,0xf0000000-0xf01fffff,0xfcb00000-0xfcb7ffff at device 0.0 on pci12
hdac0: <ATI (0xab38) HDA Controller> mem 0xfcba0000-0xfcba3fff at device 0.1 on pci12
pcib13: <ACPI PCI-PCI bridge> at device 7.1 on pci0
pci13: <ACPI PCI bus> on pcib13
pci13: <unknown> at device 0.0 (no driver attached)
pcib14: <ACPI PCI-PCI bridge> at device 8.1 on pci0
pci14: <ACPI PCI bus> on pcib14
pci14: <unknown> at device 0.0 (no driver attached)
pci14: <encrypt/decrypt> at device 0.1 (no driver attached)
xhci1: <XHCI (generic) USB 3.0 controller> mem 0xfc500000-0xfc5fffff at device 0.3 on pci14
xhci1: 64 bytes context size, 64-bit DMA
usbus1 on xhci1
usbus1: 5.0Gbps Super Speed USB v3.0
hdac1: <AMD X570 HDA Controller> mem 0xfc700000-0xfc707fff at device 0.4 on pci14
pcib15: <ACPI PCI-PCI bridge> at device 8.2 on pci0
pci15: <ACPI PCI bus> on pcib15
ahci1: <AMD KERNCZ AHCI SATA controller> mem 0xfce00000-0xfce007ff at device 0.0 on pci15
ahci1: AHCI v1.31 with 1 6Gbps ports, Port Multiplier supported with FBS
ahcich8: <AHCI channel> at channel 0 on ahci1
pcib16: <ACPI PCI-PCI bridge> at device 8.3 on pci0
pci16: <ACPI PCI bus> on pcib16
ahci2: <AMD KERNCZ AHCI SATA controller> mem 0xfcd00000-0xfcd007ff at device 0.0 on pci16
ahci2: AHCI v1.31 with 1 6Gbps ports, Port Multiplier supported with FBS
ahcich9: <AHCI channel> at channel 0 on ahci2
isab0: <PCI-ISA bridge> at device 20.3 on pci0
isa0: <ISA bus> on isab0
acpi_button0: <Power Button> on acpi0
uart2: <16x50 with 256 byte FIFO> iomem 0xfedc9000-0xfedc9fff,0xfedc7000-0xfedc7fff irq 3 on acpi0
uart3: <16x50 with 256 byte FIFO> iomem 0xfedca000-0xfedcafff,0xfedc8000-0xfedc8fff irq 4 on acpi0
uart4: <16x50 with 256 byte FIFO> iomem 0xfedce000-0xfedcefff,0xfedcc000-0xfedccfff irq 3 on acpi0
uart5: <16x50 with 256 byte FIFO> iomem 0xfedcf000-0xfedcffff,0xfedcd000-0xfedcdfff irq 4 on acpi0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
atkbdc0: non-PNP ISA device will be removed from GENERIC in FreeBSD 12.
uart0: <16550 or compatible> at port 0x3f8 irq 4 flags 0x10 on isa0
uart0: non-PNP ISA device will be removed from GENERIC in FreeBSD 12.
hwpstate0: <Cool`n'Quiet 2.0> on cpu0
Timecounters tick every 1.000 msec
ugen0.1: <0x1022 XHCI root HUB> at usbus0
ugen1.1: <0x1022 XHCI root HUB> at usbus1
uhub0 on usbus0
uhub0: <0x1022 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0
uhub1 on usbus1
uhub1: <0x1022 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus1
nvd0: <Samsung SSD 970 PRO 512GB> NVMe namespace
nvd0: 488386MB (1000215216 512 byte sectors)
hdacc0: <ATI R6xx HDA CODEC> at cad 0 on hdac0
hdaa0: <ATI R6xx Audio Function Group> at nid 1 on hdacc0
pcm0: <ATI R6xx (HDMI)> at nid 3 on hdaa0
pcm1: <ATI R6xx (HDMI)> at nid 5 on hdaa0
pcm2: <ATI R6xx (HDMI)> at nid 7 on hdaa0
pcm3: <ATI R6xx (HDMI)> at nid 9 on hdaa0
pcm4: <ATI R6xx (HDMI)> at nid 11 on hdaa0
pcm5: <ATI R6xx (HDMI)> at nid 13 on hdaa0
hdacc1: <Realtek ALC887 HDA CODEC> at cad 0 on hdac1
hdaa1: <Realtek ALC887 Audio Function Group> at nid 1 on hdacc1
pcm6: <Realtek ALC887 (Rear Analog)> at nid 20 and 24,26 on hdaa1
pcm7: <Realtek ALC887 (Front Analog)> at nid 27 and 25 on hdaa1
Trying to mount root from ufs:/dev/nvd0p2 [rw]...
WARNING: WITNESS option enabled, expect reduced performance.
ada0 at ahcich0 bus 0 scbus0 target 0 lun 0
ada0: <Samsung SSD 860 EVO 1TB RVT03B6Q> ACS-4 ATA SATA 3.x device
ada0: Serial Number S4FMNJ0MC01752J
ada0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 512bytes)
ada0: Command Queueing enabled
ada0: 953869MB (1953525168 512 byte sectors)
ada1 at ahcich1 bus 0 scbus1 target 0 lun 0
ada1: <Samsung SSD 840 EVO 250GB EXT0DB6Q> ACS-2 ATA SATA 3.x device
ada1: Serial Number S1DBNSAF457090B
ada1: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 512bytes)
ada1: Command Queueing enabled
ada1: 238475MB (488397168 512 byte sectors)
ada1: quirks=0x3<4K,NCQ_TRIM_BROKEN>
ada2 at ahcich5 bus 0 scbus3 target 0 lun 0
ada2: <Samsung SSD 850 EVO 250GB EMT01B6Q> ACS-2 ATA SATA 3.x device
ada2: Serial Number S21MNWAG710612D
ada2: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 512bytes)
ada2: Command Queueing enabled
ada2: 238475MB (488397168 512 byte sectors)
ada2: quirks=0x3<4K,NCQ_TRIM_BROKEN>
Setting hostuuid: b978c78d-c58c-0515-a4f5-00d861a1825f.
Setting hostid: 0x2ab9673c.
Starting file system checks:
/dev/nvd0p2: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/nvd0p2: clean, 118553749 free (2925 frags, 14818853 blocks, 0.0% fragmentation)
Mounting local filesystems:.
ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/local/lib /usr/local/lib/compat/pkg /usr/local/lib/compat/pkg /usr/local/lib/perl5/5.32/mach/CORE /usr/local/llvm10/lib
32-bit compatibility ldconfig path: /usr/lib32
Setting hostname: tbsd.
Setting up harvesting: PURE_RDRAND,[UMA],[FS_ATIME],SWI,INTERRUPT,NET_NG,[NET_ETHER],NET_TUN,MOUSE,KEYBOARD,ATTACH,CACHED
Feeding entropy: .
lo0: link state changed to UP
uhub1: 8 ports with 8 removable, self powered
re0: link state changed to DOWN
uhub0: 22 ports with 22 removable, self powered
ugen1.2: <GenesysLogic USB2.0 Hub> at usbus1
uhub2 on uhub1
uhub2: <GenesysLogic USB2.0 Hub, class 9/0, rev 2.10/22.16, addr 1> on usbus1
uhub2: MTT enabled
uhub2: 2 ports with 2 removable, self powered
ugen0.2: <NZXT.-Inc. NZXT USB Device> at usbus0
ugen1.3: <Wings Tech Xtrfy M4> at usbus1
ukbd0 on uhub2
ukbd0: <Wings Tech Xtrfy M4, class 0/0, rev 1.10/1.00, addr 2> on usbus1
kbd2 at ukbd0
ugen0.3: <vendor 0x8087 product 0x0aa7> at usbus0
ugen1.4: <qmkbuilder keyboard> at usbus1
ukbd1 on uhub2
ukbd1: <qmkbuilder keyboard, class 0/0, rev 1.10/0.01, addr 3> on usbus1
kbd3 at ukbd1
ukbd2 on uhub2
ukbd2: <qmkbuilder keyboard, class 0/0, rev 1.10/0.01, addr 3> on usbus1
kbd4 at ukbd2
Starting Network: lo0 re0.
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
	options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
	inet6 ::1 prefixlen 128
	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
	inet 127.0.0.1 netmask 0xff000000
	groups: lo
	nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
	ether 00:d8:61:a1:82:5f
	media: Ethernet autoselect (none)
	status: no carrier
	nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
Starting devd.
Autoloading module: acpi_wmi.ko
acpi_wmi0: <ACPI-WMI mapping> on acpi0
acpi_wmi0: cannot find EC device
device_attach: acpi_wmi0 attach returned 6
driver bug: Unable to set devclass (class: ppc devname: (unknown))
acpi_wmi0: <ACPI-WMI mapping> on acpi0
acpi_wmi0: cannot find EC device
device_attach: acpi_wmi0 attach returned 6
acpi_wmi0: <ACPI-WMI mapping> on acpi0
acpi_wmi0: cannot find EC device
device_attach: acpi_wmi0 attach returned 6
Autoloading module: if_iwm.ko
iwm0: <Intel(R) Dual Band Wireless AC 3168> mem 0xfc800000-0xfc801fff at device 0.0 on pci7
iwm0: hw rev 0x220, fw ver 22.361476.0, address 5c:87:9c:3d:15:4e
Autoloading module: intpm.ko
intsmb0: <AMD FCH SMBus Controller> at device 20.0 on pci0
smbus0: <System Management Bus> on intsmb0
Autoloading module: acpi_wmi.ko
Autoloading module: acpi_wmi.ko
ugen1.5: <Shure Incorporated Shure Digital> at usbus1
Autoloading module: uhid.ko
Autoloading module: wmt.ko
uhid0 on uhub0
uhid0: <NZXT.-Inc. NZXT USB Device, class 0/0, rev 2.00/2.00, addr 1> on usbus0
Autoloading module: uhid.ko
Autoloading module: ums.ko
Autoloading module: ng_ubt.ko
ubt0 on uhub0
ubt0: <vendor 0x8087 product 0x0aa7, class 224/1, rev 2.00/0.01, addr 2> on usbus0
Autoloading module: ng_ubt.ko
Autoloading module: uhid.ko
Autoloading module: ums.ko
Autoloading module: uhid.ko
Autoloading module: wmt.ko
Autoloading module: snd_uaudio.ko
Autoloading module: uhid.ko
Autoloading module: wmt.ko
ugen1.6: <GenesysLogic USB3.0 Hub> at usbus1
uhub3 on uhub1
uhub3: <GenesysLogic> on usbus1
Autoloading module: ng_ubt.ko
Autoloading module: ng_ubt.ko
Autoloading module: ng_ubt.ko
Autoloading module: ng_ubt.ko
WARNING: attempt to domain_add(bluetooth) after domainfinalize()
WARNING: attempt to domain_add(netgraph) after domainfinalize()
Waiting 30s for the default route interface: 
re0: link state changed to UP
uhub3: 2 ports with 2 removable, self powered
ugen1.3: <Wings Tech Xtrfy M4> at usbus1 (disconnected)
ukbd0: at uhub2, port 1, addr 2 (disconnected)
ukbd0: detached
.
ugen1.3: <Wings Tech Xtrfy M4> at usbus1
ums0 on uhub2
ums0: <Wings Tech Xtrfy M4, class 0/0, rev 1.10/1.00, addr 2> on usbus1
ums0: 5 buttons and [XYZT] coordinates ID=0
ukbd0 on uhub2
ukbd0: <Wings Tech Xtrfy M4, class 0/0, rev 1.10/1.00, addr 2> on usbus1
kbd2 at ukbd0
ums1 on uhub2
ums1: <qmkbuilder keyboard, class 0/0, rev 1.10/0.01, addr 3> on usbus1
ums1: 5 buttons and [XYZT] coordinates ID=0
uhid1 on uhub2
uhid1: <qmkbuilder keyboard, class 0/0, rev 1.10/0.01, addr 3> on usbus1
uaudio0 on uhub1
uaudio0: <Shure Incorporated Shure Digital, class 0/0, rev 2.00/1.00, addr 4> on usbus1
uaudio0: Play[0]: 48000 Hz, 2 ch, 16-bit S-LE PCM format, 2x8ms buffer.
uaudio0: Play[0]: 44100 Hz, 2 ch, 16-bit S-LE PCM format, 2x8ms buffer.
uaudio0: Play[0]: 32000 Hz, 2 ch, 16-bit S-LE PCM format, 2x8ms buffer.
uaudio0: Record[0]: 48000 Hz, 2 ch, 16-bit S-LE PCM format, 2x8ms buffer.
uaudio0: Record[0]: 44100 Hz, 2 ch, 16-bit S-LE PCM format, 2x8ms buffer.
uaudio0: Record[0]: 32000 Hz, 2 ch, 16-bit S-LE PCM format, 2x8ms buffer.
uaudio0: Record[0]: 22050 Hz, 2 ch, 16-bit S-LE PCM format, 2x8ms buffer.
uaudio0: Record[0]: 16000 Hz, 2 ch, 16-bit S-LE PCM format, 2x8ms buffer.
uaudio0: Record[0]: 11025 Hz, 2 ch, 16-bit S-LE PCM format, 2x8ms buffer.
uaudio0: No MIDI sequencer.
pcm8: <USB audio> on uaudio0
uaudio0: HID volume keys found.
......(re0)
add host 127.0.0.1: gateway lo0 fib 0: route already in table
add host ::1: gateway lo0 fib 0: route already in table
add net fe80::: gateway ::1
add net ff02::: gateway ::1
add net ::ffff:0.0.0.0: gateway ::1
add net ::0.0.0.0: gateway ::1
Updating motd:.
Creating and/or trimming log files.
Updating /var/run/os-release done.
Starting syslogd.
Clearing /tmp.
Nov 28 20:23:31 tbsd savecore[1255]: reboot after panic: dummy ctx
Writing crash summary to /var/crash/core.txt.0.
Mounting late filesystems:.
Starting sendmail_submit.
Starting sendmail_msp_queue.
Performing sanity check on sshd configuration.
Starting sshd.
Starting cron.
Configuring vt: blanktime.
Starting background file system checks in 60 seconds.

Sat Nov 28 20:23:39 AWST 2020
[drm] amdgpu kernel modesetting enabled.
drmn0: <drmn> on vgapci0
vgapci0: child drmn0 requested pci_enable_io
vgapci0: child drmn0 requested pci_enable_io
sysctl_warn_reuse: can't re-use a leaf (hw.dri.debug)!
[drm] initializing kernel modesetting (NAVI10 0x1002:0x731F 0x1462:0x381A 0xC1).
[drm] register mmio base: 0xFCB00000
[drm] register mmio size: 524288
[drm] set register base offset for ATHUB
[drm] set register base offset for CLKA
[drm] set register base offset for CLKA
[drm] set register base offset for CLKA
[drm] set register base offset for CLKA
[drm] set register base offset for CLKA
[drm] set register base offset for DF
[drm] set register base offset for DMU
[drm] set register base offset for GC
[drm] set register base offset for HDP
[drm] set register base offset for MMHUB
[drm] set register base offset for MP0
[drm] set register base offset for MP1
[drm] set register base offset for NBIF
[drm] set register base offset for NBIF
[drm] set register base offset for OSSSYS
[drm] set register base offset for SDMA0
[drm] set register base offset for SDMA1
[drm] set register base offset for SMUIO
[drm] set register base offset for THM
[drm] set register base offset for UVD
[drm] add ip block number 0 <nv_common>
[drm] add ip block number 1 <gmc_v10_0>
[drm] add ip block number 2 <navi10_ih>
[drm] add ip block number 3 <psp>
[drm] add ip block number 4 <smu>
[drm] add ip block number 5 <dm>
[drm] add ip block number 6 <gfx_v10_0>
[drm] add ip block number 7 <sdma_v5_0>
[drm] add ip block number 8 <vcn_v2_0>
drmn0: successfully loaded firmware image with name: amdgpu/navi10_gpu_info.bin
[drm] VCN decode is enabled in VM mode
[drm] VCN encode is enabled in VM mode
[drm] VCN jpeg decode is enabled in VM mode
[drm] vm size is 262144 GB, 4 levels, block size is 9-bit, fragment size is 9-bit
drmn0: VRAM: 8176M 0x0000008000000000 - 0x00000081FEFFFFFF (8176M used)
drmn0: GART: 512M 0x0000000000000000 - 0x000000001FFFFFFF
Successfully added WC MTRR for [0xe0000000-0xefffffff]: 0; 
[drm] Detected VRAM RAM=8176M, BAR=256M
[drm] RAM width 256bits GDDR6
[TTM] Zone  kernel: Available graphics memory: 16735748 KiB
[TTM] Zone   dma32: Available graphics memory: 2097152 KiB
[TTM] Initializing pool allocator
[drm] amdgpu: 8176M of VRAM memory ready
[drm] amdgpu: 8176M of GTT memory ready.
[drm] GART: num cpu pages 131072, num gpu pages 131072
[drm] PCIE GART of 512M enabled (table at 0x0000008000300000).
Nov 28 20:25:32 tbsd kernel: Successfully added WC MTRR for [0xe0000000-0xefffffff]: 0; 
drmn0: successfully loaded firmware image with name: amdgpu/navi10_sos.bin
drmn0: successfully loaded firmware image with name: amdgpu/navi10_asd.bin
drmn0: successfully loaded firmware image with name: amdgpu/navi10_smc.bin
drmn0: successfully loaded firmware image with name: amdgpu/navi10_pfp.bin
drmn0: successfully loaded firmware image with name: amdgpu/navi10_me.bin
drmn0: successfully loaded firmware image with name: amdgpu/navi10_ce.bin
drmn0: successfully loaded firmware image with name: amdgpu/navi10_rlc.bin
drmn0: successfully loaded firmware image with name: amdgpu/navi10_mec.bin
drmn0: successfully loaded firmware image with name: amdgpu/navi10_mec2.bin
drmn0: successfully loaded firmware image with name: amdgpu/navi10_sdma.bin
drmn0: successfully loaded firmware image with name: amdgpu/navi10_sdma1.bin
[drm] use_doorbell being set to: [true]
[drm] use_doorbell being set to: [true]
drmn0: successfully loaded firmware image with name: amdgpu/navi10_vcn.bin
[drm] Found VCN firmware Version ENC: 1.9 DEC: 5 VEP: 0 Revision: 0
[drm] PSP loading VCN firmware
[drm] reserve 0x900000 from 0x81fe400000 for PSP TMR
amdgpu: [powerplay] smu driver if version = 0x00000033, smu fw if version = 0x00000036, smu fw version = 0x002a3600 (42.54.0)
amdgpu: [powerplay] SMU driver if version not matched
amdgpu: [powerplay] SMU is initialized successfully!
[drm] Display Core initialized with v3.2.48!
[drm] Connector DP-1: get mode from tunables:
[drm]   - kern.vt.fb.modes.DP-1
[drm]   - kern.vt.fb.default_mode
Nov 28 20:25:39 tbsd kernel: amdgpu: [powerplay] SMU driver if version not matched
[drm] Connector DP-2: get mode from tunables:
[drm]   - kern.vt.fb.modes.DP-2
[drm]   - kern.vt.fb.default_mode
[drm] Connector DP-3: get mode from tunables:
[drm]   - kern.vt.fb.modes.DP-3
[drm]   - kern.vt.fb.default_mode
[drm] Connector HDMI-A-1: get mode from tunables:
[drm]   - kern.vt.fb.modes.HDMI-A-1
[drm]   - kern.vt.fb.default_mode
[drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[drm] Driver supports precise vblank timestamp query.
[drm] kiq ring mec 2 pipe 1 q 0
[drm] ring test on 10 succeeded in 76 usecs
[drm] ring test on 10 succeeded in 17 usecs
[drm] gfx 0 ring me 0 pipe 0 q 0
[drm] ring test on 0 succeeded in 16 usecs
[drm] gfx 1 ring me 0 pipe 1 q 0
[drm] ring test on 1 succeeded in 3 usecs
[drm] compute ring 0 mec 1 pipe 0 q 0
[drm] ring test on 2 succeeded in 5 usecs
[drm] compute ring 1 mec 1 pipe 1 q 0
[drm] ring test on 3 succeeded in 3 usecs
[drm] compute ring 2 mec 1 pipe 2 q 0
[drm] ring test on 4 succeeded in 3 usecs
[drm] compute ring 3 mec 1 pipe 3 q 0
[drm] ring test on 5 succeeded in 3 usecs
[drm] compute ring 4 mec 1 pipe 0 q 1
[drm] ring test on 6 succeeded in 7 usecs
[drm] compute ring 5 mec 1 pipe 1 q 1
[drm] ring test on 7 succeeded in 3 usecs
[drm] compute ring 6 mec 1 pipe 2 q 1
[drm] ring test on 8 succeeded in 3 usecs
[drm] compute ring 7 mec 1 pipe 3 q 1
[drm] ring test on 9 succeeded in 6 usecs
[drm] ring test on 11 succeeded in 19 usecs
[drm] ring test on 12 succeeded in 19 usecs
[drm] VCN decode and encode initialized successfully(under DPG Mode).
[drm] fb mappable at 0xE04C9000
[drm] vram apper at 0xE0000000
[drm] size 14745600
[drm] fb depth is 24
[drm]    pitch is 10240
WARNING: Device "fb" is Giant locked and may be deleted before FreeBSD 13.0.
VT: Replacing driver "efifb" with new "fb".
taskqueue_drain with the following non-sleepable locks held:
exclusive sleep mutex vtdev (vtdev) r = 0 (0xffffffff818e6350) locked @ /usr/src/sys/dev/vt/vt_core.c:2825
stack backtrace:
#0 0xffffffff80c540b1 at witnespanic: dummy ctx
cpuid = 13
time = 1606566339
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe00aa6044d8
vpanic() at vpanic+0x181/frame 0xfffffe00aa604528
panic() at panic+0x43/frame 0xfffffe00aa604588
fpu_kern_leave() at fpu_kern_leave+0x21c/frame 0xfffffe00aa6045b8
dcn20_validate_bandwidth() at dcn20_validate_bandwidth+0x15f/frame 0xfffffe00aa6045f0
dc_validate_global_state() at dc_validate_global_state+0x2ce/frame 0xfffffe00aa604650
amdgpu_dm_atomic_check() at amdgpu_dm_atomic_check+0xff0/frame 0xfffffe00aa604930
drm_atomic_check_only() at drm_atomic_check_only+0x400/frame 0xfffffe00aa6049b0
drm_atomic_commit() at drm_atomic_commit+0x13/frame 0xfffffe00aa6049d0
drm_client_modeset_commit_atomic() at drm_client_modeset_commit_atomic+0x148/frame 0xfffffe00aa604a40
drm_client_modeset_commit_force() at drm_client_modeset_commit_force+0x69/frame 0xfffffe00aa604a90
drm_fb_helper_restore_fbdev_mode_unlocked() at drm_fb_helper_restore_fbdev_mode_unlocked+0x7a/frame 0xfffffe00aa604ac0
taskqueue_run_locked() at taskqueue_run_locked+0xaa/frame 0xfffffe00aa604b40
taskqueue_thread_loop() at taskqueue_thread_loop+0x94/frame 0xfffffe00aa604b70
fork_exit() at fork_exit+0x80/frame 0xfffffe00aa604bb0
fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe00aa604bb0
--- trap 0, rip = 0, rsp = 0, rbp = 0 ---
Uptime: 2m22s
Dumping 1213 out of 32687 MB:..2%..11%..22%..31%..41%..51%..61%..72%..81%..91%

------------------------------------------------------------------------
kernel config

options	CONFIG_AUTOGENERATED
ident	GENERIC
machine	amd64
cpu	HAMMER
makeoptions	WITH_CTF=1
makeoptions	DEBUG=-g
options	EVDEV_SUPPORT
options	XENHVM
options	USB_DEBUG
options	ATH_ENABLE_11N
options	AH_AR5416_INTERRUPT_MITIGATION
options	IEEE80211_SUPPORT_MESH
options	IEEE80211_DEBUG
options	SC_PIXEL_MODE
options	VESA
options	PCI_IOV
options	PCI_HP
options	EARLY_AP_STARTUP
options	SMP
options	NETGDB
options	NETDUMP
options	DEBUGNET
options	ZSTDIO
options	GZIO
options	EKCD
options	IOMMU
options	VERBOSE_SYSINIT=0
options	MALLOC_DEBUG_MAXZONES=8
options	WITNESS_SKIPSPIN
options	WITNESS
options	QUEUE_MACRO_DEBUG_TRASH
options	INVARIANT_SUPPORT
options	INVARIANTS
options	DEADLKRES
options	GDB
options	FULL_BUF_TRACKING
options	DDB
options	BUF_TRACKING
options	KDB_TRACE
options	KDB
options	RCTL
options	RACCT_DEFAULT_TO_DISABLED
options	RACCT
options	INCLUDE_CONFIG_FILE
options	DDB_CTF
options	KDTRACE_HOOKS
options	KDTRACE_FRAME
options	MAC
options	CAPABILITIES
options	CAPABILITY_MODE
options	AUDIT
options	HWPMC_HOOKS
options	KBD_INSTALL_CDEV
options	PRINTF_BUFR_SIZE=128
options	_KPOSIX_PRIORITY_SCHEDULING
options	SYSVSEM
options	SYSVMSG
options	SYSVSHM
options	STACK
options	KTRACE
options	SCSI_DELAY=5000
options	COMPAT_FREEBSD12
options	COMPAT_FREEBSD11
options	COMPAT_FREEBSD10
options	COMPAT_FREEBSD9
options	COMPAT_FREEBSD7
options	COMPAT_FREEBSD6
options	COMPAT_FREEBSD5
options	COMPAT_FREEBSD4
options	COMPAT_FREEBSD32
options	EFIRT
options	GEOM_LABEL
options	GEOM_RAID
options	TMPFS
options	PSEUDOFS
options	PROCFS
options	CD9660
options	MSDOSFS
options	NFS_ROOT
options	NFSLOCKD
options	NFSD
options	NFSCL
options	MD_ROOT
options	QUOTA
options	UFS_GJOURNAL
options	UFS_DIRHASH
options	UFS_ACL
options	SOFTUPDATES
options	FFS
options	SCTP_SUPPORT
options	TCP_RFC7413
options	TCP_HHOOK
options	TCP_BLACKBOX
options	TCP_OFFLOAD
options	IPSEC_SUPPORT
options	INET6
options	INET
options	VIMAGE
options	PREEMPTION
options	NUMA
options	SCHED_ULE
options	NEW_PCIB
options	GEOM_PART_GPT
options	GEOM_PART_MBR
options	GEOM_PART_EBR
options	GEOM_PART_BSD
device	isa
device	mem
device	io
device	uart_ns8250
device	cpufreq
device	acpi
device	pci
device	fdc
device	ahci
device	ata
device	mvs
device	siis
device	ahc
device	ahd
device	esp
device	hptiop
device	isp
device	mpt
device	mps
device	mpr
device	sym
device	isci
device	ocs_fc
device	pvscsi
device	scbus
device	ch
device	da
device	sa
device	cd
device	pass
device	ses
device	amr
device	arcmsr
device	ciss
device	iir
device	ips
device	mly
device	twa
device	smartpqi
device	tws
device	aac
device	aacp
device	aacraid
device	ida
device	mfi
device	mlx
device	mrsas
device	pmspcv
device	twe
device	nvme
device	nvd
device	vmd
device	vmd_bus
device	atkbdc
device	atkbd
device	psm
device	kbdmux
device	vga
device	splash
device	sc
device	vt
device	vt_vga
device	vt_efifb
device	agp
device	cbb
device	pccard
device	cardbus
device	uart
device	ppc
device	ppbus
device	lpt
device	ppi
device	puc
device	iflib
device	em
device	ix
device	ixv
device	ixl
device	iavf
device	ice
device	vmx
device	axp
device	bxe
device	le
device	ti
device	miibus
device	ae
device	age
device	alc
device	ale
device	bce
device	bfe
device	bge
device	cas
device	dc
device	et
device	fxp
device	gem
device	hme
device	jme
device	lge
device	msk
device	nfe
device	nge
device	re
device	rl
device	sge
device	sis
device	sk
device	ste
device	stge
device	vge
device	vr
device	xl
device	wlan
device	wlan_wep
device	wlan_ccmp
device	wlan_tkip
device	wlan_amrr
device	an
device	ath
device	ath_pci
device	ath_hal
device	ath_rate_sample
device	ipw
device	iwi
device	iwn
device	malo
device	mwl
device	ral
device	wi
device	wpi
device	crypto
device	loop
device	padlock_rng
device	rdrand_rng
device	ether
device	vlan
device	tuntap
device	md
device	gif
device	firmware
device	bpf
device	uhci
device	ohci
device	ehci
device	xhci
device	usb
device	ukbd
device	umass
device	sound
device	snd_cmi
device	snd_csa
device	snd_emu10kx
device	snd_es137x
device	snd_hda
device	snd_ich
device	snd_via8233
device	mmc
device	mmcsd
device	sdhci
device	rtsx
device	virtio
device	virtio_pci
device	vtnet
device	virtio_blk
device	virtio_scsi
device	virtio_balloon
device	hyperv
device	xenpci
device	netmap
device	evdev
device	uinput

------------------------------------------------------------------------
ddb capture buffer  

amdgpu vaapi failure due to dma_resv_locking_ctx returning 0

Finally got around to debugging the video acceleration on Vega again. (HEVC encoding was working, H264 encoding and ALL decoding broke at some point)

Turns out this "double check" is failing:

/* Double check that the BO is reserved by this CS */
if (dma_resv_locking_ctx((*bo)->tbo.base.resv) != &parser->ticket)
return -EINVAL;

because the dma_resv_locking_ctx(..) result is zero. Everything is working fine when the return is replaced with a printf.


how to reproduce: easiest command is avcstreamoutdemo (from libva utils) but it won't really be successful (still some assertion failure) when it's working, just the amdgpu error would disappear.

mpv -v --hwdec=vaapi some-thing.mp4 (mp4 either h264 or hevc if vainfo lists hevc) should start working when fixed

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.