git: 2ad6d0d7f8fc - main - graphics/*drm-510-kmod*: Remove ports only for FreeBSD 13
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 05 May 2026 21:06:33 UTC
The branch main has been updated by rene:
URL: https://cgit.FreeBSD.org/ports/commit/?id=2ad6d0d7f8fcc999faead184e1c91c077b5dda78
commit 2ad6d0d7f8fcc999faead184e1c91c077b5dda78
Author: Rene Ladan <rene@FreeBSD.org>
AuthorDate: 2026-05-05 21:04:58 +0000
Commit: Rene Ladan <rene@FreeBSD.org>
CommitDate: 2026-05-05 21:06:08 +0000
graphics/*drm-510-kmod*: Remove ports only for FreeBSD 13
graphics/drm-510-kmod
graphics/nvidia-drm-510-kmod
graphics/nvidia-drm-510-kmod-580
graphics/nvidia-drm-510-kmod-devel
---
MOVED | 4 ++
graphics/Makefile | 4 --
graphics/drm-510-kmod/Makefile | 62 ----------------------
graphics/drm-510-kmod/Makefile.version | 5 --
graphics/drm-510-kmod/distinfo | 3 --
.../files/patch-drivers_gpu_drm_drm__os__freebsd.c | 18 -------
graphics/drm-510-kmod/files/pkg-message.in | 22 --------
graphics/drm-510-kmod/pkg-descr | 3 --
graphics/drm-510-kmod/pkg-plist | 7 ---
graphics/nvidia-drm-510-kmod-580/Makefile | 7 ---
graphics/nvidia-drm-510-kmod-580/distinfo | 5 --
graphics/nvidia-drm-510-kmod-devel/Makefile | 7 ---
graphics/nvidia-drm-510-kmod-devel/distinfo | 5 --
graphics/nvidia-drm-510-kmod/Makefile | 12 -----
graphics/nvidia-drm-510-kmod/distinfo | 5 --
.../files/20-nvidia-drm-outputclass.conf.in | 8 ---
.../files/extra-patch-nvidia-drm-conftest.h | 14 -----
.../files/extra-patch-nvidia-drm-freebsd-lkpi.c | 46 ----------------
.../files/patch-nvidia-drm-conftest.h | 14 -----
graphics/nvidia-drm-510-kmod/pkg-descr | 3 --
graphics/nvidia-drm-510-kmod/pkg-message | 8 ---
21 files changed, 4 insertions(+), 258 deletions(-)
diff --git a/MOVED b/MOVED
index 87a912dfdb27..4a4754a22d3f 100644
--- a/MOVED
+++ b/MOVED
@@ -5281,3 +5281,7 @@ sysutils/cfengine323||2026-05-04|Has expired: No longer supported by upstream
sysutils/cfengine-masterfiles323||2026-05-04|Has expired: No longer supported by upstream
security/openssl111||2026-05-04|Has expired: End-of-life since 2023-09-11, see https://www.openssl.org/blog/blog/2023/09/11/eol-111/ port will be removed when FreeBSD 13 is EoL
security/ktls_isa-l_crypto-kmod||2026-05-05|Removed, is only for FreeBSD 13
+graphics/drm-510-kmod||2026-05-05|Removed, is only for FreeBSD 13
+graphics/nvidia-drm-510-kmod||2026-05-05|Removed, is only for FreeBSD 13
+graphics/nvidia-drm-510-kmod-580||2026-05-05|Removed, is only for FreeBSD 13
+graphics/nvidia-drm-510-kmod-devel||2026-05-05|Removed, is only for FreeBSD 13
diff --git a/graphics/Makefile b/graphics/Makefile
index fff9ae507219..87b77fd60a66 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -155,7 +155,6 @@
SUBDIR += drawing
SUBDIR += drawio
SUBDIR += drawpile
- SUBDIR += drm-510-kmod
SUBDIR += drm-515-kmod
SUBDIR += drm-61-kmod
SUBDIR += drm-66-kmod
@@ -634,9 +633,6 @@
SUBDIR += npretty
SUBDIR += nsxiv
SUBDIR += nurbs++
- SUBDIR += nvidia-drm-510-kmod
- SUBDIR += nvidia-drm-510-kmod-580
- SUBDIR += nvidia-drm-510-kmod-devel
SUBDIR += nvidia-drm-515-kmod
SUBDIR += nvidia-drm-515-kmod-580
SUBDIR += nvidia-drm-515-kmod-devel
diff --git a/graphics/drm-510-kmod/Makefile b/graphics/drm-510-kmod/Makefile
deleted file mode 100644
index d6cd2dcd56ec..000000000000
--- a/graphics/drm-510-kmod/Makefile
+++ /dev/null
@@ -1,62 +0,0 @@
-PORTNAME= drm-510-kmod
-PORTVERSION= ${DRM_KMOD_DISTVERSION}
-PORTREVISION= 13
-CATEGORIES= graphics kld
-
-.include "Makefile.version"
-
-MAINTAINER= x11@FreeBSD.org
-COMMENT= Direct Rendering Manager GPU drivers
-WWW= https://github.com/freebsd/drm-kmod/
-
-LICENSE= BSD2CLAUSE MIT GPLv2
-LICENSE_COMB= multi
-
-ONLY_FOR_ARCHS= aarch64 amd64 i386 powerpc64 powerpc64le
-ONLY_FOR_ARCHS_REASON= the new KMS components are only supported on amd64, i386, aarch64, and powerpc64
-
-CONFLICTS_INSTALL= drm-515-kmod \
- drm-61-kmod \
- drm-66-kmod
-
-USES= kmod uidfix compiler:c++11-lang
-
-USE_GITHUB= yes
-GH_ACCOUNT= freebsd
-GH_PROJECT= drm-kmod
-GH_TAGNAME= ${DRM_KMOD_GH_TAGNAME}
-
-.include <bsd.port.options.mk>
-
-SUB_FILES= pkg-message
-SUB_LIST= OPSYS=${OPSYS} OSREL=${OSREL}
-
-.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1401501
-IGNORE= not supported on FreeBSD 14.2 and higher
-.endif
-
-.if ${OPSYS} != FreeBSD
-IGNORE= not supported on anything but FreeBSD (missing linuxkpi functionality)
-.endif
-
-.if ${ARCH} == "amd64"
-PLIST_SUB+= AMDGPU=""
-PLIST_SUB+= I915=""
-.elif ${ARCH} == "i386"
-PLIST_SUB+= AMDGPU="@comment "
-PLIST_SUB+= I915=""
-.elif ${ARCH} == "aarch64" || ${ARCH:Mpowerpc*}
-PLIST_SUB+= AMDGPU=""
-PLIST_SUB+= I915="@comment "
-.else
-PLIST_SUB+= AMDGPU="@comment "
-PLIST_SUB+= I915="@comment "
-.endif
-
-MAKE_ENV+= MAKEOBJDIRPREFIX=${WRKSRC}/obj
-
-pre-build:
- ${MKDIR} ${WRKSRC}/obj
- (cd ${WRKSRC} ; ${SETENV} ${MAKE_ENV} ${MAKE_CMD} obj)
-
-.include <bsd.port.mk>
diff --git a/graphics/drm-510-kmod/Makefile.version b/graphics/drm-510-kmod/Makefile.version
deleted file mode 100644
index 238f08477281..000000000000
--- a/graphics/drm-510-kmod/Makefile.version
+++ /dev/null
@@ -1,5 +0,0 @@
-# drm-kmod common version definition
-#
-# This will be included from consumers such as nvidia-drm
-DRM_KMOD_DISTVERSION= 5.10.163
-DRM_KMOD_GH_TAGNAME= drm_v5.10.163_9
diff --git a/graphics/drm-510-kmod/distinfo b/graphics/drm-510-kmod/distinfo
deleted file mode 100644
index b651bb2b2a9c..000000000000
--- a/graphics/drm-510-kmod/distinfo
+++ /dev/null
@@ -1,3 +0,0 @@
-TIMESTAMP = 1760982866
-SHA256 (freebsd-drm-kmod-5.10.163-drm_v5.10.163_9_GH0.tar.gz) = e4e77f5907418bd5e4be12c26d77fd176f51b82fe8a074b1237cde58be5ce385
-SIZE (freebsd-drm-kmod-5.10.163-drm_v5.10.163_9_GH0.tar.gz) = 20095205
diff --git a/graphics/drm-510-kmod/files/patch-drivers_gpu_drm_drm__os__freebsd.c b/graphics/drm-510-kmod/files/patch-drivers_gpu_drm_drm__os__freebsd.c
deleted file mode 100644
index 389f8ebfeed0..000000000000
--- a/graphics/drm-510-kmod/files/patch-drivers_gpu_drm_drm__os__freebsd.c
+++ /dev/null
@@ -1,18 +0,0 @@
---- drivers/gpu/drm/drm_os_freebsd.c.bak 2022-11-05 15:37:52.826643000 -0400
-+++ drivers/gpu/drm/drm_os_freebsd.c 2022-11-05 15:38:25.740620000 -0400
-@@ -202,11 +202,15 @@
- #if __FreeBSD_version >= 1301505
- #if __FreeBSD_version >= 1400058
- DRIVER_MODULE(iicbus, drmn, iicbus_driver, NULL, NULL);
-+#if defined(__amd64__) || defined(__aarch64__) || defined(__i386__)
- DRIVER_MODULE(acpi_iicbus, drmn, acpi_iicbus_driver, NULL, NULL);
-+#endif
- #else
- DRIVER_MODULE(iicbus, drmn, iicbus_driver, iicbus_devclass, NULL, NULL);
-+#if defined(__amd64__) || defined(__aarch64__) || defined(__i386__)
- DRIVER_MODULE(acpi_iicbus, drmn, acpi_iicbus_driver, iicbus_devclass, NULL,
- NULL);
-+#endif
- #endif
- MODULE_DEPEND(drmn, iicbus, IICBUS_MINVER, IICBUS_PREFVER, IICBUS_MAXVER);
- MODULE_DEPEND(drmn, iic, 1, 1, 1);
diff --git a/graphics/drm-510-kmod/files/pkg-message.in b/graphics/drm-510-kmod/files/pkg-message.in
deleted file mode 100644
index 9d50bbe0709b..000000000000
--- a/graphics/drm-510-kmod/files/pkg-message.in
+++ /dev/null
@@ -1,22 +0,0 @@
-[
-{ type: install
- message: <<EOM
-The drm-510-kmod port can be enabled for amdgpu (for AMD
-GPUs starting with the HD7000 series / Tahiti) or i915kms (for Intel
-APUs starting with HD3000 / Sandy Bridge) through kld_list in
-/etc/rc.conf. radeonkms for older AMD GPUs can be loaded and there are
-some positive reports if EFI boot is NOT enabled (similar to amdgpu).
-
-For amdgpu: kld_list="amdgpu"
-For Intel: kld_list="i915kms"
-For radeonkms: kld_list="radeonkms"
-
-Please ensure that all users requiring graphics are members of the
-"video" group.
-
-Please note that this package was built for %%OPSYS%% %%OSREL%%.
-If this is not your current running version, please rebuild
-it from ports to prevent panics when loading the module.
-EOM
-}
-]
diff --git a/graphics/drm-510-kmod/pkg-descr b/graphics/drm-510-kmod/pkg-descr
deleted file mode 100644
index b038b61013cf..000000000000
--- a/graphics/drm-510-kmod/pkg-descr
+++ /dev/null
@@ -1,3 +0,0 @@
-amdgpu, i915, and radeon DRM drivers modules.
-Currently corresponding to Linux 5.10 DRM.
-This version is for FreeBSD 13.1 and above.
diff --git a/graphics/drm-510-kmod/pkg-plist b/graphics/drm-510-kmod/pkg-plist
deleted file mode 100644
index 8cc848853a47..000000000000
--- a/graphics/drm-510-kmod/pkg-plist
+++ /dev/null
@@ -1,7 +0,0 @@
-/%%KMODDIR%%/dmabuf.ko
-%%AMDGPU%%/%%KMODDIR%%/amdgpu.ko
-/%%KMODDIR%%/drm.ko
-%%I915%%/%%KMODDIR%%/i915kms.ko
-/%%KMODDIR%%/linuxkpi_gplv2.ko
-/%%KMODDIR%%/radeonkms.ko
-/%%KMODDIR%%/ttm.ko
diff --git a/graphics/nvidia-drm-510-kmod-580/Makefile b/graphics/nvidia-drm-510-kmod-580/Makefile
deleted file mode 100644
index fe57db18a461..000000000000
--- a/graphics/nvidia-drm-510-kmod-580/Makefile
+++ /dev/null
@@ -1,7 +0,0 @@
-NVIDIA_DISTVERSION?= 580.142
-# Explicitly set PORTREVISION as it can be overridden by the master port
-PORTREVISION= 0
-MASTERDIR= ${.CURDIR}/../nvidia-drm-510-kmod
-PKGNAMESUFFIX= -580
-
-.include "${MASTERDIR}/Makefile"
diff --git a/graphics/nvidia-drm-510-kmod-580/distinfo b/graphics/nvidia-drm-510-kmod-580/distinfo
deleted file mode 100644
index d3509cbcaa17..000000000000
--- a/graphics/nvidia-drm-510-kmod-580/distinfo
+++ /dev/null
@@ -1,5 +0,0 @@
-TIMESTAMP = 1773188138
-SHA256 (NVIDIA-FreeBSD-x86_64-580.142.tar.xz) = 94797e09407062032f5793a68360a35133b4062bcc15490d9f215d9183ac849c
-SIZE (NVIDIA-FreeBSD-x86_64-580.142.tar.xz) = 289723464
-SHA256 (freebsd-drm-kmod-drm_v5.10.163_9_GH0.tar.gz) = e4e77f5907418bd5e4be12c26d77fd176f51b82fe8a074b1237cde58be5ce385
-SIZE (freebsd-drm-kmod-drm_v5.10.163_9_GH0.tar.gz) = 20095205
diff --git a/graphics/nvidia-drm-510-kmod-devel/Makefile b/graphics/nvidia-drm-510-kmod-devel/Makefile
deleted file mode 100644
index 79c21a937252..000000000000
--- a/graphics/nvidia-drm-510-kmod-devel/Makefile
+++ /dev/null
@@ -1,7 +0,0 @@
-NVIDIA_DISTVERSION?= 595.58.03
-# Explicitly set PORTREVISION as it can be overridden by the master port
-PORTREVISION= 0
-MASTERDIR= ${.CURDIR}/../nvidia-drm-510-kmod
-PKGNAMESUFFIX= -devel
-
-.include "${MASTERDIR}/Makefile"
diff --git a/graphics/nvidia-drm-510-kmod-devel/distinfo b/graphics/nvidia-drm-510-kmod-devel/distinfo
deleted file mode 100644
index d7ecd5314391..000000000000
--- a/graphics/nvidia-drm-510-kmod-devel/distinfo
+++ /dev/null
@@ -1,5 +0,0 @@
-TIMESTAMP = 1774374059
-SHA256 (NVIDIA-FreeBSD-x86_64-595.58.03.tar.xz) = dccbda46fc39dbfe081f1333c7227b480c86e6d5125bb5a03ab782995bdda6ef
-SIZE (NVIDIA-FreeBSD-x86_64-595.58.03.tar.xz) = 328835816
-SHA256 (freebsd-drm-kmod-drm_v5.10.163_9_GH0.tar.gz) = e4e77f5907418bd5e4be12c26d77fd176f51b82fe8a074b1237cde58be5ce385
-SIZE (freebsd-drm-kmod-drm_v5.10.163_9_GH0.tar.gz) = 20095205
diff --git a/graphics/nvidia-drm-510-kmod/Makefile b/graphics/nvidia-drm-510-kmod/Makefile
deleted file mode 100644
index b3d8e76df8e6..000000000000
--- a/graphics/nvidia-drm-510-kmod/Makefile
+++ /dev/null
@@ -1,12 +0,0 @@
-PORTNAME= nvidia-drm-510-kmod
-PORTREVISION= 0
-CATEGORIES= graphics
-
-RUN_DEPENDS+= ${KMODDIR}/drm.ko:graphics/drm-510-kmod
-CONFLICTS_INSTALL= nvidia-drm-515-kmod* nvidia-drm-61-kmod* nvidia-drm-66-kmod*
-
-.include "${.CURDIR}/../drm-510-kmod/Makefile.version"
-.include "${.CURDIR}/../nvidia-drm-kmod/Makefile.common"
-.include <bsd.port.options.mk>
-
-.include <bsd.port.mk>
diff --git a/graphics/nvidia-drm-510-kmod/distinfo b/graphics/nvidia-drm-510-kmod/distinfo
deleted file mode 100644
index d7ecd5314391..000000000000
--- a/graphics/nvidia-drm-510-kmod/distinfo
+++ /dev/null
@@ -1,5 +0,0 @@
-TIMESTAMP = 1774374059
-SHA256 (NVIDIA-FreeBSD-x86_64-595.58.03.tar.xz) = dccbda46fc39dbfe081f1333c7227b480c86e6d5125bb5a03ab782995bdda6ef
-SIZE (NVIDIA-FreeBSD-x86_64-595.58.03.tar.xz) = 328835816
-SHA256 (freebsd-drm-kmod-drm_v5.10.163_9_GH0.tar.gz) = e4e77f5907418bd5e4be12c26d77fd176f51b82fe8a074b1237cde58be5ce385
-SIZE (freebsd-drm-kmod-drm_v5.10.163_9_GH0.tar.gz) = 20095205
diff --git a/graphics/nvidia-drm-510-kmod/files/20-nvidia-drm-outputclass.conf.in b/graphics/nvidia-drm-510-kmod/files/20-nvidia-drm-outputclass.conf.in
deleted file mode 100644
index 15496138f63a..000000000000
--- a/graphics/nvidia-drm-510-kmod/files/20-nvidia-drm-outputclass.conf.in
+++ /dev/null
@@ -1,8 +0,0 @@
-Section "OutputClass"
- Identifier "nvidia"
- MatchDriver "nvidia-drm"
- Driver "nvidia"
- Option "PrimaryGPU" "yes"
- ModulePath "%%LOCALBASE%%/lib/nvidia/xorg"
- ModulePath "%%LOCALBASE%%/lib/xorg/modules"
-EndSection
diff --git a/graphics/nvidia-drm-510-kmod/files/extra-patch-nvidia-drm-conftest.h b/graphics/nvidia-drm-510-kmod/files/extra-patch-nvidia-drm-conftest.h
deleted file mode 100644
index 2c0524341c4d..000000000000
--- a/graphics/nvidia-drm-510-kmod/files/extra-patch-nvidia-drm-conftest.h
+++ /dev/null
@@ -1,14 +0,0 @@
---- nvidia-drm-conftest.h.orig 2024-02-22 01:03:15 UTC
-+++ nvidia-drm-conftest.h
-@@ -85,7 +85,11 @@
-
- /* For nv_drm_gem_prime_force_fence_signal */
- #ifndef spin_is_locked
-+#if ((__FreeBSD_version >= 1500000) && (__FreeBSD_version < 1500018)) || (__FreeBSD_version < 1401501)
- #define spin_is_locked(lock) mtx_owned(lock.m)
-+#else
-+#define spin_is_locked(lock) mtx_owned(lock)
-+#endif
- #endif
-
- #ifndef rwsem_is_locked
diff --git a/graphics/nvidia-drm-510-kmod/files/extra-patch-nvidia-drm-freebsd-lkpi.c b/graphics/nvidia-drm-510-kmod/files/extra-patch-nvidia-drm-freebsd-lkpi.c
deleted file mode 100644
index 76a655dae93c..000000000000
--- a/graphics/nvidia-drm-510-kmod/files/extra-patch-nvidia-drm-freebsd-lkpi.c
+++ /dev/null
@@ -1,46 +0,0 @@
---- nvidia-drm-freebsd-lkpi.c.orig 2024-02-22 01:03:15 UTC
-+++ nvidia-drm-freebsd-lkpi.c
-@@ -115,6 +115,7 @@ int nv_drm_probe_devices(void)
- * by the native nvidia.ko by using our devclass.
- */
- for (int i = 0; i < NV_MAX_DEVICES; i++) {
-+ struct pci_dev *pdev;
- nv_gpu_info_t gpu_info;
- struct nvidia_softc *sc = devclass_get_softc(nvidia_devclass, i);
- if (!sc) {
-@@ -124,11 +125,33 @@ int nv_drm_probe_devices(void)
- nv_state_t *nv = sc->nv_state;
-
- /*
-+ * Set the ivars for this device if they are not already populated. This
-+ * is the bus specific data, and linuxkpi will try to use it.
-+ */
-+ if (!device_get_ivars(sc->dev)) {
-+ device_t parent = device_get_parent(sc->dev);
-+ struct pci_devinfo *dinfo = device_get_ivars(parent);
-+ device_set_ivars(sc->dev, dinfo);
-+ }
-+
-+ /*
- * Now we have the state (which gives us the device_t), but what nvidia-drm
- * wants is a pci_dev suitable for use with linuxkpi code. We can use
-- * lkpinew_pci_dev to fill in a pci_dev struct,
-+ * lkpinew_pci_dev to fill in a pci_dev struct, or linux_pci_attach on more
-+ * recent kernels (introduced by 253dbe7487705).
- */
-- struct pci_dev *pdev = lkpinew_pci_dev(sc->dev);
-+#if __FreeBSD_version < 1300093
-+ pdev = lkpinew_pci_dev(sc->dev);
-+#else
-+ pdev = malloc(sizeof(*pdev), M_DEVBUF, M_WAITOK|M_ZERO);
-+ if (!pdev) {
-+ return -ENOMEM;
-+ }
-+
-+ if (linux_pci_attach_device(sc->dev, NULL, NULL, pdev)) {
-+ return -ENOMEM;
-+ }
-+#endif
- nv_lkpi_pci_devs[i] = pdev;
-
- gpu_info.gpu_id = nv->gpu_id;
diff --git a/graphics/nvidia-drm-510-kmod/files/patch-nvidia-drm-conftest.h b/graphics/nvidia-drm-510-kmod/files/patch-nvidia-drm-conftest.h
deleted file mode 100644
index f91a1595cda2..000000000000
--- a/graphics/nvidia-drm-510-kmod/files/patch-nvidia-drm-conftest.h
+++ /dev/null
@@ -1,14 +0,0 @@
---- nvidia-drm-conftest.h.orig 2024-03-11 17:52:16 UTC
-+++ nvidia-drm-conftest.h
-@@ -122,11 +122,9 @@
- */
- #define drm_atomic_state_free drm_atomic_state_put
-
--#if __FreeBSD_version < 1300000
- /* redefine LIST_HEAD_INIT to the linux version */
- #include <linux/list.h>
- #define LIST_HEAD_INIT(name) LINUX_LIST_HEAD_INIT(name)
--#endif
-
- /*
- * FreeBSD currently has only vmf_insert_pfn_prot defined, and it has a
diff --git a/graphics/nvidia-drm-510-kmod/pkg-descr b/graphics/nvidia-drm-510-kmod/pkg-descr
deleted file mode 100644
index 64ec67472ed7..000000000000
--- a/graphics/nvidia-drm-510-kmod/pkg-descr
+++ /dev/null
@@ -1,3 +0,0 @@
-FreeBSD port of Linux's nvidia-drm.ko Kernel module.
-
-This version is compatible with drm.ko 5.10.
diff --git a/graphics/nvidia-drm-510-kmod/pkg-message b/graphics/nvidia-drm-510-kmod/pkg-message
deleted file mode 100644
index c2440d5580aa..000000000000
--- a/graphics/nvidia-drm-510-kmod/pkg-message
+++ /dev/null
@@ -1,8 +0,0 @@
-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.