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
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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>
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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);
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
@@ -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.
|
||||
@@ -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
|
||||
@@ -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"
|
||||
@@ -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
|
||||
@@ -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"
|
||||
@@ -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
|
||||
@@ -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>
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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;
|
||||
@@ -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
|
||||
@@ -1,3 +0,0 @@
|
||||
FreeBSD port of Linux's nvidia-drm.ko Kernel module.
|
||||
|
||||
This version is compatible with drm.ko 5.10.
|
||||
@@ -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.
|
||||
Reference in New Issue
Block a user