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.
x11/nvidia-driver-devel, x11/nvidia-kmod-devel, x11/linux-nvidia-libs-devel,
graphics/nvidia-drm*-kmod-devel: Update to 615.71.09
Update to latest New Feature Branch of drivers 615.71.09:
https://www.nvidia.com/en-us/drivers/details/278452/
Linux counterparts for x11/linux-nvidia-libs:
https://www.nvidia.com/en-us/drivers/details/278450/
Additional note:
Possibly vtys before invoking whichever of X11 or Wayland shifts
screen downward with about half character-based line, causing
command prompt at the bottom become hard to read.
Once X11 (tested only for xorg) or Wayland starts, it would be
fixed (on exitting X11 / Wayland or switching to vty from X11/
(Only the first 15 lines of the commit message are shown above )
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-61-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-devel, x11/nvidia-kmod-devel, x11/linux-nvidia-libs-devel,
graphics/nvidia-drm*-kmod-devel, graphics/externalplatform,
graphics/egl-wayland, graphics/egl-x11 : Update to 590.48.01
Update "-devel" variants to latest New Feature Branch [NFB]
of drivers 590.48.01:
https://www.nvidia.com/en-us/drivers/details/259269/
Linux counterparts for x11/linux-nvidia-libs:
https://www.nvidia.com/en-us/drivers/details/259267/
! Important note !
As already notified by HEADSUP at freebsd-ports ML [1],
this version drops support for a bunch of old GPUs
prior to Turing Generation of the architecture.
(Only the first 15 lines of the commit message are shown above )
graphics/nvidia-drm-6{1,6}-kmod-devel: Refresh distinfo
This was missed in the last drm-kmod update.
Fixes: 9e5e0c569b83 ("graphics/drm-6{1,6}-kmod: Fix build on current")
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.
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-devel: Update distinfo after drm-{61,66}-kmod updates
Like the commit to `nvidia-drm-{61,66}-kmod, 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 )