Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

intel graphics regression? between r332432 and r333982

6 views
Skip to first unread message

Anton Shterenlikht

unread,
Jun 5, 2018, 6:08:51 PM6/5/18
to
I'm looking for help to make graphics work on Dell Precision 3520.

This did work in r332432:
http://freebsd.1045724.x6.nabble.com/Dell-Precision-3520-laptop-help-with-dual-graphics-card-td6249818.html

I now updated to:

# uname -a
FreeBSD z.net 12.0-CURRENT FreeBSD 12.0-CURRENT #0 r333982: Thu May 24 21:24:22 BST 2018 ro...@z.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64

and I cannot get graphics anymore.
Some details:

# pciconf -lv | grep -A3 vga
vgapci1@pci0:0:2:0: class=0x030000 card=0x07a91028 chip=0x191b8086 rev=0x06 hdr=0x00
vendor = 'Intel Corporation'
device = 'HD Graphics 530'
class = display
--
vgapci0@pci0:1:0:0: class=0x030200 card=0x07a91028 chip=0x13b410de rev=0xa2 hdr=0x00
vendor = 'NVIDIA Corporation'
device = 'GM107GLM [Quadro M620 Mobile]'
class = display

Somebody in questions@ suggested
https://github.com/ahacking/freebsd-gpu-off
to disable one of the 2 devices.
Not sure if this worked as expected.
I now have:

# cat /usr/local/etc/gpu-off.conf
export methods="\_SB.PCI0.PEG0.PEGP._OFF"

I built graphics/drm-next-kmod
and added kld_list="/boot/modules/i915kms.ko"
to /etc/rc.conf.

However, on boot I see:

KLD drm.ko: depends on kernel - 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
linker_load_file: /boot/modules/i915kms.ko - unsupported file type

I can still load these modules manually:

root@z:~ # kldload drm
root@z:~ # kldload i915kms
info: [drm] Initialized drm 1.1.0 20060810
root@z:~ # kldstat
Id Refs Address Size Name
1 44 0xffffffff80200000 23fad18 kernel
2 1 0xffffffff825fc000 29bc8 if_iwm.ko
3 1 0xffffffff82626000 1bb438 iwm8265fw.ko
4 1 0xffffffff831fa000 be5c geom_bde.ko
6 1 0xffffffff83206000 210 acpi_call.ko
7 1 0xffffffff83207000 2388 ums.ko
8 1 0xffffffff8320a000 1780 uhid.ko
9 1 0xffffffff8320c000 10c70 drm.ko
10 1 0xffffffff8321d000 7d0e0 i915kms.ko
11 1 0xffffffff8329b000 40eb0 drm2.ko
12 4 0xffffffff832dc000 1ef0 iicbus.ko
13 1 0xffffffff832de000 ec0 iic.ko
14 1 0xffffffff832df000 1570 iicbb.ko


Still, starting X I get in /var/log/Xorg.0.log

[ 429.258] (EE) open /dev/dri/card0: No such file or directory

Give me a hint

Anton

_______________________________________________
freebsd...@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-curre...@freebsd.org"

Jean-Sébastien Pédron

unread,
Jun 16, 2018, 5:17:43 AM6/16/18
to
On 06.06.2018 00:04, Anton Shterenlikht wrote:
> I built graphics/drm-next-kmod
> and added kld_list="/boot/modules/i915kms.ko"
> to /etc/rc.conf.
>
> However, on boot I see:
>
> KLD drm.ko: depends on kernel - 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
> linker_load_file: /boot/modules/i915kms.ko - unsupported file type

Hi!

You need to make sure that the base sources you use to build
graphics/drm-next-kmod match the kernel you are running. And currently,
this is not the case according to the error.

> I can still load these modules manually:
>
> root@z:~ # kldload drm
> root@z:~ # kldload i915kms

When you only specify the module name, as opposed the the absolute path
like in /etc/rc.conf, you load the module compiled with the kernel (e.g.
/boot/kernel/i915kms.ko), which is different from the one installed by
drm-next-kmod. And the one built with the kernel doesn't support your GPU.

--
Jean-Sébastien Pédron
The FreeBSD Project

signature.asc
0 new messages