From nobody Tue Feb 20 18:42:51 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TfSvb4Tjzz55Pf4; Tue, 20 Feb 2024 18:42:51 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TfSvb3czpz4S4X; Tue, 20 Feb 2024 18:42:51 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708454571; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=okz4q6bndvCn9ITrOtqNTyl6ZZUI2LUEi5Y96owEcKs=; b=FOqIF3OuHCyvzwpp5FjssWXl4P8Hh6ZPQV5Tlm8ixsgG8ced+3dZ/tpIlkxdQ/lpzlFkTB PfP4Q6Cy9xgbaurFjsfazkoeGzLZ4SJy9qAMZHp6x0D/lSv95+WZfFzmlbpOyPQZlxDKf2 Mvelw2YDp52ziBbbCiBzxjZ9zn0JApWyjS3j34BiZKpScQHCxbMgXI9o0HjFI7tXSgS+Bd xkxpcxSqYKtKHrfuiq8OM1AFOGhndjxFPv9GMq28q19KQT50NpuHrX9bzFA9vBNTHLfZrm kppKJFvDcdcUXExyg44Uj6WQVeUmkEkimnmESsTswOjrOABLPM2zNCbR3NXauw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708454571; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=okz4q6bndvCn9ITrOtqNTyl6ZZUI2LUEi5Y96owEcKs=; b=VRaL1O8hKkwZWLORSGhO87ym4lKVAC3CHvAQhc+L3unbULqPNDVagVuJJsJf29SWAuUVP4 MePdgiZzJBO+i6zMOhwpIMVPeHuS/Z2kP9zMF+7lg4hYvI4xJlXLAGY2Kxm1IBdCp9UyHq ulCm+UQBFt36LIiDyt3oA7kiTp17NiakDr7t/tlGfClltcZYA5shH82qS2QXlbKonzXYOk EO6klYtXcSYL2anJ9hDxQQfyzRxlTa2dQu62ta3f2DLHRJJ5mrm5dx4ltHdNhSce1/t9xy FG/th13Ag4K6Ke6saESVaSseEG8wEOVbOwUeadJtFyaYGqpNxHhg8pG8k7vJyQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708454571; a=rsa-sha256; cv=none; b=IWIP88fYuif5wMTVj6zw7nUC2yLOF0qgwomjbRf1est3jtL/jGycFTb34eC4hmK5058jWG 0P4cxjcXL0wEjE28bPLludaIR5L0JWI8sX+3hic9SsNubmte533B8E21GvcvgO71gF5DId S3gmcNs4C0KbDCFsXmHhhjH6a2Y8F8So31d5EuyQhusoy5zF/kVubj33ei/MvkPcVlkoyU /ZEs26PTCzmqcqR4BIA8kfan6IU+UNzV/kumRWm0RovIK4bc1Z6OBdXui5yJZTbtHwVYKK On+JvY5YuGhF0m+Y+CFCf2L66z/KCzOUbW06vTx5aCHIu4S7ZyEO/p/aceS8/A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TfSvb2hhvzW15; Tue, 20 Feb 2024 18:42:51 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41KIgpDq025042; Tue, 20 Feb 2024 18:42:51 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41KIgp91025039; Tue, 20 Feb 2024 18:42:51 GMT (envelope-from git) Date: Tue, 20 Feb 2024 18:42:51 GMT Message-Id: <202402201842.41KIgp91025039@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Gleb Popov Subject: git: ada1f9a5cfd9 - main - graphics/nvidia-drm-61-kmod: new port List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: arrowd X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ada1f9a5cfd99523efe39ba49084fc0890653922 Auto-Submitted: auto-generated The branch main has been updated by arrowd: URL: https://cgit.FreeBSD.org/ports/commit/?id=ada1f9a5cfd99523efe39ba49084fc0890653922 commit ada1f9a5cfd99523efe39ba49084fc0890653922 Author: Austin Shafer AuthorDate: 2024-02-20 18:37:06 +0000 Commit: Gleb Popov CommitDate: 2024-02-20 18:41:57 +0000 graphics/nvidia-drm-61-kmod: new port Differential Revision: https://reviews.freebsd.org/D43987 --- graphics/Makefile | 1 + graphics/nvidia-drm-61-kmod/Makefile | 12 ++++++++++++ graphics/nvidia-drm-61-kmod/distinfo | 5 +++++ .../files/20-nvidia-drm-outputclass.conf.in | 8 ++++++++ .../nvidia-drm-61-kmod/files/patch-nvidia-drm-freebsd-lkpi.c | 10 ++++++++++ graphics/nvidia-drm-61-kmod/pkg-descr | 3 +++ 6 files changed, 39 insertions(+) diff --git a/graphics/Makefile b/graphics/Makefile index b5e49a6bba6f..50eb59e0f8ae 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -594,6 +594,7 @@ SUBDIR += nurbs++ SUBDIR += nvidia-drm-510-kmod SUBDIR += nvidia-drm-515-kmod + SUBDIR += nvidia-drm-61-kmod SUBDIR += nvidia-drm-kmod SUBDIR += nvidia-texture-tools SUBDIR += ocaml-cairo diff --git a/graphics/nvidia-drm-61-kmod/Makefile b/graphics/nvidia-drm-61-kmod/Makefile new file mode 100644 index 000000000000..c19838a0ec14 --- /dev/null +++ b/graphics/nvidia-drm-61-kmod/Makefile @@ -0,0 +1,12 @@ +PORTNAME= nvidia-drm-61-kmod +PORTVERSION= ${NVIDIA_DISTVERSION} +PORTREVISION= 2 +CATEGORIES= graphics + +RUN_DEPENDS+= ${KMODDIR}/drm.ko:graphics/drm-61-kmod +CONFLICTS_INSTALL= nvidia-drm-510-kmod nvidia-drm-515-kmod + +.include "${.CURDIR}/../drm-61-kmod/Makefile.version" +.include "${.CURDIR}/../nvidia-drm-kmod/Makefile.common" + +.include diff --git a/graphics/nvidia-drm-61-kmod/distinfo b/graphics/nvidia-drm-61-kmod/distinfo new file mode 100644 index 000000000000..084e786dd0ce --- /dev/null +++ b/graphics/nvidia-drm-61-kmod/distinfo @@ -0,0 +1,5 @@ +TIMESTAMP = 1708442445 +SHA256 (amshafer-nvidia-driver-535.146.02-nvidia-drm-61-kmod-535.146.02_GH0.tar.gz) = 3dff8909f1c51ef086cc9f88574083292c51d18f13bb3708abd0f76b703807b2 +SIZE (amshafer-nvidia-driver-535.146.02-nvidia-drm-61-kmod-535.146.02_GH0.tar.gz) = 185685669 +SHA256 (freebsd-drm-kmod-drm_v6.1.69_GH0.tar.gz) = 2327b60eb403f07c9782894cff70de04920cb14a70efc565d68d4b5ad12bc5cb +SIZE (freebsd-drm-kmod-drm_v6.1.69_GH0.tar.gz) = 37088102 diff --git a/graphics/nvidia-drm-61-kmod/files/20-nvidia-drm-outputclass.conf.in b/graphics/nvidia-drm-61-kmod/files/20-nvidia-drm-outputclass.conf.in new file mode 100644 index 000000000000..15496138f63a --- /dev/null +++ b/graphics/nvidia-drm-61-kmod/files/20-nvidia-drm-outputclass.conf.in @@ -0,0 +1,8 @@ +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-61-kmod/files/patch-nvidia-drm-freebsd-lkpi.c b/graphics/nvidia-drm-61-kmod/files/patch-nvidia-drm-freebsd-lkpi.c new file mode 100644 index 000000000000..5f707bd2f03d --- /dev/null +++ b/graphics/nvidia-drm-61-kmod/files/patch-nvidia-drm-freebsd-lkpi.c @@ -0,0 +1,10 @@ +--- nvidia-drm-freebsd-lkpi.c.orig 2023-11-06 18:11:13 UTC ++++ nvidia-drm-freebsd-lkpi.c +@@ -228,7 +228,6 @@ MODULE_DEPEND(nvidia_drm, linuxkpi, 1, 1, 1); + + LKPI_DRIVER_MODULE(nvidia_drm, nv_drm_init, nv_drm_exit); + MODULE_DEPEND(nvidia_drm, linuxkpi, 1, 1, 1); +-MODULE_DEPEND(nvidia_drm, linuxkpi_gplv2, 1, 1, 1); + MODULE_DEPEND(nvidia_drm, drmn, 2, 2, 2); + MODULE_DEPEND(nvidia_drm, dmabuf, 1, 1, 1); + MODULE_DEPEND(nvidia_drm, nvidia, 1, 1, 1); diff --git a/graphics/nvidia-drm-61-kmod/pkg-descr b/graphics/nvidia-drm-61-kmod/pkg-descr new file mode 100644 index 000000000000..7d7a2771a627 --- /dev/null +++ b/graphics/nvidia-drm-61-kmod/pkg-descr @@ -0,0 +1,3 @@ +FreeBSD port of Linux's nvidia-drm.ko Kernel module. + +This version is compatible with drm.ko 6.1.