MFH: r502165 r502166 r502167 r502168

add graphics/drm-devel-kmod

Add graphics/drm-devel-kmod, development version of the lkpi based DRM
graphics drivers.  This version is experimental, and for recent CURRENT
only.

This version currently corresponds to Linux 5.0 DRM drivers, and should give
better support for more recent Intel and AMD GPUs.

Please note that this port is copied from drm-current-kmod, rather than
resurrected from the old drm-devel-kmod port, that's because
drm-current-kmod was created by copying the old drm-devel-kmod when that
went to a more stable version.

Big thank you to everyone who has worked on this, and johalun in particuar,
who has done most of the heavy lifting.

Approved by:	jmd (maintainer, implicit)
Sponsored by:	B3 Init

drm-kmod ports: Update conflicts

Update conflicts for all drm-kmod ports to take into account the new
drm-devel-kmod port.

Sponsored by:	B3 Init

Remove old drm-devel-kmod entry

Sponsored by:	B3 Init

graphics/drm-current-kmod: Adjust FreeBSD compat

Update the FreeBSD OSVERSION compat of drm-current-kmod after the latest
update in r502043.

Suggested by:	jbeich
Discussed with:	johalun
Aproved by:	jmd (maintainer, implicit)
Sponsored by:	B3 Init

Approved by:	ports-secteam (implicit, drm-drivers blanket)
This commit is contained in:
Niclas Zeising 2019-05-20 20:45:19 +00:00
parent 2733d43b86
commit 31cce6f5ec
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/branches/2019Q2/; revision=502169
10 changed files with 117 additions and 6 deletions

1
MOVED
View File

@ -10667,7 +10667,6 @@ math/vtk5-data||2018-12-05|Removed
devel/py-interface|devel/py-py_interface|2018-12-05|Rename to match upstream naming
graphics/drm-stable-kmod|graphics/drm-fbsd11.2-kmod|2018-12-09|Cleaning up DRM ports nomenclature
graphics/drm-next-kmod|graphics/drm-fbsd12.0-kmod|2018-12-09|Cleaning up DRM ports nomenclature
graphics/drm-devel-kmod|graphics/drm-current-kmod|2018-12-09|Cleaning up DRM ports nomenclature
deskutils/multisync-backup||2018-12-11|Has expired: GNOME 2 application
deskutils/multisync-syncml||2018-12-11|Has expired: GNOME 2 application
net/g2ipmsg||2018-12-11|Has expired: GNOME 2 application

View File

@ -16,7 +16,10 @@ ONLY_FOR_ARCHS_REASON= the new KMS components are only supported on amd64 and i3
RUN_DEPENDS= gpu-firmware-kmod>=g20180319:graphics/gpu-firmware-kmod
CONFLICTS_INSTALL= drm-fbsd11.2-kmod drm-fbsd12.0-kmod drm-legacy-kmod
CONFLICTS_INSTALL= drm-devel-kmod \
drm-fbsd11.2-kmod \
drm-fbsd12.0-kmod \
drm-legacy-kmod
OPTIONS_DEFINE= DEBUG
@ -29,7 +32,7 @@ GH_TAGNAME= b890994
.include <bsd.port.options.mk>
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200067
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300029
IGNORE= not supported on older CURRENT, no kernel support
.endif
.if ${OPSYS} != FreeBSD

View File

@ -0,0 +1,64 @@
# Created by: Johannes Dieterich <jmd@FreeBSD.org>
# $FreeBSD$
PORTNAME= drm-devel-kmod
PORTVERSION= 5.0.g20190520
CATEGORIES= graphics kld
MAINTAINER= jmd@FreeBSD.org
COMMENT= DRM modules for the linuxkpi-based KMS components (development version)
LICENSE= BSD2CLAUSE MIT GPLv2
LICENSE_COMB= multi
ONLY_FOR_ARCHS= amd64 i386 powerpc64
ONLY_FOR_ARCHS_REASON= the new KMS components are only supported on amd64, i386 and powerpc64
RUN_DEPENDS= gpu-firmware-kmod>=g20180319:graphics/gpu-firmware-kmod
CONFLICTS_INSTALL= drm-current-kmod \
drm-fbsd11.2-kmod \
drm-fbsd12.0-kmod \
drm-legacy-kmod
OPTIONS_DEFINE= DEBUG
USES= kmod uidfix compiler:c++11-lang
USE_GITHUB= yes
GH_ACCOUNT= FreeBSDDesktop
GH_PROJECT= kms-drm
GH_TAGNAME= 4d4b2ba
.include <bsd.port.options.mk>
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300029
IGNORE= not supported on older CURRENT, no kernel support
.endif
.if ${OPSYS} != FreeBSD
IGNORE= not supported on anything but FreeBSD (missing linuxkpi functionality)
.endif
.if ${ARCH} == "amd64"
PLIST_SUB+= AMDGPU=""
PLIST_SUB+= AMDKFD=""
PLIST_SUB+= I915=""
PLIST_SUB+= VMWGFX=""
.elif ${ARCH} == "i386"
PLIST_SUB+= AMDGPU="@comment "
PLIST_SUB+= AMDKFD="@comment "
PLIST_SUB+= I915=""
PLIST_SUB+= VMWGFX=""
.elif ${ARCH} == "powerpc64"
PLIST_SUB+= AMDGPU=""
PLIST_SUB+= AMDKFD="@comment "
PLIST_SUB+= I915="@comment "
PLIST_SUB+= VMWGFX="@comment "
.else
PLIST_SUB+= AMDGPU="@comment "
PLIST_SUB+= AMDKFD="@comment "
PLIST_SUB+= I915="@comment "
PLIST_SUB+= VMWGFX="@comment "
.endif
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1558375618
SHA256 (FreeBSDDesktop-kms-drm-5.0.g20190520-4d4b2ba_GH0.tar.gz) = 5a2fad2bf1cecdcad30e7d58b5e9f5fc500b8f51a8966ffe35066246d47ff5fe
SIZE (FreeBSDDesktop-kms-drm-5.0.g20190520-4d4b2ba_GH0.tar.gz) = 14590222

View File

@ -0,0 +1,6 @@
amdgpu, i915, and radeon DRM modules for the linuxkpi-based KMS components.
Currently corresponding to Linux 5.0 DRM.
This version is the development version and only works on FreeBSD CURRENT.
amdgpu and radeonkms are known to fail with EFI boot.
WWW: https://github.com/FreeBSDDesktop/kms-drm

View File

@ -0,0 +1,19 @@
The experimental drm-devel-kmod port can be enabled for amdgpu (for AMD
GPUs starting with the HD7000 series / Tahiti), radeonkms for older AMD GPUs
or i915kms (for Intel APUs starting with HD3000 / Sandy Bridge, possibly even
older) through kld_list in /etc/rc.conf.
For amdgpu and radeonkms, there have been reports of issues when using UEFI
firmware boot. You might need to disable the console by adding
hw.syscons.disable=1 to /boot/loader.conf . Please note that this will
disable the console until the graphics driver is loaded.
For amdgpu: kld_list="amdgpu"
For Intel: kld_list="/boot/modules/i915kms.ko"
For radeonkms: kld_list="/boot/modules/radeonkms.ko"
Please ensure that all users requiring graphics are members of the
"video" group.
Older generations are supported by the legacy kms modules by installing
graphics/drm-legacy-kmod.

View File

@ -0,0 +1,8 @@
%%AMDGPU%%/%%KMODDIR%%/amdgpu.ko
%%AMDKFD%%/%%KMODDIR%%/amdkfd.ko
/%%KMODDIR%%/drm.ko
%%I915%%/%%KMODDIR%%/i915kms.ko
/%%KMODDIR%%/linuxkpi_gplv2.ko
/%%KMODDIR%%/radeonkms.ko
/%%KMODDIR%%/ttm.ko
%%VMWGFX%%/%%KMODDIR%%/vmwgfx.ko

View File

@ -16,7 +16,10 @@ ONLY_FOR_ARCHS_REASON= the new KMS components are only supported on amd64
RUN_DEPENDS= gpu-firmware-kmod>=g20180319:graphics/gpu-firmware-kmod
CONFLICTS_INSTALL= drm-fbsd12.0-kmod drm-current-kmod drm-legacy-kmod
CONFLICTS_INSTALL= drm-devel-kmod \
drm-fbsd12.0-kmod \
drm-current-kmod \
drm-legacy-kmod
OPTIONS_DEFINE= DEBUG

View File

@ -16,7 +16,10 @@ ONLY_FOR_ARCHS_REASON= the new KMS components are only supported on amd64 and i3
RUN_DEPENDS= gpu-firmware-kmod>=g20180319:graphics/gpu-firmware-kmod
CONFLICTS_INSTALL= drm-fbsd11.2-kmod drm-current-kmod drm-legacy-kmod
CONFLICTS_INSTALL= drm-devel-kmod \
drm-fbsd11.2-kmod \
drm-current-kmod \
drm-legacy-kmod
OPTIONS_DEFINE= DEBUG

View File

@ -19,7 +19,10 @@ USES= kmod uidfix
OPTIONS_DEFINE= DEBUG
CONFLICTS_INSTALL= drm-fbsd11.2-kmod drm-fbsd12.0-kmod drm-current-kmod
CONFLICTS_INSTALL= drm-devel-kmod \
drm-fbsd11.2-kmod \
drm-fbsd12.0-kmod \
drm-current-kmod
USE_GITHUB= yes
GH_ACCOUNT= FreeBSDDesktop