<div dir="ltr">I could be wrong, but what I think is supposed to happen is that the correct kernel module is supposed to load automatically when Xorg starts. In my experience sometimes that doesn't work for some reason. What I have done on both freebsd and dragonfly is do exactly what you are doing there and figure out what driver I need and manually load the kernel module. I also believe there are sometimes multiple drm drivers that might work in principle (amdgpu and radeon for instance) and so it might be a good idea to manually load the correct driver for that reason. <div><br></div><div>-Bill</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, May 5, 2024 at 11:24 PM Martin Ivanov <<a href="mailto:marto1980@gmail.com">marto1980@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello,<br><div>I have DragonFlyBSD 6.4.0 on my ASUS laptop with an embedded intel graphics card. The driver i915 does not get loaded during boot, so I have to either load it manually or, as I recently solved it, add load_i915 to /etc/rc.conf. Is the last a good solution? I previously tried doing that in a custom executable script in /usr/local/etc/rc.d with "kldload i915", but it sometimes lead to kernel panic during booting. Having load_i915="YES" in /etc/rc.conf seems to be stabler so far.</div><div><br></div><div>Actually, why in the first place does the loading of i915 not happen during boot without that line in /etc/rc.conf? In my dmesg I see several attempts for that to happen, but obviously none of them succeeds. Here is what I noted in dmesg:</div><div><br></div><div>[drm] pdev: vendor=0x8086 device=0x591b rev=0x04<br>[drm] svendor=0x1043 sdevice=0x1970 irq=17<br>WARN_ON(domain->wake_count == 0)<4>WARN_ON(domain->wake_count == 0)<4>WARN_ON(domain->wake_count == 0)error: [drm:pid220:gen8_gmch_probe] *ERROR* Can't set DMA mask/consistent mask (-5)<br>[drm] Memory usable by graphics device = 4096M<br>[drm] Supports vblank timestamp caching Rev 2 (21.10.2013).<br>[drm] Driver supports precise vblank timestamp query.<br>i915/kbl_dmc_ver1_01.bin: could not load firmware image, error 2<br>drm1: Failed to load DMC firmware i915/kbl_dmc_ver1_01.bin. Disabling runtime power management.<br>drm1: DMC firmware homepage: <a href="https://01.org/linuxgraphics/downloads/firmwaretunable" target="_blank">https://01.org/linuxgraphics/downloads/firmwaretunable</a> drm.video.DP-1 is not set<br>tunable drm.video.HDMI-A-1 is not set<br>tunable drm.video.DP-2 is not set<br>RPM wakelock ref not held during HW access<4>RPM wakelock ref not held during HW access<6>[drm] taking over the fictitious range 0x40000000-0x10000000<br>[drm] Initialized i915 1.6.0 20171023 for dev_name on minor 0<br>kms console: xpixels 1920 ypixels 1080<br>[drm] DRM_I915_DEBUG_GEM enabled<br>drm1 on vgapci1<br>[drm] RC6 on<br>i915: warning, request 0xfffff801501aafc0 not completed<br></div><div><br></div><div>My complete dmesg output is attached (dmesg.log).</div><div><br></div><div>Any suggestions will be appreciated.</div><div><br></div><div>Best regards,</div><div>Martin</div></div>
</blockquote></div>