drm-kmod

18mb...
Code:
pkg list drm-66-kmod
/boot/modules/amdgpu.ko
/boot/modules/dmabuf.ko
/boot/modules/drm.ko
/boot/modules/i915kms.ko
/boot/modules/radeonkms.ko
/boot/modules/ttm.ko
/usr/local/share/licenses/drm-66-kmod-6.6.25.1500068_8/BSD2CLAUSE
/usr/local/share/licenses/drm-66-kmod-6.6.25.1500068_8/GPLv2
/usr/local/share/licenses/drm-66-kmod-6.6.25.1500068_8/LICENSE
/usr/local/share/licenses/drm-66-kmod-6.6.25.1500068_8/MIT
/usr/local/share/licenses/drm-66-kmod-6.6.25.1500068_8/catalog.m
 
balanga, that's probably not drm-kmod but gpu-firmware-kmod, for the file count that is. You don't actually need it, just the relevant kmod files for your hardware. The meta package for intel is gpu-firmware-intel-kmod and from this the flavour that matches your hardware.

Note that installing drm-kmod without the gpu-firmware to match will result in a black screen after boot or fallback to framebuffer if you are lucky.
 
I have always run pkg install drm-kmod because that is what I thought I needed to do. I never understood why I received so many files, but since things worked I didn't pursue things.
 
If you don't want all the gpu firmware installed, check in kldstat(8) which one is loaded, delete all the others. On a system that does not yet have any GPU firmware installed, now that the required firmware has been identified, proceed to install that specific firmware only.

E.g.:
Code:
 % kldstat
17    1 0xffffffff84382000    312e0 amdgpu_renoir_asd_bin.ko
18    1 0xffffffff843b4000     c4e0 amdgpu_renoir_ta_bin.ko
19    1 0xffffffff843c1000    1fbe8 amdgpu_renoir_dmcub_bin.ko
20    1 0xffffffff843e1000     7560 amdgpu_renoir_pfp_bin.ko
21    1 0xffffffff843e9000     6560 amdgpu_renoir_me_bin.ko
22    1 0xffffffff843f0000     4560 amdgpu_renoir_ce_bin.ko
23    1 0xffffffff843f5000     bcd8 amdgpu_renoir_rlc_bin.ko
24    1 0xffffffff84401000    43800 amdgpu_renoir_mec_bin.ko
25    1 0xffffffff84445000     64e0 amdgpu_renoir_sdma_bin.ko
26    1 0xffffffff8444c000    64aa0 amdgpu_renoir_vcn_bin.ko
Code:
% pkg info | grep renoir
gpu-firmware-amd-kmod-renoir-20250109.1500068 Firmware modules for renoir AMD GPUs
 
I only have i915kms and drm.
Then you need besides graphics/drm-66-kmod to identify (using kldstat(8)) which firmware the gpu needs and install only that firmware. There are those listed below:
Code:
 % cd /usr/ports/graphics/gpu-firmware-intel-kmod

 % make flavors-package-names
gpu-firmware-intel-kmod-skylake-20250109.1500068
gpu-firmware-intel-kmod-broxton-20250109.1500068
gpu-firmware-intel-kmod-kabylake-20250109.1500068
gpu-firmware-intel-kmod-geminilake-20250109.1500068
gpu-firmware-intel-kmod-cannonlake-20250109.1500068
gpu-firmware-intel-kmod-icelake-20250109.1500068
gpu-firmware-intel-kmod-elkhartlake-20250109.1500068
gpu-firmware-intel-kmod-tigerlake-20250109.1500068
gpu-firmware-intel-kmod-rocketlake-20250109.1500068
gpu-firmware-intel-kmod-dg1-20250109.1500068
gpu-firmware-intel-kmod-dg2-20250109.1500068
gpu-firmware-intel-kmod-alderlake-20250109.1500068
gpu-firmware-intel-kmod-meteorlake-20250109.1500068
 
Then you need besides graphics/drm-66-kmod to identify (using kldstat(8)) which firmware the gpu needs and install only that firmware. There are those listed below:
Code:
 % cd /usr/ports/graphics/gpu-firmware-intel-kmod

 % make flavors-package-names
gpu-firmware-intel-kmod-skylake-20250109.1500068
gpu-firmware-intel-kmod-broxton-20250109.1500068
gpu-firmware-intel-kmod-kabylake-20250109.1500068
gpu-firmware-intel-kmod-geminilake-20250109.1500068
gpu-firmware-intel-kmod-cannonlake-20250109.1500068
gpu-firmware-intel-kmod-icelake-20250109.1500068
gpu-firmware-intel-kmod-elkhartlake-20250109.1500068
gpu-firmware-intel-kmod-tigerlake-20250109.1500068
gpu-firmware-intel-kmod-rocketlake-20250109.1500068
gpu-firmware-intel-kmod-dg1-20250109.1500068
gpu-firmware-intel-kmod-dg2-20250109.1500068
gpu-firmware-intel-kmod-alderlake-20250109.1500068
gpu-firmware-intel-kmod-meteorlake-20250109.1500068
I wish I understood what I was supposed to do with this instruction.

Do I need to install ports to get my graphics working properly?
 
balanga, my suggestion is doing one of these:
  • Install drm-kmod and be done (accept that it will install lots of firmware packages you don't need)
  • Install the drm-*-kmod package you want (61, 66 or latest) plus gpu-firmware-intel-kmod (will install extra intel firmware but a lot less than the above)
  • Install the drm-*-kmod package you want (61, 66 or latest) plus the specific gpu-firmware-intel-kmod packagr for your hardware (match the flavour name your hardware).
I prefer the middle option, because if my specific firmware package gets split in the future there's less chance a pkg update misses it. But feel free to do whichever.

As for not needing the gpu-firmware package, if your hardware doesn't need firmware you don't need to install it has was said.
 
balanga, my suggestion is doing one of these:
  • Install drm-kmod and be done (accept that it will install lots of firmware packages you don't need)
  • Install the drm-*-kmod package you want (61, 66 or latest) plus gpu-firmware-intel-kmod (will install extra intel firmware but a lot less than the above)
  • Install the drm-*-kmod package you want (61, 66 or latest) plus the specific gpu-firmware-intel-kmod packagr for your hardware (match the flavour name your hardware).
I prefer the middle option, because if my specific firmware package gets split in the future there's less chance a pkg update misses it. But feel free to do whichever.

As for not needing the gpu-firmware package, if your hardware doesn't need firmware you don't need to install it has was said.
You say 61, 66 or latest, how do I know which is the latest?

Also how can I tell what hardware I have?

Will pciconf show me that ?

I get a bit lost with all the modules installed and don't really understand what they are for.
 
I didn't realise that 'latest' was actually the name. I thought it was simply short for a later one who's name I don't recall...
As seen in its first commit message, graphics/drm-latest-kmod is NOT a LTS version (LTS versions has numbered version in its PORTNAME, like 510, 515, 61 and 66).
I consider "latest" for early adopters that has too new GPUs that even 66 doesn't support but 6.9 supports, and who understand enough for the risk to take.
 
As seen in its first commit message, graphics/drm-latest-kmod is NOT a LTS version (LTS versions has numbered version in its PORTNAME, like 510, 515, 61 and 66).
I consider "latest" for early adopters that has too new GPUs that even 66 doesn't support but 6.9 supports, and who understand enough for the risk to take.
I only have old hardware so just want to install which works for me.


pciconf -lv tells me I have:-

vendor = 'Intel Corporation'
device = 'Mobile GM965/GL960 Integrated Graphics Controller (primary)'
class = display
subclass = VGA

I'd like to install the one which works best and uses least space.
 
Back
Top