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
 
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.
I only have i915kms and drm.
 
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.
 
Now I'm confused. I pulled my old Nvidia GT9600 so I could run some web stuff using the Intel i7 IvyBridge CPU which does what I want. I have both drm-kmod and drm-66-kmod installed. I don't recall installing them or when. My impression is I don't need drm-66-kmod because I don't have any of the Intel processors listed above in comment #10.

Can I remove drm-66-kmod (which will force me to install drm-kmod by itself)?
 
I have both drm-kmod and drm-66-kmod installed. I don't recall installing them or when.
If you installed DRM/KMS stuff as Handbook states, you should have installed graphics/drm-kmod, which is the metaport to choose which graphics/drm-{510|61|66}-kmod (on current version) with regard to the underlying base FreeBSD version. It also pulls in firmware kmods. But ignores which GPU is installed.

This is the mutual limitation of pre-built binary pkgs that cannot know whichever hardware is prepared for running it for not so rich and huge volunteer-based community like FreeBSD project.

Note that 515 and latest variant are NOT automatically chosen for installing.

Can I remove drm-66-kmod (which will force me to install drm-kmod by itself)?
No, unless you don't want iGPU to work and rely on your NVIDIA GeForce 9600 GT with x11/nvidia-driver-340 and x11/nvidia-kmod-340 (would be safer in this case if you can disable your iGPU via UEFI firmware or legacy BIOS menus). See here why 340.
 
T-Aoki OK but what installed i915kms.ko? Was it installed with the other .ko's? If so, could I remove all those except for the i915kms.ko?
In your case (graphics/drm-kmod and graphics/drm-66-kmod are installed), by graphics/drm-66-kmod.
You can confirm it by pkg which -o /boot/modules/i915kms.ko and pkg info -l graphics/drm-66-kmod.

Examples for me are as below. Note that graphics/drm-66-kmod is installed as a RUN_DEPENDS of graphics/nvidia-drm-66-kmod-devel and /boot/modules/i915kms.ko is NOT kldloaded for me.

Code:
% pkg which -o /boot/modules/i915kms.ko
/boot/modules/i915kms.ko was installed by package graphics/drm-66-kmod
% pkg info -l graphics/drm-66-kmod                                           
drm-66-kmod-6.6.25.1500508_8:
    /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.1500508_8/BSD2CLAUSE
    /usr/local/share/licenses/drm-66-kmod-6.6.25.1500508_8/GPLv2
    /usr/local/share/licenses/drm-66-kmod-6.6.25.1500508_8/LICENSE
    /usr/local/share/licenses/drm-66-kmod-6.6.25.1500508_8/MIT
    /usr/local/share/licenses/drm-66-kmod-6.6.25.1500508_8/catalog.mk
 
Back
Top