Solved drm-kmod dump core

  • Thread starter Deleted member 63539
  • Start date
D

Deleted member 63539

Guest
Hi. I used to use the same procedure on 11.3. I wrote it to a note before I replace 11.3 with Linux because my job at this time required Linux. Now I'm back with 11.4, everything was set up straight forward using my note but I don't know why, the system dumped core and reboot immediately.

I installed the package drm-kmod and put this line into my /etc/rc.conf:
Code:
kld_list="/boot/modules/i915kms.ko"
Then I add myself to the video group: pw group mod video -m [username]

To get sound working, I added this line to /boot/loader.conf:
Code:
snd_hda_load="YES"
When I go into single user mode, after get everything writable with mount -u / I edit /etc/rc.conf and remove this line, after that, I could boot properly. So it's definitely this line that caused the problem.

I do a quick check with kldstat and I found the line I added to /boot/loader.conf doesn't have any effect, either. So I commented it out.

I tried to load i915.ko with kldload i915.ko, it loaded fine but X still failed to start.

Please help.[/file]
 
Last edited by a moderator:
After a while I realized i915kms.ko is included as part of the system under /boot/kernel. I uninstalled the drm-kmod package and load this module instead. Everything now works fine. I also found I no longer need to add snd_hda_load="YES" into /boot/loader.conf to have sound working. Everything is almost out of the box now.
 
Last edited by a moderator:
That one is old.
Does it OK to use this old module or I should use the one from the drm-kmod package? That version dumped core for me. Should I report it as bug?
 
Does it OK to use this old module or I should use the one from the drm-kmod package? That version dumped core for me. Should I report it as bug?

The driver in /boot/kernel/i915kms.ko is the old, legacy DRM kmod. It is still shipped with FreeBSD 11 and 12, but removed in CURRENT. You can still use it if your hardware is supported by it (I believe hardware supports ends with Haswell CPUs in legacy DRM). I would recommend using the new lkpi based driver in drm-kmod, though.

Before reporting the core dump, please ensure that drm-kmod, drm-fbsd11.2-kmod (yes, even on 11.4) and gpu-firmware-kmod are up to date (using pkg or ports, whichever method you prefer). If they are and things still are crashing, it would be interesting to see exactly what breaks.
 
The driver in /boot/kernel/i915kms.ko is the old, legacy DRM kmod. It is still shipped with FreeBSD 11 and 12, but removed in CURRENT. You can still use it if your hardware is supported by it (I believe hardware supports ends with Haswell CPUs in legacy DRM). I would recommend using the new lkpi based driver in drm-kmod, though.

Before reporting the core dump, please ensure that drm-kmod, drm-fbsd11.2-kmod (yes, even on 11.4) and gpu-firmware-kmod are up to date (using pkg or ports, whichever method you prefer). If they are and things still are crashing, it would be interesting to see exactly what breaks.
I confirmed that it's the latest version from pkg. Today I did a fresh reinstall and it still failed.

p/s: Do you need the files under /var/crash? If they don't contain sensitive information (like my passwords) I will upload it.
 
zeising@ Dear developer, are you still there? Today I played SuperTux2 and it's lagging too much caused my eyes to hurt. So I think I should switch to the newer driver. The old one is fine for youtube, though, with a bit of tearing. Where could I report this drm-kmod dumped core bug? Perhaps in the base system, since it's shipped as part of a FreeBSD installation? Thanks.
 
Try this:

# pkg remove drm-kmod
# pkg install drm-legacy-kmod

Leave rc.conf as it is now.
Code:
doas pkg install drm-legacy-kmod
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
pkg: No packages available to install matching 'drm-legacy-kmod' have been found in the repositories
 
Oh wait ... This port is for 12.1-RELEASE


For 11.4-RELEASE you'll need to go back to drm-kmod.
 
Oh wait ... This port is for 12.1-RELEASE


For 11.4-RELEASE you'll need to go back to drm-kmod.
I'm already using drm-kmod and it dumped core for me caused me to switch to the old i915kms.ko shipped with the base system!
 
What is your video system?
On Linux there is inxi for such a job but I don't found it on pkg. Here is pciconf -vl:

Code:
pciconf -vl
hostb0@pci0:0:0:0:    class=0x060000 card=0x78171462 chip=0x0c008086 rev=0x06 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '4th Gen Core Processor DRAM Controller'
    class      = bridge
    subclass   = HOST-PCI
vgapci0@pci0:0:2:0:    class=0x030000 card=0x78171462 chip=0x04128086 rev=0x06 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller'
    class      = display
    subclass   = VGA
xhci0@pci0:0:20:0:    class=0x0c0330 card=0x78171462 chip=0x8c318086 rev=0x05 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '8 Series/C220 Series Chipset Family USB xHCI'
    class      = serial bus
    subclass   = USB
none0@pci0:0:22:0:    class=0x078000 card=0x78171462 chip=0x8c3a8086 rev=0x04 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '8 Series/C220 Series Chipset Family MEI Controller'
    class      = simple comms
ehci0@pci0:0:26:0:    class=0x0c0320 card=0x78171462 chip=0x8c2d8086 rev=0x05 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '8 Series/C220 Series Chipset Family USB EHCI'
    class      = serial bus
    subclass   = USB
hdac0@pci0:0:27:0:    class=0x040300 card=0xd8171462 chip=0x8c208086 rev=0x05 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '8 Series/C220 Series Chipset High Definition Audio Controller'
    class      = multimedia
    subclass   = HDA
pcib1@pci0:0:28:0:    class=0x060400 card=0x78171462 chip=0x8c108086 rev=0xd5 hdr=0x01
    vendor     = 'Intel Corporation'
    device     = '8 Series/C220 Series Chipset Family PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI
pcib2@pci0:0:28:2:    class=0x060400 card=0x78171462 chip=0x8c148086 rev=0xd5 hdr=0x01
    vendor     = 'Intel Corporation'
    device     = '8 Series/C220 Series Chipset Family PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI
ehci1@pci0:0:29:0:    class=0x0c0320 card=0x78171462 chip=0x8c268086 rev=0x05 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '8 Series/C220 Series Chipset Family USB EHCI'
    class      = serial bus
    subclass   = USB
isab0@pci0:0:31:0:    class=0x060100 card=0x78171462 chip=0x8c5c8086 rev=0x05 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'H81 Express LPC Controller'
    class      = bridge
    subclass   = PCI-ISA
ahci0@pci0:0:31:2:    class=0x010601 card=0x78171462 chip=0x8c028086 rev=0x05 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode]'
    class      = mass storage
    subclass   = SATA
none1@pci0:0:31:3:    class=0x0c0500 card=0x78171462 chip=0x8c228086 rev=0x05 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '8 Series/C220 Series Chipset Family SMBus Controller'
    class      = serial bus
    subclass   = SMBus
re0@pci0:2:0:0:    class=0x020000 card=0x78171462 chip=0x816810ec rev=0x0c hdr=0x00
    vendor     = 'Realtek Semiconductor Co., Ltd.'
    device     = 'RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller'
    class      = network
    subclass   = ethernet
 
zeising@ Dear developer, are you still there? Today I played SuperTux2 and it's lagging too much caused my eyes to hurt. So I think I should switch to the newer driver. The old one is fine for youtube, though, with a bit of tearing. Where could I report this drm-kmod dumped core bug? Perhaps in the base system, since it's shipped as part of a FreeBSD installation? Thanks.

Sorry, I don't always remember to check the forums. In any case, as stated in the PR, please try to rebuild drm-fbsd11.2-kmod (it's for 11.3 and 11.4, the name is an accident) and gpu-firmware-kmod locally from ports, and then ensure that you are loading the driver from `/boot/modules/i915kms.ko by putting kld_list="/boot/modules/i915kms.ko"` in /etc/rc.conf. It's important to keep the entire path there, otherwise the legacy driver will be loaded.
 
Sorry, I don't always remember to check the forums. In any case, as stated in the PR, please try to rebuild drm-fbsd11.2-kmod (it's for 11.3 and 11.4, the name is an accident) and gpu-firmware-kmod locally from ports, and then ensure that you are loading the driver from `/boot/modules/i915kms.ko by putting kld_list="/boot/modules/i915kms.ko"` in /etc/rc.conf. It's important to keep the entire path there, otherwise the legacy driver will be loaded.
Build from ports worked fine. I will mark the thread as SOLVED.
 
  • Like
Reactions: a6h
I've tried using the new i915 module driver but it doesn't support my native resolution (1280x800) and I have a 965GM Chipset so it's pretty old, if FreeBSD 13 is going to remove the old i915 driver should I be worried that my resolution will get lost somewhere?
 
Back
Top