Modesetting must be enabled to use nvidia-drm.ko for graphics. This can be done
by setting the modeset sysctl, the equivalent of the modeset kernel parameter
on Linux.
hw.nvidiadrm.modeset=1
This must be set before loading nvidia-drm.ko, most easily done by placing the
above in /boot/loader.conf.
graphics/drm-*-kmod, graphics/nvidia-drm-*-kmod: Update DRM drivers
The reason is to make them compatible with an upcoming change in
linuxkpi in FreeBSD src:
https://github.com/freebsd/drm-kmod/pull/502
Sponsored by: The FreeBSD Foundation
graphics/nvidia-drm-*-kmod*: Fix GPF in some configs
Fix General Protection Fault in __nv_drm_gem_nvkms_handle_vma_fault,
lkpi_vmf_insert_pnf_prot_locked, vm_page_busy_acquire in specific
configurations, notably KDE on Wayland.
PR: 296195
Reported by: keivan@motavalli.me
Reviewed by: ashafer
Tested by: keivan@motavalli.me
Differential Revision: https://reviews.freebsd.org/D57989
Co-authored by: ashafer@FreeBSD.org
graphics/nvidia-drm-*-kmod*: Bump PORTREVISION after
e50c876e295af951485b605b8cb9bf567b6c23e1
I should have done it as part of the update.
Reported by: Tomoaki Aoki <junchoon_dec.sakura.ne.jp>
graphics/drm-*-kmod, graphics/nvidia-drm-*-kmod: Update DRM drivers
Several changes were made to all LTS drm-kmod branches:
1. All branches were updated with Makefile cleanups and fixes.
2. The addition of the `DMA_BUF_IOCTL_EXPORT_SYNC_FILE` and
`DMA_BUF_IOCTL_IMPORT_SYNC_FILE` ioctls was backported to the 6.1 and
6.6 branches.
3. A couple fixes to amdgpu and i915 drivers were committed to the 6.12
branch.
The corresponding `graphics/nvidia-drm-*-kmod` ports were updated to
reference the latest `graphics/drm-*-kmod` ports.
Sponsored by: The FreeBSD Foundation
graphics/nvidia-drm-*-kmod: Add drm 6.12
Add new ports
graphics/nvidia-drm-612-kmod,
graphics/nvidia-drm-612-kmod-580 and
graphics/nvidia-drm-612-kmod-devel
and add conflicts to
graphics/nvidia-drm-{515|61|66|latest}-kmod{-580|-devel}
following the addition of graphics/drm-612-kmod.
While here, bump
(Only the first 15 lines of the commit message are shown above )
graphics/drm-66-kmod: Update to latest version
This fixes compilation with clang21 (defualt on FreeBSD 16)
Sponsored by: Beckhoff Automation GmbH & Co. KG
x11/nvidia-driver, x11/nvidia-kmod, x11/linux-nvidia-libs,
graphics/nvidia-drm*-kmod, x11/nvidia-settings, x11/nvidia-xconfig: Update to
595.58.03
Update to latest Production Branch of drivers 595.58.03:
https://www.nvidia.com/en-us/drivers/details/265873/
Linux counterparts for x11/linux-nvidia-libs:
https://www.nvidia.com/en-us/drivers/details/265870/
Also bump -devel variant to match with master ports, as Production
Branch [PB] of drivers have now higher version than New Feature
Branch [NFB] of drivers.
As this update drops a bunch of old (pre-Turing generation of
architectures) GPUs as done in -devel variants updated 20260103,
add -580 variant of legacy branch of driver.
Currently, this is exactly the same version before this update.
(580.142)
PR: 294038
Differential Revision: https://reviews.freebsd.org/D56077
x11/nvidia-driver, x11/nvidia-kmod, x11/linux-nvidia-libs,
graphics/nvidia-drm*-kmod, x11/nvidia-settings, x11/nvidia-xconfig: Update to
580.142
Update to latest Production Branch of drivers 580.142:
https://www.nvidia.com/en-us/drivers/details/265444/
Linux counterparts for x11/linux-nvidia-libs:
https://www.nvidia.com/en-us/drivers/details/265443/
Add graphics/egl-wayland2 as a dependency for non-legacy branches.
This library can be installed alongside the previous egl-wayland
implementation (graphics/egl-wayland) and has a higher selection
priority by default, but doesn't support legacy branches.
PR: 293738
Differential Revision: https://reviews.freebsd.org/D55813
graphics/drm-6{1,6}-kmod: Fix build on current
Update the port to have code dealing with change in BUS_ALLOC_RESOURCE
Sponsored by: Beckhoff Automation GMbH & Co. KG
x11/nvidia-driver[-devel], x11/nvidia-kmod[-devel],
x11/linux-nvidia-libs[-devel], graphics/nvidia-drm*-kmod[-devel],
x11/nvidia-settings, x11/nvidia-xconfig: Update to 580.105.08
Update to latest Production Branch of drivers 580.105.08:
https://www.nvidia.com/en-us/drivers/details/257494/
Linux counterparts for x11/linux-nvidia-libs:
https://www.nvidia.com/en-us/drivers/details/257493/
As latest production branch of drivers is still newer than
the latest version of New Feature Branch [NFB] of drivers 575.64.05,
update -devel variants to 580.105.08, too.
PR: 290813
Differential Revision: https://reviews.freebsd.org/D53596
graphics/drm-*-kmod: Update DRM drivers to include an optimisation for AMD GPUs
This fixes important slowdowns with AMD GPUs after several hours of
uptime.
The optimisation was submitted by Olivier Cerner <olce@FreeBSD.org> in
the following pull request:
https://github.com/freebsd/drm-kmod/pull/377
The optimisation was submitted to all supported DRM driver version, from
5.10 to 6.6. The corresponding NVIDIA DRM ports were adapted at the same
time accordingly.
graphics/nvidia-drm-[510|515|61|66]-kmod[-devel]: Drop excessive BUILD_DEPENDS
As per request from Baptiste Daroussin via Matrix, drop BUILD_DEPENDS
line from Makefile in each master ports.
This is to attempt fixing builds on FreeBSD[-ports]-kmods repo builder.
As corresponding graphics/drm-*-kmod ports are not needed to be
installed on build, it should be no harm.
What's needed is the distfile of corresponding graphics/drm-*-kmod, with
including Makefile.version of each corresponding graphics/drm-*-kmod.
Reported by: bapt
Differential Revision: https://reviews.freebsd.org/D53136
x11/nvidia-driver[-devel], x11/linux-nvidia-libs[-devel],
graphics/nvidia-drm*-kmod[-devel], x11/nvidia-settings, x11/nvidia-xconfig:
Update to 580.95.05
Update to latest Production Branch of drivers 580.95.05:
https://www.nvidia.com/en-us/drivers/details/254666/
Linux counterparts for x11/linux-nvidia-libs:
https://www.nvidia.com/en-us/drivers/details/254665/
As latest production branch of drivers is still newer than
the latest version of New Feature Branch [NFB] of drivers 575.64.05,
update -devel variants to 580.95.05, too.
PR: 289940
Reviewed by: scf
Differential Revision: https://reviews.freebsd.org/D52831
x11/nvidia-driver: Split kmod into x11/nvidia-kmod
Split out kmod part of x11/nvidia-driver into x11/nvidia-kmod,
including slave ports, to allow FreeBSD-kmods repo builders building
nvidia-related kmod ports.
In this update,
* split out *.ko from x11/nvidia-driver[-304|-340|-390|470|-devel]
into corresponding x11/nvidia-kmod[-304|-340|-390|470|-devel],
* switch dependency of graphics/nvidia-drm-*-kmod upon
x11/nvidia-driver[-devel] to newly introduced
x11/nvidia-kmod[-devel],
(Only the first 15 lines of the commit message are shown above )
nvidia-drm-{61,66}-kmod: Update distinfo after drm-{61,66}-kmod updates
This should have been part of the update commits, sorry.
Sponsored by: The FreeBSD Foundation
x11/nvidia-driver[-devel], x11/linux-nvidia-libs[-devel],
graphics/nvidia-drm*-kmod[-devel], x11/nvidia-settings, x11/nvidia-xconfig:
Update to 580.82.07
Update to latest Production Branch of drivers 580.82.07:
https://www.nvidia.com/en-us/drivers/details/253004/
Linux counterparts for x11/linux-nvidia-libs:
https://www.nvidia.com/en-us/drivers/details/253003/
As latest production branch of drivers is still newer than
the latest version of New Feature Branch [NFB] of drivers 575.64.05,
update -devel variants to 580.82.07, too.
PR: 289261
Differential Revision: https://reviews.freebsd.org/D52352
x11/nvidia-driver[-devel], x11/linux-nvidia-libs[-devel],
graphics/nvidia-drm*-kmod[-devel], x11/nvidia-settings, x11/nvidia-xconfig:
Update to 580.76.05
Update to latest Production Branch of drivers 580.76.05:
https://www.nvidia.com/en-us/drivers/details/252614/
Linux counterparts for x11/linux-nvidia-libs:
https://www.nvidia.com/en-us/drivers/details/252613/
As currently latest production branch of drivers is newer than
the latest version of New Feature Branch [NFB] of drivers 575.64.05,
update -devel variants to 580.76.05, too.
While here, clean up workarounds for latest Beta Branch of
drivers 580.65.06, which is now older than Production Branch of
drivers and had odd version numbers with some of libraries
in Linux version. Now Beta 580.65.06 is NO LONGER BUILDABLE.
PR: 288905
x11/nvidia-driver-devel, x11/linux-nvidia-libs-devel,
graphics/nvidia-drm[,510,515,61,66]-kmod-devel: Add new ports
Add *-devel versions of nvidia drivers
These ports provides supports for New Feature Branch (NFB) of upstream
nvidia drivers like existing legacy branches of ports.
In some cases, supports for cutting edge GPUs are provided via
NFB of driver packages or Beta branch of drivers.
As Beta Branch of drivers cannot be recommended widely, we decided to
add support for NFB as *-devel version.
This new *-devel versions tracks the latest non-Beta versions
regardless it's NFB or Production Branch of drivers.
(Only the first 15 lines of the commit message are shown above )
graphics/drm-66-kmod: Update to drm_v6.6.25_5
This update fixes GPU acceleration when switching to VT and back to Xorg.
PR: 271995
Sponsored by: Beckhoff Automation GmbH & Co. KG
graphics/drm-66-kmod: Update to drm_v6.6.25_4
Fixes issues with explicit fence and linux jiffies.
PR: 286311
Sponsored by: Beckhoff Automation GmbH & Co. KG
x11/nvidia-driver, x11/linux-nvidia-libs, graphics/nvidia-drm-kmod: Update to
570.144
This updates the NVIDIA ports to the latest stable production branch.
Also bump graphics/egl-wayland to the latest 1.1.19 to match with
the one in x11/linux-nvidia-libs.
PR: 286307
Approved by: ashafer, kbowling (mentor)
Differential Revision: https://reviews.freebsd.org/D49982
x11/nvidia-driver, x11/linux-nvidia-libs, graphics/nvidia-drm-kmod: update to
570.124.04
This updates the NVIDIA ports to the latest stable production branch.
Also bump egl-wayland to the latest 1.1.18.
Submitted by: Tomoaki AOKI <junchoon@dec.sakura.ne.jp>
Reviewed by: ashafer
Approved by: kbowling(mentor), maintainer timeout (danfe, x11)
Differential Revision: https://reviews.freebsd.org/D49245
graphics/nvidia-drm-66-kmod: add new port
This adds the corresponding nvidia-drm port for drm-66-kmod. This
chases commit 00508c01e276.
Sponsored by: NVIDIA
Reviewed by: kbowling (mentor), manu
Differential Revision: https://reviews.freebsd.org/D49065