Bug 229794

Summary: GPU HANG error with graphics/drm-next-kmod and braswell under FreeBSD 11.2
Product: Ports & Packages Reporter: Dan MacDonald <allcoms>
Component: Individual Port(s)Assignee: Johannes M Dieterich <jmd>
Status: Closed Not Accepted    
Severity: Affects Only Me CC: allcoms
Priority: ---    
Version: Latest   
Hardware: amd64   
OS: Any   
Attachments:
Description Flags
screenshot of FreeBSD 11.2 braswell GPU HANG error
none
tarball of various ubuntu 18.04 log files - xorg, dmidecode, mpv, dmesg etc none

Description Dan MacDonald 2018-07-15 22:42:03 UTC
Created attachment 195163 [details]
screenshot of FreeBSD 11.2 braswell GPU HANG error

I upgraded my FreeBSD server from 11.1 to 11.2 a couple of days ago. The main reason I did so was in the hope that I would finally get accelerated graphics working but I've had no such luck. The mobo is a Gigabyte N3150-N D3V which I think uses a Braswell GPU, which is supposed to be supported by drm-next-kmod in ports.

I installed xorg-video-intel, the kernel source for FreeBSD 11.2 and I installed drm-next-kmod from ports then loaded the kernel module in rc.conf with: 

kld_list="/boot/modules/i915kms.ko" 

When I try booting with the kernel module I get the error in the attached screenshot. I have provided some more logs here:

https://forums.freebsd.org/threads/braswell-gpu-support.66678/

Thanks
Comment 1 Dan MacDonald 2018-08-06 22:58:58 UTC
Created attachment 195955 [details]
tarball of various ubuntu 18.04 log files - xorg, dmidecode, mpv, dmesg etc

tarball of various ubuntu 18.04 log files - xorg, dmidecode, mpv, dmesg etc

With the hardware detailed in the attached logs, I can play the UHD MP4 file smoothly at full UHD res on my UHD display with in-sync audio (both being sent over the DVI to HDMI cable) under the Ubuntu 18.04.1 build of mpv. I would like to be able to do the same under FreeBSD with the same hardware, sound optional. I would be happy just to get the vaapi hardware decoding working under FreeBSD, I'm not as concerned about HDMI audio right now.
Comment 2 Dan MacDonald 2018-08-13 08:50:17 UTC
I'm going to close this because I have found the correct place to file bugs for the drm kmod:

https://github.com/FreeBSDDesktop/kms-drm/issues/86