Bug 224257 - DRM-NEXT does not work - ASRock N3150B-ITX - Celeron N3150 - Braswell
Summary: DRM-NEXT does not work - ASRock N3150B-ITX - Celeron N3150 - Braswell
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: amd64 Any
: --- Affects Many People
Assignee: freebsd-x11 (Nobody)
URL: https://github.com/FreeBSDDesktop/kms...
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-11 23:16 UTC by Slawomir Wojciech Wojtczak
Modified: 2018-05-20 08:41 UTC (History)
3 users (show)

See Also:


Attachments
/var/run/dmesg.boot (9.39 KB, text/plain)
2017-12-11 23:16 UTC, Slawomir Wojciech Wojtczak
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Slawomir Wojciech Wojtczak 2017-12-11 23:16:10 UTC
Created attachment 188734 [details]
/var/run/dmesg.boot

Hi,

I have upgraded to FreeBSD 12-CURRENT (2017/11/03) with GENERIC-NODEBUG config for the kernel.

% uname -a
FreeBSD bs.local 12.0-CURRENT FreeBSD 12.0-CURRENT #0: Sat Nov  4 00:38:39 CET 2017     root@bs.local:/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?

Also HDMI output does not work, VGA output works.


Regards,
vermaden
Comment 1 Conrad Meyer freebsd_committer freebsd_triage 2017-12-12 00:15:36 UTC
> Upon boot there are messages that firmware from 'gpu-firmware-kmod' package
> failed to load so there would be no power management.

Please supply these messages.
Comment 2 Conrad Meyer freebsd_committer freebsd_triage 2017-12-12 00:16:15 UTC
I'm not sure FreeBSD i915kms supports Braswell yet, either.
Comment 3 Slawomir Wojciech Wojtczak 2017-12-12 10:56:56 UTC
(In reply to Conrad Meyer from comment #2)

Ok, I am 'going back' to my older supported setup, 2011 H61 chipset along with 35W Celeron G1610T from 2013.

That works well without any issues.

Regards,
vermaden
Comment 4 Johannes Lundberg 2017-12-12 14:49:59 UTC
Intel graphics from 2015 should work (as far as drm driver). Maybe there's some special handling for this chip series that linuxkpi do not yet support. Maybe some debug output from drm can help us track it down?
Comment 5 Slawomir Wojciech Wojtczak 2017-12-12 15:51:05 UTC
(In reply to Johannes Lundberg from comment #4)
How can I collect that debug output?
Comment 6 Slawomir Wojciech Wojtczak 2017-12-12 16:05:49 UTC
For the record, here is submitted 'Issue' on FreeBSDDesktop/kms-drm:
https://github.com/FreeBSDDesktop/kms-drm/issues/17
Comment 7 Slawomir Wojciech Wojtczak 2017-12-12 16:48:48 UTC
(In reply to Johannes Lundberg from comment #4)
> Intel graphics from 2015 should work (as far as drm driver).
> Maybe there's some special handling for this chip series that linuxkpi do not yet support.
As I checked the Internet, Linux works fine on these devices.
Comment 8 Johannes Lundberg 2017-12-12 17:48:32 UTC
dev.drm.drm_debug=-1

in /boot/loader.conf 
(A LOT of debug output)

> As I checked the Internet, Linux works fine on these devices.

Remember to check against Linux 4.9 because that's what's in drm-next at the moment.
Comment 9 Slawomir Wojciech Wojtczak 2017-12-13 00:11:14 UTC
(In reply to Johannes Lundberg from comment #8)
Here are collected logs with this debug option:
https://github.com/FreeBSDDesktop/kms-drm/issues/17#issuecomment-351119701

I started X11 on VGA display (detected/works) and HDMI display (not detected/does not display anything).

Logs are at that link:
https://github.com/FreeBSDDesktop/kms-drm/issues/17#issuecomment-351119701

Also, after loading the /boot/modules/i915kms.ko (from drm-next) the 'pure' console did not set proper resolution on my VGA display, the prompt was several lines below line of sight, also it was not 'pixel-perfect', it was 'resized' or 'junky'.

Regards,
vermaden
Comment 10 Slawomir Wojciech Wojtczak 2017-12-16 12:19:19 UTC
The HDMI does not work on Linux Mint 18.2 which uses Linux 4.8 kernel, but that does not cheer me up.

For the record, the Mini Jack output (sound output) also does not work on N3150.

On paper this board seems to be almost ideal for the setup I am using, the data on ZFS along with 'TV Role' over HDMI with Air Mouse and it uses only 6W for the whole motherboard, has 4 physical cores at the same time and supports AESNI. And it even supports low power DIMMs (1.35v instead of 1.5v).

I went back to my WORKING setup, which is MSI H61 Mini-ITX motherboard from 2011 along with Celeron G1610T from 2013. Both HDMI and Mini Jack outputs work. The chipset itself uses about 7W, with additional 15-35W from the CPU, which is several times more then N3150, but as Bitcoin uses more power then entire Denmark I do not care about power that much anymore.

I must now send this N3150 motherboard back to my seller, so I will not be able to test more things.

Regards,
vermaden
Comment 11 Niclas Zeising freebsd_committer freebsd_triage 2018-05-20 08:41:45 UTC
This issue is tracked in the drm-kms upstream repo instead, see the link.

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