Code Monkey home page Code Monkey logo

kms-drm's People

Contributors

airlied avatar alexdeucher avatar alexxamd avatar amingriyue avatar anholt avatar christiankoenigamd avatar danvet avatar erichuang22 avatar fxkamd avatar huangrui avatar ickle avatar ideak avatar iotamudelta avatar jnikula avatar johalun avatar leeonadoh avatar ljymonk avatar llandwerlin-intel avatar lostgoat avatar matt-auld avatar mlankhorst avatar mwajdecz avatar notro avatar rodrigovivi avatar tursulin avatar vsyrjala avatar xliyu avatar yongzhao12 avatar zhiwang1 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

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  avatar  avatar  avatar

kms-drm's Issues

Kernel General Protection Fault

On my Dell Latitude E5570 running HardenedBSD 12-CURRENT/amd64, I get a kernel GPF after I run this: kldload /boot/modules/drm.ko /boot/modules/i915kms.ko

core.0.txt attached. Please let me know if you need any more information.

core.0.txt

[drm_atomic] hw_done and flip_done timeout

Getting various timeouts when resizing windows in KDE. The UI freezes for a few seconds when the timeout occur.

[drm:drm_atomic_helper_swap_state] [CRTC:32:pipe A] hw_done timed out
[drm:drm_atomic_helper_commit_cleanup_done] [CRTC:32:pipe A] flip_done timed out

Failed to add WC MTRR for [...]: -22; performance may suffer

I'm running FreeBSD 12-CURRENT revision 271dcc6a42f6df93c from May 8th 2018, loading i915kms, i915_kbl_dmc_ver1_01_bin and i915_kbl_huc_ver02_00_bin from graphics/drm-next-kmod 4.11.g20180505 .

When booting, I get the following message from linuxkpi/gplv2/linux_mtrr.c:

Failed to add WC MTRR for [0xc0000000 - 0xcfffffff]: -22; performance may suffer

It appears there's a conflicting region that's triggering the error in sys/x86/x86/x86_mem.c, function x86_mrsetvariable where it returns EINVAL.

The system information including dmesg, pciconf, acpiconf etc. can be found at https://wiki.freebsd.org/Laptops/Thinkpad_T580 .

I don't know if it's causing any problems, but X does seem rather slow considering the video driver that's loaded.

No sound via HDMI with radeonkms from ports

I have no sound via HDMI on AMD Radeon HD 6200
Sound device is presented and activated:

# more /dev/sndstat 
Installed devices:
pcm0: <ATI R6xx (HDMI)> (play) default
pcm1: <Realtek ALC269 (Analog 2.0+HP/2.0)> (play/rec)
# sysctl hw.snd.default_unit=0
hw.snd.default_unit: 1 -> 0

To make sound works on freebsd 10 I patched radeon_drv.c:

--- sys/dev/drm2/radeon/radeon_drv.c    (revision 317489)
+++ sys/dev/drm2/radeon/radeon_drv.c    (working copy)
@@ -120,7 +120,7 @@
 int radeon_testing = 0;
 int radeon_connector_table = 0;
 int radeon_tv = 1;
-int radeon_audio = 0;
+int radeon_audio = 1;
 int radeon_disp_priority = 0;
 int radeon_hw_i2c = 0;
 int radeon_pcie_gen2 = -1;

I tried to make same think on radeon/radeon_drv.c from port graphics/drm-next-kmod without any result.
Also I tried to add something to /boot/loader.conf:

compat.linuxkpi.audio="1"
radeon.audio="1"
radeonkms.audio="1"
hint.radeon.audio="1"
hint.radeonkms.audio="1"

But still does not have working sound via HDMI.
What is correct way to force enable sound via HDMI with drm-next?
How I can check sound status on HDMI port ? (for example, via sysctl?)

AMD Ryzen 3 2200G with Radeon Vega Graphics not working

Hi,
for the above CPU/GPU combo, drm-next doesn't seem to work.
dmesg:
`
VT(vga): resolution 640x480
CPU: AMD Ryzen 3 2200G with Radeon Vega Graphics (3493.52-MHz K8-class CPU)
Origin="AuthenticAMD" Id=0x810f10 Family=0x17 Model=0x11 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=0x35c233ff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW,SKINIT,WDT,TCE,Topology,PCXC,PNXC,DBE,PL2I,MWAITX>
Structured Extended Features=0x209c01a9<FSGSBASE,BMI1,AVX2,SMEP,BMI2,RDSEED,ADX,SMAP,CLFLUSHOPT,SHA>
XSAVE Features=0xf<XSAVEOPT,XSAVEC,XINUSE,XSAVES>
AMD Extended Feature Extensions ID EBX=0x1007<CLZERO,IRPerf,XSaveErPtr>
SVM: (disabled in BIOS) NP,NRIP,VClean,AFlush,DAssist,NAsids=32768
TSC: P-state invariant, performance statistics

...

[drm] amdgpu kernel modesetting enabled.

...
pciconf -lvv
vgapci0@pci0:8:0:0: class=0x030000 card=0xd0001458 chip=0x15dd1002 rev=0xc8 hdr=0x00
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'Raven Ridge [Radeon Vega Series / Radeon Vega Mobile Series]'
class = display
subclass = VGA

Xorg.log
[ 13234.683] (II) AMDGPU: Driver for AMD Radeon:
All GPUs supported by the amdgpu kernel driver
[ 13234.683] (--) Using syscons driver with X support (version 2.0)
[ 13234.683] (--) using VT number 9

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

`

amdgpu on RX560D: no sound with either DP or HDMI cable

Freshly install 11.1-STABLE, Sapphire Pulse RX560(D), LG 43UD79-B 43in UHD monitor with speakers.

The soundcard(s) are shown:

marcopolo% cat /dev/sndstat
Installed devices:
pcm0: <Realtek ALC888 (Rear Analog 7.1/2.0)> (play/rec) default
pcm1: <Realtek ALC888 (Front Analog)> (play/rec)
pcm2: <Realtek ALC888 (Rear Digital)> (play)
pcm3: <ATI R6xx (HDMI)> (play)
pcm4: <ATI R6xx (HDMI)> (play)
pcm5: <ATI R6xx (HDMI)> (play)
pcm6: <ATI R6xx (HDMI)> (play)
pcm7: <ATI R6xx (HDMI)> (play)
No devices installed from userspace.

but there is no sound at dsp3-7. Mixer shows 100% for all of them.

For logs from this sytem, please see #47 (/var/log/message), #48 (Xorg.0.log with DP cable) and #49 (Xorg.0.log with HDMI cable)

If any other info is needed, please ask. I'm aware that sound is right now a low priority item, but I wanted to at least document it

Build error since at least r333267: use of undeclared identifier 'PR_ALLOW_MOUNT_LINSYSFS'

This build error comes from the current version in ports. KERNCONF is GENERIC-NODEBUG.

--- lindebugfs.o ---
cc  -pipe -g -fno-strict-aliasing  -Werror -D_KERNEL -DKLD_MODULE -nostdinc  -I/wrkdirs/usr/ports/graphics/drm-next-kmod/work/kms-drm-79764d6/lindebugfs/../linuxkpi/dummy/include -I/wrkdirs/usr/ports/graphics/drm-next-kmod/work/kms-drm-79764d6/lindebugfs/../linuxkpi/gplv2/include -I/usr/src/sys/compat/linuxkpi/common/include -I. -I/usr/src/sys -fno-common  -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -MD  -MF.depend.lindebugfs.o -MTlindebugfs.o -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float  -fno-asynchronous-unwind-tables -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -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-error-address-of-packed-member  -mno-aes -mno-avx  -std=iso9899:1999 -c lindebugfs.c -o lindebugfs.o
lindebugfs.c:207:22: error: use of undeclared identifier 'PR_ALLOW_MOUNT_LINSYSFS'
PSEUDOFS(debugfs, 1, PR_ALLOW_MOUNT_LINSYSFS);
                     ^
1 error generated.
*** [lindebugfs.o] Error code 1

r333113 was my last successful build.

DRM-NEXT does not work - ASRock N3150B-ITX - Celeron N3150 - Braswell

Hi,

I have 12.0-CURRENT on Intel SoC from 2015Q1 - N3150 - Brasswell, but HDMI output does not work. VGA output works.

% uname -a
FreeBSD bs.local 12.0-CURRENT FreeBSD 12.0-CURRENT #0: Sat Nov 4 00:38:39 CET 2017 [email protected]:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG amd64

Next I have upgraded all packages to be up to date with 'pkg upg' and then added 'drm-next-kmod' port.

Then I added 'kld_list="/boot/modules/i915kms.ko"' to /etc/rc.conf and rebooted.

Upon boot there are messages that firmware from 'gpu-firmware-kmod' package failed to load so there would be no power management.

After I started X11 then 'XFCE Destop' loaded and is usable, but any 3D application (glxgears/kodi) or movie player (mpv/vlc) ends with Segmentation Fault.

What other information do You need from me to dig the problem further and fix that behavior so there would be working 3D, movies acceleration in hardware and proper power management?

Here is the corresponding BUG submitted to FreeBSD team.

DRM-NEXT does not work - ASRock N3150B-ITX - Celeron N3150 - Braswell
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224257

Regards,
vermaden

amdgpu on RX560D + modesetting: No driver mapping for PCI device 0x1002 / 0x67ef (amdgpu works now)

I have a freshly installed 11.1-STABLE system with a Sapphire Pulse RX560(D) card where the above error pops up. X switches to software rendering after this.

Is it possible that it only needs an entry in some table of PCI/device numbers? If so, can I do this?

Thanks, Mathias

P.S.: For the dmesg of this system and troubles loading the gpu firmware see #47

---- uname -a
FreeBSD marcopolo 11.1-STABLE FreeBSD 11.1-STABLE #0 r331269: Wed Mar 21 11:43:02 CET 2018 root@marcopolo:/usr/obj/usr/src/sys/GENERIC amd64

----- /var/log/Xorg.0.log
[ 31.614]
X.Org X Server 1.18.4
Release Date: 2016-07-19
[ 31.614] X Protocol Version 11, Revision 0
[ 31.614] Build Operating System: FreeBSD 11.1-RELEASE-p8 amd64
[ 31.614] Current Operating System: FreeBSD marcopolo 11.1-STABLE FreeBSD 11.1-STABLE #0 r331269: Wed Mar 21 11:43:02 CET 2018 root@marcopolo:/usr/obj/usr/src/sys/GENERIC amd64
[ 31.615] Build Date: 15 March 2018 08:13:21AM
[ 31.615]
[ 31.615] Current version of pixman: 0.34.0
[ 31.615] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 31.615] Markers: (--) probed, () from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 31.615] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Mar 22 06:36:09 2018
[ 31.618] (II) Loader magic: 0x80cc10
[ 31.618] (II) Module ABI versions:
[ 31.618] X.Org ANSI C Emulation: 0.4
[ 31.618] X.Org Video Driver: 20.0
[ 31.618] X.Org XInput driver : 22.1
[ 31.618] X.Org Server Extension : 9.0
[ 31.618] (--) PCI:*(0:2:0:0) 1002:67ef:1da2:e348 rev 229, Mem @ 0xd0000000/268435456, 0xcfe00000/2097152, 0xfe8c0000/262144, I/O @ 0x0000b000/256, BIOS @ 0x????????/65536
[ 31.618] (==) Using default built-in configuration (39 lines)
[ 31.618] (==) --- Start of built-in configuration ---
[ 31.618] Section "Device"
[ 31.618] Identifier "Builtin Default ati Device 0"
[ 31.618] Driver "ati"
[ 31.618] EndSection
[ 31.618] Section "Screen"
[ 31.618] Identifier "Builtin Default ati Screen 0"
[ 31.618] Device "Builtin Default ati Device 0"
[ 31.618] EndSection
[ 31.618] Section "Device"
[ 31.618] Identifier "Builtin Default modesetting Device 0"
[ 31.618] Driver "modesetting"
[ 31.619] EndSection
[ 31.619] Section "Screen"
[ 31.619] Identifier "Builtin Default modesetting Screen 0"
[ 31.619] Device "Builtin Default modesetting Device 0"
[ 31.619] EndSection
[ 31.619] Section "Device"
[ 31.619] Identifier "Builtin Default scfb Device 0"
[ 31.619] Driver "scfb"
[ 31.619] EndSection
[ 31.619] Section "Screen"
[ 31.619] Identifier "Builtin Default scfb Screen 0"
[ 31.619] Device "Builtin Default scfb Device 0"
[ 31.619] EndSection
[ 31.619] Section "Device"
[ 31.619] Identifier "Builtin Default vesa Device 0"
[ 31.619] Driver "vesa"
[ 31.619] EndSection
[ 31.619] Section "Screen"
[ 31.619] Identifier "Builtin Default vesa Screen 0"
[ 31.619] Device "Builtin Default vesa Device 0"
[ 31.619] EndSection
[ 31.619] Section "ServerLayout"
[ 31.619] Identifier "Builtin Default Layout"
[ 31.619] Screen "Builtin Default ati Screen 0"
[ 31.619] Screen "Builtin Default modesetting Screen 0"
[ 31.619] Screen "Builtin Default scfb Screen 0"
[ 31.619] Screen "Builtin Default vesa Screen 0"
[ 31.619] EndSection
[ 31.619] (==) --- End of built-in configuration ---
[ 31.619] (==) ServerLayout "Builtin Default Layout"
[ 31.619] (
) |-->Screen "Builtin Default ati Screen 0" (0)
[ 31.620] () | |-->Monitor ""
[ 31.620] (
) | |-->Device "Builtin Default ati Device 0"
[ 31.620] (==) No monitor specified for screen "Builtin Default ati Screen 0".
Using a default monitor configuration.
[ 31.620] () |-->Screen "Builtin Default modesetting Screen 0" (1)
[ 31.620] (
) | |-->Monitor ""
[ 31.620] () | |-->Device "Builtin Default modesetting Device 0"
[ 31.620] (==) No monitor specified for screen "Builtin Default modesetting Screen 0".
Using a default monitor configuration.
[ 31.620] (
) |-->Screen "Builtin Default scfb Screen 0" (2)
[ 31.620] () | |-->Monitor ""
[ 31.620] (
) | |-->Device "Builtin Default scfb Device 0"
[ 31.620] (==) No monitor specified for screen "Builtin Default scfb Screen 0".
Using a default monitor configuration.
[ 31.620] () |-->Screen "Builtin Default vesa Screen 0" (3)
[ 31.620] (
) | |-->Monitor ""
[ 31.621] (**) | |-->Device "Builtin Default vesa Device 0"
[ 31.621] (==) No monitor specified for screen "Builtin Default vesa Screen 0".
Using a default monitor configuration.
[ 31.621] (==) Automatically adding devices
[ 31.621] (==) Automatically enabling devices
[ 31.621] (==) Not automatically adding GPU devices
[ 31.621] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 31.627] (==) FontPath set to:
/usr/local/share/fonts/misc/,
/usr/local/share/fonts/TTF/,
/usr/local/share/fonts/OTF/,
/usr/local/share/fonts/Type1/,
/usr/local/share/fonts/100dpi/,
/usr/local/share/fonts/75dpi/
[ 31.627] (==) ModulePath set to "/usr/local/lib/xorg/modules"
[ 31.627] (II) The server relies on devd to provide the list of input devices.
If no devices become available, reconfigure devd or disable AutoAddDevices.
[ 31.627] (II) LoadModule: "glx"
[ 31.628] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so
[ 31.642] (II) Module glx: vendor="X.Org Foundation"
[ 31.642] compiled for 1.18.4, module version = 1.0.0
[ 31.642] ABI class: X.Org Server Extension, version 9.0
[ 31.642] (==) AIGLX enabled
[ 31.642] (II) LoadModule: "ati"
[ 31.643] (WW) Warning, couldn't open module ati
[ 31.643] (II) UnloadModule: "ati"
[ 31.643] (II) Unloading ati
[ 31.643] (EE) Failed to load module "ati" (module does not exist, 0)
[ 31.643] (II) LoadModule: "modesetting"
[ 31.644] (II) Loading /usr/local/lib/xorg/modules/drivers/modesetting_drv.so
[ 31.645] (II) Module modesetting: vendor="X.Org Foundation"
[ 31.645] compiled for 1.18.4, module version = 1.18.4
[ 31.645] Module class: X.Org Video Driver
[ 31.645] ABI class: X.Org Video Driver, version 20.0
[ 31.645] (II) LoadModule: "scfb"
[ 31.645] (II) Loading /usr/local/lib/xorg/modules/drivers/scfb_drv.so
[ 31.646] (II) Module scfb: vendor="X.Org Foundation"
[ 31.646] compiled for 1.18.4, module version = 0.0.4
[ 31.646] ABI class: X.Org Video Driver, version 20.0
[ 31.646] (II) LoadModule: "vesa"
[ 31.646] (II) Loading /usr/local/lib/xorg/modules/drivers/vesa_drv.so
[ 31.647] (II) Module vesa: vendor="X.Org Foundation"
[ 31.647] compiled for 1.18.4, module version = 2.3.4
[ 31.647] Module class: X.Org Video Driver
[ 31.647] ABI class: X.Org Video Driver, version 20.0
[ 31.647] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 31.647] (II) scfb: driver for wsdisplay framebuffer: scfb
[ 31.647] (II) VESA: driver for VESA chipsets: vesa
[ 31.647] (--) Using syscons driver with X support (version 2.0)
[ 31.647] (--) using VT number 9

[ 31.649] () modeset(0): claimed PCI slot 2@0:0:0
[ 31.649] (II) modeset(0): using default device
[ 31.650] (WW) Falling back to old probe method for scfb
[ 31.650] scfb trace: probe start
[ 31.650] scfb trace: probe done
[ 31.650] (WW) Falling back to old probe method for vesa
[ 31.650] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[ 31.651] (II) modeset(0): Creating default Display subsection in Screen section
"Builtin Default modesetting Screen 0" for depth/fbbpp 24/32
[ 31.652] (==) modeset(0): Depth 24, (==) framebuffer bpp 32
[ 31.652] (==) modeset(0): RGB weight 888
[ 31.652] (==) modeset(0): Default visual is TrueColor
[ 31.652] (II) Loading sub module "glamoregl"
[ 31.652] (II) LoadModule: "glamoregl"
[ 31.652] (II) Loading /usr/local/lib/xorg/modules/libglamoregl.so
[ 31.673] (II) Module glamoregl: vendor="X.Org Foundation"
[ 31.673] compiled for 1.18.4, module version = 1.0.0
[ 31.673] ABI class: X.Org ANSI C Emulation, version 0.4
[ 31.673] (II) glamor: OpenGL accelerated X.org driver based.
[ 32.288] (II) glamor: EGL version 1.5 (DRI2):
[ 32.302] (II) modeset(0): glamor initialized
[ 32.320] (II) modeset(0): Output DP-1 has no monitor section
[ 32.321] (II) modeset(0): Output HDMI-1 has no monitor section
[ 32.321] (II) modeset(0): Output DVI-D-1 has no monitor section
[ 32.340] (II) modeset(0): EDID for output DP-1
[ 32.340] (II) modeset(0): Manufacturer: GSM Model: 5b09 Serial#: 364305
[ 32.340] (II) modeset(0): Year: 2017 Week: 9
[ 32.340] (II) modeset(0): EDID Version: 1.4
[ 32.340] (II) modeset(0): Digital Display Input
[ 32.340] (II) modeset(0): 10 bits per channel
[ 32.340] (II) modeset(0): Digital interface is DisplayPort
[ 32.340] (II) modeset(0): Max Image Size [cm]: horiz.: 60 vert.: 34
[ 32.340] (II) modeset(0): Gamma: 2.20
[ 32.340] (II) modeset(0): DPMS capabilities: StandBy
[ 32.341] (II) modeset(0): Supported color encodings: RGB 4:4:4 YCrCb 4:4:4 YCrCb 4:2:2
[ 32.341] (II) modeset(0): Default color space is primary color space
[ 32.341] (II) modeset(0): First detailed timing is preferred mode
[ 32.341] (II) modeset(0): Preferred mode is native pixel format and refresh rate
[ 32.341] (II) modeset(0): redX: 0.652 redY: 0.335 greenX: 0.305 greenY: 0.637
[ 32.341] (II) modeset(0): blueX: 0.148 blueY: 0.062 whiteX: 0.313 whiteY: 0.329
[ 32.341] (II) modeset(0): Supported established timings:
[ 32.341] (II) modeset(0): 640x480@60Hz
[ 32.341] (II) modeset(0): 800x600@60Hz
[ 32.341] (II) modeset(0): 1024x768@60Hz
[ 32.341] (II) modeset(0): Manufacturer's mask: 0
[ 32.341] (II) modeset(0): Supported standard timings:
[ 32.341] (II) modeset(0): #0: hsize: 1152 vsize 864 refresh: 60 vid: 16497
[ 32.341] (II) modeset(0): #1: hsize: 1280 vsize 1024 refresh: 60 vid: 32897
[ 32.341] (II) modeset(0): #2: hsize: 1280 vsize 720 refresh: 60 vid: 49281
[ 32.341] (II) modeset(0): #3: hsize: 1600 vsize 900 refresh: 60 vid: 49321
[ 32.341] (II) modeset(0): #4: hsize: 1920 vsize 1080 refresh: 60 vid: 49361
[ 32.341] (II) modeset(0): #5: hsize: 1280 vsize 800 refresh: 60 vid: 129
[ 32.341] (II) modeset(0): Supported detailed timing:
[ 32.341] (II) modeset(0): clock: 533.2 MHz Image Size: 600 x 340 mm
[ 32.341] (II) modeset(0): h_active: 3780 h_sync: 3828 h_sync_end 3860 h_blank_end 4000 h_border: 0
[ 32.341] (II) modeset(0): v_active: 2160 v_sync: 2214 v_sync_end 2219 v_blanking: 2222 v_border: 0
[ 32.341] (II) modeset(0): Supported detailed timing:
[ 32.341] (II) modeset(0): clock: 266.6 MHz Image Size: 600 x 340 mm
[ 32.341] (II) modeset(0): h_active: 3780 h_sync: 3788 h_sync_end 3932 h_blank_end 4000 h_border: 0
[ 32.342] (II) modeset(0): v_active: 2160 v_sync: 2214 v_sync_end 2219 v_blanking: 2222 v_border: 0
[ 32.342] (II) modeset(0): Ranges: V min: 56 V max: 61 Hz, H min: 30 H max: 135 kHz, PixClock max 565 MHz
[ 32.342] (II) modeset(0): Monitor name: LG Ultra HD
[ 32.342] (II) modeset(0): Supported detailed timing:
[ 32.342] (II) modeset(0): clock: 148.5 MHz Image Size: 600 x 340 mm
[ 32.342] (II) modeset(0): h_active: 1920 h_sync: 2008 h_sync_end 2052 h_blank_end 2200 h_border: 0
[ 32.342] (II) modeset(0): v_active: 1080 v_sync: 1084 v_sync_end 1089 v_blanking: 1125 v_border: 0
[ 32.342] (II) modeset(0): Supported detailed timing:
[ 32.342] (II) modeset(0): clock: 241.5 MHz Image Size: 600 x 340 mm
[ 32.342] (II) modeset(0): h_active: 2560 h_sync: 2608 h_sync_end 2640 h_blank_end 2720 h_border: 0
[ 32.342] (II) modeset(0): v_active: 1440 v_sync: 1443 v_sync_end 1448 v_blanking: 1481 v_border: 0
[ 32.342] (II) modeset(0): Number of EDID sections to follow: 1
[ 32.342] (II) modeset(0): EDID (in hex):
[ 32.342] (II) modeset(0): 00ffffffffffff001e6d095b118f0500
[ 32.342] (II) modeset(0): 091b0104b53c22789e3035a7554ea326
[ 32.342] (II) modeset(0): 0f50542108007140818081c0a9c0d1c0
[ 32.342] (II) modeset(0): 8100010101014dd0c4dce0703e803020
[ 32.342] (II) modeset(0): 650c58542100001a2868c4dce0703e80
[ 32.342] (II) modeset(0): 0890650c58542100001a000000fd0038
[ 32.342] (II) modeset(0): 3d1e8738000a202020202020000000fc
[ 32.342] (II) modeset(0): 004c4720556c7472612048440a200112
[ 32.342] (II) modeset(0): 02031171449004030123090707830100
[ 32.342] (II) modeset(0): 00023a801871382d40582c4500585421
[ 32.342] (II) modeset(0): 00001e565e00a0a0a029503020350058
[ 32.343] (II) modeset(0): 542100001a0000000000000000000000
[ 32.343] (II) modeset(0): 00000000000000000000000000000000
[ 32.343] (II) modeset(0): 00000000000000000000000000000000
[ 32.343] (II) modeset(0): 00000000000000000000000000000000
[ 32.343] (II) modeset(0): 000000000000000000000000000000c8
[ 32.343] (II) modeset(0): Printing probed modes for output DP-1
[ 32.343] (II) modeset(0): Modeline "3780x2160"x60.0 533.25 3780 3828 3860 4000 2160 2214 2219 2222 +hsync -vsync (133.3 kHz eP)
[ 32.343] (II) modeset(0): Modeline "3780x2160"x30.0 266.64 3780 3788 3932 4000 2160 2214 2219 2222 +hsync -vsync (66.7 kHz e)
[ 32.343] (II) modeset(0): Modeline "2560x1440"x60.0 241.50 2560 2608 2640 2720 1440 1443 1448 1481 +hsync -vsync (88.8 kHz e)
[ 32.343] (II) modeset(0): Modeline "2048x1536"x60.0 266.95 2048 2200 2424 2800 1536 1537 1540 1589 -hsync +vsync (95.3 kHz d)
[ 32.343] (II) modeset(0): Modeline "1920x1440"x60.0 234.00 1920 2048 2256 2600 1440 1441 1444 1500 -hsync +vsync (90.0 kHz d)
[ 32.343] (II) modeset(0): Modeline "1856x1392"x60.0 218.30 1856 1952 2176 2528 1392 1393 1396 1439 -hsync +vsync (86.4 kHz d)
[ 32.343] (II) modeset(0): Modeline "1792x1344"x60.0 204.80 1792 1920 2120 2448 1344 1345 1348 1394 -hsync +vsync (83.7 kHz d)
[ 32.343] (II) modeset(0): Modeline "1920x1080"x60.0 148.50 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync (67.5 kHz e)
[ 32.343] (II) modeset(0): Modeline "1920x1080"x59.9 148.35 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync (67.4 kHz e)
[ 32.343] (II) modeset(0): Modeline "1600x1200"x60.0 162.00 1600 1664 1856 2160 1200 1201 1204 1250 +hsync +vsync (75.0 kHz d)
[ 32.343] (II) modeset(0): Modeline "1400x1050"x60.0 122.00 1400 1488 1640 1880 1050 1052 1064 1082 +hsync +vsync (64.9 kHz d)
[ 32.344] (II) modeset(0): Modeline "1600x900"x60.0 108.00 1600 1624 1704 1800 900 901 904 1000 +hsync +vsync (60.0 kHz e)
[ 32.344] (II) modeset(0): Modeline "1280x1024"x60.0 108.00 1280 1328 1440 1688 1024 1025 1028 1066 +hsync +vsync (64.0 kHz e)
[ 32.344] (II) modeset(0): Modeline "1280x960"x60.0 108.00 1280 1376 1488 1800 960 961 964 1000 +hsync +vsync (60.0 kHz d)
[ 32.344] (II) modeset(0): Modeline "1280x800"x59.8 83.50 1280 1352 1480 1680 800 803 809 831 -hsync +vsync (49.7 kHz e)
[ 32.344] (II) modeset(0): Modeline "1152x864"x60.0 81.58 1152 1216 1336 1520 864 865 868 895 -hsync +vsync (53.7 kHz)
[ 32.344] (II) modeset(0): Modeline "1280x720"x60.0 74.25 1280 1390 1430 1650 720 725 730 750 +hsync +vsync (45.0 kHz e)
[ 32.344] (II) modeset(0): Modeline "1280x720"x59.9 74.18 1280 1390 1430 1650 720 725 730 750 +hsync +vsync (45.0 kHz e)
[ 32.344] (II) modeset(0): Modeline "1024x768"x60.0 133.47 1024 1100 1212 1400 768 768 770 794 doublescan -hsync +vsync (95.3 kHz d)
[ 32.344] (II) modeset(0): Modeline "1024x768"x60.0 65.00 1024 1048 1184 1344 768 771 777 806 -hsync -vsync (48.4 kHz e)
[ 32.344] (II) modeset(0): Modeline "960x720"x60.0 117.00 960 1024 1128 1300 720 720 722 750 doublescan -hsync +vsync (90.0 kHz d)
[ 32.344] (II) modeset(0): Modeline "928x696"x60.1 109.15 928 976 1088 1264 696 696 698 719 doublescan -hsync +vsync (86.4 kHz d)
[ 32.344] (II) modeset(0): Modeline "896x672"x60.0 102.40 896 960 1060 1224 672 672 674 697 doublescan -hsync +vsync (83.7 kHz d)
[ 32.344] (II) modeset(0): Modeline "800x600"x60.0 81.00 800 832 928 1080 600 600 602 625 doublescan +hsync +vsync (75.0 kHz d)
[ 32.344] (II) modeset(0): Modeline "800x600"x60.3 40.00 800 840 968 1056 600 601 605 628 +hsync +vsync (37.9 kHz e)
[ 32.344] (II) modeset(0): Modeline "800x600"x56.2 36.00 800 824 896 1024 600 601 603 625 +hsync +vsync (35.2 kHz d)
[ 32.344] (II) modeset(0): Modeline "700x525"x60.0 61.00 700 744 820 940 525 526 532 541 doublescan +hsync +vsync (64.9 kHz d)
[ 32.344] (II) modeset(0): Modeline "720x480"x60.0 27.03 720 736 798 858 480 489 495 525 -hsync -vsync (31.5 kHz e)
[ 32.344] (II) modeset(0): Modeline "720x480"x59.9 27.00 720 736 798 858 480 489 495 525 -hsync -vsync (31.5 kHz e)
[ 32.344] (II) modeset(0): Modeline "640x512"x60.0 54.00 640 664 720 844 512 512 514 533 doublescan +hsync +vsync (64.0 kHz d)
[ 32.344] (II) modeset(0): Modeline "640x480"x60.0 54.00 640 688 744 900 480 480 482 500 doublescan +hsync +vsync (60.0 kHz d)
[ 32.344] (II) modeset(0): Modeline "640x480"x60.0 25.20 640 656 752 800 480 490 492 525 -hsync -vsync (31.5 kHz e)
[ 32.344] (II) modeset(0): Modeline "640x480"x59.9 25.18 640 656 752 800 480 490 492 525 -hsync -vsync (31.5 kHz e)
[ 32.344] (II) modeset(0): Modeline "512x384"x60.0 32.50 512 524 592 672 384 385 388 403 doublescan -hsync -vsync (48.4 kHz d)
[ 32.345] (II) modeset(0): Modeline "400x300"x60.3 20.00 400 420 484 528 300 300 302 314 doublescan +hsync +vsync (37.9 kHz d)
[ 32.345] (II) modeset(0): Modeline "400x300"x56.3 18.00 400 412 448 512 300 300 301 312 doublescan +hsync +vsync (35.2 kHz d)
[ 32.345] (II) modeset(0): Modeline "320x240"x60.1 12.59 320 328 376 400 240 245 246 262 doublescan -hsync -vsync (31.5 kHz d)
[ 32.345] (II) modeset(0): EDID for output HDMI-1
[ 32.345] (II) modeset(0): EDID for output DVI-D-1
[ 32.345] (II) modeset(0): Output DP-1 connected
[ 32.345] (II) modeset(0): Output HDMI-1 disconnected
[ 32.345] (II) modeset(0): Output DVI-D-1 disconnected
[ 32.345] (II) modeset(0): Using exact sizes for initial modes
[ 32.345] (II) modeset(0): Output DP-1 using initial mode 3780x2160 +0+0
[ 32.346] (II) modeset(0): Using default gamma of (1.0, 1.0, 1.0) unless otherwise stated.
[ 32.346] (==) modeset(0): DPI set to (96, 96)
[ 32.346] (II) Loading sub module "fb"
[ 32.346] (II) LoadModule: "fb"
[ 32.346] (II) Loading /usr/local/lib/xorg/modules/libfb.so
[ 32.348] (II) Module fb: vendor="X.Org Foundation"
[ 32.348] compiled for 1.18.4, module version = 1.0.0
[ 32.348] ABI class: X.Org ANSI C Emulation, version 0.4
[ 32.348] (II) UnloadModule: "scfb"
[ 32.349] (II) Unloading scfb
[ 32.349] (II) UnloadModule: "vesa"
[ 32.349] (II) Unloading vesa
[ 32.349] (==) Depth 24 pixmap format is 32 bpp
[ 32.366] (==) modeset(0): Backing store enabled
[ 32.366] (==) modeset(0): Silken mouse enabled
[ 32.366] (II) modeset(0): RandR 1.2 enabled, ignore the following RandR disabled message.
[ 32.693] (==) modeset(0): DPMS enabled
[ 32.693] (EE) modeset(0): [DRI2] No driver mapping found for PCI device 0x1002 / 0x67ef
[ 32.693] (EE) modeset(0): Failed to initialize the DRI2 extension.
[ 32.701] (--) RandR disabled
[ 32.703] (II) AIGLX: Screen 0 is not DRI2 capable
[ 32.703] (EE) AIGLX: reverting to software rendering
[ 32.708] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
[ 32.708] (II) AIGLX: Loaded and initialized swrast
[ 32.709] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[ 32.711] (II) modeset(0): Setting screen physical size to 1000 x 571
[ 32.876] (II) config/devd: probing input devices...
[ 32.876] (II) config/devd: adding input device (null) (/dev/kbdmux)
[ 32.876] (II) LoadModule: "kbd"
[ 32.876] (II) Loading /usr/local/lib/xorg/modules/input/kbd_drv.so
[ 32.877] (II) Module kbd: vendor="X.Org Foundation"
[ 32.877] compiled for 1.18.4, module version = 1.9.0
[ 32.877] Module class: X.Org XInput Driver
[ 32.877] ABI class: X.Org XInput driver, version 22.1
[ 32.877] (II) Using input driver 'kbd' for 'kbdmux'
[ 32.877] (
) kbdmux: always reports core events
[ 32.877] () kbdmux: always reports core events
[ 32.877] (
) Option "Protocol" "standard"
[ 32.877] () Option "XkbRules" "base"
[ 32.877] (
) Option "XkbModel" "pc105"
[ 32.877] () Option "XkbLayout" "us"
[ 32.878] (
) Option "config_info" "devd:kbdmux"
[ 32.878] (II) XINPUT: Adding extended input device "kbdmux" (type: KEYBOARD, id 6)
[ 32.878] (II) config/devd: kbdmux is enabled, ignoring device ukbd0
[ 32.878] (II) config/devd: kbdmux is enabled, ignoring device ukbd1
[ 32.878] (II) config/devd: kbdmux is enabled, ignoring device atkbd0
[ 32.878] (II) config/devd: adding input device (null) (/dev/sysmouse)
[ 32.878] (II) LoadModule: "mouse"
[ 32.879] (II) Loading /usr/local/lib/xorg/modules/input/mouse_drv.so
[ 32.880] (II) Module mouse: vendor="X.Org Foundation"
[ 32.880] compiled for 1.18.4, module version = 1.9.2
[ 32.880] Module class: X.Org XInput Driver
[ 32.880] ABI class: X.Org XInput driver, version 22.1
[ 32.880] (II) Using input driver 'mouse' for 'sysmouse'
[ 32.880] () sysmouse: always reports core events
[ 32.880] (
) Option "Device" "/dev/sysmouse"
[ 32.880] (==) sysmouse: Protocol: "Auto"
[ 32.880] () sysmouse: always reports core events
[ 32.880] (==) sysmouse: Emulate3Buttons, Emulate3Timeout: 50
[ 32.880] (
) sysmouse: ZAxisMapping: buttons 4 and 5
[ 32.880] () sysmouse: Buttons: 5
[ 32.880] (
) Option "config_info" "devd:sysmouse"
[ 32.880] (II) XINPUT: Adding extended input device "sysmouse" (type: MOUSE, id 7)
[ 32.881] () sysmouse: (accel) keeping acceleration scheme 1
[ 32.881] (
) sysmouse: (accel) acceleration profile 0
[ 32.881] () sysmouse: (accel) acceleration factor: 2.000
[ 32.881] (
) sysmouse: (accel) acceleration threshold: 4
[ 32.881] (II) sysmouse: SetupAuto: hw.iftype is 4, hw.model is 0
[ 32.881] (II) sysmouse: SetupAuto: protocol is SysMouse
[ 32.881] (II) config/devd: device /dev/ums0 already opened

amdgpu >=4.11 ioctl auth/permission problems (Vulkan, OpenCL, Xwayland, OpenMW-on-Wayland)

$ vulkaninfo
===========
VULKAN INFO
===========

Vulkan API Version: 1.0.65


Instance Extensions:
====================
[…]
amdgpu_device_initialize: amdgpu_get_auth (1) failed (-1)
amdgpu_device_initialize: amdgpu_get_auth (1) failed (-1)
amdgpu_device_initialize: amdgpu_get_auth (1) failed (-1)
/usr/ports/graphics/vulkan-sdk/work/Vulkan-LoaderAndValidationLayers-sdk-1.0.65.1/demos/vulkaninfo.c:1670: failed with VK_ERROR_INITIALIZATION_FAILED

What is this?

Can you inform us about what is this repository and the kms-firmware repo too?

Request: bump package version

This package is working well for me when I build it from source, but the version shipped as a binary FreeBSD package is ~2 months old and thus fails to load:

link_elf_obj: symbol kmem_object_store undefined
linker_load_file: /boot/modules/linuxkpi_gplv2.ko - unsupported file type
KLD: drm.ko: depends on linuxkpi_gplv2 - not available or version mismatch
linker_load_file: /boot/modules/drm.ko - unsupported file type
KLD: i915kms.ko: depends on drmn - not available or version mismatch

Could you bump the binary package version (or touch a source file? would that do it?) to cause the binary package to be re-built against more recent kernel sources?

Thanks.

Kernel panic on kmscube/X exit (only on debug kernel)

#0  doadump (textdump=1) at pcpu.h:231
#1  0xffffffff806cb842 in kern_reboot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:446
#2  0xffffffff806cbe23 in vpanic (fmt=<value optimized out>, ap=<value optimized out>)
    at /usr/src/sys/kern/kern_shutdown.c:863
#3  0xffffffff806cbb90 in kassert_panic (fmt=<value optimized out>) at /usr/src/sys/kern/kern_shutdown.c:749
#4  0xffffffff81b9296a in linux_add_to_sleepqueue (wchan=0xfffff800505f6e00, task=0xfffff800505f6e00, 
    wmesg=0xffffffff81b96e62 "wevent", timeout=0, state=258)
    at /usr/src/sys/compat/linuxkpi/common/src/linux_schedule.c:50
#5  0xffffffff81b92669 in linux_wait_event_common (wqh=<value optimized out>, wq=<value optimized out>, timeout=0, 
    state=258, lock=0x0) at /usr/src/sys/compat/linuxkpi/common/src/linux_schedule.c:279
#6  0xffffffff81a710b8 in amd_sched_entity_fini () from /boot/modules.drm-v4.15/amdgpu.ko
#7  0xffffffff818ef8ca in amdgpu_vm_fini () from /boot/modules.drm-v4.15/amdgpu.ko
#8  0xffffffff818d16c2 in amdgpu_driver_postclose_kms () from /boot/modules.drm-v4.15/amdgpu.ko
#9  0xffffffff81b35cb1 in drm_release () from /boot/modules.drm-v4.15/drm.ko
#10 0xffffffff81b89fe5 in linux_file_close (file=0xfffff80004b6b7d0, td=0xfffff8005094e560)
    at /usr/src/sys/compat/linuxkpi/common/src/linux_compat.c:1391
#11 0xffffffff806746ca in _fdrop (fp=0xfffff80004b6b7d0, td=<value optimized out>) at file.h:348
#12 0xffffffff81b8c102 in linux_cdev_handle_free (vmap=0xfffff8005096c100)
    at /usr/src/sys/compat/linuxkpi/common/src/linux_compat.c:463
#13 0xffffffff809e0243 in dev_pager_dealloc (object=0xfffff80050987800) at /usr/src/sys/vm/device_pager.c:263
#14 0xffffffff80a00023 in vm_object_terminate (object=0xfffff80050987800) at /usr/src/sys/vm/vm_object.c:833
#15 0xffffffff809ff1cc in vm_object_deallocate (object=0x0) at /usr/src/sys/vm/vm_object.c:684
#16 0xffffffff809f43c9 in vm_map_process_deferred () at /usr/src/sys/vm/vm_map.c:2997
#17 0xffffffff809f94a6 in vm_map_remove (map=<value optimized out>, start=4096, end=140737488355328)
    at /usr/src/sys/vm/vm_map.c:554
#18 0xffffffff809f40e9 in vmspace_exit (td=0xfffff8005094e560) at /usr/src/sys/vm/vm_map.c:342
#19 0xffffffff806867ed in exit1 (td=0xfffff8005094e560, rval=<value optimized out>, signo=0)
    at /usr/src/sys/kern/kern_exit.c:402
#20 0xffffffff8068623d in sys_sys_exit (td=<value optimized out>, uap=<value optimized out>)
    at /usr/src/sys/kern/kern_exit.c:180
#21 0xffffffff80a49dac in amd64_syscall (td=0xfffff8005094e560, traced=0) at subr_syscall.c:135
#22 0xffffffff80a253cd in fast_syscall_common () at /usr/src/sys/amd64/amd64/exception.S:494
#23 0x00000000ffffffff in ?? ()
#24 0x0000000000000002 in ?? ()
#25 0x0000000000000060 in ?? ()
#26 0x0000000000000000 in ?? ()
Current language:  auto; currently minimal

: 0x00000080[drm:gen8_de_irq_handler] Fault errors on pipe A

Akin to the reports on:

trueos/trueos-core#387
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=226002

Corrupted screen upon wakeup from suspend; with 1000's of messages in dmesg as per below. Recent FreeBSD12, drm-next-kmod-4.11.g20180224 , gpu-firmware-kmod-g20180206_1.


Mar  9 14:02:43 water kernel: : 0x00000080[drm:gen8_de_irq_handler] Fault errors on pipe A
Mar  9 14:02:43 water kernel: : 0x00000080[drm:gen8_de_irq_handler] Fault errors on pipe A
Mar  9 14:02:43 water kernel: : 0x00000080
Mar  9 14:02:43 water kernel: [drm:gen8_de_irq_handler] Fault errors on pipe A
Mar  9 14:02:43 water kernel: : 0x00000080[drm:gen8_de_irq_handler] Fault errors on pipe A

Crash on 4.11: destroy held sx lock

Random crash. Can be forced by running piglit

#0  doadump (textdump=0) at pcpu.h:228
#1  0xffffffff81f68d88 in vt_kms_postswitch () from /boot/modules.JD411/drm.ko
#2  0xffffffff8054901b in vt_window_switch (vw=0xfffff80002a16b00) at /usr/src/sys/dev/vt/vt_core.c:542
#3  0xffffffff80546770 in vtterm_cngrab (tm=<value optimized out>) at /usr/src/sys/dev/vt/vt_core.c:1509
#4  0xffffffff80650862 in cngrab () at /usr/src/sys/kern/kern_cons.c:370
#5  0xffffffff806b132b in vpanic (fmt=0xffffffff80b161fb "sx lock still held", ap=0xfffffe00004c38a0)
    at /usr/src/sys/kern/kern_shutdown.c:785
#6  0xffffffff806b1230 in kassert_panic (fmt=<value optimized out>) at /usr/src/sys/kern/kern_shutdown.c:697
#7  0xffffffff806b999d in sx_destroy (sx=0xfffff801128ee598) at /usr/src/sys/kern/kern_sx.c:257
#8  0xffffffff81e1c95d in __i915_gem_free_objects () from /boot/modules.JD411/i915kms.ko
#9  0xffffffff81e19f38 in __i915_gem_free_work () from /boot/modules.JD411/i915kms.ko
#10 0xffffffff81fa59e9 in linux_work_fn (context=0xfffff801128ee300, pending=<value optimized out>)
    at /usr/src/sys/compat/linuxkpi/common/src/linux_work.c:243
#11 0xffffffff80709acc in taskqueue_run_locked (queue=0xfffff80004bb8000) at /usr/src/sys/kern/subr_taskqueue.c:465
#12 0xffffffff8070a898 in taskqueue_thread_loop (arg=<value optimized out>) at /usr/src/sys/kern/subr_taskqueue.c:757
#13 0xffffffff806717e4 in fork_exit (callout=0xffffffff8070a810 <taskqueue_thread_loop>, arg=0xfffff800047caf40, 
    frame=0xfffffe00004c3ac0) at /usr/src/sys/kern/kern_fork.c:1039
#14 0xffffffff80a0591e in fork_trampoline () at /usr/src/sys/amd64/amd64/exception.S:687
#15 0x0000000000000000 in ?? ()

DRM_IOCTL_I915_GEM_USERPTR fails as regular user in "video" group

lang/beignet wants to to use DRM_IOCTL_I915_GEM_USERPTR for OpenCL 2.0 support and CL_DEVICE_HOST_UNIFIED_MEMORY, see bug 217635. I'm not sure why but it doesn't work without root.

$ cat a.c
#include <err.h>
#include <errno.h>
#include <fcntl.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>

#include <xf86drm.h>
#include <libdrm/i915_drm.h>

int main()
{
    int ret;
    long pgsz = sysconf(_SC_PAGESIZE);
    void *ptr = aligned_alloc(pgsz, pgsz);

    struct drm_i915_gem_userptr userptr;
    memset(&userptr, 0, sizeof(userptr));
    userptr.user_ptr = (__u64)(unsigned long)ptr;
    userptr.user_size = pgsz;

    int fd = open("/dev/dri/card0", O_RDWR, 0);

retry:
    ret = drmIoctl(fd, DRM_IOCTL_I915_GEM_USERPTR, &userptr);
    if (ret) {
	warn("DRM_IOCTL_I915_GEM_USERPTR");
	if (errno == ENODEV && userptr.flags == 0) {
	    userptr.flags = I915_USERPTR_UNSYNCHRONIZED;
	    goto retry;
	}
    }
  
    return ret;
}

$ pkg install libdrm pkgconf
$ cc a.c $(pkg-config --cflags --libs libdrm)

$ ls -lL /dev/dri/card0
crw-rw----  1 root  video  0x254 Mar 22 23:08 /dev/dri/card0
$ id
uid=1234(foo) gid=1234(foo) groups=1234(foo),0(wheel),44(video)

$ ./a.out
a.out: DRM_IOCTL_I915_GEM_USERPTR: Operation not supported by device
a.out: DRM_IOCTL_I915_GEM_USERPTR: Operation not permitted
zsh: exit 255

$ sudo ./a.out
a.out: DRM_IOCTL_I915_GEM_USERPTR: Operation not supported by device

Kernel panic loading amdgpu

Env:

drm-next-kmod-g20180117 ( build from the ports)
FreeBSD 12.0-CURRENT #1 r328258

The system panics when loading the amdgpu module:

/usr/libexec/kgdb kernel.debug /var/crash/vmcore.0
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:
<6>ATOM BIOS: 6811HB.15.48.0.57.AS02
<6>[drm] GPU posting now...


Fatal trap 12: page fault while in kernel mode
cpuid = 5; apic id = 05
fault virtual address   = 0xe030
fault code              = supervisor write data, page not present
instruction pointer     = 0x20:0xffffffff82e65e20
stack pointer           = 0x28:0xfffffe00ad548ef0
frame pointer           = 0x28:0xfffffe00ad548ef0
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         = 4980 (kldload)
trap number             = 12
panic: page fault
cpuid = 5
time = 1516634479
Uptime: 54s
Dumping 913 out of 16227 MB:..2%..11%..22%..32%..41%..51%..62%..71%..81%..92%

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/opensolaris.ko...Reading symbols from /usr/lib/debug//boot/kernel/opensolaris.ko.debug...done.
done.
Loaded symbols for /boot/kernel/opensolaris.ko
Reading symbols from /boot/kernel/ipfw.ko...Reading symbols from /usr/lib/debug//boot/kernel/ipfw.ko.debug...done.
done.
Loaded symbols for /boot/kernel/ipfw.ko
Reading symbols from /boot/kernel/pf.ko...Reading symbols from /usr/lib/debug//boot/kernel/pf.ko.debug...done.
done.
Loaded symbols for /boot/kernel/pf.ko
Reading symbols from /boot/kernel/accf_data.ko...Reading symbols from /usr/lib/debug//boot/kernel/accf_data.ko.debug...done.
done.
Loaded symbols for /boot/kernel/accf_data.ko
Reading symbols from /boot/kernel/accf_dns.ko...Reading symbols from /usr/lib/debug//boot/kernel/accf_dns.ko.debug...done.
done.
Loaded symbols for /boot/kernel/accf_dns.ko
Reading symbols from /boot/kernel/accf_http.ko...Reading symbols from /usr/lib/debug//boot/kernel/accf_http.ko.debug...done.
done.
Loaded symbols for /boot/kernel/accf_http.ko
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/cpuctl.ko...Reading symbols from /usr/lib/debug//boot/kernel/cpuctl.ko.debug...done.
done.
Loaded symbols for /boot/kernel/cpuctl.ko
Reading symbols from /boot/kernel/fdescfs.ko...Reading symbols from /usr/lib/debug//boot/kernel/fdescfs.ko.debug...done.
done.
Loaded symbols for /boot/kernel/fdescfs.ko
Reading symbols from /boot/kernel/linsysfs.ko...Reading symbols from /usr/lib/debug//boot/kernel/linsysfs.ko.debug...done.
done.
Loaded symbols for /boot/kernel/linsysfs.ko
Reading symbols from /boot/kernel/linux_common.ko...Reading symbols from /usr/lib/debug//boot/kernel/linux_common.ko.debug...done.
done.
Loaded symbols for /boot/kernel/linux_common.ko
Reading symbols from /boot/kernel/tmpfs.ko...Reading symbols from /usr/lib/debug//boot/kernel/tmpfs.ko.debug...done.
done.
Loaded symbols for /boot/kernel/tmpfs.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/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/modules/vboxdrv.ko...done.
Loaded symbols for /boot/modules/vboxdrv.ko
Reading symbols from /boot/modules/vboxnetflt.ko...done.
Loaded symbols for /boot/modules/vboxnetflt.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_ether.ko...Reading symbols from /usr/lib/debug//boot/kernel/ng_ether.ko.debug...done.
done.
Loaded symbols for /boot/kernel/ng_ether.ko
Reading symbols from /boot/modules/vboxnetadp.ko...done.
Loaded symbols for /boot/modules/vboxnetadp.ko
Reading symbols from /boot/kernel/linux.ko...Reading symbols from /usr/lib/debug//boot/kernel/linux.ko.debug...done.
done.
Loaded symbols for /boot/kernel/linux.ko
Reading symbols from /boot/kernel/linux64.ko...Reading symbols from /usr/lib/debug//boot/kernel/linux64.ko.debug...done.
done.
Loaded symbols for /boot/kernel/linux64.ko
Reading symbols from /boot/kernel/linprocfs.ko...Reading symbols from /usr/lib/debug//boot/kernel/linprocfs.ko.debug...done.
done.
Loaded symbols for /boot/kernel/linprocfs.ko
Reading symbols from /boot/kernel/nullfs.ko...Reading symbols from /usr/lib/debug//boot/kernel/nullfs.ko.debug...done.
done.
Loaded symbols for /boot/kernel/nullfs.ko
Reading symbols from /boot/modules/amdgpu.ko...done.
Loaded symbols for /boot/modules/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/modules/linuxkpi_gplv2.ko...done.
Loaded symbols for /boot/modules/linuxkpi_gplv2.ko
Reading symbols from /boot/modules/debugfs.ko...done.
Loaded symbols for /boot/modules/debugfs.ko
#0  doadump (textdump=<value optimized out>) at pcpu.h:229
229             __asm("movq %%gs:%1,%0" : "=r" (td)
(kgdb) bt
#0  doadump (textdump=<value optimized out>) at pcpu.h:229
#1  0xffffffff80adce5b in kern_reboot (howto=260) at /usr/jails/src/src_12/src/sys/kern/kern_shutdown.c:415
#2  0xffffffff80add333 in vpanic (fmt=<value optimized out>, ap=<value optimized out>) at /usr/jails/src/src_12/src/sys/kern/kern_shutdown.c:811
#3  0xffffffff80add173 in panic (fmt=<value optimized out>) at /usr/jails/src/src_12/src/sys/kern/kern_shutdown.c:738
#4  0xffffffff80f7c287 in trap_fatal (frame=0xfffffe00ad548e30, eva=57392) at /usr/jails/src/src_12/src/sys/amd64/amd64/trap.c:819
#5  0xffffffff80f7c60b in trap_pfault (frame=0xfffffe00ad548e30, usermode=0) at /usr/jails/src/src_12/src/sys/amd64/amd64/trap.c:736
#6  0xffffffff80f7bb9f in trap (frame=0xfffffe00ad548e30) at /usr/jails/src/src_12/src/sys/amd64/amd64/trap.c:412
#7  0xffffffff80f5dbcd in calltrap () at /usr/jails/src/src_12/src/sys/amd64/amd64/exception.S:231
#8  0xffffffff82e65e20 in cail_ioreg_write () from /boot/modules/amdgpu.ko
#9  0xffffffff82e8ed2a in atom_iio_execute () from /boot/modules/amdgpu.ko
#10 0xffffffff82e8ec6f in atom_get_src_int () from /boot/modules/amdgpu.ko
#11 0xffffffff82e8d4f9 in atom_op_mask () from /boot/modules/amdgpu.ko
#12 0xffffffff82e8b0a6 in amdgpu_atom_execute_table_locked () from /boot/modules/amdgpu.ko
#13 0xffffffff82e8d2e3 in atom_op_calltable () from /boot/modules/amdgpu.ko
#14 0xffffffff82e8b0a6 in amdgpu_atom_execute_table_locked () from /boot/modules/amdgpu.ko
#15 0xffffffff82e8b572 in amdgpu_atom_asic_init () from /boot/modules/amdgpu.ko
#16 0xffffffff82e626d8 in amdgpu_device_init () from /boot/modules/amdgpu.ko
#17 0xffffffff82e72cab in amdgpu_driver_load_kms () from /boot/modules/amdgpu.ko
#18 0xffffffff82fc3a8a in ?? ()
#19 0xffffffff812b5cc0 in vga_pci_methods ()
#20 0xfffff800039d4e00 in ?? ()
#21 0xffffffff82f32ad0 in pciidlist () from /boot/modules/amdgpu.ko
#22 0xfffff802a6025800 in ?? ()
#23 0xfffffe00ad549330 in ?? ()
#24 0xffffffff82fe203a in ?? ()
#25 0xffffffff82fa4888 in amdgpu_exit_sys_uninit () from /boot/modules/amdgpu.ko
#26 0x0000000000000000 in ?? ()
Current language:  auto; currently minimal
(kgdb) up
#1  0xffffffff80adce5b in kern_reboot (howto=260) at /usr/jails/src/src_12/src/sys/kern/kern_shutdown.c:415
415                     doadump(TRUE);
(kgdb) up
#2  0xffffffff80add333 in vpanic (fmt=<value optimized out>, ap=<value optimized out>) at /usr/jails/src/src_12/src/sys/kern/kern_shutdown.c:811
811             kern_reboot(bootopt);
(kgdb) up
#3  0xffffffff80add173 in panic (fmt=<value optimized out>) at /usr/jails/src/src_12/src/sys/kern/kern_shutdown.c:738
738             vpanic(fmt, ap);
(kgdb) up
#4  0xffffffff80f7c287 in trap_fatal (frame=0xfffffe00ad548e30, eva=57392) at /usr/jails/src/src_12/src/sys/amd64/amd64/trap.c:819
819                     panic("%s", trap_msg[type]);
(kgdb) up
#5  0xffffffff80f7c60b in trap_pfault (frame=0xfffffe00ad548e30, usermode=0) at /usr/jails/src/src_12/src/sys/amd64/amd64/trap.c:736
736                                     PMC_SOFT_CALL_TF( , , page_fault, write,
(kgdb) up
#6  0xffffffff80f7bb9f in trap (frame=0xfffffe00ad548e30) at /usr/jails/src/src_12/src/sys/amd64/amd64/trap.c:412
412                             (void) trap_pfault(frame, FALSE);
(kgdb) up
#7  0xffffffff80f5dbcd in calltrap () at /usr/jails/src/src_12/src/sys/amd64/amd64/exception.S:231
231             call    trap_check
Current language:  auto; currently asm
(kgdb) up
#8  0xffffffff82e65e20 in cail_ioreg_write () from /boot/modules/amdgpu.ko
(kgdb) up
#9  0xffffffff82e8ed2a in atom_iio_execute () from /boot/modules/amdgpu.ko
(kgdb) up
#10 0xffffffff82e8ec6f in atom_get_src_int () from /boot/modules/amdgpu.ko
(kgdb) list *0xffffffff82e65e20
No source file for address 0xffffffff82e65e20.
(kgdb) where
#0  doadump (textdump=<value optimized out>) at pcpu.h:229
#1  0xffffffff80adce5b in kern_reboot (howto=260) at /usr/jails/src/src_12/src/sys/kern/kern_shutdown.c:415
#2  0xffffffff80add333 in vpanic (fmt=<value optimized out>, ap=<value optimized out>) at /usr/jails/src/src_12/src/sys/kern/kern_shutdown.c:811
#3  0xffffffff80add173 in panic (fmt=<value optimized out>) at /usr/jails/src/src_12/src/sys/kern/kern_shutdown.c:738
#4  0xffffffff80f7c287 in trap_fatal (frame=0xfffffe00ad548e30, eva=57392) at /usr/jails/src/src_12/src/sys/amd64/amd64/trap.c:819
#5  0xffffffff80f7c60b in trap_pfault (frame=0xfffffe00ad548e30, usermode=0) at /usr/jails/src/src_12/src/sys/amd64/amd64/trap.c:736
#6  0xffffffff80f7bb9f in trap (frame=0xfffffe00ad548e30) at /usr/jails/src/src_12/src/sys/amd64/amd64/trap.c:412
#7  0xffffffff80f5dbcd in calltrap () at /usr/jails/src/src_12/src/sys/amd64/amd64/exception.S:231
#8  0xffffffff82e65e20 in cail_ioreg_write () from /boot/modules/amdgpu.ko
#9  0xffffffff82e8ed2a in atom_iio_execute () from /boot/modules/amdgpu.ko
#10 0xffffffff82e8ec6f in atom_get_src_int () from /boot/modules/amdgpu.ko
#11 0xffffffff82e8d4f9 in atom_op_mask () from /boot/modules/amdgpu.ko
#12 0xffffffff82e8b0a6 in amdgpu_atom_execute_table_locked () from /boot/modules/amdgpu.ko
#13 0xffffffff82e8d2e3 in atom_op_calltable () from /boot/modules/amdgpu.ko
#14 0xffffffff82e8b0a6 in amdgpu_atom_execute_table_locked () from /boot/modules/amdgpu.ko
#15 0xffffffff82e8b572 in amdgpu_atom_asic_init () from /boot/modules/amdgpu.ko
#16 0xffffffff82e626d8 in amdgpu_device_init () from /boot/modules/amdgpu.ko
#17 0xffffffff82e72cab in amdgpu_driver_load_kms () from /boot/modules/amdgpu.ko
#18 0xffffffff82fc3a8a in ?? ()
#19 0xffffffff812b5cc0 in vga_pci_methods ()
#20 0xfffff800039d4e00 in ?? ()
#21 0xffffffff82f32ad0 in pciidlist () from /boot/modules/amdgpu.ko
#22 0xfffff802a6025800 in ?? ()
#23 0xfffffe00ad549330 in ?? ()
#24 0xffffffff82fe203a in ?? ()
#25 0xffffffff82fa4888 in amdgpu_exit_sys_uninit () from /boot/modules/amdgpu.ko
#26 0x0000000000000000 in ?? ()

This workstation has two graphics cards:

  1. Onboard. Works well also via next-drm port by loading /boot/modules/i915kms.ko
vgapci1@pci0:0:2:0:     class=0x030000 card=0xd0001458 chip=0x19128086 rev=0x06 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'HD Graphics 530'
    class      = display
    subclass   = VGA
  1. PCI external card
vgapci0@pci0:1:0:0:     class=0x030000 card=0x20151043 chip=0x68111002 rev=0x81 hdr=0x00
    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
    device     = 'Curacao PRO [Radeon R7 370 / R9 270/370 OEM]'
    class      = display
    subclass   = VGA

Dmesg.boot:

Copyright (c) 1992-2018 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 12.0-CURRENT #1 r328258: Mon Jan 22 13:46:35 MSK 2018
    [email protected]:/usr/obj/usr/jails/src/src_12/src/amd64.amd64/sys/CBSD amd64
FreeBSD clang version 6.0.0 (branches/release_60 321788) (based on LLVM 6.0.0)
VT(efifb): resolution 1600x1200
CPU: Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz (3408.17-MHz K8-class CPU)
  Origin="GenuineIntel"  Id=0x506e3  Family=0x6  Model=0x5e  Stepping=3
  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=0x7ffafbff<SSE3,PCLMULQDQ,DTES64,MON,DS_CPL,VMX,SMX,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=0x29c6fbf<FSGSBASE,TSCADJ,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,NFPUSG,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PROCTRACE>
  XSAVE Features=0xf<XSAVEOPT,XSAVEC,XINUSE,XSAVES>
  VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID
  TSC: P-state invariant, performance statistics
real memory  = 17179869184 (16384 MB)
avail memory = 16412229632 (15651 MB)
Event timer "LAPIC" quality 600
ACPI APIC Table: <ALASKA A M I>
FreeBSD/SMP: Multiprocessor System Detected: 8 CPUs
FreeBSD/SMP: 1 package(s) x 4 core(s) x 2 hardware threads
random: unblocking device.
ioapic0 <Version 2.0> irqs 0-119 on motherboard
SMP: AP CPU #1 Launched!
SMP: AP CPU #5 Launched!
SMP: AP CPU #4 Launched!
SMP: AP CPU #6 Launched!
SMP: AP CPU #7 Launched!
SMP: AP CPU #2 Launched!
SMP: AP CPU #3 Launched!
Timecounter "TSC-low" frequency 1704082777 Hz quality 1000
random: entropy device external interface
kbd1 at kbdmux0
netmap: loaded module
[ath_hal] loaded
module_register_init: MOD_LOAD (vesa, 0xffffffff80ffd3d0, 0) error 19
random: registering fast source Intel Secure Key RNG
random: fast provider: "Intel Secure Key RNG"
nexus0
cryptosoft0: <software crypto> on motherboard
aesni0: <AES-CBC,AES-XTS,AES-GCM,AES-ICM> on motherboard
acpi0: <ALASKA A M I> on motherboard
acpi0: Power Button (fixed)
cpu0: <ACPI CPU> on acpi0
cpu1: <ACPI CPU> on acpi0
cpu2: <ACPI CPU> on acpi0
cpu3: <ACPI CPU> on acpi0
cpu4: <ACPI CPU> on acpi0
cpu5: <ACPI CPU> on acpi0
cpu6: <ACPI CPU> on acpi0
cpu7: <ACPI CPU> on acpi0
hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0
Timecounter "HPET" frequency 24000000 Hz quality 950
Event timer "HPET" frequency 24000000 Hz quality 550
atrtc0: <AT realtime clock> 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: <AT timer> 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: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0
pci1: <ACPI PCI bus> on pcib1
vgapci0: <VGA-compatible display> port 0xe000-0xe0ff mem 0xc0000000-0xcfffffff,0xdf300000-0xdf33ffff irq 16 at device 0.0 on pci1
hdac0: <ATI (0xaab0) HDA Controller> mem 0xdf360000-0xdf363fff irq 17 at device 0.1 on pci1
hdac0: hdac_get_capabilities: Invalid corb size (0)
device_attach: hdac0 attach returned 6
vgapci1: <VGA-compatible display> port 0xf000-0xf03f mem 0xde000000-0xdeffffff,0xb0000000-0xbfffffff irq 16 at device 2.0 on pci0
vgapci1: Boot video device
xhci0: <Intel Sunrise Point USB 3.0 controller> mem 0xdf430000-0xdf43ffff irq 16 at device 20.0 on pci0
xhci0: 32 bytes context size, 64-bit DMA
usbus0: waiting for BIOS to give up control
xhci_interrupt: host controller halted
usbus0 on xhci0
usbus0: 5.0Gbps Super Speed USB v3.0
pci0: <simple comms> at device 22.0 (no driver attached)
ahci0: <Intel Sunrise Point AHCI SATA controller> port 0xf090-0xf097,0xf080-0xf083,0xf060-0xf07f mem 0xdf448000-0xdf449fff,0xdf44c000-0xdf44c0ff,0xdf44b000-0xdf44b7ff irq 16 at device 23.0 on pci0
ahci0: AHCI v1.31 with 6 6Gbps ports, Port Multiplier not supported
ahcich0: <AHCI channel> at channel 0 on ahci0
ahcich1: <AHCI channel> at channel 1 on ahci0
ahcich2: <AHCI channel> at channel 2 on ahci0
ahcich3: <AHCI channel> at channel 3 on ahci0
ahcich4: <AHCI channel> at channel 4 on ahci0
ahcich5: <AHCI channel> at channel 5 on ahci0
ahciem0: <AHCI enclosure management bridge> on ahci0
pcib2: <ACPI PCI-PCI bridge> at device 27.0 on pci0
pci2: <ACPI PCI bus> on pcib2
pcib3: <ACPI PCI-PCI bridge> irq 16 at device 28.0 on pci0
pci3: <ACPI PCI bus> on pcib3
pcib4: <ACPI PCI-PCI bridge> irq 16 at device 0.0 on pci3
pci4: <ACPI PCI bus> on pcib4
pcib5: <PCI-PCI bridge> irq 16 at device 0.0 on pci4
pci5: <PCI bus> on pcib5
pcib6: <PCI-PCI bridge> irq 17 at device 1.0 on pci4
pcib6: [GIANT-LOCKED]
pcib7: <PCI-PCI bridge> irq 18 at device 2.0 on pci4
pci6: <PCI bus> on pcib7
xhci1: <XHCI (generic) USB 3.0 controller> mem 0xdf200000-0xdf20ffff irq 18 at device 0.0 on pci6
xhci1: 32 bytes context size, 64-bit DMA
usbus1 on xhci1
usbus1: 5.0Gbps Super Speed USB v3.0
pcib8: <PCI-PCI bridge> irq 16 at device 4.0 on pci4
pcib8: [GIANT-LOCKED]
pcib9: <ACPI PCI-PCI bridge> irq 16 at device 28.4 on pci0
pci7: <ACPI PCI bus> on pcib9
pcib10: <ACPI PCI-PCI bridge> irq 17 at device 28.5 on pci0
pci8: <ACPI PCI bus> on pcib10
alc0: <Killer E2200 Gigabit Ethernet> port 0xd000-0xd07f mem 0xdf100000-0xdf13ffff irq 17 at device 0.0 on pci8
alc0: 11776 Tx FIFO, 12032 Rx FIFO
alc0: Using 1 MSIX message(s).
miibus0: <MII bus> on alc0
atphy0: <Atheros F1 10/100/1000 PHY> PHY 0 on miibus0
atphy0:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow
alc0: Using defaults for TSO: 65518/35/2048
alc0: Ethernet address: 40:8d:5c:57:c6:d3
pcib11: <ACPI PCI-PCI bridge> irq 18 at device 28.6 on pci0
pci9: <ACPI PCI bus> on pcib11
ppc1: <MosChip MCS9900 PCIe to Peripheral Controller> port 0xc010-0xc017,0xc000-0xc007 mem 0xdf001000-0xdf001fff,0xdf000000-0xdf000fff irq 18 at device 0.0 on pci9
ppc1: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode
ppbus0: <Parallel port bus> on ppc1
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
pcib12: <ACPI PCI-PCI bridge> irq 16 at device 29.0 on pci0
pci10: <ACPI PCI bus> on pcib12
pcib13: <ACPI PCI-PCI bridge> irq 16 at device 29.4 on pci0
pci11: <ACPI PCI bus> on pcib13
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
pci0: <memory> at device 31.2 (no driver attached)
hdac0: <Intel Sunrise Point HDA Controller> mem 0xdf440000-0xdf443fff,0xdf420000-0xdf42ffff irq 16 at device 31.3 on pci0
em0: <Intel(R) PRO/1000 Network Connection> mem 0xdf400000-0xdf41ffff irq 16 at device 31.6 on pci0
em0: attach_pre capping queues at 1
em0: using 1024 tx descriptors and 1024 rx descriptors
em0: msix_init qsets capped at 1
em0: PCIY_MSIX capability not found; or rid 0 == 0.
em0: Using an MSI interrupt
em0: allocated for 1 tx_queues
em0: allocated for 1 rx_queues
em0: Ethernet address: 40:8d:5c:57:c6:d1
em0: netmap queues/slots: TX 1/1024, RX 1/1024
acpi_button0: <Sleep Button> on acpi0
acpi_button1: <Power Button> on acpi0
acpi_tz0: <Thermal Zone> on acpi0
acpi_tz1: <Thermal Zone> on acpi0
uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 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]
ACPI Warning: \134_PR.CPU0._PSS: Found unexpected NULL package element (20180105/nsrepair-335)
ACPI Warning: \134_PR.CPU0._PSS: Found unexpected NULL package element (20180105/nsrepair-335)
ACPI Warning: \134_PR.CPU0._PSS: Found unexpected NULL package element (20180105/nsrepair-335)
ACPI Warning: \134_PR.CPU0._PSS: Found unexpected NULL package element (20180105/nsrepair-335)
est0: <Enhanced SpeedStep Frequency Control> on cpu0
est1: <Enhanced SpeedStep Frequency Control> on cpu1
est2: <Enhanced SpeedStep Frequency Control> on cpu2
est3: <Enhanced SpeedStep Frequency Control> on cpu3
est4: <Enhanced SpeedStep Frequency Control> on cpu4
est5: <Enhanced SpeedStep Frequency Control> on cpu5
est6: <Enhanced SpeedStep Frequency Control> on cpu6
est7: <Enhanced SpeedStep Frequency Control> on cpu7

Kernel config:

include GENERIC

ident           GENERIC_CBSD

nooptions       KDB                     # Enable kernel debugger support.
nooptions       KDB_TRACE               # Print a stack trace for a panic.
nooptions       DDB                     # Support DDB.
nooptions       GDB                     # Support remote GDB.
nooptions       DEADLKRES               # Enable the deadlock resolver
nooptions       INVARIANTS              # Enable calls of extra sanity checking
nooptions       INVARIANT_SUPPORT       # Extra sanity checks of internal structures, required by INVARIANTS
nooptions       WITNESS                 # Enable checks to detect deadlocks and cycles
nooptions       WITNESS_SKIPSPIN        # Don't run witness on spinlocks for speed
nooptions       MALLOC_DEBUG_MAXZONES

options         TERMINAL_NORM_ATTR=(FG_GREEN|BG_BLACK)
options         CAM_IOSCHED_DYNAMIC

I try to load amdgpu without i915kms but no difference

PS: Kernel/base/modules in sync

If you need more information from me - I'll be glad to provide it

New panic on kldload i915kms.ko

On a freshly-booted system with drm-next-kmod-4.11.g20180224 built from ports, kldload /boot/modules/i915kms.ko sometimes causes a kernel panic. This occurred at least once due to a trap with interrupts disabled and once due to an integer division fault in kernel mode:

core.0.txt
core.1.txt

drm-next crash on apple imin

root@imin:/etc/X11 # dmesg
Copyright (c) 1992-2017 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 12.0-CURRENT #2 r323002: Wed Aug 30 07:03:20 CST 2017
[email protected]:/usr/obj/usr/src/sys/IMAC amd64
FreeBSD clang version 5.0.0 (branches/release_50 311219) (based on LLVM 5.0.0svn)
VT(efifb): resolution 1920x1080
CPU: Intel(R) Core(TM) i7-2635QM CPU @ 2.00GHz (1995.51-MHz K8-class CPU)
Origin="GenuineIntel" Id=0x206a7 Family=0x6 Model=0x2a Stepping=7
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=0x1fbae3bf<SSE3,PCLMULQDQ,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,TSCDLT,AESNI,XSAVE,OSXSAVE,AVX>
AMD Features=0x28100800<SYSCALL,NX,RDTSCP,LM>
AMD Features2=0x1
XSAVE Features=0x1
VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID
TSC: P-state invariant, performance statistics
real memory = 8589934592 (8192 MB)
avail memory = 8144121856 (7766 MB)
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: unblocking device.
ioapic0: Changing APIC ID to 2
ioapic0 <Version 2.0> irqs 0-23 on motherboard
SMP: AP CPU #1 Launched!
SMP: AP CPU #5 Launched!
SMP: AP CPU #4 Launched!
SMP: AP CPU #7 Launched!
SMP: AP CPU #2 Launched!
SMP: AP CPU #6 Launched!
SMP: AP CPU #3 Launched!
Timecounter "TSC" frequency 1995512512 Hz quality 1000
random: entropy device external interface
netmap: loaded module
[ath_hal] loaded
module_register_init: MOD_LOAD (vesa, 0xffffffff80f9d4a0, 0) error 19
kbd0 at kbdmux0
nexus0
cryptosoft0: on motherboard
acpi0: on motherboard
acpi_ec0: <Embedded Controller: GPE 0x17, ECDT> port 0x62,0x66 on acpi0
acpi0: Power Button (fixed)
unknown: I/O range not supported
hpet0: iomem 0xfed00000-0xfed003ff irq 0,8 on acpi0
Timecounter "HPET" frequency 14318180 Hz quality 950
Event timer "HPET" frequency 14318180 Hz quality 550
cpu0: on acpi0
cpu1: on acpi0
cpu2: on acpi0
cpu3: on acpi0
cpu4: on acpi0
cpu5: on acpi0
cpu6: on acpi0
cpu7: on acpi0
atrtc0: port 0x70-0x77 on acpi0
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 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 0x408-0x40b on acpi0
pcib0: port 0xcf8-0xcff on acpi0
pci0: on pcib0
pcib1: at device 1.0 on pci0
pci1: on pcib1
pcib2: at device 1.1 on pci0
pci2: on pcib2
vgapci0: port 0x2000-0x203f mem 0xa0000000-0xa03fffff,0x90000000-0x9fffffff at device 2.0 on pci0
vgapci0: Boot video device
pci0: at device 22.0 (no driver attached)
uhci0: <UHCI (generic) USB controller> port 0x2120-0x213f at device 26.0 on pci0
uhci0: LegSup = 0x2400
usbus0 on uhci0
usbus0: 12Mbps Full Speed USB v1.0
ehci0: <Intel Cougar Point USB 2.0 controller> mem 0xa0906c00-0xa0906fff at device 26.7 on pci0
usbus1: EHCI version 1.0
usbus1 on ehci0
usbus1: 480Mbps High Speed USB v2.0
hdac0: mem 0xa0900000-0xa0903fff at device 27.0 on pci0
pcib3: at device 28.0 on pci0
pci3: on pcib3
bge0: <Broadcom BCM57765 B0, ASIC rev. 0x57785100> mem 0xa0400000-0xa040ffff,0xa0410000-0xa041ffff at device 0.0 on pci3
bge0: CHIP ID 0x57785100; ASIC REV 0x57785; CHIP REV 0x577851; PCI-E
miibus0: on bge0
brgphy0: <BCM57765 1000BASE-T media interface> PHY 1 on miibus0
brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow
bge0: Using defaults for TSO: 65518/35/2048
bge0: Ethernet address: a8:20:66:23:8b:ae
sdhci_pci0: <Broadcom BCM577xx SDXC/MMC Card Reader> mem 0xa0420000-0xa042ffff at device 0.1 on pci3
sdhci_pci0: 1 slot(s) allocated
pcib4: at device 28.1 on pci0
pci4: on pcib4
pci4: at device 0.0 (no driver attached)
pcib5: at device 28.2 on pci0
pci5: on pcib5
pcib6: at device 0.0 on pci5
pci6: on pcib6
pci6: <serial bus, FireWire> at device 0.0 (no driver attached)
uhci1: <UHCI (generic) USB controller> port 0x20c0-0x20df at device 29.0 on pci0
uhci1: LegSup = 0x2400
usbus2 on uhci1
usbus2: 12Mbps Full Speed USB v1.0
ehci1: <Intel Cougar Point USB 2.0 controller> mem 0xa0906800-0xa0906bff at device 29.7 on pci0
usbus3: EHCI version 1.0
usbus3 on ehci1
usbus3: 480Mbps High Speed USB v2.0
isab0: at device 31.0 on pci0
isa0: on isab0
ahci0: port 0x2148-0x214f,0x215c-0x215f,0x2140-0x2147,0x2158-0x215b,0x2060-0x207f mem 0xa0906000-0xa09067ff at device 31.2 on pci0
ahci0: AHCI v1.30 with 6 6Gbps ports, Port Multiplier not supported
ahcich0: at channel 0 on ahci0
ahcich1: at channel 1 on ahci0
ahciem0: on ahci0
acpi_button0: on acpi0
acpi_button1: on acpi0
ppc0: cannot reserve I/O port range
est0: on cpu0
est1: on cpu1
est2: on cpu2
est3: on cpu3
est4: on cpu4
est5: on cpu5
est6: on cpu6
est7: on cpu7
ZFS filesystem version: 5
ZFS storage pool version: features support (5000)
Timecounters tick every 1.000 msec
hdacc0: at cad 0 on hdac0
hdaa0: at nid 1 on hdacc0
pcm0: <Cirrus Logic CS4206 (Analog)> at nid 11 and 12 on hdaa0
pcm1: <Cirrus Logic CS4206 (Digital)> at nid 16 and 15 on hdaa0
ses0 at ahciem0 bus 0 scbus2 target 0 lun 0
ses0: <AHCI SGPIO Enclosure 1.00 0001> SEMB S-E-S 2.00 device
ses0: SEMB SES Device
ada0 at ahcich0 bus 0 scbus0 target 0 lun 0
ada0: ATA8-ACS SATA 3.x device
ada0: Serial Number S0X7NYAC802366
ada0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes)
ada0: Command Queueing enabled
ada0: 239372MB (490234752 512 byte sectors)
ada1 at ahcich1 bus 0 scbus1 target 0 lun 0
ada1: ATA8-ACS SATA 3.x device
ada1: Serial Number S0X7NYAC802356
ada1: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes)
ada1: Command Queueing enabled
ada1: 239372MB (490234752 512 byte sectors)
pcm2: <Cirrus Logic CS4206 (Analog Headphones)> at nid 10 on hdaa0
hdacc1: at cad 3 on hdac0
hdaa1: at nid 1 on hdacc1
hdaa1: hdaa_audio_as_parse: Duplicate pin 0 (6) in association 1! Disabling association.
hdaa1: hdaa_audio_as_parse: Duplicate pin 0 (7) in association 1! Disabling association.
ugen2.1: at usbus2
ugen1.1: at usbus1
uhub0: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1
ugen0.1: at usbus0
uhub1: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus2
uhub2: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
Trying to mount root from zfs:zroot/ROOT/default []...
Root mount waiting for: usbus3 usbus2 usbus1 usbus0
ugen3.1: at usbus3
uhub3: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus3
uhub1: 2 ports with 2 removable, self powered
uhub2: 2 ports with 2 removable, self powered
Root mount waiting for: usbus3 usbus1
Root mount waiting for: usbus3 usbus1
uhub0: 6 ports with 6 removable, self powered
Root mount waiting for: usbus3 usbus1
uhub3: 8 ports with 8 removable, self powered
ugen1.2: <vendor 0x0424 product 0x2513> at usbus1
uhub4 on uhub0
uhub4: <vendor 0x0424 product 0x2513, class 9/0, rev 2.00/b.b3, addr 2> on usbus1
uhub4: MTT enabled
uhub4: 3 ports with 2 removable, self powered
ugen3.2: <vendor 0x0424 product 0x2513> at usbus3
uhub5 on uhub3
uhub5: <vendor 0x0424 product 0x2513, class 9/0, rev 2.00/b.b3, addr 2> on usbus3
uhub5: MTT enabled
Root mount waiting for: usbus3 usbus1
ugen1.3: at usbus1
uhub6 on uhub4
uhub6: <Apple Inc. BRCM20702 Hub, class 9/0, rev 2.00/1.00, addr 3> on usbus1
uhub5: 3 ports with 2 removable, self powered
uhub6: 3 ports with 0 removable, self powered
Root mount waiting for: usbus3 usbus1
ugen3.3: <Apple Computer, Inc. IR Receiver> at usbus3
ugen1.4: <vendor 0x05ac product 0x820a> at usbus1
ukbd0 on uhub6
ukbd0: <vendor 0x05ac product 0x820a, class 0/0, rev 2.00/1.00, addr 4> on usbus1
kbd1 at ukbd0
ugen3.4: at usbus3
ukbd1 on uhub5
ukbd1: <Dell Dell USB Entry Keyboard, class 0/0, rev 1.10/1.15, addr 4> on usbus3
kbd2 at ukbd1
Root mount waiting for: usbus3 usbus1
ugen1.5: <vendor 0x05ac product 0x820b> at usbus1
ugen3.5: at usbus3
ugen1.6: at usbus1
info: [drm] Initialized drm 1.1.0 20060810
drmn0: <Intel SandyBridge (M)> on vgapci0
info: [drm] Memory usable by graphics device = 2048M
intel_iicbb0 on drmn0
iicbus0: on iicbb0 addr 0xff
iic0: <I2C generic I/O> on iicbus0
iicbus1: on intel_gmbus0
iic1: <I2C generic I/O> on iicbus1
intel_iicbb1 on drmn0
iicbus2: on iicbb1 addr 0xff
iic2: <I2C generic I/O> on iicbus2
iicbus3: on intel_gmbus1
iic3: <I2C generic I/O> on iicbus3
intel_iicbb2 on drmn0
iicbus4: on iicbb2 addr 0xff
iic4: <I2C generic I/O> on iicbus4
iicbus5: on intel_gmbus2
iic5: <I2C generic I/O> on iicbus5
intel_iicbb3 on drmn0
iicbus6: on iicbb3 addr 0xff
iic6: <I2C generic I/O> on iicbus6
iicbus7: on intel_gmbus3
iic7: <I2C generic I/O> on iicbus7
intel_iicbb4 on drmn0
iicbus8: on iicbb4 addr 0xff
iic8: <I2C generic I/O> on iicbus8
iicbus9: on intel_gmbus4
iic9: <I2C generic I/O> on iicbus9
intel_iicbb5 on drmn0
iicbus10: on iicbb5 addr 0xff
iic10: <I2C generic I/O> on iicbus10
iicbus11: on intel_gmbus5
iic11: <I2C generic I/O> on iicbus11
info: [drm] MSI enabled 1 message(s)
info: [drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
info: [drm] Driver supports precise vblank timestamp query.
intel_sdvo_ddc_proxy921920 on drmn0
intel_sdvo_ddc_proxy921920: detached
drm_iic_dp_aux0 on drmn0
drm_iic_dp_aux1 on drmn0
drm_iic_dp_aux2 on drmn0
drmn0: taking over the fictitious range 0x90000000-0xa0000000
info: [drm] Connector VGA-1: get mode from tunables:
info: [drm] - kern.vt.fb.modes.VGA-1
info: [drm] - kern.vt.fb.default_mode
info: [drm] Connector HDMI-A-1: get mode from tunables:
info: [drm] - kern.vt.fb.modes.HDMI-A-1
info: [drm] - kern.vt.fb.default_mode
info: [drm] Connector DP-1: get mode from tunables:
info: [drm] - kern.vt.fb.modes.DP-1
info: [drm] - kern.vt.fb.default_mode
info: [drm] Connector HDMI-A-2: get mode from tunables:
info: [drm] - kern.vt.fb.modes.HDMI-A-2
info: [drm] - kern.vt.fb.default_mode
info: [drm] Connector HDMI-A-3: get mode from tunables:
info: [drm] - kern.vt.fb.modes.HDMI-A-3
info: [drm] - kern.vt.fb.default_mode
info: [drm] Connector DP-2: get mode from tunables:
info: [drm] - kern.vt.fb.modes.DP-2
info: [drm] - kern.vt.fb.default_mode
info: [drm] Connector DP-3: get mode from tunables:
info: [drm] - kern.vt.fb.modes.DP-3
info: [drm] - kern.vt.fb.default_mode
info: [drm] GMBUS [i915 gmbus vga] timed out, falling back to bit banging on pin 2
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
drmn0: warning: VGA-1: EDID block 0 invalid.
info: [drm] Enabling RC6 states: RC6 on, RC6p off, RC6pp off
fbd0 on drmn0
VT: Replacing driver "efifb" with new "fb".
info: [drm] Initialized i915 1.6.0 20080730 for drmn0 on minor 0
bge0: link state changed to DOWN
uhid0 on uhub5
uhid0: <Apple Computer, Inc. IR Receiver, class 0/0, rev 2.00/0.16, addr 3> on usbus3
ums0 on uhub6
ums0: <vendor 0x05ac product 0x820b, class 0/0, rev 2.00/1.00, addr 5> on usbus1
ums0: 3 buttons and [XY] coordinates ID=2
ums1 on uhub5
ums1: <Logitech USB-PS2 Optical Mouse, class 0/0, rev 2.00/27.30, addr 5> on usbus3
ums1: 8 buttons and [XYZT] coordinates ID=0
ubt0 on uhub6
ubt0: <Apple Inc. Bluetooth USB Host Controller, rev 2.00/1.47, addr 6> on usbus1
WARNING: attempt to domain_add(bluetooth) after domainfinalize()
WARNING: attempt to domain_add(netgraph) after domainfinalize()
ugen1.4: <vendor 0x05ac product 0x820a> at usbus1 (disconnected)
ukbd0: at uhub6, port 1, addr 4 (disconnected)
ukbd0: detached
ugen1.5: <vendor 0x05ac product 0x820b> at usbus1 (disconnected)
ums0: at uhub6, port 2, addr 5 (disconnected)
ums0: detached
bge0: link state changed to UP

with drm-next, I got this panic:
drm-next

Kernel panic: Sleeping thread owns a non-sleepable lock

Running drm-next-kmod-g20171006_1 with recent-ish -CURRENT (actually a slightly modified -CURRENT), I'm seeing a "Sleeping thread owns a non-sleepable lock" panic after a bunch of warnings from drm_atomic.c:

Jan  8 08:48:19 tony kernel: WARNING !state->acquire_ctx failed at drm_atomic.c:634
Jan  8 08:48:19 tony kernel: WARNING !mutex_is_locked(&mode_config->mutex) && !drm_modeset_is_locked(&mode_config->connection_mutex) failed at /usr/home/jon/freebsd/ports/graphics/drm-next-kmod/work/kms-drm-63426fd/include/drm/drm_crtc.h:1403

I'll attached /var/log/messages, but unfortunately I wasn't able to get a dump due to a swap partition size issue.

text console has extreme lag (slowness) after loading i915kms

I tested on a Toshiba Satellite Z30-B-10W which has a CPU and Intel HD Graphics 5500 with latest FreeBSD 11.1-stable
tingo@kg-z30b$ uname -a
FreeBSD kg-z30b.kg4.no 11.1-STABLE FreeBSD 11.1-STABLE #1 r329829: Thu Feb 22 21:28:43 CET 2018 [email protected]:/usr/obj/usr/src/sys/GENERIC amd64
After booting with the new i915kms module loaded there is serious lag on the text console, making it hard to use (I can type a whole command before text shows on the screen). Luckily, I only need to log in and run startxfce4. And in Xorg everything works normally (I haven't done any testing of performance).
Relevant port versions
Feb 22 23:53:13 kg-z30b pkg-static: gpu-firmware-kmod-g20180206_1 installed
Feb 22 23:56:29 kg-z30b pkg-static: drm-next-kmod-g20180117_3 installed
Detailed information is on my web page for FreeBSD on this machine: https://sites.google.com/site/tingox/toshiba_satellite_z30-b-10w_freebsd
Hardware info on this page: https://sites.google.com/site/tingox/toshiba_satellite_z30-b-10w

Crash on 4.11: nmi_fromuserspace

Seeing this one only when running piglit. Unfortunately I can not build piglit with debug symbols myself. Some py-numpy related error....

#0  doadump (textdump=0) at pcpu.h:228
#1  0xffffffff81f672d8 in vt_kms_postswitch () from /boot/modules.JD411/drm.ko
#2  0xffffffff8054604a in vtterm_done (tm=<value optimized out>) at /usr/src/sys/dev/vt/vt_core.c:1301
#3  0xffffffff8070b433 in termcn_cnputc (cp=<value optimized out>, c=<value optimized out>) at /usr/src/sys/kern/subr_terminal.c:578
#4  0xffffffff80650c7d in cnputc (c=112) at /usr/src/sys/kern/kern_cons.c:494
#5  0xffffffff80650f38 in cnputs (p=<value optimized out>) at /usr/src/sys/kern/kern_cons.c:530
#6  0xffffffff806fd1b3 in vprintf (fmt=<value optimized out>, ap=<value optimized out>) at /usr/src/sys/kern/subr_prf.c:303
#7  0xffffffff806fd0d3 in printf (fmt=<value optimized out>) at /usr/src/sys/kern/subr_prf.c:406
#8  0xffffffff806b12eb in vpanic (fmt=0xffffffff80aeda68 "%s", ap=0xfffffe00035b5c80) at /usr/src/sys/kern/kern_shutdown.c:788
#9  0xffffffff806b13f3 in panic (fmt=<value optimized out>) at /usr/src/sys/kern/kern_shutdown.c:738
#10 0xffffffff80a2868f in trap_fatal (frame=0xfffffe00035b5e70, eva=288) at /usr/src/sys/amd64/amd64/trap.c:813
#11 0xffffffff80a28702 in trap_pfault (frame=0xfffffe00035b5e70, usermode=0) at pcpu.h:228
#12 0xffffffff80a27eea in trap (frame=0xfffffe00035b5e70) at /usr/src/sys/amd64/amd64/trap.c:417
#13 0xffffffff80a04ded in calltrap () at /usr/src/sys/amd64/amd64/exception.S:232
#14 0xffffffff80a0578e in nmi_fromuserspace () at /usr/src/sys/amd64/amd64/exception.S:582
#15 0x00000000000000e0 in ?? ()
#16 0x0000000000000080 in ?? ()
#17 0x0000000000000003 in ?? ()
#18 0x0000000000000005 in ?? ()
#19 0x00007fffffff8430 in ?? ()
#20 0x00007fffffff8400 in ?? ()
#21 0x0000000000000005 in ?? ()
#22 0x0000000000000000 in ?? ()

i915kms has broken OpenCL after 4.11 update

Trying to use OpenCL tends to hang GPU. Worked fine on drm-next-kmod based on Linux 4.9.

$ pkg install beignet clpeak waifu2x-converter-cpp ca_root_nss

$ LD_PRELOAD=/lib/libthr.so.3 clpeak
Platform: Intel Gen OCL Driver
  Device: Intel(R) HD Graphics Skylake Desktop GT2
    Driver version  : 1.3 (FreeBSD)
    Compute units   : 24
    Clock frequency : 1000 MHz

    Global memory bandwidth (GBPS)
      float   : 34.37
      float2  : 32.29
      float4  : 34.99
      float8  : 35.66
      float16 : 34.01

    Single-precision compute (GFLOPS)
      float   : drm_intel_gem_bo_context_exec() failed: Input/output error
drm_intel_gem_bo_context_exec() failed: Input/output error
drm_intel_gem_bo_context_exec() failed: Input/output error
drm_intel_gem_bo_context_exec() failed: Input/output error
^C

$ waifu2x-converter-cpp --list-processor
   0: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz     (FMA       ): num_core=8
   1: Intel(R) HD Graphics Skylake Desktop GT2     (OpenCL    ): num_core=24
Nothing to output !

$ fetch https://github.com/nagadomi/waifu2x/raw/master/images/miku_CC_BY-NC_noisy.jpg
$ waifu2x-converter-cpp --force-OpenCL -i miku_CC_BY-NC_noisy.jpg -o miku2x.png
OpenCL: Intel(R) HD Graphics Skylake Desktop GT2
start process block (0,0) ...
^C

dmesg:

[drm] GPU HANG: ecode 9:0:0x8ed9fff2, in clpeak [1088], reason: Hang on render ring, action: reset
drm/i915: Resetting chip after gpu hang
[drm] RC6 on
[drm] GuC firmware load skipped
drm/i915: Resetting chip after gpu hang
[drm] RC6 on
[drm] GuC firmware load skipped
drm/i915: Resetting chip after gpu hang
[drm] RC6 on
[drm] GuC firmware load skipped
drm/i915: Resetting chip after gpu hang
[drm] RC6 on
[drm] GuC firmware load skipped
drm/i915: Resetting chip after gpu hang
[drm] RC6 on
[drm] GuC firmware load skipped

Kernel panic loading i915kms.ko

I'm running CURRENT with what I believe is a Kabylake Intel HD graphics card. After I upgraded from a December snapshot, I now get kernel panics when I try to load the i915kms kernel module provided by drm-next-kmod. I've attached some output I got from running kgdb on the vmcore file dumped during the crash.

log.txt

Here are the relevant pciconf lines:

vgapci0@pci0:0:2:0:     class=0x030000 card=0x07bf1028 chip=0x591b8086 rev=0x04 hdr=0x00
    vendor     = 'Intel Corporation'                                                    
    class      = display            
    subclass   = VGA

Let me know if there's anything else I can provide.

amdgpu on RX560D: resolution/modeline trouble when using HDMI cable

On a freshly installed 11.1-stable system with a Sapphire Pulse RX560(D) connected to a LG 43UD79-B 43in/UHD/4K monitor I get only 1920x1080 resolution when using a HDMI cable.

Using DP everything works out fine. The sytem has troubles loading the gpu firmware (see #47, also see here for /var/log/message output) and the X does not recognise the PCI id of the card (see #48, also see here for Xorg.0.log of working DP connection).

This is not really a problem for me, but I thought I'd mention it.

Thanks, Mathias

(X actually worked with the following config, HD only. I've no idea what the signal 11 seg fault at the end means...)
---- /var/log/Xorg.0.log when HDMI cable is used (see #48 for a log of the same system with DP cable)
[ 29.559]
X.Org X Server 1.18.4
Release Date: 2016-07-19
[ 29.559] X Protocol Version 11, Revision 0
[ 29.559] Build Operating System: FreeBSD 11.1-RELEASE-p8 amd64
[ 29.560] Current Operating System: FreeBSD marcopolo 11.1-STABLE FreeBSD 11.1-STABLE #0 r331269: Wed Mar 21 11:43:02 CET 2018 root@marcopolo:/usr/obj/usr/src/sys/GENERIC amd64
[ 29.560] Build Date: 15 March 2018 08:13:21AM
[ 29.560]
[ 29.560] Current version of pixman: 0.34.0
[ 29.560] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 29.560] Markers: (--) probed, () from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 29.560] (==) Log file: "/var/log/Xorg.0.log", Time: Wed Mar 21 15:48:10 2018
[ 29.563] (II) Loader magic: 0x80cc10
[ 29.563] (II) Module ABI versions:
[ 29.563] X.Org ANSI C Emulation: 0.4
[ 29.563] X.Org Video Driver: 20.0
[ 29.563] X.Org XInput driver : 22.1
[ 29.563] X.Org Server Extension : 9.0
[ 29.563] (--) PCI:*(0:2:0:0) 1002:67ef:1da2:e348 rev 229, Mem @ 0xd0000000/268435456, 0xcfe00000/2097152, 0xfe8c0000/262144, I/O @ 0x0000b000/256, BIOS @ 0x????????/65536
[ 29.563] (==) Using default built-in configuration (39 lines)
[ 29.563] (==) --- Start of built-in configuration ---
[ 29.563] Section "Device"
[ 29.563] Identifier "Builtin Default ati Device 0"
[ 29.563] Driver "ati"
[ 29.563] EndSection
[ 29.563] Section "Screen"
[ 29.563] Identifier "Builtin Default ati Screen 0"
[ 29.563] Device "Builtin Default ati Device 0"
[ 29.563] EndSection
[ 29.564] Section "Device"
[ 29.564] Identifier "Builtin Default modesetting Device 0"
[ 29.564] Driver "modesetting"
[ 29.564] EndSection
[ 29.564] Section "Screen"
[ 29.564] Identifier "Builtin Default modesetting Screen 0"
[ 29.564] Device "Builtin Default modesetting Device 0"
[ 29.564] EndSection
[ 29.564] Section "Device"
[ 29.564] Identifier "Builtin Default scfb Device 0"
[ 29.564] Driver "scfb"
[ 29.564] EndSection
[ 29.564] Section "Screen"
[ 29.564] Identifier "Builtin Default scfb Screen 0"
[ 29.564] Device "Builtin Default scfb Device 0"
[ 29.564] EndSection
[ 29.564] Section "Device"
[ 29.564] Identifier "Builtin Default vesa Device 0"
[ 29.564] Driver "vesa"
[ 29.564] EndSection
[ 29.564] Section "Screen"
[ 29.564] Identifier "Builtin Default vesa Screen 0"
[ 29.564] Device "Builtin Default vesa Device 0"
[ 29.564] EndSection
[ 29.564] Section "ServerLayout"
[ 29.564] Identifier "Builtin Default Layout"
[ 29.564] Screen "Builtin Default ati Screen 0"
[ 29.564] Screen "Builtin Default modesetting Screen 0"
[ 29.564] Screen "Builtin Default scfb Screen 0"
[ 29.564] Screen "Builtin Default vesa Screen 0"
[ 29.564] EndSection
[ 29.564] (==) --- End of built-in configuration ---
[ 29.565] (==) ServerLayout "Builtin Default Layout"
[ 29.565] (
) |-->Screen "Builtin Default ati Screen 0" (0)
[ 29.565] () | |-->Monitor ""
[ 29.565] (
) | |-->Device "Builtin Default ati Device 0"
[ 29.565] (==) No monitor specified for screen "Builtin Default ati Screen 0".
Using a default monitor configuration.
[ 29.565] () |-->Screen "Builtin Default modesetting Screen 0" (1)
[ 29.565] (
) | |-->Monitor ""
[ 29.565] () | |-->Device "Builtin Default modesetting Device 0"
[ 29.565] (==) No monitor specified for screen "Builtin Default modesetting Screen 0".
Using a default monitor configuration.
[ 29.565] (
) |-->Screen "Builtin Default scfb Screen 0" (2)
[ 29.565] () | |-->Monitor ""
[ 29.565] (
) | |-->Device "Builtin Default scfb Device 0"
[ 29.565] (==) No monitor specified for screen "Builtin Default scfb Screen 0".
Using a default monitor configuration.
[ 29.565] () |-->Screen "Builtin Default vesa Screen 0" (3)
[ 29.565] (
) | |-->Monitor ""
[ 29.566] (**) | |-->Device "Builtin Default vesa Device 0"
[ 29.566] (==) No monitor specified for screen "Builtin Default vesa Screen 0".
Using a default monitor configuration.
[ 29.566] (==) Automatically adding devices
[ 29.566] (==) Automatically enabling devices
[ 29.566] (==) Not automatically adding GPU devices
[ 29.566] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 29.572] (==) FontPath set to:
/usr/local/share/fonts/misc/,
/usr/local/share/fonts/TTF/,
/usr/local/share/fonts/OTF/,
/usr/local/share/fonts/Type1/,
/usr/local/share/fonts/100dpi/,
/usr/local/share/fonts/75dpi/
[ 29.572] (==) ModulePath set to "/usr/local/lib/xorg/modules"
[ 29.572] (II) The server relies on devd to provide the list of input devices.
If no devices become available, reconfigure devd or disable AutoAddDevices.
[ 29.572] (II) LoadModule: "glx"
[ 29.573] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so
[ 29.587] (II) Module glx: vendor="X.Org Foundation"
[ 29.587] compiled for 1.18.4, module version = 1.0.0
[ 29.587] ABI class: X.Org Server Extension, version 9.0
[ 29.587] (==) AIGLX enabled
[ 29.587] (II) LoadModule: "ati"
[ 29.588] (WW) Warning, couldn't open module ati
[ 29.588] (II) UnloadModule: "ati"
[ 29.589] (II) Unloading ati
[ 29.589] (EE) Failed to load module "ati" (module does not exist, 0)
[ 29.589] (II) LoadModule: "modesetting"
[ 29.589] (II) Loading /usr/local/lib/xorg/modules/drivers/modesetting_drv.so
[ 29.590] (II) Module modesetting: vendor="X.Org Foundation"
[ 29.590] compiled for 1.18.4, module version = 1.18.4
[ 29.590] Module class: X.Org Video Driver
[ 29.590] ABI class: X.Org Video Driver, version 20.0
[ 29.590] (II) LoadModule: "scfb"
[ 29.590] (II) Loading /usr/local/lib/xorg/modules/drivers/scfb_drv.so
[ 29.591] (II) Module scfb: vendor="X.Org Foundation"
[ 29.591] compiled for 1.18.4, module version = 0.0.4
[ 29.591] ABI class: X.Org Video Driver, version 20.0
[ 29.591] (II) LoadModule: "vesa"
[ 29.591] (II) Loading /usr/local/lib/xorg/modules/drivers/vesa_drv.so
[ 29.592] (II) Module vesa: vendor="X.Org Foundation"
[ 29.592] compiled for 1.18.4, module version = 2.3.4
[ 29.592] Module class: X.Org Video Driver
[ 29.592] ABI class: X.Org Video Driver, version 20.0
[ 29.592] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 29.592] (II) scfb: driver for wsdisplay framebuffer: scfb
[ 29.592] (II) VESA: driver for VESA chipsets: vesa
[ 29.592] (--) Using syscons driver with X support (version 2.0)
[ 29.592] (--) using VT number 9

[ 29.595] () modeset(0): claimed PCI slot 2@0:0:0
[ 29.595] (II) modeset(0): using default device
[ 29.595] (WW) Falling back to old probe method for scfb
[ 29.595] scfb trace: probe start
[ 29.595] scfb trace: probe done
[ 29.595] (WW) Falling back to old probe method for vesa
[ 29.595] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[ 29.597] (II) modeset(0): Creating default Display subsection in Screen section
"Builtin Default modesetting Screen 0" for depth/fbbpp 24/32
[ 29.597] (==) modeset(0): Depth 24, (==) framebuffer bpp 32
[ 29.597] (==) modeset(0): RGB weight 888
[ 29.597] (==) modeset(0): Default visual is TrueColor
[ 29.597] (II) Loading sub module "glamoregl"
[ 29.597] (II) LoadModule: "glamoregl"
[ 29.597] (II) Loading /usr/local/lib/xorg/modules/libglamoregl.so
[ 29.618] (II) Module glamoregl: vendor="X.Org Foundation"
[ 29.618] compiled for 1.18.4, module version = 1.0.0
[ 29.618] ABI class: X.Org ANSI C Emulation, version 0.4
[ 29.618] (II) glamor: OpenGL accelerated X.org driver based.
[ 30.161] (II) glamor: EGL version 1.5 (DRI2):
[ 30.176] (II) modeset(0): glamor initialized
[ 30.194] (II) modeset(0): Output DP-1 has no monitor section
[ 30.254] (II) modeset(0): Output HDMI-1 has no monitor section
[ 30.254] (II) modeset(0): Output DVI-D-1 has no monitor section
[ 30.272] (II) modeset(0): EDID for output DP-1
[ 30.332] (II) modeset(0): EDID for output HDMI-1
[ 30.332] (II) modeset(0): Manufacturer: GSM Model: 5b08 Serial#: 364305
[ 30.332] (II) modeset(0): Year: 2017 Week: 9
[ 30.332] (II) modeset(0): EDID Version: 1.3
[ 30.332] (II) modeset(0): Digital Display Input
[ 30.332] (II) modeset(0): Max Image Size [cm]: horiz.: 60 vert.: 34
[ 30.333] (II) modeset(0): Gamma: 2.20
[ 30.333] (II) modeset(0): DPMS capabilities: StandBy Suspend Off
[ 30.333] (II) modeset(0): Supported color encodings: RGB 4:4:4 YCrCb 4:4:4
[ 30.333] (II) modeset(0): First detailed timing is preferred mode
[ 30.333] (II) modeset(0): redX: 0.652 redY: 0.335 greenX: 0.305 greenY: 0.637
[ 30.333] (II) modeset(0): blueX: 0.148 blueY: 0.062 whiteX: 0.313 whiteY: 0.329
[ 30.333] (II) modeset(0): Supported established timings:
[ 30.333] (II) modeset(0): 640x480@60Hz
[ 30.333] (II) modeset(0): 800x600@60Hz
[ 30.333] (II) modeset(0): 1024x768@60Hz
[ 30.333] (II) modeset(0): Manufacturer's mask: 0
[ 30.333] (II) modeset(0): Supported standard timings:
[ 30.333] (II) modeset(0): #0: hsize: 1152 vsize 864 refresh: 60 vid: 16497
[ 30.333] (II) modeset(0): #1: hsize: 1280 vsize 1024 refresh: 60 vid: 32897
[ 30.333] (II) modeset(0): #2: hsize: 1280 vsize 720 refresh: 60 vid: 49281
[ 30.333] (II) modeset(0): #3: hsize: 1600 vsize 900 refresh: 60 vid: 49321
[ 30.333] (II) modeset(0): #4: hsize: 1920 vsize 1080 refresh: 60 vid: 49361
[ 30.333] (II) modeset(0): #5: hsize: 1280 vsize 800 refresh: 60 vid: 129
[ 30.333] (II) modeset(0): Supported detailed timing:
[ 30.333] (II) modeset(0): clock: 297.0 MHz Image Size: 600 x 340 mm
[ 30.333] (II) modeset(0): h_active: 3840 h_sync: 4016 h_sync_end 4104 h_blank_end 4400 h_border: 0
[ 30.333] (II) modeset(0): v_active: 2160 v_sync: 2168 v_sync_end 2178 v_blanking: 2250 v_border: 0
[ 30.333] (II) modeset(0): Supported detailed timing:
[ 30.333] (II) modeset(0): clock: 241.5 MHz Image Size: 600 x 340 mm
[ 30.334] (II) modeset(0): h_active: 2560 h_sync: 2608 h_sync_end 2640 h_blank_end 2720 h_border: 0
[ 30.334] (II) modeset(0): v_active: 1440 v_sync: 1443 v_sync_end 1448 v_blanking: 1481 v_border: 0
[ 30.334] (II) modeset(0): Ranges: V min: 56 V max: 61 Hz, H min: 30 H max: 135 kHz, PixClock max 305 MHz
[ 30.334] (II) modeset(0): Monitor name: LG Ultra HD
[ 30.334] (II) modeset(0): Number of EDID sections to follow: 1
[ 30.334] (II) modeset(0): EDID (in hex):
[ 30.334] (II) modeset(0): 00ffffffffffff001e6d085b118f0500
[ 30.334] (II) modeset(0): 091b0103803c2278ea3035a7554ea326
[ 30.334] (II) modeset(0): 0f50542108007140818081c0a9c0d1c0
[ 30.334] (II) modeset(0): 81000101010104740030f2705a80b058
[ 30.334] (II) modeset(0): 8a0058542100001e565e00a0a0a02950
[ 30.334] (II) modeset(0): 3020350058542100001a000000fd0038
[ 30.334] (II) modeset(0): 3d1e871e000a202020202020000000fc
[ 30.334] (II) modeset(0): 004c4720556c7472612048440a2001de
[ 30.334] (II) modeset(0): 00ffffffffffff001e6d085b118f0500
[ 30.334] (II) modeset(0): 091b0103803c2278ea3035a7554ea326
[ 30.334] (II) modeset(0): 0f50542108007140818081c0a9c0d1c0
[ 30.334] (II) modeset(0): 81000101010104740030f2705a80b058
[ 30.334] (II) modeset(0): 8a0058542100001e565e00a0a0a02950
[ 30.334] (II) modeset(0): 3020350058542100001a000000fd0038
[ 30.334] (II) modeset(0): 3d1e871e000a202020202020000000fc
[ 30.334] (II) modeset(0): 004c4720556c7472612048440a2001de
[ 30.335] (II) modeset(0): Printing probed modes for output HDMI-1
[ 30.335] (II) modeset(0): Modeline "1920x1080"x60.0 148.50 1920 2008 2052 2200 1080 1084 1089 1125 -hsync -vsync (67.5 kHz e)
[ 30.335] (II) modeset(0): Modeline "1400x1050"x60.0 122.00 1400 1488 1640 1880 1050 1052 1064 1082 +hsync +vsync (64.9 kHz d)
[ 30.335] (II) modeset(0): Modeline "1600x900"x60.0 108.00 1600 1624 1704 1800 900 901 904 1000 +hsync +vsync (60.0 kHz e)
[ 30.335] (II) modeset(0): Modeline "1280x1024"x60.0 108.00 1280 1328 1440 1688 1024 1025 1028 1066 +hsync +vsync (64.0 kHz e)
[ 30.335] (II) modeset(0): Modeline "1280x960"x60.0 108.00 1280 1376 1488 1800 960 961 964 1000 +hsync +vsync (60.0 kHz d)
[ 30.335] (II) modeset(0): Modeline "1280x800"x59.9 71.00 1280 1328 1360 1440 800 803 809 823 +hsync -vsync (49.3 kHz e)
[ 30.335] (II) modeset(0): Modeline "1152x864"x60.0 81.58 1152 1216 1336 1520 864 865 868 895 -hsync +vsync (53.7 kHz)
[ 30.335] (II) modeset(0): Modeline "1280x720"x60.0 74.25 1280 1390 1430 1650 720 725 730 750 +hsync +vsync (45.0 kHz e)
[ 30.335] (II) modeset(0): Modeline "1024x768"x60.0 133.47 1024 1100 1212 1400 768 768 770 794 doublescan -hsync +vsync (95.3 kHz d)
[ 30.335] (II) modeset(0): Modeline "1024x768"x60.0 65.00 1024 1048 1184 1344 768 771 777 806 -hsync -vsync (48.4 kHz e)
[ 30.335] (II) modeset(0): Modeline "960x720"x60.0 117.00 960 1024 1128 1300 720 720 722 750 doublescan -hsync +vsync (90.0 kHz d)
[ 30.335] (II) modeset(0): Modeline "928x696"x60.1 109.15 928 976 1088 1264 696 696 698 719 doublescan -hsync +vsync (86.4 kHz d)
[ 30.335] (II) modeset(0): Modeline "896x672"x60.0 102.40 896 960 1060 1224 672 672 674 697 doublescan -hsync +vsync (83.7 kHz d)
[ 30.335] (II) modeset(0): Modeline "800x600"x60.0 81.00 800 832 928 1080 600 600 602 625 doublescan +hsync +vsync (75.0 kHz d)
[ 30.335] (II) modeset(0): Modeline "800x600"x60.3 40.00 800 840 968 1056 600 601 605 628 +hsync +vsync (37.9 kHz e)
[ 30.335] (II) modeset(0): Modeline "800x600"x56.2 36.00 800 824 896 1024 600 601 603 625 +hsync +vsync (35.2 kHz d)
[ 30.335] (II) modeset(0): Modeline "700x525"x60.0 61.00 700 744 820 940 525 526 532 541 doublescan +hsync +vsync (64.9 kHz d)
[ 30.335] (II) modeset(0): Modeline "640x512"x60.0 54.00 640 664 720 844 512 512 514 533 doublescan +hsync +vsync (64.0 kHz d)
[ 30.335] (II) modeset(0): Modeline "640x480"x60.0 54.00 640 688 744 900 480 480 482 500 doublescan +hsync +vsync (60.0 kHz d)
[ 30.336] (II) modeset(0): Modeline "640x480"x59.9 25.18 640 656 752 800 480 490 492 525 -hsync -vsync (31.5 kHz e)
[ 30.336] (II) modeset(0): Modeline "512x384"x60.0 32.50 512 524 592 672 384 385 388 403 doublescan -hsync -vsync (48.4 kHz d)
[ 30.336] (II) modeset(0): Modeline "400x300"x60.3 20.00 400 420 484 528 300 300 302 314 doublescan +hsync +vsync (37.9 kHz d)
[ 30.336] (II) modeset(0): Modeline "400x300"x56.3 18.00 400 412 448 512 300 300 301 312 doublescan +hsync +vsync (35.2 kHz d)
[ 30.336] (II) modeset(0): Modeline "320x240"x60.1 12.59 320 328 376 400 240 245 246 262 doublescan -hsync -vsync (31.5 kHz d)
[ 30.336] (II) modeset(0): EDID for output DVI-D-1
[ 30.336] (II) modeset(0): Output DP-1 disconnected
[ 30.336] (II) modeset(0): Output HDMI-1 connected
[ 30.336] (II) modeset(0): Output DVI-D-1 disconnected
[ 30.336] (II) modeset(0): Using exact sizes for initial modes
[ 30.336] (II) modeset(0): Output HDMI-1 using initial mode 1920x1080 +0+0
[ 30.336] (II) modeset(0): Using default gamma of (1.0, 1.0, 1.0) unless otherwise stated.
[ 30.336] (==) modeset(0): DPI set to (96, 96)
[ 30.336] (II) Loading sub module "fb"
[ 30.336] (II) LoadModule: "fb"
[ 30.337] (II) Loading /usr/local/lib/xorg/modules/libfb.so
[ 30.339] (II) Module fb: vendor="X.Org Foundation"
[ 30.339] compiled for 1.18.4, module version = 1.0.0
[ 30.339] ABI class: X.Org ANSI C Emulation, version 0.4
[ 30.339] (II) UnloadModule: "scfb"
[ 30.339] (II) Unloading scfb
[ 30.339] (II) UnloadModule: "vesa"
[ 30.339] (II) Unloading vesa
[ 30.340] (==) Depth 24 pixmap format is 32 bpp
[ 30.357] (==) modeset(0): Backing store enabled
[ 30.357] (==) modeset(0): Silken mouse enabled
[ 30.357] (II) modeset(0): RandR 1.2 enabled, ignore the following RandR disabled message.
[ 30.640] (==) modeset(0): DPMS enabled
[ 30.640] (EE) modeset(0): [DRI2] No driver mapping found for PCI device 0x1002 / 0x67ef
[ 30.640] (EE) modeset(0): Failed to initialize the DRI2 extension.
[ 30.643] (--) RandR disabled
[ 30.645] (II) AIGLX: Screen 0 is not DRI2 capable
[ 30.645] (EE) AIGLX: reverting to software rendering
[ 30.649] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
[ 30.650] (II) AIGLX: Loaded and initialized swrast
[ 30.650] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[ 30.653] (II) modeset(0): Setting screen physical size to 508 x 285
[ 30.818] (II) config/devd: probing input devices...
[ 30.818] (II) config/devd: adding input device (null) (/dev/kbdmux)
[ 30.818] (II) LoadModule: "kbd"
[ 30.818] (II) Loading /usr/local/lib/xorg/modules/input/kbd_drv.so
[ 30.819] (II) Module kbd: vendor="X.Org Foundation"
[ 30.819] compiled for 1.18.4, module version = 1.9.0
[ 30.819] Module class: X.Org XInput Driver
[ 30.819] ABI class: X.Org XInput driver, version 22.1
[ 30.819] (II) Using input driver 'kbd' for 'kbdmux'
[ 30.819] (
) kbdmux: always reports core events
[ 30.819] () kbdmux: always reports core events
[ 30.819] (
) Option "Protocol" "standard"
[ 30.819] () Option "XkbRules" "base"
[ 30.819] (
) Option "XkbModel" "pc105"
[ 30.819] () Option "XkbLayout" "us"
[ 30.819] (
) Option "config_info" "devd:kbdmux"
[ 30.819] (II) XINPUT: Adding extended input device "kbdmux" (type: KEYBOARD, id 6)
[ 30.820] (II) config/devd: kbdmux is enabled, ignoring device ukbd0
[ 30.820] (II) config/devd: kbdmux is enabled, ignoring device ukbd1
[ 30.820] (II) config/devd: kbdmux is enabled, ignoring device atkbd0
[ 30.820] (II) config/devd: adding input device (null) (/dev/sysmouse)
[ 30.820] (II) LoadModule: "mouse"
[ 30.820] (II) Loading /usr/local/lib/xorg/modules/input/mouse_drv.so
[ 30.822] (II) Module mouse: vendor="X.Org Foundation"
[ 30.822] compiled for 1.18.4, module version = 1.9.2
[ 30.822] Module class: X.Org XInput Driver
[ 30.822] ABI class: X.Org XInput driver, version 22.1
[ 30.822] (II) Using input driver 'mouse' for 'sysmouse'
[ 30.822] () sysmouse: always reports core events
[ 30.822] (
) Option "Device" "/dev/sysmouse"
[ 30.822] (==) sysmouse: Protocol: "Auto"
[ 30.822] () sysmouse: always reports core events
[ 30.822] (==) sysmouse: Emulate3Buttons, Emulate3Timeout: 50
[ 30.822] (
) sysmouse: ZAxisMapping: buttons 4 and 5
[ 30.822] () sysmouse: Buttons: 5
[ 30.822] (
) Option "config_info" "devd:sysmouse"
[ 30.822] (II) XINPUT: Adding extended input device "sysmouse" (type: MOUSE, id 7)
[ 30.822] () sysmouse: (accel) keeping acceleration scheme 1
[ 30.822] (
) sysmouse: (accel) acceleration profile 0
[ 30.822] () sysmouse: (accel) acceleration factor: 2.000
[ 30.823] (
) sysmouse: (accel) acceleration threshold: 4
[ 30.823] (II) sysmouse: SetupAuto: hw.iftype is 4, hw.model is 0
[ 30.823] (II) sysmouse: SetupAuto: protocol is SysMouse
[ 30.823] (II) config/devd: device /dev/ums0 already opened
[ 241.761] (II) modeset(0): EDID vendor "GSM", prod id 23304
[ 241.762] (II) modeset(0): Using EDID range info for horizontal sync
[ 241.762] (II) modeset(0): Using EDID range info for vertical refresh
[ 241.762] (II) modeset(0): Printing DDC gathered Modelines:
[ 241.762] (II) modeset(0): Modeline "3840x2160"x0.0 297.00 3840 4016 4104 4400 2160 2168 2178 2250 +hsync +vsync (67.5 kHz eP)
[ 241.762] (II) modeset(0): Modeline "2560x1440"x0.0 241.50 2560 2608 2640 2720 1440 1443 1448 1481 +hsync -vsync (88.8 kHz e)
[ 241.762] (II) modeset(0): Modeline "800x600"x0.0 40.00 800 840 968 1056 600 601 605 628 +hsync +vsync (37.9 kHz e)
[ 241.762] (II) modeset(0): Modeline "640x480"x0.0 25.18 640 656 752 800 480 490 492 525 -hsync -vsync (31.5 kHz e)
[ 241.762] (II) modeset(0): Modeline "1024x768"x0.0 65.00 1024 1048 1184 1344 768 771 777 806 -hsync -vsync (48.4 kHz e)
[ 241.762] (II) modeset(0): Modeline "1152x864"x60.0 81.62 1152 1216 1336 1520 864 865 868 895 -hsync +vsync (53.7 kHz e)
[ 241.762] (II) modeset(0): Modeline "1280x1024"x0.0 108.00 1280 1328 1440 1688 1024 1025 1028 1066 +hsync +vsync (64.0 kHz e)
[ 241.762] (II) modeset(0): Modeline "1280x720"x60.0 74.48 1280 1336 1472 1664 720 721 724 746 -hsync +vsync (44.8 kHz e)
[ 241.762] (II) modeset(0): Modeline "1600x900"x60.0 119.00 1600 1696 1864 2128 900 901 904 932 -hsync +vsync (55.9 kHz e)
[ 241.762] (II) modeset(0): Modeline "1920x1080"x60.0 172.80 1920 2040 2248 2576 1080 1081 1084 1118 -hsync +vsync (67.1 kHz e)
[ 241.762] (II) modeset(0): Modeline "1280x800"x0.0 71.00 1280 1328 1360 1440 800 803 809 823 +hsync -vsync (49.3 kHz e)
[ 280.076] (II) config/devd: terminating backend...
[ 280.077] (II) UnloadModule: "mouse"
[ 280.077] (II) UnloadModule: "kbd"
[ 280.079] (EE)
[ 280.079] (EE) Backtrace:
[ 280.084] (EE) 0: /usr/local/bin/X (OsInit+0x37a) [0x5a3b4a]
[ 280.088] (EE) 1: /lib/libthr.so.3 (_pthread_sigmask+0x544) [0x8025f2d64]
[ 280.091] (EE) 2: /lib/libthr.so.3 (_pthread_getspecific+0xe2f) [0x8025f2b8f]
[ 280.094] (EE) 3: ? (?+0xe2f) [0x7ffffffffe32]
[ 280.097] (EE) 4: /usr/local/bin/X (DRI2CloseScreen+0x4b) [0x57234b]
[ 280.101] (EE) 5: /usr/local/lib/xorg/modules/drivers/modesetting_drv.so (_init+0x35f1) [0x80631a291]
[ 280.104] (EE) 6: /usr/local/bin/X (xf86CrtcScreenInit+0x1b9) [0x4ac649]
[ 280.107] (EE) 7: /usr/local/bin/X (present_screen_init+0x1fa) [0x51a21a]
[ 280.110] (EE) 8: /usr/local/bin/X (CompositeRegisterImplicitRedirectionException+0x5b28) [0x4d37e8]
[ 280.113] (EE) 9: /usr/local/bin/X (AddTraps+0x6c10) [0x51ea20]
[ 280.116] (EE) 10: /usr/local/bin/X (remove_fs_handlers+0x71c) [0x43abfc]
[ 280.119] (EE) 11: /usr/local/bin/X (_start+0x17f) [0x42506f]
[ 280.122] (EE) 12: ? (?+0x17f) [0x80082d17f]
[ 280.122] (EE)
[ 280.122] (EE) Segmentation fault at address 0x90
[ 280.122] (EE)
Fatal server error:
[ 280.122] (EE) Caught signal 11 (Segmentation fault). Server aborting
[ 280.122] (EE)
[ 280.123] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 280.123] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 280.123] (EE)
[ 280.123] (EE) Server terminated with error (1). Closing log file.

Crash on 4.11: double free

One of three occasional crashes I'm seeing. Crashes can easily be triggered by running piglit.

#1  0xffffffff81f672d8 in vt_kms_postswitch () from /boot/modules.JD411/drm.ko
#2  0xffffffff80548fab in vt_window_switch (vw=0xfffff800029b3440) at /usr/src/sys/dev/vt/vt_core.c:542
#3  0xffffffff80546700 in vtterm_cngrab (tm=<value optimized out>) at /usr/src/sys/dev/vt/vt_core.c:1509
#4  0xffffffff806507f2 in cngrab () at /usr/src/sys/kern/kern_cons.c:370
#5  0xffffffff806b12bb in vpanic (fmt=0xffffffff80af2f86 "Duplicate free of %p from zone %p(%s) slab %p(%d)\n", 
    ap=0xfffffe00406c6880) at /usr/src/sys/kern/kern_shutdown.c:785
#6  0xffffffff806b13f3 in panic (fmt=<value optimized out>) at /usr/src/sys/kern/kern_shutdown.c:738
#7  0xffffffff809cda29 in uma_dbg_free (zone=<value optimized out>, slab=<value optimized out>, item=<value optimized out>)
    at atomic.h:450
#8  0xffffffff809cd3a5 in uma_zfree_arg (zone=0xfffff800049c3a80, item=0xfffff800897c4600, udata=0x0) at pcpu.h:228
#9  0xffffffff81f9f9a2 in linux_rcu_cleaner_func (context=<value optimized out>, pending=<value optimized out>)
    at /usr/src/sys/compat/linuxkpi/common/src/linux_rcu.c:167
#10 0xffffffff80709a5c in taskqueue_run_locked (queue=0xfffff8000268a000) at /usr/src/sys/kern/subr_taskqueue.c:465
#11 0xffffffff807098ca in taskqueue_run (queue=0xfffff8000268a000) at /usr/src/sys/kern/subr_taskqueue.c:484
#12 0xffffffff806743a9 in intr_event_execute_handlers (p=<value optimized out>, ie=0xfffff80002689e00)
    at /usr/src/sys/kern/kern_intr.c:1338
#13 0xffffffff80674a97 in ithread_loop (arg=0xfffff80002692f20) at /usr/src/sys/kern/kern_intr.c:1351
#14 0xffffffff80671774 in fork_exit (callout=0xffffffff806749e0 <ithread_loop>, arg=0xfffff80002692f20, frame=0xfffffe00406c6ac0)
    at /usr/src/sys/kern/kern_fork.c:1039
#15 0xffffffff80a058ae in fork_trampoline () at /usr/src/sys/amd64/amd64/exception.S:687

graphics/drm-next-kmod: /boot/modules/radeonkms.ko can not be loaded

radeonkms.ko module from graphics/drm-next-kmod (ports r453059) can't be loaded:

# kldload /boot/modules/radeonkms.ko
kldload: an error occurred while loading module /boot/modules/radeonkms.ko. Please check dmesg(8) for more details.

dmesg's output:

link_elf_obj: symbol radeon_kms_compat_ioctl undefined
linker_load_file: /boot/modules/radeonkms.ko - unsupported file type

nm's output:

# nm /boot/modules/radeonkms.ko | grep radeon_kms_compat_ioctl
                 U radeon_kms_compat_ioctl

radeon_kms_compat_ioctl() definition in radeon/radeon_ioc32.c, but adding this file into Makefile breaks build.
After commenting out radeon_kms_compat_ioctl() in radeon/radeon_drv.c, and now module works for me. But on reboot or shutdown I got Fatal trap 12 after message:
VT: Switching back from "fb" to "vga".

PS. May be only ports version affected. radeonkms module in /freebsd-base-graphics/ 1f8dbbb2ab2 was not affected.
PPS. I can make additional testing for radeonkms module on my hardware.

Crash when running vmstat -z after kldunload i915kms

#0  doadump (textdump=1) at pcpu.h:228
#1  0xffffffff80688192 in kern_reboot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:415
#2  0xffffffff8068875d in vpanic (fmt=<value optimized out>, ap=<value optimized out>) at /usr/src/sys/kern/kern_shutdown.c:811
#3  0xffffffff806887a3 in panic (fmt=<value optimized out>) at /usr/src/sys/kern/kern_shutdown.c:738
#4  0xffffffff809ffb6e in dblfault_handler (frame=<value optimized out>) at /usr/src/sys/amd64/amd64/trap.c:854
#5  0xffffffff809dc2aa in Xdblfault () at /usr/src/sys/amd64/amd64/exception.S:287
#6  0xffffffff80667de8 in __mtx_lock_spin_flags (c=0xfffff8021f7ffff8, opts=0, 
    file=0xffffffff80b56a51 "/usr/src/sys/kern/subr_msgbuf.c", line=199) at /usr/src/sys/kern/kern_mutex.c:294
#7  0xffffffff806cfbbc in msgbuf_addstr (mbp=0xfffff8021f7fffb8, pri=-1, 
    str=0xfffffe000058a2f0 " with the following non-sleepable locks held:\n", filter_cr=1) at /usr/src/sys/kern/subr_msgbuf.c:199
#8  0xffffffff806d3d22 in putchar (c=<value optimized out>, arg=0xfffffe000058a2c0) at /usr/src/sys/kern/subr_prf.c:1015
#9  0xffffffff806d2766 in kvprintf (fmt=0xffffffff80b5adfc "", func=0xffffffff806d3c20 <putchar>, arg=0xfffffe000058a2c0, radix=10, 
    ap=0xfffffe000058a3c0) at /usr/src/sys/kern/subr_prf.c:680
#10 0xffffffff806d4514 in vprintf (fmt=<value optimized out>, ap=<value optimized out>) at /usr/src/sys/kern/subr_prf.c:294
#11 0xffffffff806d4483 in printf (fmt=<value optimized out>) at /usr/src/sys/kern/subr_prf.c:406
#12 0xffffffff806eecd0 in witness_warn (flags=<value optimized out>, lock=<value optimized out>, 
    fmt=0xffffffff80bb97ce "Kernel page fault") at /usr/src/sys/kern/subr_witness.c:1739
#13 0xffffffff809ff6f3 in trap_pfault (frame=0xfffffe000058a610, usermode=0) at /usr/src/sys/amd64/amd64/trap.c:669
#14 0xffffffff809feeea in trap (frame=0xfffffe000058a610) at /usr/src/sys/amd64/amd64/trap.c:417
#15 0xffffffff809dc19d in calltrap () at /usr/src/sys/amd64/amd64/exception.S:232
#16 0xffffffff807741df in strlen (str=0xffffffff820ff6bb <Address 0xffffffff820ff6bb out of bounds>)
    at /usr/src/sys/libkern/strlen.c:100
#17 0xffffffff806d353a in kvprintf (fmt=0xffffffff80ab9085 "", func=0xffffffff806d3c20 <putchar>, arg=0xfffffe000058a800, radix=10, 
    ap=0xfffffe000058a900) at /usr/src/sys/kern/subr_prf.c:820
#18 0xffffffff806d4514 in vprintf (fmt=<value optimized out>, ap=<value optimized out>) at /usr/src/sys/kern/subr_prf.c:294
#19 0xffffffff806d4483 in printf (fmt=<value optimized out>) at /usr/src/sys/kern/subr_prf.c:406
#20 0xffffffff806eed1a in witness_warn (flags=<value optimized out>, lock=<value optimized out>, 
    fmt=0xffffffff80bb97ce "Kernel page fault") at /usr/src/sys/kern/subr_witness.c:2172
#21 0xffffffff809ff6f3 in trap_pfault (frame=0xfffffe000058ab50, usermode=0) at /usr/src/sys/amd64/amd64/trap.c:669
#22 0xffffffff809feeea in trap (frame=0xfffffe000058ab50) at /usr/src/sys/amd64/amd64/trap.c:417
#23 0xffffffff809dc19d in calltrap () at /usr/src/sys/amd64/amd64/exception.S:232
#24 0xffffffff807741df in strlen (str=0xffffffff820ff6bb <Address 0xffffffff820ff6bb out of bounds>)
    at /usr/src/sys/libkern/strlen.c:100
#25 0xffffffff806d353a in kvprintf (fmt=0xffffffff80ab9085 "", func=0xffffffff806d3c20 <putchar>, arg=0xfffffe000058ad40, radix=10, 
    ap=0xfffffe000058ae40) at /usr/src/sys/kern/subr_prf.c:820
#26 0xffffffff806d4514 in vprintf (fmt=<value optimized out>, ap=<value optimized out>) at /usr/src/sys/kern/subr_prf.c:294
#27 0xffffffff806d4483 in printf (fmt=<value optimized out>) at /usr/src/sys/kern/subr_prf.c:406
#28 0xffffffff806eed1a in witness_warn (flags=<value optimized out>, lock=<value optimized out>, 
    fmt=0xffffffff80bb97ce "Kernel page fault") at /usr/src/sys/kern/subr_witness.c:2172
#29 0xffffffff809ff6f3 in trap_pfault (frame=0xfffffe000058b090, usermode=0) at /usr/src/sys/amd64/amd64/trap.c:669
#30 0xffffffff809feeea in trap (frame=0xfffffe000058b090) at /usr/src/sys/amd64/amd64/trap.c:417
#31 0xffffffff809dc19d in calltrap () at /usr/src/sys/amd64/amd64/exception.S:232
#32 0xffffffff807741df in strlen (str=0xffffffff820ff6bb <Address 0xffffffff820ff6bb out of bounds>)
    at /usr/src/sys/libkern/strlen.c:100
#33 0xffffffff806d353a in kvprintf (fmt=0xffffffff80ab9085 "", func=0xffffffff806d3c20 <putchar>, arg=0xfffffe000058b280, radix=10, 
    ap=0xfffffe000058b380) at /usr/src/sys/kern/subr_prf.c:820
#34 0xffffffff806d4514 in vprintf (fmt=<value optimized out>, ap=<value optimized out>) at /usr/src/sys/kern/subr_prf.c:294
#35 0xffffffff806d4483 in printf (fmt=<value optimized out>) at /usr/src/sys/kern/subr_prf.c:406
#36 0xffffffff806eed1a in witness_warn (flags=<value optimized out>, lock=<value optimized out>, 
    fmt=0xffffffff80bb97ce "Kernel page fault") at /usr/src/sys/kern/subr_witness.c:2172
#37 0xffffffff809ff6f3 in trap_pfault (frame=0xfffffe000058b5d0, usermode=0) at /usr/src/sys/amd64/amd64/trap.c:669
#38 0xffffffff809feeea in trap (frame=0xfffffe000058b5d0) at /usr/src/sys/amd64/amd64/trap.c:417
#39 0xffffffff809dc19d in calltrap () at /usr/src/sys/amd64/amd64/exception.S:232
#40 0xffffffff807741df in strlen (str=0xffffffff820ff6bb <Address 0xffffffff820ff6bb out of bounds>)
    at /usr/src/sys/libkern/strlen.c:100
#41 0xffffffff806d353a in kvprintf (fmt=0xffffffff80ab9085 "", func=0xffffffff806d3c20 <putchar>, arg=0xfffffe000058b7c0, radix=10, 
    ap=0xfffffe000058b8c0) at /usr/src/sys/kern/subr_prf.c:820
#42 0xffffffff806d4514 in vprintf (fmt=<value optimized out>, ap=<value optimized out>) at /usr/src/sys/kern/subr_prf.c:294
#43 0xffffffff806d4483 in printf (fmt=<value optimized out>) at /usr/src/sys/kern/subr_prf.c:406
#44 0xffffffff806eed1a in witness_warn (flags=<value optimized out>, lock=<value optimized out>, 
    fmt=0xffffffff80bb97ce "Kernel page fault") at /usr/src/sys/kern/subr_witness.c:2172
#45 0xffffffff809ff6f3 in trap_pfault (frame=0xfffffe000058bb10, usermode=0) at /usr/src/sys/amd64/amd64/trap.c:669
---Type <return> to continue, or q <return> to quit---
#46 0xffffffff809feeea in trap (frame=0xfffffe000058bb10) at /usr/src/sys/amd64/amd64/trap.c:417
#47 0xffffffff809dc19d in calltrap () at /usr/src/sys/amd64/amd64/exception.S:232
#48 0xffffffff807741df in strlen (str=0xffffffff820ff6bb <Address 0xffffffff820ff6bb out of bounds>)
    at /usr/src/sys/libkern/strlen.c:100
#49 0xffffffff806d353a in kvprintf (fmt=0xffffffff80ab9085 "", func=0xffffffff806d3c20 <putchar>, arg=0xfffffe000058bd00, radix=10, 
    ap=0xfffffe000058be00) at /usr/src/sys/kern/subr_prf.c:820
#50 0xffffffff806d4514 in vprintf (fmt=<value optimized out>, ap=<value optimized out>) at /usr/src/sys/kern/subr_prf.c:294
#51 0xffffffff806d4483 in printf (fmt=<value optimized out>) at /usr/src/sys/kern/subr_prf.c:406
#52 0xffffffff806eed1a in witness_warn (flags=<value optimized out>, lock=<value optimized out>, 
    fmt=0xffffffff80bb97ce "Kernel page fault") at /usr/src/sys/kern/subr_witness.c:2172
#53 0xffffffff809ff6f3 in trap_pfault (frame=0xfffffe000058c050, usermode=0) at /usr/src/sys/amd64/amd64/trap.c:669
#54 0xffffffff809feeea in trap (frame=0xfffffe000058c050) at /usr/src/sys/amd64/amd64/trap.c:417
#55 0xffffffff809dc19d in calltrap () at /usr/src/sys/amd64/amd64/exception.S:232
#56 0xffffffff807741df in strlen (str=0xffffffff820ff6bb <Address 0xffffffff820ff6bb out of bounds>)
    at /usr/src/sys/libkern/strlen.c:100
#57 0xffffffff806d353a in kvprintf (fmt=0xffffffff80ab9085 "", func=0xffffffff806d3c20 <putchar>, arg=0xfffffe000058c240, radix=10, 
    ap=0xfffffe000058c340) at /usr/src/sys/kern/subr_prf.c:820
#58 0xffffffff806d4514 in vprintf (fmt=<value optimized out>, ap=<value optimized out>) at /usr/src/sys/kern/subr_prf.c:294
#59 0xffffffff806d4483 in printf (fmt=<value optimized out>) at /usr/src/sys/kern/subr_prf.c:406
#60 0xffffffff806eed1a in witness_warn (flags=<value optimized out>, lock=<value optimized out>, 
    fmt=0xffffffff80bb97ce "Kernel page fault") at /usr/src/sys/kern/subr_witness.c:2172
#61 0xffffffff809ff6f3 in trap_pfault (frame=0xfffffe000058c590, usermode=0) at /usr/src/sys/amd64/amd64/trap.c:669
#62 0xffffffff809feeea in trap (frame=0xfffffe000058c590) at /usr/src/sys/amd64/amd64/trap.c:417
#63 0xffffffff809dc19d in calltrap () at /usr/src/sys/amd64/amd64/exception.S:232
#64 0xffffffff807741df in strlen (str=0xffffffff820ff6bb <Address 0xffffffff820ff6bb out of bounds>)
    at /usr/src/sys/libkern/strlen.c:100
#65 0xffffffff806d353a in kvprintf (fmt=0xffffffff80ab9085 "", func=0xffffffff806d3c20 <putchar>, arg=0xfffffe000058c780, radix=10, 
    ap=0xfffffe000058c880) at /usr/src/sys/kern/subr_prf.c:820
#66 0xffffffff806d4514 in vprintf (fmt=<value optimized out>, ap=<value optimized out>) at /usr/src/sys/kern/subr_prf.c:294
#67 0xffffffff806d4483 in printf (fmt=<value optimized out>) at /usr/src/sys/kern/subr_prf.c:406
#68 0xffffffff806eed1a in witness_warn (flags=<value optimized out>, lock=<value optimized out>, 
    fmt=0xffffffff80bb97ce "Kernel page fault") at /usr/src/sys/kern/subr_witness.c:2172
#69 0xffffffff809ff6f3 in trap_pfault (frame=0xfffffe000058cad0, usermode=0) at /usr/src/sys/amd64/amd64/trap.c:669
#70 0xffffffff809feeea in trap (frame=0xfffffe000058cad0) at /usr/src/sys/amd64/amd64/trap.c:417
#71 0xffffffff809dc19d in calltrap () at /usr/src/sys/amd64/amd64/exception.S:232
#72 0xffffffff807741df in strlen (str=0xffffffff820ff6bb <Address 0xffffffff820ff6bb out of bounds>)
    at /usr/src/sys/libkern/strlen.c:100
#73 0xffffffff806d353a in kvprintf (fmt=0xffffffff80ab9085 "", func=0xffffffff806d3c20 <putchar>, arg=0xfffffe000058ccc0, radix=10, 
    ap=0xfffffe000058cdc0) at /usr/src/sys/kern/subr_prf.c:820
#74 0xffffffff806d4514 in vprintf (fmt=<value optimized out>, ap=<value optimized out>) at /usr/src/sys/kern/subr_prf.c:294
#75 0xffffffff806d4483 in printf (fmt=<value optimized out>) at /usr/src/sys/kern/subr_prf.c:406
#76 0xffffffff806eed1a in witness_warn (flags=<value optimized out>, lock=<value optimized out>, 
    fmt=0xffffffff80bb97ce "Kernel page fault") at /usr/src/sys/kern/subr_witness.c:2172
#77 0xffffffff809ff6f3 in trap_pfault (frame=0xfffffe000058d010, usermode=0) at /usr/src/sys/amd64/amd64/trap.c:669
#78 0xffffffff809feeea in trap (frame=0xfffffe000058d010) at /usr/src/sys/amd64/amd64/trap.c:417
#79 0xffffffff809dc19d in calltrap () at /usr/src/sys/amd64/amd64/exception.S:232
#80 0xffffffff807741df in strlen (str=0xffffffff820ff6bb <Address 0xffffffff820ff6bb out of bounds>)
    at /usr/src/sys/libkern/strlen.c:100
#81 0xffffffff806d353a in kvprintf (fmt=0xffffffff80ab9085 "", func=0xffffffff806d3c20 <putchar>, arg=0xfffffe000058d200, radix=10, 
    ap=0xfffffe000058d300) at /usr/src/sys/kern/subr_prf.c:820
#82 0xffffffff806d4514 in vprintf (fmt=<value optimized out>, ap=<value optimized out>) at /usr/src/sys/kern/subr_prf.c:294
#83 0xffffffff806d4483 in printf (fmt=<value optimized out>) at /usr/src/sys/kern/subr_prf.c:406
#84 0xffffffff806eed1a in witness_warn (flags=<value optimized out>, lock=<value optimized out>, 
    fmt=0xffffffff80bb97ce "Kernel page fault") at /usr/src/sys/kern/subr_witness.c:2172
#85 0xffffffff809ff6f3 in trap_pfault (frame=0xfffffe000058d550, usermode=0) at /usr/src/sys/amd64/amd64/trap.c:669
#86 0xffffffff809feeea in trap (frame=0xfffffe000058d550) at /usr/src/sys/amd64/amd64/trap.c:417
#87 0xffffffff809dc19d in calltrap () at /usr/src/sys/amd64/amd64/exception.S:232
#88 0xffffffff80774180 in strlcpy (dst=0xfffffe000058d6b8 "", src=0xffffffff820ff6bb <Address 0xffffffff820ff6bb out of bounds>, 
    siz=32) at /usr/src/sys/libkern/strlcpy.c:40
#89 0xffffffff809a7549 in sysctl_vm_zone_stats (oidp=<value optimized out>, arg1=<value optimized out>, arg2=<value optimized out>, 
    req=<value optimized out>) at /usr/src/sys/vm/uma_core.c:3652
#90 0xffffffff80696a1b in sysctl_root_handler_locked (oid=0xffffffff80ea2668, arg1=0x0, arg2=0, req=0xfffffe000058d838, 
---Type <return> to continue, or q <return> to quit---
    tracker=0xfffffe000058d7b0) at /usr/src/sys/kern/kern_sysctl.c:167
#91 0xffffffff806960ee in sysctl_root (arg1=0x0, arg2=0) at /usr/src/sys/kern/kern_sysctl.c:2034
#92 0xffffffff80696749 in userland_sysctl (td=0x0, name=0xfffffe000058d900, namelen=2, old=0x800d0c180, 
    oldlenp=<value optimized out>, inkernel=<value optimized out>, new=0x0, newlen=0, retval=0xfffffe000058d968, flags=0)
    at /usr/src/sys/kern/kern_sysctl.c:2129
#93 0xffffffff8069656f in sys___sysctl (td=0xfffff8007b536000, uap=0xfffff8007b5363b8) at /usr/src/sys/kern/kern_sysctl.c:2064
#94 0xffffffff80a0044b in amd64_syscall (td=0xfffff8007b536000, traced=0) at subr_syscall.c:134
#95 0xffffffff809dc978 in fast_syscall_common () at /usr/src/sys/amd64/amd64/exception.S:451
#96 0x00007fffffffe000 in ?? ()
#97 0x0000000000000002 in ?? ()
#98 0x0000000800d0c180 in ?? ()
#99 0x00007fffffffe0e0 in ?? ()
#100 0x0000000000000000 in ?? ()
Current language:  auto; currently minimal
(kgdb) 

Thinkpad X1 Carbon (Broadwell chipset) freezing up.

I've opened an issue on the FreeBSDDesktop/freebsd-base-graphics (FreeBSDDesktop/DEPRECATED-freebsd-base-graphics#164) repo but since development seems to have moved here I'd like to post progress (or more information here).

The issue still persists (tried with a recent revision of CURRENT). Anyway, when resuming the machine after sleep power consumption does not seem to increase anymore (so there is progress), however, when loading the module during the boot I get some error messages from hdac0 that do not show up when I'm not loading the module. Here is a dmesg from a boot that froze a couple of hours later.

Copyright (c) 1992-2017 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 12.0-CURRENT #0 r326477: Sat Dec  2 23:16:19 CET 2017
    raichoo@lain:/usr/obj/usr/src/amd64.amd64/sys/RAICHOO amd64
FreeBSD clang version 5.0.0 (tags/RELEASE_500/final 312559) (based on LLVM 5.0.0svn)
VT(efifb): resolution 2560x1440
CPU: Intel(R) Core(TM) i7-5500U CPU @ 2.40GHz (2394.51-MHz K8-class CPU)
  Origin="GenuineIntel"  Id=0x306d4  Family=0x6  Model=0x3d  Stepping=4
  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=0x21c27ab<FSGSBASE,TSCADJ,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,NFPUSG,RDSEED,ADX,SMAP,PROCTRACE>
  XSAVE Features=0x1<XSAVEOPT>
  VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID
  TSC: P-state invariant, performance statistics
real memory  = 8589934592 (8192 MB)
avail memory = 8163528704 (7785 MB)
Event timer "LAPIC" quality 600
ACPI APIC Table: <LENOVO TP-N14  >
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
FreeBSD/SMP: 1 package(s) x 2 core(s) x 2 hardware threads
random: unblocking device.
ioapic0 <Version 2.0> irqs 0-39 on motherboard
SMP: AP CPU #1 Launched!
SMP: AP CPU #2 Launched!
SMP: AP CPU #3 Launched!
Timecounter "TSC-low" frequency 1197255242 Hz quality 1000
random: entropy device external interface
[ath_hal] loaded
kbd1 at kbdmux0
module_register_init: MOD_LOAD (vesa, 0xffffffff80b44370, 0) error 19
random: registering fast source Intel Secure Key RNG
random: fast provider: "Intel Secure Key RNG"
netmap: loaded module
nexus0
cryptosoft0: <software crypto> on motherboard
aesni0: <AES-CBC,AES-XTS,AES-GCM,AES-ICM> on motherboard
acpi0: <LENOVO TP-N14> on motherboard
acpi_ec0: <Embedded Controller: GPE 0x24, ECDT> port 0x62,0x66 on acpi0
acpi0: Power Button (fixed)
cpu0: <ACPI CPU> on acpi0
cpu1: <ACPI CPU> on acpi0
cpu2: <ACPI CPU> on acpi0
cpu3: <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
hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0
Timecounter "HPET" frequency 14318180 Hz quality 950
Event timer "HPET" frequency 14318180 Hz quality 550
Event timer "HPET1" frequency 14318180 Hz quality 440
Event timer "HPET2" frequency 14318180 Hz quality 440
Event timer "HPET3" frequency 14318180 Hz quality 440
Event timer "HPET4" frequency 14318180 Hz quality 440
atrtc0: <AT realtime clock> port 0x70-0x71 irq 8 on acpi0
atrtc0: registered as a time-of-day clock, resolution 1.000000s
Event timer "RTC" frequency 32768 Hz quality 0
Timecounter "ACPI-safe" frequency 3579545 Hz quality 850
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1808-0x180b on acpi0
acpi_lid0: <Control Method Lid Switch> on acpi0
acpi_button0: <Sleep Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
vgapci0: <VGA-compatible display> port 0x3000-0x303f mem 0xf0000000-0xf0ffffff,0xe0000000-0xefffffff irq 16 at device 2.0 on pci0
vgapci0: Boot video device
hdac0: <Intel Broadwell HDA Controller> mem 0xf1230000-0xf1233fff at device 3.0 on pci0
pci0: <serial bus, USB> at device 20.0 (no driver attached)
pci0: <simple comms> at device 22.0 (no driver attached)
em0: <Intel(R) PRO/1000 Network Connection> port 0x3060-0x307f mem 0xf1200000-0xf121ffff,0xf123d000-0xf123dfff at device 25.0 on pci0
em0: attach_pre capping queues at 1
em0: using 1024 tx descriptors and 1024 rx descriptors
em0: msix_init qsets capped at 1
em0: PCIY_MSIX capability not found; or rid 0 == 0.
em0: Using an MSI interrupt
em0: allocated for 1 tx_queues
em0: allocated for 1 rx_queues
taskqgroup_attach: setaffinity failed for irq0: 3
taskqgroup_attach: setaffinity failed for tx: 3
em0: Ethernet address: 54:ee:75:61:c1:98
em0: netmap queues/slots: TX 1/1024, RX 1/1024
hdac1: <Intel Broadwell HDA Controller> mem 0xf1234000-0xf1237fff at device 27.0 on pci0
pcib1: <ACPI PCI-PCI bridge> at device 28.0 on pci0
pcib1: [GIANT-LOCKED]
pcib2: <ACPI PCI-PCI bridge> at device 28.1 on pci0
pci1: <ACPI PCI bus> on pcib2
iwm0: <Intel(R) Dual Band Wireless AC 7265> mem 0xf1100000-0xf1101fff at device 0.0 on pci1
pcib3: <ACPI PCI-PCI bridge> at device 28.5 on pci0
pci2: <ACPI PCI bus> on pcib3
ahci0: <AHCI SATA controller> mem 0xf1000000-0xf1001fff at device 0.0 on pci2
ahci0: AHCI v1.30 with 1 6Gbps ports, Port Multiplier not supported
ahcich0: <AHCI channel> at channel 0 on ahci0
ehci0: <EHCI (generic) USB 2.0 controller> mem 0xf123c000-0xf123c3ff at device 29.0 on pci0
usbus0: EHCI version 1.0
usbus0 on ehci0
usbus0: 480Mbps High Speed USB v2.0
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
acpi_tz0: <Thermal Zone> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model Generic PS/2 mouse, device ID 0
battery0: <ACPI Control Method Battery> on acpi0
acpi_acad0: <AC Adapter> on acpi0
est0: <Enhanced SpeedStep Frequency Control> on cpu0
est1: <Enhanced SpeedStep Frequency Control> on cpu1
est2: <Enhanced SpeedStep Frequency Control> on cpu2
est3: <Enhanced SpeedStep Frequency Control> on cpu3
ZFS filesystem version: 5
ZFS storage pool version: features support (5000)
Timecounters tick every 1.000 msec
hdacc0: <Intel Broadwell HDA CODEC> at cad 0 on hdac0
hdaa0: <Intel Broadwell Audio Function Group> at nid 1 on hdacc0
pcm0: <Intel Broadwell (HDMI/DP 8ch)> at nid 3 on hdaa0
hdacc1: <Realtek ALC292 HDA CODEC> at cad 0 on hdac1
hdaa1: <Realtek ALC292 Audio Function Group> at nid 1 on hdacc1
pcm1: <Realtek ALC292 (Analog 2.0+HP/2.0)> at nid 20,21 and 26 on hdaa1
pcm2: <Realtek ALC292 (Internal Analog Mic)> at nid 18 on hdaa1
ugen0.1: <Intel EHCI root HUB> at usbus0
ada0 at ahcich0 bus 0 scbus0 target 0 lun 0
ada0: <SAMSUNG MZHPV512HDGL-000L1 BXW25L0Q> ACS-2 ATA SATA 3.x device
ada0: Serial Number S1WUNYAG607087
ada0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes)
ada0: Command Queueing enabled
ada0: 488386MB (1000215216 512 byte sectors)
iwm0: hw rev 0x210, fw ver 22.361476.0, address 4c:34:88:29:6c:ce
uhub0: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus0
Trying to mount root from zfs:zroot/ROOT/default []...
GEOM_ELI: Device ada0p4.eli created.
GEOM_ELI: Encryption: AES-XTS 256
GEOM_ELI:     Crypto: hardware
Root mount waiting for: usbus0
uhub0: 3 ports with 3 removable, self powered
Root mount waiting for: usbus0
ugen0.2: <vendor 0x8087 product 0x8001> at usbus0
uhub1 on uhub0
uhub1: <vendor 0x8087 product 0x8001, class 9/0, rev 2.00/0.03, addr 2> on usbus0
uhub1: 8 ports with 8 removable, self powered
GEOM_ELI: Device ada0p3.eli created.
GEOM_ELI: Encryption: AES-XTS 128
GEOM_ELI:     Crypto: hardware
[drm] Initialized
drmn0: <drmn> on vgapci0
vgapci0: child drmn0 requested pci_enable_io
vgapci0: child drmn0 requested pci_enable_io
[drm] Memory usable by graphics device = 4096M
[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] Initialized i915 1.6.0 20160919 for drmn on minor 0
WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)
WARN_ON(!msg->buffer != !msg->size)
WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)
WARN_ON(!msg->buffer != !msg->size)
WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)
[drm:intel_dp_link_training_channel_equalization] failed to update link training
VT: Replacing driver "efifb" with new "fb".
start FB_INFO:
type=11 height=1440 width=2560 depth=32
cmsize=16 size=14745600
pbase=0xe0000000 vbase=0xfffff800e0000000
name=drmn0 flags=0x0 stride=10240 bpp=32
cmap[0]=0 cmap[1]=7f0000 cmap[2]=7f00 cmap[3]=c4a000
end FB_INFO
drmn0: fb0: inteldrmfb frame buffer device
wlan0: Ethernet address: 4c:34:88:29:6c:ce
[drm] Reducing the compressed framebuffer size. This may lead to less power savings than a non-reduced-size. Try to increase stolen memory size if available in BIOS.
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 00000000
wlan0: link state changed to UP

calling _callout_stop_safe with the following non-sleepable locks held

calling _callout_stop_safe with the following non-sleepable locks held:
exclusive sleep mutex lnxspin (lnxspin) r = 0 (0xffffffff81d5bbf0) locked @ /usr/home/johannes/dev/freebsd/kms-drm/linuxkpi/gplv2/include/linux/dma-fence.h:170
stack backtrace:
#0 0xffffffff8070dd23 at witness_debugger+0x73
#1 0xffffffff8070f101 at witness_warn+0x461
#2 0xffffffff806c1739 at _callout_stop_safe+0x49
#3 0xffffffff81c8341e at dma_i915_sw_fence_wake+0x1e
#4 0xffffffff81c590eb at i915_clflush_work+0x17b
#5 0xffffffff81c14eb9 at linux_work_fn+0x139
#6 0xffffffff8070108c at taskqueue_run_locked+0x14c
#7 0xffffffff80701e58 at taskqueue_thread_loop+0x88
#8 0xffffffff80669144 at fork_exit+0x84
#9 0xffffffff809f9dbe at fork_trampoline+0xe

[radeon, amdgpu] kernel panic when reading registers with fresh 12-current and drm-next-kmod or 4.11 branch.

amdgpu 4.11 panic

Unread portion of the kernel message buffer:
[drm:amdgpu_atombios_encoder_set_bios_scratch_regs] DFP1 connected
[drm:drm_mode_object_unreference] OBJ ID: 48 (1)
[drm:drm_edid_to_eld] ELD: no CEA Extension found
[drm:drm_mode_debug_printmodeline] Modeline 48:"3840x2160" 30 297000 3840 4016 4104 4400 2160 2168 2178 2250 0x48 0x5
[drm:drm_mode_prune_invalid] Not using 3840x2160 mode: VIRTUAL_X
[drm:drm_helper_probe_single_connector_modes] [CONNECTOR:44:HDMI-A-1] probed modes :
[drm:drm_mode_debug_printmodeline] Modeline 56:"1680x1050" 60 119000 1680 1728 1760 1840 1050 1053 1059 1080 0x40 0x9
[drm:drm_mode_debug_printmodeline] Modeline 55:"1600x900" 60 108000 1600 1624 1704 1800 900 901 904 1000 0x40 0x5
[drm:drm_mode_debug_printmodeline] Modeline 64:"1280x1024" 75 135000 1280 1296 1440 1688 1024 1025 1028 1066 0x40 0x5
[drm:drm_mode_debug_printmodeline] Modeline 53:"1280x1024" 60 108000 1280 1328 1440 1688 1024 1025 1028 1066 0x40 0x5
[drm:drm_mode_debug_printmodeline] Modeline 54:"1440x900" 60 88750 1440 1488 1520 1600 900 903 909 926 0x40 0x9
[drm:drm_mode_debug_printmodeline] Modeline 51:"1280x800" 60 71000 1280 1328 1360 1440 800 803 809 823 0x40 0x9
[drm:drm_mode_debug_printmodeline] Modeline 50:"1152x864" 75 108000 1152 1216 1344 1600 864 865 868 900 0x40 0x5
[drm:drm_mode_debug_printmodeline] Modeline 52:"1280x720" 60 74250 1280 1390 1430 1650 720 725 730 750 0x40 0x5
[drm:drm_mode_debug_printmodeline] Modeline 65:"1024x768" 75 78750 1024 1040 1136 1312 768 769 772 800 0x40 0x5
[drm:drm_mode_debug_printmodeline] Modeline 66:"1024x768" 70 75000 1024 1048 1184 1328 768 771 777 806 0x40 0xa
[drm:drm_mode_debug_printmodeline] Modeline 67:"1024x768" 60 65000 1024 1048 1184 1344 768 771 777 806 0x40 0xa
[drm:drm_mode_debug_printmodeline] Modeline 68:"832x624" 75 57284 832 864 928 1152 624 625 628 667 0x40 0xa
[drm:drm_mode_debug_printmodeline] Modeline 69:"800x600" 75 49500 800 816 896 1056 600 601 604 625 0x40 0x5
[drm:drm_mode_debug_printmodeline] Modeline 70:"800x600" 72 50000 800 856 976 1040 600 637 643 666 0x40 0x5
[drm:drm_mode_debug_printmodeline] Modeline 57:"800x600" 60 40000 800 840 968 1056 600 601 605 628 0x40 0x5
[drm:drm_mode_debug_printmodeline] Modeline 58:"800x600" 56 36000 800 824 896 1024 600 601 603 625 0x40 0x5
[drm:drm_mode_debug_printmodeline] Modeline 59:"640x480" 75 31500 640 656 720 840 480 481 484 500 0x40 0xa
[drm:drm_mode_debug_printmodeline] Modeline 60:"640x480" 73 31500 640 664 704 832 480 489 492 520 0x40 0xa
[drm:drm_mode_debug_printmodeline] Modeline 61:"640x480" 67 30240 640 704 768 864 480 483 486 525 0x40 0xa
[drm:drm_mode_debug_printmodeline] Modeline 62:"640x480" 60 25175 640 656 752 800 480 490 492 525 0x40 0xa
[drm:drm_mode_debug_printmodeline] Modeline 63:"720x400" 70 28320 720 738 846 900 400 412 414 449 0x40 0x6
[drm:drm_helper_probe_single_connector_modes] [CONNECTOR:47:VGA-1]
[drm:amdgpu_atombios_dp_get_dpcd] DPCD: fffff80004e54f40h
[drm:drm_dp_i2c_do_msg] I2C nack (result=0, size=0
[drm:drm_dp_i2c_do_msg] I2C nack (result=0, size=0
[drm:amdgpu_atombios_encoder_dig_detect] Bios 0 scratch 10000 00000001
[drm:amdgpu_atombios_encoder_set_bios_scratch_regs] CRT1 disconnected
[drm:amdgpu_atombios_encoder_set_bios_scratch_regs] CRT1 disconnected
[drm:drm_helper_probe_single_connector_modes] [CONNECTOR:47:VGA-1] disconnected
[drm:drm_enable_connectors] connector 42 enabled? no
[drm:drm_enable_connectors] connector 44 enabled? yes
[drm:drm_enable_connectors] connector 47 enabled? no
[drm:drm_target_preferred] looking for cmdline mode on connector 44
[drm:drm_target_preferred] looking for preferred mode on connector 44 0
[drm:drm_target_preferred] found mode 1680x1050
[drm:drm_setup_crtcs] picking CRTCs for 1680x1050 config
[drm:drm_mode_object_unreference] OBJ ID: 44 (3)
[drm:drm_setup_crtcs] desired mode 1680x1050 set on crtc 34 (0,0)
[drm:drm_mode_object_reference] OBJ ID: 44 (2)
[drm:drm_crtc_helper_set_config] 
[drm:drm_crtc_helper_set_config] [CRTC:34:crtc-0] [FB:71] #connectors=1 (x y) (0 0)
[drm:drm_mode_object_unreference] OBJ ID: 42 (3)
[drm:drm_mode_object_unreference] OBJ ID: 44 (4)
[drm:drm_mode_object_unreference] OBJ ID: 47 (3)
[drm:drm_crtc_helper_set_config] crtc has no fb, full mode set
[drm:drm_crtc_helper_set_config] modes are different, full mode set
[drm:drm_mode_debug_printmodeline] Modeline 0:"" 0 0 0 0 0 0 0 0 0 0 0x0 0x0
[drm:drm_mode_debug_printmodeline] Modeline 48:"1680x1050" 60 119000 1680 1728 1760 1840 1050 1053 1059 1080 0x40 0x9
[drm:drm_mode_object_reference] OBJ ID: 44 (3)
[drm:drm_mode_object_unreference] OBJ ID: 42 (3)
[drm:drm_crtc_helper_set_config] encoder changed, full mode switch
[drm:drm_mode_object_unreference] OBJ ID: 44 (5)
[drm:drm_mode_object_unreference] OBJ ID: 47 (3)
[drm:drm_mode_object_unreference] OBJ ID: 42 (3)
[drm:drm_crtc_helper_set_config] crtc changed, full mode switch
[drm:drm_crtc_helper_set_config] [CONNECTOR:44:HDMI-A-1] to [CRTC:34:crtc-0]
[drm:drm_mode_object_unreference] OBJ ID: 44 (5)
[drm:drm_mode_object_unreference] OBJ ID: 47 (3)
[drm:drm_mode_object_unreference] OBJ ID: 42 (3)
[drm:drm_mode_object_unreference] OBJ ID: 44 (5)
[drm:drm_crtc_helper_set_config] attempting to set mode from userspace
[drm:drm_mode_debug_printmodeline] Modeline 48:"1680x1050" 60 119000 1680 1728 1760 1840 1050 1053 1059 1080 0x40 0x9
[drm:drm_mode_object_unreference] OBJ ID: 42 (3)
[drm:drm_mode_object_unreference] OBJ ID: 44 (5)
[drm:amdgpu_encoder_set_active_device] setting active device to 00000008 from 00000008 00000008 for encoder 2
[drm:amdgpu_connector_get_monitor_bpc] HDMI-A-1: Display bpc=0, returned bpc=8
[drm:drm_crtc_helper_set_mode] [CRTC:34:crtc-0]
[drm:amdgpu_connector_get_monitor_bpc] HDMI-A-1: Display bpc=0, returned bpc=8
[drm:amdgpu_atombios_encoder_dpms] encoder dpms 33 to mode 3, devices 00000080, active_devices 00000000
[drm:amdgpu_atombios_encoder_dpms] encoder dpms 37 to mode 3, devices 00000001, active_devices 00000000
[drm:drm_crtc_vblank_off] crtc 0, vblank enabled 0, inmodeset 1
[drm:dce_v8_0_program_watermarks] force priority to high
[drm:dce_v8_0_program_watermarks] force priority to high
[drm:amdgpu_pll_compute] 238000 - 238000, pll dividers - fb: 23.8 ref: 2, post 5
[drm:dce_v8_0_program_watermarks] force priority to high
[drm:dce_v8_0_program_watermarks] force priority to high
[drm:drm_crtc_helper_set_mode] [ENCODER:43:TMDS-43] set [MODE:48:1680x1050]
[drm:amdgpu_atombios_encoder_dpms] encoder dpms 30 to mode 3, devices 00000008, active_devices 00000008


Fatal trap 12: page fault while in kernel mode
cpuid = 3; apic id = 13
fault virtual address	= 0xf0e0
fault code		= supervisor read data, page not present
instruction pointer	= 0x20:0xffffffff816d3d50
stack pointer	        = 0x28:0xfffffe0044e77120
frame pointer	        = 0x28:0xfffffe0044e77120
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		= 0 (linuxkpi_short_wq_1)
trap number		= 12
panic: page fault
cpuid = 3
time = 1519208432
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe0044e76de0
vpanic() at vpanic+0x18d/frame 0xfffffe0044e76e40
panic() at panic+0x43/frame 0xfffffe0044e76ea0
trap_fatal() at trap_fatal+0x352/frame 0xfffffe0044e76ef0
trap_pfault() at trap_pfault+0x62/frame 0xfffffe0044e76f40
trap() at trap+0x2f2/frame 0xfffffe0044e77050
calltrap() at calltrap+0x8/frame 0xfffffe0044e77050
--- trap 0xc, rip = 0xffffffff816d3d50, rsp = 0xfffffe0044e77120, rbp = 0xfffffe0044e77120 ---
cail_ioreg_read() at cail_ioreg_read+0x30/frame 0xfffffe0044e77120
atom_iio_execute() at atom_iio_execute+0x73/frame 0xfffffe0044e77160
atom_get_src_int() at atom_get_src_int+0x5df/frame 0xfffffe0044e771b0
atom_op_move() at atom_op_move+0x107/frame 0xfffffe0044e771f0
amdgpu_atom_execute_table_locked() at amdgpu_atom_execute_table_locked+0x246/frame 0xfffffe0044e77290
amdgpu_atom_execute_table() at amdgpu_atom_execute_table+0x7b/frame 0xfffffe0044e772c0
amdgpu_atombios_encoder_setup_dig_transmitter() at amdgpu_atombios_encoder_setup_dig_transmitter+0x1de/frame 0xfffffe0044e77350
amdgpu_atombios_encoder_setup_dig() at amdgpu_atombios_encoder_setup_dig+0x101/frame 0xfffffe0044e773a0
dce_v8_0_encoder_mode_set() at dce_v8_0_encoder_mode_set+0x3e/frame 0xfffffe0044e77490
drm_crtc_helper_set_mode() at drm_crtc_helper_set_mode+0x5be/frame 0xfffffe0044e776f0
drm_crtc_helper_set_config() at drm_crtc_helper_set_config+0xa6e/frame 0xfffffe0044e77790
amdgpu_crtc_set_config() at amdgpu_crtc_set_config+0x25/frame 0xfffffe0044e777b0
drm_mode_set_config_internal() at drm_mode_set_config_internal+0x74/frame 0xfffffe0044e777f0
drm_fb_helper_restore_fbdev_mode_unlocked() at drm_fb_helper_restore_fbdev_mode_unlocked+0x2c7/frame 0xfffffe0044e77850
drm_fb_helper_hotplug_event() at drm_fb_helper_hotplug_event+0x1da/frame 0xfffffe0044e77880
output_poll_execute() at output_poll_execute+0x24c/frame 0xfffffe0044e778f0
linux_work_fn() at linux_work_fn+0x139/frame 0xfffffe0044e77960
taskqueue_run_locked() at taskqueue_run_locked+0x14c/frame 0xfffffe0044e779c0
taskqueue_thread_loop() at taskqueue_thread_loop+0x88/frame 0xfffffe0044e779f0
fork_exit() at fork_exit+0x84/frame 0xfffffe0044e77a30
fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe0044e77a30
--- trap 0, rip = 0, rsp = 0, rbp = 0 ---
Uptime: 20m5s

i2c bus is not exposed to /dev

On Linux, the GPU's i2c bus is exported as /dev/i2c-n, which allows for e.g. DDC/CI monitor control via ddcutil. On Windows, VRMTool and WattTool can talk to the voltage controller over i2c.

Looks like the linux_i2c here is not connected to iicbus(4)…

Panic if i915kms loaded at boot

Thinkpad T480, if I load i915kms from loader.conf it panics:

 http://phk.freebsd.dk/misc/drm_panic.jpg

All the dependency modules can be loaded from loader.conf, just not i915kms

When i915kms is loaded from the shell, it all works a treat, including using the video outputs on the USB-C/TB3 dock.

amdgpu 4.12 failed to wake up from dpms: 'displayport link status failed'

Before 4.12, Weston was sending monitors to sleep and waking them up mostly fine — sometimes my main monitor (a modern 4K one) would be frozen after waking up though, with these Weston log messages:

[00:42:10.740] queueing pageflip failed: m
[00:42:10.740] Couldn't apply state for output DP-2

but the other monitor (old ass 1280x1024 NEC, attached via DVI-to-DP adapter) kept working.

Now in this situation (I see the same log messages) Weston died, and these messages appeared in dmesg:

[drm:amdgpu_atombios_dp_link_train_cr] displayport link status failed
[drm:amdgpu_atombios_dp_link_train_cr] clock recovery failed
[drm:amdgpu_atombios_dp_link_train_cr] displayport link status failed
[drm:amdgpu_atombios_dp_link_train_cr] clock recovery failed

(I guess twice because two monitors)

Maybe these issues aren't even related, I'll have to test more…

Impossible to set AMD Overdrive sysctls

Finally got around to trying FreeBSD on my desktop (RX 480). The drm-next kernel does not work with my network card trueos/trueos-core#1463 so I'm glad it's now available as a port :) Everything seems to work pretty well so far. Tried WebGL demos in Firefox, Zelda Wind Waker in Dolphin Emulator (works fine when built from git master; the version from pkg displays a black screen instead of games), and DarkPlaces Quake.

I can't overclock my GPU though:

$ doas sysctl sys.device.drmn0.pp_sclk_od=1
sys.device.drmn0.pp_sclk_od: 0
sysctl: sys.device.drmn0.pp_sclk_od=1: Invalid argument
$ doas sysctl sys.device.drmn0.pp_mclk_od=1
sys.device.drmn0.pp_mclk_od: 0
sysctl: sys.device.drmn0.pp_mclk_od=1: Invalid argument

On Linux, people do something like e.g. echo 5 > pp_sclk_od to set a 5% overclock for the GPU core. FreeBSD sysctls reject numbers as invalid arguments.

i915kms rendering regression

I'm on Skylake GT2. After 4.11 upgrade VAAPI shows easy to notice artifacts. OpenGL appears to be only unstable on intel DDX with SNA enabled: flickering, frame drops, artifacts, lock ups (DRI3-only).

Steps to reproduce (VAAPI):

$ pkg install -qy mpv mesa-dri libva-intel-driver
$ mpv --no-config --hwdec=vaapi --ytdl-format=mp4 'https://www.youtube.com/watch?v=1La4QzGeaaQ'

mpv-shot0001

Steps to reproduce (OpenGL):

$ pkg install -qy firefox mesa-dri mesa-demos
$ echo 'user_pref("gfx.webrender.all", true);' >>${profile=$(mktemp -d)}/user.js
$ firefox -new-instance -profile $profile -private-window 'https://www.youtube.com/watch?v=1La4QzGeaaQ'
<move/resize window, switch between tabs>
$ glxgears

glxgears-dri2

Environment:

$ uname -vp
FreeBSD 12.0-CURRENT #0 r329985M: Sun Feb 25 17:16:46 UTC 2018     foo@bar:/usr/src/amd64.amd64/sys/MYKERNEL  amd64

$ pkg info -x drm-next mesa xorg
drm-next-kmod-4.11.g20180224
mesa-demos-8.4.0
mesa-dri-18.0.0.rc4
mesa-libs-18.0.0.rc4
xorg-server-1.19.5,1

$ cat /usr/ports/graphics/mesa-libs/Makefile.local
CFLAGS += -D__DRM_NEXT__ # enable DRI3 by default

$ cat /usr/local/etc/X11/xorg.conf
Section "Device"
	Identifier "integrated_card"
	Driver 	   "intel"
	Option     "AccelMethod" "SNA"
	Option     "DRI" "3"
	Option 	   "TripleBuffer" "false"
	BusID      "pci:0:2:0"
EndSection

$ cat ~/.compton.conf
#vsync = "opengl-swc";
backend = "glx";
paint-on-overlay = true;
unredir-if-possible = true;
unredir-if-possible-exclude = [
    "class_i = 'Navigator'"
];
glx-swap-method = "buffer-age";
glx-no-rebind-pixmap = true;
xrender-sync = true;
xrender-sync-fence = true;

$ tail -1 /var/log/Xorg.0.log
[  3534.783] (EE) intel(0): Failed to submit rendering commands (Bad address), disabling acceleration.

Intel module not loading startx

My Intel module is not loading so xorg is using syscons driver. I'm running 12-CURRENT r326012, and I have kld_list="/boot/modules/i915kms.ko" in my rc.conf file. I'm not sure what I am doing wrong. I can post my Xorg.0.log file if needed. I installed xorg and drm-next-kmod from ports.

[regression] i915kms extremely slow after resume from s3 suspend

I am not sure if this is a regression from 12.0-CURRENT or in the drm module itself, but it started sometime after February I believe.

After resume from s3 state:

  • xorg is incredibly slow to render text (e.g. in rxvt-term) or swap panes (i3 window manager), like a 9600baud modem back in the old days
  • switching to F1 "text" console works at normal speed
  • stopping & restart xorg returns things to normal again until next s3 suspend/resume cycle
root@akai /u/h/dch# pkg info |grep kmod
drm-next-kmod-4.11.g20180224   DRM modules for the linuxkpi-based KMS components
gpu-firmware-kmod-g20180206_1  Firmware modules for the linuxkpi-based KMS components
root@akai /u/h/dch# uname -a
FreeBSD akai.skunkwerks.at 12.0-CURRENT FreeBSD 12.0-CURRENT #3 r330408+4c7becb094f6(master): Sun Mar  4 20:59:34 UTC 2018     root@wintermute:/usr/obj/usr/src/amd64.amd64/sys/GENERIC  amd64

Here's the dmesg changes after resuming, with sysctl dev.drm.drm_debug=-1 set at boot:

 |[30] [drm:do_gmbus_xfer] GMBUS [i915 gmbus dpc] NAK for addr: 0040 w(1)
 |[30] [drm:do_gmbus_xfer] GMBUS [i915 gmbus dpc] NAK on first message, retry
 |[30] [drm:do_gmbus_xfer] GMBUS [i915 gmbus dpc] NAK for addr: 0040 w(1)
 |[30] [drm:drm_dp_dual_mode_detect] DP dual mode HDMI ID: 0xfffffe008d3683b0E (err -6)
 |[30] [drm:drm_helper_probe_single_connector_modes] [CONNECTOR:66:HDMI-A-2] disconnected
 |[30] [drm:drm_mode_object_unreference] OBJ ID: 66 (3)
+|[212] hdacc1: Unexpected unsolicited response with tag 63: ffffffff
+|[212] hdacc1: Unexpected unsolicited response with tag 63: ffffffff
+|[212] hdacc1: Unexpected unsolicited response with tag 63: ffffffff
+|[212] hdacc1: Unexpected unsolicited response with tag 63: ffffffff
+|[212] hdacc1: Unexpected unsolicited response with tag 63: ffffffff
+|[212] hdacc1: Unexpected unsolicited response with tag 63: ffffffff
+|[214] vgapci0: child drmn0 requested pci_set_powerstate
+|[214] uhub0: at usbus0, port 1, addr 1 (disconnected)
+|[214] wlan0: link state changed to DOWN
+|[215] hdac0: Command timeout on address 2
+|[219] acpi0: cleared fixed power button status
+|[219] vgapci0: child drmn0 requested pci_set_powerstate
+|[219] vgapci0: child drmn0 requested pci_enable_io
+|[219] vgapci0: child drmn0 requested pci_enable_io
+|[219] [drm:gen9_set_dc_state] DC state mismatch (0x2 -> 0x0)
+|[219] WARN_ON((val & ((1<<((0)*6+5)) | (1<<((0)*6+4)) | (1<<((0)*6)))) != (1<<((0)*6)))WARN_ON(dev_priv->cdclk_freq != dev_priv->display.get_display_clock_speed(dev_priv))CSR SSP Base Not fine
+|[219] CSR HTP Not fine
+|[219] WARN_ON((val & ((1<<((0)*6+5)) | (1<<((0)*6+4)) | (1<<((0)*6)))) != (1<<((0)*6)))WARN_ON(dev_priv->cdclk_freq != dev_priv->display.get_display_clock_speed(dev_priv))Clearing unexpected auxiliary requests for power well 2
+|[219] WARN_ON((val & ((1<<((0)*6+5)) | (1<<((0)*6+4)) | (1<<((0)*6)))) != (1<<((0)*6)))WARN_ON(dev_priv->cdclk_freq != dev_priv->display.get_display_clock_speed(dev_priv))
+|[219] <6>[drm] GuC firmware load skipped
+|[219] WARN_ON((val & ((1<<((0)*6+5)) | (1<<((0)*6+4)) | (1<<((0)*6)))) != (1<<((0)*6)))WARN_ON((val & ((1<<((0)*6+5)) | (1<<((0)*6+4)) | (1<<((0)*6)))) != (1<<((0)*6)))
+|[220] hdac0: Command timeout on address 2
+|[220] hdac0: Command timeout on address 2
+|[220] hdac0: Command timeout on address 2
+|[220] hdac0: Command timeout on address 2
+|[220] hdac0: Command timeout on address 2
+|[220] hdac0: Command timeout on address 2
+|[220] hdac0: Command timeout on address 2
+|[221] hdac0: Command timeout on address 2
+|[221] hdac0: Command timeout on address 2
+|[221] hdac0: Command timeout on address 2
+|[221] hdac0: Command timeout on address 2
+|[222] nvme0: resetting controller
+|[222] nvme0: aborting outstanding i/o
+|[222] nvme0: WRITE sqid:1 cid:103 nsid:1 lba:137200176 len:16
+|[222] nvme0: ABORTED - BY REQUEST (00/07) sqid:1 cid:103 cdw0:0
... repeated many times
+|[222] <6>[drm] RC6 on
+|[222] uhub0: <0x8086 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0
+|[224] uhub0: 18 ports with 18 removable, self powered
+|[225] wlan0: link state changed to UP

I'm open to bisecting to help track this down, or running the drm-next... branch of freebsd-desktop for comparison as well, I just need a few pointers what I should be looking out for.

amdgpu on RX560D: could not load firmware: error 2

First: thanks for drm-next!! I at least have a working my 4K display working and usable,
but some problems remain. First one:

Mar 22 06:36:07 marcopolo kernel: amdgpu/polaris11_mc.bin: could not load firmware image, error 2
(full log below)

This is on an old rig with Core2Quad 9300, freshly equipped with a Sapphire Pulse RX560D (Rev1 I guess, with 6-pin power plug) connected to a LG 43UD79-B.

The console works (slowly), and X works (with software rendering / llvmpipe, I'll open a seperate ticket for this)

Any idea what I can to to fix this? Or if this is a problem at all... Please ask if you need more info.

Thanks, Mathias

----- /var/log/messages:
Mar 22 06:36:07 marcopolo kernel: Copyright (c) 1992-2017 The FreeBSD Project.
Mar 22 06:36:07 marcopolo kernel: Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
Mar 22 06:36:07 marcopolo kernel: The Regents of the University of California. All rights reserved.
Mar 22 06:36:07 marcopolo kernel: FreeBSD is a registered trademark of The FreeBSD Foundation.
Mar 22 06:36:07 marcopolo kernel: FreeBSD 11.1-STABLE #0 r331269: Wed Mar 21 11:43:02 CET 2018
Mar 22 06:36:07 marcopolo kernel: root@marcopolo:/usr/obj/usr/src/sys/GENERIC amd64
Mar 22 06:36:07 marcopolo kernel: FreeBSD clang version 5.0.1 (tags/RELEASE_501/final 320880) (based on LLVM 5.0.1)
Mar 22 06:36:07 marcopolo kernel: VT(vga): resolution 640x480
Mar 22 06:36:07 marcopolo kernel: CPU: Intel(R) Core(TM)2 Quad CPU Q9300 @ 2.50GHz (2504.77-MHz K8-class CPU)
Mar 22 06:36:07 marcopolo kernel: Origin="GenuineIntel" Id=0x10677 Family=0x6 Model=0x17 Stepping=7
Mar 22 06:36:07 marcopolo kernel: 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>
Mar 22 06:36:07 marcopolo kernel: Features2=0x8e3fd<SSE3,DTES64,MON,DS_CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1>
Mar 22 06:36:07 marcopolo kernel: AMD Features=0x20000800<SYSCALL,LM>
Mar 22 06:36:07 marcopolo kernel: AMD Features2=0x1
Mar 22 06:36:07 marcopolo kernel: VT-x: HLT,PAUSE
Mar 22 06:36:07 marcopolo kernel: TSC: P-state invariant, performance statistics
Mar 22 06:36:07 marcopolo kernel: real memory = 8589934592 (8192 MB)
Mar 22 06:36:07 marcopolo kernel: avail memory = 8254296064 (7871 MB)
Mar 22 06:36:07 marcopolo kernel: Event timer "LAPIC" quality 100
Mar 22 06:36:07 marcopolo kernel: ACPI APIC Table: <012408 APIC1719>
Mar 22 06:36:07 marcopolo kernel: FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
Mar 22 06:36:07 marcopolo kernel: FreeBSD/SMP: 1 package(s) x 4 core(s)
Mar 22 06:36:07 marcopolo kernel: random: unblocking device.
Mar 22 06:36:07 marcopolo kernel: ioapic0 <Version 2.0> irqs 0-23 on motherboard
Mar 22 06:36:07 marcopolo kernel: SMP: AP CPU #3 Launched!
Mar 22 06:36:07 marcopolo kernel: SMP: AP CPU #1 Launched!
Mar 22 06:36:07 marcopolo kernel: SMP: AP CPU #2 Launched!
Mar 22 06:36:07 marcopolo kernel: Timecounter "TSC-low" frequency 1252384567 Hz quality 1000
Mar 22 06:36:07 marcopolo kernel: random: entropy device external interface
Mar 22 06:36:07 marcopolo kernel: kbd1 at kbdmux0
Mar 22 06:36:07 marcopolo kernel: netmap: loaded module
Mar 22 06:36:07 marcopolo kernel: module_register_init: MOD_LOAD (vesa, 0xffffffff80f75600, 0) error 19
Mar 22 06:36:07 marcopolo kernel: nexus0
Mar 22 06:36:07 marcopolo kernel: vtvga0: on motherboard
Mar 22 06:36:07 marcopolo kernel: cryptosoft0: on motherboard
Mar 22 06:36:07 marcopolo kernel: acpi0: <012408 RSDT1719> on motherboard
Mar 22 06:36:07 marcopolo kernel: acpi0: Power Button (fixed)
Mar 22 06:36:07 marcopolo kernel: cpu0: on acpi0
Mar 22 06:36:07 marcopolo kernel: cpu1: on acpi0
Mar 22 06:36:07 marcopolo kernel: cpu2: on acpi0
Mar 22 06:36:07 marcopolo kernel: cpu3: on acpi0
Mar 22 06:36:07 marcopolo kernel: attimer0: port 0x40-0x43 irq 0 on acpi0
Mar 22 06:36:07 marcopolo kernel: Timecounter "i8254" frequency 1193182 Hz quality 0
Mar 22 06:36:07 marcopolo kernel: Event timer "i8254" frequency 1193182 Hz quality 100
Mar 22 06:36:07 marcopolo kernel: atrtc0: port 0x70-0x71 irq 8 on acpi0
Mar 22 06:36:07 marcopolo kernel: atrtc0: registered as a time-of-day clock, resolution 1.000000s
Mar 22 06:36:07 marcopolo kernel: Event timer "RTC" frequency 32768 Hz quality 0
Mar 22 06:36:07 marcopolo kernel: Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
Mar 22 06:36:07 marcopolo kernel: acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
Mar 22 06:36:07 marcopolo kernel: pcib0: port 0xcf8-0xcff on acpi0
Mar 22 06:36:07 marcopolo kernel: pcib0: _OSC returned error 0x10
Mar 22 06:36:07 marcopolo kernel: pci0: on pcib0
Mar 22 06:36:07 marcopolo kernel: pcib1: irq 16 at device 1.0 on pci0
Mar 22 06:36:07 marcopolo kernel: pci1: on pcib1
Mar 22 06:36:07 marcopolo kernel: uhci0: <Intel 82801I (ICH9) USB controller> port 0xac00-0xac1f irq 16 at device 26.0 on pci0
Mar 22 06:36:07 marcopolo kernel: uhci0: LegSup = 0x2f00
Mar 22 06:36:07 marcopolo kernel: usbus0 on uhci0
Mar 22 06:36:07 marcopolo kernel: usbus0: 12Mbps Full Speed USB v1.0
Mar 22 06:36:07 marcopolo kernel: uhci1: <Intel 82801I (ICH9) USB controller> port 0xa880-0xa89f irq 21 at device 26.1 on pci0
Mar 22 06:36:07 marcopolo kernel: uhci1: LegSup = 0x2f00
Mar 22 06:36:07 marcopolo kernel: usbus1 on uhci1
Mar 22 06:36:07 marcopolo kernel: usbus1: 12Mbps Full Speed USB v1.0
Mar 22 06:36:07 marcopolo kernel: ehci0: <Intel 82801I (ICH9) USB 2.0 controller> mem 0xfe7ffc00-0xfe7fffff irq 18 at device 26.7 on pci0
Mar 22 06:36:07 marcopolo kernel: usbus2: EHCI version 1.0
Mar 22 06:36:07 marcopolo kernel: usbus2 on ehci0
Mar 22 06:36:07 marcopolo kernel: usbus2: 480Mbps High Speed USB v2.0
Mar 22 06:36:07 marcopolo kernel: hdac0: <Intel 82801I HDA Controller> mem 0xfe7f8000-0xfe7fbfff irq 22 at device 27.0 on pci0
Mar 22 06:36:07 marcopolo kernel: pcib2: irq 17 at device 28.0 on pci0
Mar 22 06:36:07 marcopolo kernel: pcib2: [GIANT-LOCKED]
Mar 22 06:36:07 marcopolo kernel: pci2: on pcib2
Mar 22 06:36:07 marcopolo kernel: vgapci0: port 0xb000-0xb0ff mem 0xd0000000-0xdfffffff,0xcfe00000-0xcfffffff,0xfe8c0000-0xfe8fffff irq 16 at device 0.0 on pci2
Mar 22 06:36:07 marcopolo kernel: vgapci0: Boot video device
Mar 22 06:36:07 marcopolo kernel: hdac1: <ATI (0xaae0) HDA Controller> mem 0xfe89c000-0xfe89ffff irq 17 at device 0.1 on pci2
Mar 22 06:36:07 marcopolo kernel: pcib3: irq 17 at device 28.4 on pci0
Mar 22 06:36:07 marcopolo kernel: pcib3: [GIANT-LOCKED]
Mar 22 06:36:07 marcopolo kernel: pci3: on pcib3
Mar 22 06:36:07 marcopolo kernel: atapci0: <Marvell 88SE6121 UDMA133 controller> port 0xcc00-0xcc07,0xc880-0xc883,0xc800-0xc807,0xc480-0xc483,0xc400-0xc40f mem 0xfe9ffc00-0xfe9fffff irq 16 at device 0.0 on pci3
Mar 22 06:36:07 marcopolo kernel: ahci0: <Marvell 88SE6121 AHCI SATA controller> at channel -1 on atapci0
Mar 22 06:36:07 marcopolo kernel: ahci0: AHCI v1.00 with 2 3Gbps ports, Port Multiplier not supported
Mar 22 06:36:07 marcopolo kernel: ahci0: quirks=0x457<NOFORCE,NOPMP,NONCQ,2CH,EDGEIS,NOCOUNT>
Mar 22 06:36:07 marcopolo kernel: ahcich0: at channel 0 on ahci0
Mar 22 06:36:07 marcopolo kernel: ahcich1: at channel 1 on ahci0
Mar 22 06:36:07 marcopolo kernel: ata2: at channel 0 on atapci0
Mar 22 06:36:07 marcopolo kernel: pcib4: irq 16 at device 28.5 on pci0
Mar 22 06:36:07 marcopolo kernel: pcib4: [GIANT-LOCKED]
Mar 22 06:36:07 marcopolo kernel: pci4: on pcib4
Mar 22 06:36:07 marcopolo kernel: re0: <RealTek 8168/8111 B/C/CP/D/DP/E/F/G PCIe Gigabit Ethernet> port 0xd800-0xd8ff mem 0xfeaff000-0xfeafffff irq 17 at device 0.0 on pci4
Mar 22 06:36:07 marcopolo kernel: re0: Using 1 MSI message
Mar 22 06:36:07 marcopolo kernel: re0: Chip rev. 0x38000000
Mar 22 06:36:07 marcopolo kernel: re0: MAC rev. 0x00000000
Mar 22 06:36:07 marcopolo kernel: miibus0: on re0
Mar 22 06:36:07 marcopolo kernel: rgephy0: <RTL8169S/8110S/8211 1000BASE-T media interface> PHY 1 on miibus0
Mar 22 06:36:07 marcopolo kernel: rgephy0: none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow
Mar 22 06:36:07 marcopolo kernel: re0: Using defaults for TSO: 65518/35/2048
Mar 22 06:36:07 marcopolo kernel: re0: Ethernet address: 00:1d:92:85:44:6a
Mar 22 06:36:07 marcopolo kernel: re0: netmap queues/slots: TX 1/256, RX 1/256
Mar 22 06:36:07 marcopolo kernel: uhci2: <Intel 82801I (ICH9) USB controller> port 0xa800-0xa81f irq 23 at device 29.0 on pci0
Mar 22 06:36:07 marcopolo kernel: uhci2: LegSup = 0x2f00
Mar 22 06:36:07 marcopolo kernel: usbus3 on uhci2
Mar 22 06:36:07 marcopolo kernel: usbus3: 12Mbps Full Speed USB v1.0
Mar 22 06:36:07 marcopolo kernel: uhci3: <Intel 82801I (ICH9) USB controller> port 0xa480-0xa49f irq 19 at device 29.1 on pci0
Mar 22 06:36:07 marcopolo kernel: uhci3: LegSup = 0x2f00
Mar 22 06:36:07 marcopolo kernel: usbus4 on uhci3
Mar 22 06:36:07 marcopolo kernel: usbus4: 12Mbps Full Speed USB v1.0
Mar 22 06:36:07 marcopolo kernel: uhci4: <Intel 82801I (ICH9) USB controller> port 0xa400-0xa41f irq 18 at device 29.2 on pci0
Mar 22 06:36:07 marcopolo kernel: uhci4: LegSup = 0x2f00
Mar 22 06:36:07 marcopolo kernel: usbus5 on uhci4
Mar 22 06:36:07 marcopolo kernel: usbus5: 12Mbps Full Speed USB v1.0
Mar 22 06:36:07 marcopolo kernel: uhci5: <Intel 82801I (ICH9) USB controller> port 0xa080-0xa09f irq 16 at device 29.3 on pci0
Mar 22 06:36:07 marcopolo kernel: uhci5: LegSup = 0x2f00
Mar 22 06:36:07 marcopolo kernel: usbus6 on uhci5
Mar 22 06:36:07 marcopolo kernel: usbus6: 12Mbps Full Speed USB v1.0
Mar 22 06:36:07 marcopolo kernel: ehci1: <Intel 82801I (ICH9) USB 2.0 controller> mem 0xfe7ff800-0xfe7ffbff irq 23 at device 29.7 on pci0
Mar 22 06:36:07 marcopolo kernel: usbus7: EHCI version 1.0
Mar 22 06:36:07 marcopolo kernel: usbus7 on ehci1
Mar 22 06:36:07 marcopolo kernel: usbus7: 480Mbps High Speed USB v2.0
Mar 22 06:36:07 marcopolo kernel: pcib5: at device 30.0 on pci0
Mar 22 06:36:07 marcopolo kernel: pci5: on pcib5
Mar 22 06:36:07 marcopolo kernel: ath0: <Atheros 9227> mem 0xfebf0000-0xfebfffff irq 17 at device 1.0 on pci5
Mar 22 06:36:07 marcopolo kernel: ath0: [HT] enabling HT modes
Mar 22 06:36:07 marcopolo kernel: ath0: [HT] enabling short-GI in 20MHz mode
Mar 22 06:36:07 marcopolo kernel: ath0: [HT] 1 stream STBC receive enabled
Mar 22 06:36:07 marcopolo kernel: ath0: [HT] 1 stream STBC transmit enabled
Mar 22 06:36:07 marcopolo kernel: ath0: [HT] 2 RX streams; 2 TX streams
Mar 22 06:36:07 marcopolo kernel: ath0: Enabling register serialisation
Mar 22 06:36:07 marcopolo kernel: ath0: AR9227 mac 384.2 RF5133 phy 15.15
Mar 22 06:36:07 marcopolo kernel: ath0: 2GHz radio: 0x0000; 5GHz radio: 0x00c0
Mar 22 06:36:07 marcopolo kernel: pci5: <serial bus, FireWire> at device 2.0 (no driver attached)
Mar 22 06:36:07 marcopolo kernel: isab0: at device 31.0 on pci0
Mar 22 06:36:07 marcopolo kernel: isa0: on isab0
Mar 22 06:36:07 marcopolo kernel: atapci1: port 0xa000-0xa007,0x9c00-0x9c03,0x9880-0x9887,0x9800-0x9803,0x9480-0x948f,0x9400-0x940f irq 19 at device 31.2 on pci0
Mar 22 06:36:07 marcopolo kernel: ata3: at channel 0 on atapci1
Mar 22 06:36:07 marcopolo kernel: ata4: at channel 1 on atapci1
Mar 22 06:36:07 marcopolo kernel: atapci2: port 0x9000-0x9007,0x8c00-0x8c03,0x8880-0x8887,0x8800-0x8803,0x8480-0x848f,0x8400-0x840f irq 19 at device 31.5 on pci0
Mar 22 06:36:07 marcopolo kernel: ata5: at channel 0 on atapci2
Mar 22 06:36:07 marcopolo kernel: ata6: at channel 1 on atapci2
Mar 22 06:36:07 marcopolo kernel: acpi_button0: on acpi0
Mar 22 06:36:07 marcopolo kernel: fdc0: <floppy drive controller (FDE)> port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0
Mar 22 06:36:07 marcopolo kernel: orm0: at iomem 0xcf000-0xcffff on isa0
Mar 22 06:36:07 marcopolo kernel: atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
Mar 22 06:36:07 marcopolo kernel: atkbd0: irq 1 on atkbdc0
Mar 22 06:36:07 marcopolo kernel: kbd0 at atkbd0
Mar 22 06:36:07 marcopolo kernel: atkbd0: [GIANT-LOCKED]
Mar 22 06:36:07 marcopolo kernel: ppc0: cannot reserve I/O port range
Mar 22 06:36:07 marcopolo kernel: coretemp0: on cpu0
Mar 22 06:36:07 marcopolo kernel: est0: on cpu0
Mar 22 06:36:07 marcopolo kernel: coretemp1: on cpu1
Mar 22 06:36:07 marcopolo kernel: est1: on cpu1
Mar 22 06:36:07 marcopolo kernel: coretemp2: on cpu2
Mar 22 06:36:07 marcopolo kernel: est2: on cpu2
Mar 22 06:36:07 marcopolo kernel: coretemp3: on cpu3
Mar 22 06:36:07 marcopolo kernel: est3: on cpu3
Mar 22 06:36:07 marcopolo kernel: ZFS filesystem version: 5
Mar 22 06:36:07 marcopolo kernel: ZFS storage pool version: features support (5000)
Mar 22 06:36:07 marcopolo kernel: Timecounters tick every 1.000 msec
Mar 22 06:36:07 marcopolo kernel: hdacc0: at cad 0 on hdac0
Mar 22 06:36:07 marcopolo kernel: hdaa0: at nid 1 on hdacc0
Mar 22 06:36:07 marcopolo kernel: pcm0: <Realtek ALC888 (Rear Analog 7.1/2.0)> at nid 20,22,21,23 and 24,26 on hdaa0
Mar 22 06:36:07 marcopolo kernel: pcm1: <Realtek ALC888 (Front Analog)> at nid 27 and 25 on hdaa0
Mar 22 06:36:07 marcopolo kernel: pcm2: <Realtek ALC888 (Rear Digital)> at nid 30 on hdaa0
Mar 22 06:36:07 marcopolo kernel: hdacc1: at cad 0 on hdac1
Mar 22 06:36:07 marcopolo kernel: hdaa1: at nid 1 on hdacc1
Mar 22 06:36:07 marcopolo kernel: pcm3: <ATI R6xx (HDMI)> at nid 3 on hdaa1
Mar 22 06:36:07 marcopolo kernel: pcm4: <ATI R6xx (HDMI)> at nid 5 on hdaa1
Mar 22 06:36:07 marcopolo kernel: pcm5: <ATI R6xx (HDMI)> at nid 7 on hdaa1
Mar 22 06:36:07 marcopolo kernel: pcm6: <ATI R6xx (HDMI)> at nid 9 on hdaa1
Mar 22 06:36:07 marcopolo kernel: pcm7: <ATI R6xx (HDMI)> at nid 11 on hdaa1
Mar 22 06:36:07 marcopolo kernel: ugen7.1: at usbus7
Mar 22 06:36:07 marcopolo kernel: ugen1.1: at usbus1
Mar 22 06:36:07 marcopolo kernel: ugen5.1: at usbus5
Mar 22 06:36:07 marcopolo kernel: ugen4.1: at usbus4
Mar 22 06:36:07 marcopolo kernel: uhub0: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus7
Mar 22 06:36:07 marcopolo kernel: uhub1: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus5
Mar 22 06:36:07 marcopolo kernel: ugen6.1: at usbus6
Mar 22 06:36:07 marcopolo kernel: ugen0.1: at usbus0
Mar 22 06:36:07 marcopolo kernel: uhub2: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus4
Mar 22 06:36:07 marcopolo kernel: uhub3: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus1
Mar 22 06:36:07 marcopolo kernel: uhub4: ugen3.1: at usbus3
Mar 22 06:36:07 marcopolo kernel: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
Mar 22 06:36:07 marcopolo kernel: uhub5: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus6
Mar 22 06:36:07 marcopolo kernel: uhub6: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus3
Mar 22 06:36:07 marcopolo kernel: ugen2.1: at usbus2
Mar 22 06:36:07 marcopolo kernel: uhub7: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus2
Mar 22 06:36:07 marcopolo kernel: uhub1: 2 ports with 2 removable, self powered
Mar 22 06:36:07 marcopolo kernel: uhub3: 2 ports with 2 removable, self powered
Mar 22 06:36:07 marcopolo kernel: uhub2: 2 ports with 2 removable, self powered
Mar 22 06:36:07 marcopolo kernel: uhub4: 2 ports with 2 removable, self powered
Mar 22 06:36:07 marcopolo kernel: uhub6: 2 ports with 2 removable, self powered
Mar 22 06:36:07 marcopolo kernel: uhub5: 2 ports with 2 removable, self powered
Mar 22 06:36:07 marcopolo kernel: uhub7: 4 ports with 4 removable, self powered
Mar 22 06:36:07 marcopolo kernel: uhub0: 8 ports with 8 removable, self powered
Mar 22 06:36:07 marcopolo kernel: ada0 at ata3 bus 0 scbus3 target 0 lun 0
Mar 22 06:36:07 marcopolo kernel: ada0: ACS-3 ATA SATA 3.x device
Mar 22 06:36:07 marcopolo kernel: ada0: Serial Number 0303921AE203691B0156
Mar 22 06:36:07 marcopolo kernel: ada0: 300.000MB/s transfers (SATA 2.x, UDMA5, PIO 1024bytes)
Mar 22 06:36:07 marcopolo kernel: ada0: 488386MB (1000215216 512 byte sectors)
Mar 22 06:36:07 marcopolo kernel: Trying to mount root from zfs:zroot/ROOT/default []...
Mar 22 06:36:07 marcopolo kernel: Root mount waiting for: usbus7
Mar 22 06:36:07 marcopolo kernel: GEOM_ELI: Device ada0p2.eli created.
Mar 22 06:36:07 marcopolo kernel: GEOM_ELI: Encryption: AES-XTS 128
Mar 22 06:36:07 marcopolo kernel: GEOM_ELI: Crypto: software
Mar 22 06:36:07 marcopolo kernel: ugen4.2: <CM Storm Quickfire TKL 6keys> at usbus4
Mar 22 06:36:07 marcopolo kernel: ukbd0 on uhub2
Mar 22 06:36:07 marcopolo kernel: ukbd0: <CM Storm Quickfire TKL 6keys, class 0/0, rev 1.10/1.11, addr 2> on usbus4
Mar 22 06:36:07 marcopolo kernel: kbd2 at ukbd0
Mar 22 06:36:07 marcopolo kernel: anon_inodefs_init:
Mar 22 06:36:07 marcopolo kernel: [drm] amdgpu kernel modesetting enabled.
Mar 22 06:36:07 marcopolo kernel: drmn0: on vgapci0
Mar 22 06:36:07 marcopolo kernel: vgapci0: child drmn0 requested pci_enable_io
Mar 22 06:36:07 marcopolo kernel: vgapci0: child drmn0 requested pci_enable_io
Mar 22 06:36:07 marcopolo kernel: [drm] initializing kernel modesetting (POLARIS11 0x1002:0x67EF 0x1DA2:0xE348 0xE5).
Mar 22 06:36:07 marcopolo kernel: [drm] register mmio base: 0xFE8C0000
Mar 22 06:36:07 marcopolo kernel: [drm] register mmio size: 262144
Mar 22 06:36:07 marcopolo kernel: [drm] doorbell mmio base: 0xCFE00000
Mar 22 06:36:07 marcopolo kernel: [drm] doorbell mmio size: 2097152
Mar 22 06:36:07 marcopolo kernel: [drm] PCI I/O BAR is not found.
Mar 22 06:36:07 marcopolo kernel: [drm] probing gen 2 caps for device 8086:2940 = 1112c41/0
Mar 22 06:36:07 marcopolo kernel: [drm] probing mlw for device 1002:67ef = 400883
Mar 22 06:36:07 marcopolo kernel: [drm] UVD is enabled in VM mode
Mar 22 06:36:07 marcopolo kernel: [drm] VCE enabled in VM mode
Mar 22 06:36:07 marcopolo kernel: [drm] BIOS signature incorrect 0 0
Mar 22 06:36:07 marcopolo kernel: [drm] PCI I/O BAR is not found. Using MMIO to access ATOM BIOS
Mar 22 06:36:07 marcopolo kernel: ATOM BIOS: 2348030FC
Mar 22 06:36:07 marcopolo kernel: [drm] GPU post is not needed
Mar 22 06:36:07 marcopolo kernel: amdgpu/polaris11_mc.bin: could not load firmware image, error 2
Mar 22 06:36:07 marcopolo kernel: ugen5.2: at usbus5
Mar 22 06:36:07 marcopolo kernel: ukbd1 on uhub1
Mar 22 06:36:07 marcopolo kernel: ukbd1: <La-VIEW Technology SteelSeries, class 0/0, rev 2.00/0.00, addr 2> on usbus5
Mar 22 06:36:07 marcopolo kernel: kbd3 at ukbd1
Mar 22 06:36:07 marcopolo kernel: amdgpu/polaris11_mc.bin: could not load firmware image, error 2
Mar 22 06:36:07 marcopolo kernel: drmn0: VRAM: 4096M 0x0000000000000000 - 0x00000000FFFFFFFF (4096M used)
Mar 22 06:36:07 marcopolo kernel: drmn0: GTT: 4096M 0x0000000100000000 - 0x00000001FFFFFFFF
Mar 22 06:36:07 marcopolo kernel: Failed to add WC MTRR for [0xd0000000-0xdfffffff]: -22; performance may suffer
Mar 22 06:36:07 marcopolo kernel: [drm] Detected VRAM RAM=4096M, BAR=256M
Mar 22 06:36:07 marcopolo kernel: [drm] RAM width 128bits GDDR5
Mar 22 06:36:07 marcopolo kernel: [TTM] Zone kernel: Available graphics memory: 4175818 kiB
Mar 22 06:36:07 marcopolo kernel: [TTM] Zone dma32: Available graphics memory: 2097152 kiB
Mar 22 06:36:07 marcopolo kernel: [TTM] Initializing pool allocator
Mar 22 06:36:07 marcopolo kernel: [drm] amdgpu: 4096M of VRAM memory ready
Mar 22 06:36:07 marcopolo kernel: [drm] amdgpu: 4096M of GTT memory ready.
Mar 22 06:36:07 marcopolo kernel: i_size_write unimplemented
Mar 22 06:36:07 marcopolo kernel: [drm] GART: num cpu pages 1048576, num gpu pages 1048576
Mar 22 06:36:07 marcopolo kernel: [drm] PCIE GART of 4096M enabled (table at 0x0000000000040000).
Mar 22 06:36:07 marcopolo kernel: [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
Mar 22 06:36:07 marcopolo kernel: [drm] Driver supports precise vblank timestamp query.
Mar 22 06:36:07 marcopolo kernel: [drm] amdgpu: irq initialized.
Mar 22 06:36:07 marcopolo kernel: amdgpu: [powerplay] amdgpu: powerplay sw initialized
Mar 22 06:36:07 marcopolo kernel: [drm] Connector DP-1: get mode from tunables:
Mar 22 06:36:07 marcopolo kernel: [drm] - kern.vt.fb.modes.DP-1
Mar 22 06:36:07 marcopolo kernel: [drm] - kern.vt.fb.default_mode
Mar 22 06:36:07 marcopolo kernel: [drm] Connector HDMI-A-1: get mode from tunables:
Mar 22 06:36:07 marcopolo kernel: [drm] - kern.vt.fb.modes.HDMI-A-1
Mar 22 06:36:07 marcopolo kernel: [drm] - kern.vt.fb.default_mode
Mar 22 06:36:07 marcopolo kernel: [drm] Connector DVI-D-1: get mode from tunables:
Mar 22 06:36:07 marcopolo kernel: [drm] - kern.vt.fb.modes.DVI-D-1
Mar 22 06:36:07 marcopolo kernel: [drm] - kern.vt.fb.default_mode
Mar 22 06:36:07 marcopolo kernel: [drm] AMDGPU Display Connectors
Mar 22 06:36:07 marcopolo kernel: [drm] Connector 0:
Mar 22 06:36:07 marcopolo kernel: [drm] DP-1
Mar 22 06:36:07 marcopolo kernel: [drm] HPD5
Mar 22 06:36:07 marcopolo kernel: [drm] DDC: 0x4868 0x4868 0x4869 0x4869 0x486a 0x486a 0x486b 0x486b
Mar 22 06:36:07 marcopolo kernel: [drm] Encoders:
Mar 22 06:36:07 marcopolo kernel: [drm] DFP1: INTERNAL_UNIPHY1
Mar 22 06:36:07 marcopolo kernel: [drm] Connector 1:
Mar 22 06:36:07 marcopolo kernel: [drm] HDMI-A-1
Mar 22 06:36:07 marcopolo kernel: [drm] HPD3
Mar 22 06:36:07 marcopolo kernel: [drm] DDC: 0x4874 0x4874 0x4875 0x4875 0x4876 0x4876 0x4877 0x4877
Mar 22 06:36:07 marcopolo kernel: [drm] Encoders:
Mar 22 06:36:07 marcopolo kernel: [drm] DFP2: INTERNAL_UNIPHY1
Mar 22 06:36:07 marcopolo kernel: [drm] Connector 2:
Mar 22 06:36:07 marcopolo kernel: [drm] DVI-D-1
Mar 22 06:36:07 marcopolo kernel: [drm] HPD4
Mar 22 06:36:07 marcopolo kernel: [drm] DDC: 0x4878 0x4878 0x4879 0x4879 0x487a 0x487a 0x487b 0x487b
Mar 22 06:36:07 marcopolo kernel: [drm] Encoders:
Mar 22 06:36:07 marcopolo kernel: [drm] DFP3: INTERNAL_UNIPHY
Mar 22 06:36:07 marcopolo kernel: amdgpu/polaris11_pfp.bin: could not load firmware image, error 2
Mar 22 06:36:07 marcopolo kernel: amdgpu/polaris11_pfp.bin: could not load firmware image, error 2
Mar 22 06:36:07 marcopolo kernel: amdgpu/polaris11_me.bin: could not load firmware image, error 2
Mar 22 06:36:07 marcopolo kernel: amdgpu/polaris11_me.bin: could not load firmware image, error 2
Mar 22 06:36:07 marcopolo kernel: amdgpu/polaris11_ce.bin: could not load firmware image, error 2
Mar 22 06:36:07 marcopolo kernel: amdgpu/polaris11_ce.bin: could not load firmware image, error 2
Mar 22 06:36:07 marcopolo kernel: amdgpu/polaris11_rlc.bin: could not load firmware image, error 2
Mar 22 06:36:07 marcopolo kernel: amdgpu/polaris11_rlc.bin: could not load firmware image, error 2
Mar 22 06:36:07 marcopolo kernel: amdgpu/polaris11_mec.bin: could not load firmware image, error 2
Mar 22 06:36:07 marcopolo kernel: amdgpu/polaris11_mec.bin: could not load firmware image, error 2
Mar 22 06:36:07 marcopolo kernel: amdgpu/polaris11_mec2.bin: could not load firmware image, error 2
Mar 22 06:36:07 marcopolo kernel: amdgpu/polaris11_mec2.bin: could not load firmware image, error 2
Mar 22 06:36:07 marcopolo kernel: drmn0: fence driver on ring 0 use gpu addr 0x0000000100000008, cpu addr 0x0xfffff8003b318008
Mar 22 06:36:07 marcopolo kernel: i_size_write unimplemented
Mar 22 06:36:07 marcopolo kernel: drmn0: fence driver on ring 1 use gpu addr 0x0000000100000018, cpu addr 0x0xfffff8003b318018
Mar 22 06:36:07 marcopolo kernel: i_size_write unimplemented
Mar 22 06:36:07 marcopolo kernel: drmn0: fence driver on ring 2 use gpu addr 0x0000000100000028, cpu addr 0x0xfffff8003b318028
Mar 22 06:36:07 marcopolo kernel: i_size_write unimplemented
Mar 22 06:36:07 marcopolo kernel: drmn0: fence driver on ring 3 use gpu addr 0x0000000100000038, cpu addr 0x0xfffff8003b318038
Mar 22 06:36:07 marcopolo kernel: i_size_write unimplemented
Mar 22 06:36:07 marcopolo kernel: drmn0: fence driver on ring 4 use gpu addr 0x0000000100000048, cpu addr 0x0xfffff8003b318048
Mar 22 06:36:07 marcopolo kernel: i_size_write unimplemented
Mar 22 06:36:07 marcopolo kernel: drmn0: fence driver on ring 5 use gpu addr 0x0000000100000058, cpu addr 0x0xfffff8003b318058
Mar 22 06:36:07 marcopolo kernel: i_size_write unimplemented
Mar 22 06:36:07 marcopolo kernel: drmn0: fence driver on ring 6 use gpu addr 0x0000000100000068, cpu addr 0x0xfffff8003b318068
Mar 22 06:36:07 marcopolo kernel: i_size_write unimplemented
Mar 22 06:36:07 marcopolo kernel: drmn0: fence driver on ring 7 use gpu addr 0x0000000100000078, cpu addr 0x0xfffff8003b318078
Mar 22 06:36:07 marcopolo kernel: i_size_write unimplemented
Mar 22 06:36:07 marcopolo kernel: drmn0: fence driver on ring 8 use gpu addr 0x0000000100000088, cpu addr 0x0xfffff8003b318088
Mar 22 06:36:07 marcopolo kernel: i_size_write unimplemented
Mar 22 06:36:07 marcopolo kernel: drmn0: fence driver on ring 9 use gpu addr 0x0000000100000098, cpu addr 0x0xfffff8003b318098
Mar 22 06:36:07 marcopolo kernel: i_size_write unimplemented
Mar 22 06:36:07 marcopolo kernel: amdgpu/polaris11_sdma.bin: could not load firmware image, error 2
Mar 22 06:36:07 marcopolo kernel: amdgpu/polaris11_sdma.bin: could not load firmware image, error 2
Mar 22 06:36:07 marcopolo kernel: amdgpu/polaris11_sdma1.bin: could not load firmware image, error 2
Mar 22 06:36:07 marcopolo kernel: amdgpu/polaris11_sdma1.bin: could not load firmware image, error 2
Mar 22 06:36:07 marcopolo kernel: drmn0: fence driver on ring 10 use gpu addr 0x00000001000000a8, cpu addr 0x0xfffff8003b3180a8
Mar 22 06:36:07 marcopolo kernel: i_size_write unimplemented
Mar 22 06:36:07 marcopolo kernel: drmn0: fence driver on ring 11 use gpu addr 0x00000001000000b8, cpu addr 0x0xfffff8003b3180b8
Mar 22 06:36:07 marcopolo kernel: i_size_write unimplemented
Mar 22 06:36:07 marcopolo kernel: amdgpu/polaris11_uvd.bin: could not load firmware image, error 2
Mar 22 06:36:07 marcopolo kernel: amdgpu/polaris11_uvd.bin: could not load firmware image, error 2
Mar 22 06:36:07 marcopolo kernel: [drm] Found UVD firmware Version: 1.130 Family ID: 16
Mar 22 06:36:07 marcopolo kernel: drmn0: fence driver on ring 12 use gpu addr 0x0000000000966a80, cpu addr 0x0xfffff800d0966a80
Mar 22 06:36:07 marcopolo kernel: i_size_write unimplemented
Mar 22 06:36:07 marcopolo kernel: amdgpu/polaris11_vce.bin: could not load firmware image, error 2
Mar 22 06:36:07 marcopolo kernel: amdgpu/polaris11_vce.bin: could not load firmware image, error 2
Mar 22 06:36:07 marcopolo kernel: [drm] Found VCE firmware Version: 52.4 Binary ID: 3
Mar 22 06:36:07 marcopolo kernel: drmn0: fence driver on ring 13 use gpu addr 0x00000001000000d8, cpu addr 0x0xfffff8003b3180d8
Mar 22 06:36:07 marcopolo kernel: i_size_write unimplemented
Mar 22 06:36:07 marcopolo kernel: drmn0: fence driver on ring 14 use gpu addr 0x00000001000000e8, cpu addr 0x0xfffff8003b3180e8
Mar 22 06:36:07 marcopolo kernel: i_size_write unimplemented
Mar 22 06:36:07 marcopolo kernel: amdgpu/polaris11_k_smc.bin: could not load firmware image, error 2
Mar 22 06:36:07 marcopolo kernel: amdgpu/polaris11_k_smc.bin: could not load firmware image, error 2
Mar 22 06:36:07 marcopolo kernel: amdgpu: [powerplay] [AVFS] Something is broken. See log!
Mar 22 06:36:07 marcopolo kernel: amdgpu: [powerplay] Can't find requested voltage id in vdd_dep_on_sclk table!
Mar 22 06:36:07 marcopolo kernel: amdgpu: [powerplay]
Mar 22 06:36:07 marcopolo kernel: failed to send message 309 ret is 254
Mar 22 06:36:07 marcopolo kernel: amdgpu: [powerplay]
Mar 22 06:36:07 marcopolo kernel: failed to send pre message 14e ret is 254
Mar 22 06:36:07 marcopolo kernel: [drm] ring test on 1 succeeded in 31 usecs
Mar 22 06:36:07 marcopolo kernel: [drm] ring test on 2 succeeded in 59 usecs
Mar 22 06:36:07 marcopolo kernel: [drm] ring test on 3 succeeded in 47 usecs
Mar 22 06:36:07 marcopolo kernel: [drm] ring test on 4 succeeded in 20 usecs
Mar 22 06:36:07 marcopolo kernel: [drm] ring test on 5 succeeded in 19 usecs
Mar 22 06:36:07 marcopolo kernel: [drm] ring test on 6 succeeded in 19 usecs
Mar 22 06:36:07 marcopolo kernel: [drm] ring test on 7 succeeded in 20 usecs
Mar 22 06:36:07 marcopolo kernel: [drm] ring test on 8 succeeded in 18 usecs
Mar 22 06:36:07 marcopolo kernel: [drm] ring test on 9 succeeded in 19 usecs
Mar 22 06:36:07 marcopolo kernel: [drm] ring test on 10 succeeded in 8 usecs
Mar 22 06:36:07 marcopolo kernel: [drm] ring test on 11 succeeded in 7 usecs
Mar 22 06:36:07 marcopolo kernel: [drm] ring test on 12 succeeded in 1 usecs
Mar 22 06:36:07 marcopolo kernel: [drm] UVD initialized successfully.
Mar 22 06:36:07 marcopolo kernel: [drm] ring test on 13 succeeded in 10 usecs
Mar 22 06:36:07 marcopolo kernel: [drm] ring test on 14 succeeded in 4 usecs
Mar 22 06:36:07 marcopolo kernel: [drm] VCE initialized successfully.
Mar 22 06:36:07 marcopolo kernel: [drm] fb mappable at 0xD0CE7000
Mar 22 06:36:07 marcopolo kernel: [drm] vram apper at 0xD0000000
Mar 22 06:36:07 marcopolo kernel: [drm] size 33177600
Mar 22 06:36:07 marcopolo kernel: [drm] fb depth is 24
Mar 22 06:36:07 marcopolo kernel: [drm] pitch is 15360
Mar 22 06:36:07 marcopolo kernel: VT: Replacing driver "vga" with new "fb".
Mar 22 06:36:07 marcopolo kernel: start FB_INFO:
Mar 22 06:36:07 marcopolo kernel: type=11 height=2160 width=3780 depth=32
Mar 22 06:36:07 marcopolo kernel: cmsize=16 size=33177600
Mar 22 06:36:07 marcopolo kernel: pbase=0xd0ce7000 vbase=0xfffff800d0ce7000
Mar 22 06:36:07 marcopolo kernel: name=drmn0 flags=0x0 stride=15360 bpp=32
Mar 22 06:36:07 marcopolo kernel: cmap[0]=0 cmap[1]=7f0000 cmap[2]=7f00 cmap[3]=c4a000
Mar 22 06:36:07 marcopolo kernel: end FB_INFO
Mar 22 06:36:07 marcopolo kernel: drmn0: fb0: amdgpudrmfb frame buffer device
Mar 22 06:36:07 marcopolo kernel: [drm] ib test on ring 1 succeeded
Mar 22 06:36:07 marcopolo kernel: [drm] ib test on ring 2 succeeded
Mar 22 06:36:07 marcopolo kernel: [drm] ib test on ring 3 succeeded
Mar 22 06:36:07 marcopolo kernel: [drm] ib test on ring 4 succeeded
Mar 22 06:36:07 marcopolo kernel: [drm] ib test on ring 5 succeeded
Mar 22 06:36:07 marcopolo kernel: [drm] ib test on ring 6 succeeded
Mar 22 06:36:07 marcopolo kernel: [drm] ib test on ring 7 succeeded
Mar 22 06:36:07 marcopolo kernel: [drm] ib test on ring 8 succeeded
Mar 22 06:36:07 marcopolo kernel: [drm] ib test on ring 9 succeeded
Mar 22 06:36:07 marcopolo kernel: [drm] ib test on ring 10 succeeded
Mar 22 06:36:07 marcopolo kernel: [drm] ib test on ring 11 succeeded
Mar 22 06:36:07 marcopolo kernel: [drm] ib test on ring 12 succeeded
Mar 22 06:36:07 marcopolo kernel: [drm] ib test on ring 13 succeeded
Mar 22 06:36:07 marcopolo kernel: [drm] registered fictitious range 0xd0000000-0xe0000000
Mar 22 06:36:07 marcopolo kernel: i_size_write unimplemented
Mar 22 06:36:07 marcopolo kernel: [drm] Initialized amdgpu 3.10.0 20150101 for drmn0 on minor 0
Mar 22 06:36:07 marcopolo kernel: i_size_write unimplemented
Mar 22 06:36:07 marcopolo kernel: [drm] Initialized amdgpu 3.10.0 20150101 for drmn0 on minor 0
Mar 22 06:36:07 marcopolo kernel: wlan0: Ethernet address: a0:f3:c1:32:36:80
Mar 22 06:36:07 marcopolo kernel: wlan0: link state changed to UP
Mar 22 06:36:07 marcopolo kernel: re0: link state changed to DOWN
Mar 22 06:36:07 marcopolo kernel: uhid0 on uhub2
Mar 22 06:36:07 marcopolo kernel: uhid0: <CM Storm Quickfire TKL 6keys, class 0/0, rev 1.10/1.11, addr 2> on usbus4
Mar 22 06:36:07 marcopolo kernel: ums0 on uhub1
Mar 22 06:36:07 marcopolo kernel: ums0: <La-VIEW Technology SteelSeries, class 0/0, rev 2.00/0.00, addr 2> on usbus5
Mar 22 06:36:07 marcopolo kernel: ums0: 8 buttons and [XYZT] coordinates ID=1
Mar 22 06:36:07 marcopolo microcode_update: /usr/local/share/cpucontrol/m101067770A.fw: updating cpu /dev/cpuctl0 from rev 0 to rev 0x70a... done.
Mar 22 06:36:07 marcopolo microcode_update: /usr/local/share/cpucontrol/m101067770A.fw: updating cpu /dev/cpuctl1 from rev 0 to rev 0x70a... done.
Mar 22 06:36:07 marcopolo microcode_update: /usr/local/share/cpucontrol/m101067770A.fw: updating cpu /dev/cpuctl2 from rev 0 to rev 0x70a... done.
Mar 22 06:36:07 marcopolo microcode_update: /usr/local/share/cpucontrol/m101067770A.fw: updating cpu /dev/cpuctl3 from rev 0 to rev 0x70a... done.
Mar 22 06:36:08 marcopolo ntpd[87505]: ntpd 4.2.8p11-a (1): Starting
Mar 22 06:36:08 marcopolo kernel: CPU: Intel(R) Core(TM)2 Quad CPU Q9300 @ 2.50GHz (2504.77-MHz K8-class CPU)
Mar 22 06:36:08 marcopolo kernel: Origin="GenuineIntel" Id=0x10677 Family=0x6 Model=0x17 Stepping=7
Mar 22 06:36:08 marcopolo kernel: 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>
Mar 22 06:36:08 marcopolo kernel: Features2=0x8e3fd<SSE3,DTES64,MON,DS_CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1>
Mar 22 06:36:08 marcopolo kernel: AMD Features=0x20000800<SYSCALL,LM>
Mar 22 06:36:08 marcopolo kernel: AMD Features2=0x1
Mar 22 06:36:08 marcopolo kernel: VT-x: HLT,PAUSE
Mar 22 06:36:08 marcopolo kernel: TSC: P-state invariant, performance statistics
Mar 22 06:36:08 marcopolo ntpd[87795]: leapsecond file ('/var/db/ntpd.leap-seconds.list'): good hash signature
Mar 22 06:36:08 marcopolo ntpd[87795]: leapsecond file ('/var/db/ntpd.leap-seconds.list'): loaded, expire=2018-12-28T00:00:00Z last=2017-01-01T00:00:00Z ofs=37
Mar 22 06:36:09 marcopolo root: /etc/rc: WARNING: $hald_enable is not set properly - see rc.conf(5).
Mar 22 06:36:23 marcopolo dbus[50127]: [system] Activating service name='org.freedesktop.ConsoleKit' (using servicehelper)
Mar 22 06:36:23 marcopolo dbus[50127]: [system] Activating service name='org.freedesktop.PolicyKit1' (using servicehelper)
Mar 22 06:36:23 marcopolo dbus[50127]: [system] Successfully activated service 'org.freedesktop.ConsoleKit'
Mar 22 06:36:23 marcopolo dbus[50127]: [system] Successfully activated service 'org.freedesktop.PolicyKit1'

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.