Bug 246162 - graphics/drm-current-kmod use /boot/loader.conf to can't load!
Summary: graphics/drm-current-kmod use /boot/loader.conf to can't load!
Status: Closed Not A Bug
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-x11 (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-04 07:12 UTC by Brian Zou
Modified: 2020-05-04 14:00 UTC (History)
3 users (show)

See Also:
linimon: maintainer-feedback? (x11)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brian Zou 2020-05-04 07:12:11 UTC
kms-drm-current use /boot/loader.connf to can't load!
Add `kld_list="amdgpu"` and `kld_list="/boot/modules/amdgpu.ko`" to /boot/loader.conf and /etc/rc.conf both can't load.

must be use `kldload amdgpu` to load it?

CPU: AMD Ryzen 3700U
GPU: VEGA Graphic 10
FreeBSD Version: 13-CURRENT r360211 amd64
Comment 1 Niclas Zeising freebsd_committer freebsd_triage 2020-05-04 13:54:32 UTC
This is intentional, it is not possible to load the drm kmods from /boot/loader.conf or from the loader.

Put kld_list="/boot/modules/amdgpu.ko" (or any other module you need to load) to have the module load during boot.
Comment 2 Michael Gmelin freebsd_committer freebsd_triage 2020-05-04 13:58:17 UTC
(In reply to Niclas Zeising from comment #1)

> Put kld_list="/boot/modules/amdgpu.ko" (or any other module you need to load) to have the module load during boot...

...into /etc/rc.conf, e.g. using sysrc:

  sysrc kld_list+="/boot/modules/amdgpu.ko"

Make sure to remove amdgpu from /boot/loader.conf.
Comment 3 Niclas Zeising freebsd_committer freebsd_triage 2020-05-04 14:00:31 UTC
Yeah.  I probably got interrupted halfway through and forgot to finish that sentence, sorry.