Index: head/graphics/Makefile =================================================================== --- head/graphics/Makefile +++ head/graphics/Makefile @@ -151,6 +151,7 @@ SUBDIR += drawpile SUBDIR += driconf SUBDIR += drm-next-kmod + SUBDIR += drm-stable-kmod SUBDIR += dspdfviewer SUBDIR += duhdraw SUBDIR += dynamechs Index: head/graphics/drm-next-kmod/Makefile =================================================================== --- head/graphics/drm-next-kmod/Makefile +++ head/graphics/drm-next-kmod/Makefile @@ -16,6 +16,8 @@ RUN_DEPENDS= gpu-firmware-kmod>=g20170403:graphics/gpu-firmware-kmod +CONFLICTS_INSTALL= drm-stable-kmod + OPTIONS_DEFINE= DEBUG USES= kmod uidfix Index: head/graphics/drm-next-kmod/pkg-descr =================================================================== --- head/graphics/drm-next-kmod/pkg-descr +++ head/graphics/drm-next-kmod/pkg-descr @@ -1,5 +1,5 @@ amdgpu, i915, and radeon DRM modules for the linuxkpi-based KMS components. -Currently corresponding to Linux 4.9 DRM. Experimental state. amdgpu and +Currently corresponding to Linux 4.11 DRM. Experimental state. amdgpu and radeonkms are known to fail with EFI boot. WWW: https://github.com/FreeBSDDesktop/kms-drm Index: head/graphics/drm-stable-kmod/Makefile =================================================================== --- head/graphics/drm-stable-kmod/Makefile +++ head/graphics/drm-stable-kmod/Makefile @@ -0,0 +1,43 @@ +# Created by: Johannes Dieterich +# $FreeBSD$ + +PORTNAME= drm-stable-kmod +PORTVERSION= g20180117 +PORTREVISION= 3 +CATEGORIES= graphics + +MAINTAINER= jmd@FreeBSD.org +COMMENT= DRM modules for the linuxkpi-based KMS components + +LICENSE= BSD2CLAUSE MIT GPLv2 +LICENSE_COMB= multi + +ONLY_FOR_ARCHS= amd64 +ONLY_FOR_ARCHS_REASON= the new KMS components are only supported on amd64 + +RUN_DEPENDS= gpu-firmware-kmod>=g20170403:graphics/gpu-firmware-kmod + +CONFLICTS_INSTALL= drm-next-kmod + +OPTIONS_DEFINE= DEBUG + +USES= kmod uidfix + +USE_GITHUB= yes +GH_ACCOUNT= FreeBSDDesktop +GH_PROJECT= kms-drm +GH_TAGNAME= cd0b05f + +.include + +.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1101510 +IGNORE= not supported on 10.x or older, no kernel support +.endif +.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200000 && ${OSVERSION} < 1200045 +IGNORE= not supported on older CURRENT, no kernel support +.endif +.if ${OPSYS} != FreeBSD +IGNORE= not supported on anything but FreeBSD (missing linuxkpi functionality) +.endif + +.include Index: head/graphics/drm-stable-kmod/distinfo =================================================================== --- head/graphics/drm-stable-kmod/distinfo +++ head/graphics/drm-stable-kmod/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1519147749 +SHA256 (FreeBSDDesktop-kms-drm-g20180117-cd0b05f_GH0.tar.gz) = 359ce8fb2f7c624be74c8e38c04352ee3e1632e932d5762382da55ca03287a88 +SIZE (FreeBSDDesktop-kms-drm-g20180117-cd0b05f_GH0.tar.gz) = 6678925 Index: head/graphics/drm-stable-kmod/pkg-descr =================================================================== --- head/graphics/drm-stable-kmod/pkg-descr +++ head/graphics/drm-stable-kmod/pkg-descr @@ -0,0 +1,5 @@ +amdgpu, i915, and radeon DRM modules for the linuxkpi-based KMS components. +Currently corresponding to Linux 4.9 DRM. More stable state. amdgpu and +radeonkms are known to fail with EFI boot. + +WWW: https://github.com/FreeBSDDesktop/kms-drm Index: head/graphics/drm-stable-kmod/pkg-message =================================================================== --- head/graphics/drm-stable-kmod/pkg-message +++ head/graphics/drm-stable-kmod/pkg-message @@ -0,0 +1,15 @@ +The experimental drm-next-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. radeomkms 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="/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 stable kms modules (radeonkms / +i915kms) in base. Index: head/graphics/drm-stable-kmod/pkg-plist =================================================================== --- head/graphics/drm-stable-kmod/pkg-plist +++ head/graphics/drm-stable-kmod/pkg-plist @@ -0,0 +1,7 @@ +/%%KMODDIR%%/amdgpu.ko +/%%KMODDIR%%/amdkfd.ko +/%%KMODDIR%%/debugfs.ko +/%%KMODDIR%%/drm.ko +/%%KMODDIR%%/i915kms.ko +/%%KMODDIR%%/linuxkpi_gplv2.ko +/%%KMODDIR%%/radeonkms.ko