From owner-svn-ports-all@freebsd.org Tue Aug 29 16:32:21 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 574DFDDFF5F; Tue, 29 Aug 2017 16:32:21 +0000 (UTC) (envelope-from jmd@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3333368BCC; Tue, 29 Aug 2017 16:32:21 +0000 (UTC) (envelope-from jmd@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v7TGWKs7022471; Tue, 29 Aug 2017 16:32:20 GMT (envelope-from jmd@FreeBSD.org) Received: (from jmd@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v7TGWJq0022465; Tue, 29 Aug 2017 16:32:19 GMT (envelope-from jmd@FreeBSD.org) Message-Id: <201708291632.v7TGWJq0022465@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jmd set sender to jmd@FreeBSD.org using -f From: Johannes M Dieterich Date: Tue, 29 Aug 2017 16:32:19 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r448928 - in head/graphics: . drm-next-kmod X-SVN-Group: ports-head X-SVN-Commit-Author: jmd X-SVN-Commit-Paths: in head/graphics: . drm-next-kmod X-SVN-Commit-Revision: 448928 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Aug 2017 16:32:21 -0000 Author: jmd Date: Tue Aug 29 16:32:19 2017 New Revision: 448928 URL: https://svnweb.freebsd.org/changeset/ports/448928 Log: New port: graphics/drm-next-kmod. This port includes the current state of the FreeBSDDesktop drm-next efforts to port Linux DRM/KMS components to FreeBSD via the linuxkpi. This version of the port incorporates Linux 4.9 code and works for amdgpu (HD7000/Tahiti and newer) and i915 (HD3000/Sandy Bridge and newer) on recent FreeBSD HEAD. A lot of people helped to make this happen by testing and reporting bugs. However, very special acknowledgements are in order for kip, markj, hselasky, kwm, Johannes Lundberg, and Pete Wright. Reviewed by: kwm, swills (mentor), hselasky, mat, bapt, rezny, dumbbell, jbeich, markj Approved by: kwm, swills (mentor), hselasky (earlier version), mat (earlier version) Obtained from: https://github.com/FreeBSDDesktop/freebsd-base-graphics Differential Revision: https://reviews.freebsd.org/D10021 Added: head/graphics/drm-next-kmod/ head/graphics/drm-next-kmod/Makefile (contents, props changed) head/graphics/drm-next-kmod/distinfo (contents, props changed) head/graphics/drm-next-kmod/pkg-descr (contents, props changed) head/graphics/drm-next-kmod/pkg-message (contents, props changed) head/graphics/drm-next-kmod/pkg-plist (contents, props changed) Modified: head/graphics/Makefile Modified: head/graphics/Makefile ============================================================================== --- head/graphics/Makefile Tue Aug 29 16:06:05 2017 (r448927) +++ head/graphics/Makefile Tue Aug 29 16:32:19 2017 (r448928) @@ -150,6 +150,7 @@ SUBDIR += djvulibre SUBDIR += dmtx-utils SUBDIR += driconf + SUBDIR += drm-next-kmod SUBDIR += dspdfviewer SUBDIR += duhdraw SUBDIR += dynamechs Added: head/graphics/drm-next-kmod/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/drm-next-kmod/Makefile Tue Aug 29 16:32:19 2017 (r448928) @@ -0,0 +1,37 @@ +# Created by: Johannes Dieterich +# $FreeBSD$ + +PORTNAME= drm-next-kmod +PORTVERSION= g20170825 +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 + +OPTIONS_DEFINE= DEBUG + +USES= kmod uidfix + +USE_GITHUB= yes +GH_ACCOUNT= FreeBSDDesktop +GH_PROJECT= kms-drm +GH_TAGNAME= 4ee5acb + +.include + +.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200039 +IGNORE= not supported on 11.x or older, no kernel support +.endif +.if ${OPSYS} != FreeBSD +IGNORE= not supported on anything but FreeBSD (missing linuxkpi functionality) +.endif + +.include Added: head/graphics/drm-next-kmod/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/drm-next-kmod/distinfo Tue Aug 29 16:32:19 2017 (r448928) @@ -0,0 +1,3 @@ +TIMESTAMP = 1503685089 +SHA256 (FreeBSDDesktop-kms-drm-g20170825-4ee5acb_GH0.tar.gz) = b43ec8530ec5f440dc406c6b65a1ade2a4aceb694111b15a6a935457686dce31 +SIZE (FreeBSDDesktop-kms-drm-g20170825-4ee5acb_GH0.tar.gz) = 6678678 Added: head/graphics/drm-next-kmod/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/drm-next-kmod/pkg-descr Tue Aug 29 16:32:19 2017 (r448928) @@ -0,0 +1,4 @@ +amdgpu, i915, and radeon DRM modules for the linuxkpi-based KMS components. +Currently corresponding to linux 4.9 DRM. + +WWW: https://github.com/FreeBSDDesktop/kms-drm Added: head/graphics/drm-next-kmod/pkg-message ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/drm-next-kmod/pkg-message Tue Aug 29 16:32:19 2017 (r448928) @@ -0,0 +1,10 @@ +The drm-next-kmod port requires explicit loading of its drm.ko kernel +module prior to loading either 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. + +For example: kld_list="/boot/modules/drm.ko /boot/modules/amdgpu.ko" +or kld_list="/boot/modules/drm.ko /boot/modules/i915kms.ko" + +Older generations are supported by the kms modules (radeonkms / +i915kms) in base. Added: head/graphics/drm-next-kmod/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/drm-next-kmod/pkg-plist Tue Aug 29 16:32:19 2017 (r448928) @@ -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