GNU bug report logs - #40191
mesa: Support rockchip platforms

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix-patches; Reported by: Vagrant Cascadian <vagrant@HIDDEN>; dated Mon, 23 Mar 2020 04:20:01 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.

Message received at 40191 <at> debbugs.gnu.org:


Received: (at 40191) by debbugs.gnu.org; 29 Mar 2020 20:14:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Mar 29 16:14:01 2020
Received: from localhost ([127.0.0.1]:59952 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jIeJk-0000fQ-K9
	for submit <at> debbugs.gnu.org; Sun, 29 Mar 2020 16:14:00 -0400
Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:42209)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mbakke@HIDDEN>) id 1jIeJi-0000f8-TU
 for 40191 <at> debbugs.gnu.org; Sun, 29 Mar 2020 16:13:59 -0400
Received: from compute4.internal (compute4.nyi.internal [10.202.2.44])
 by mailout.west.internal (Postfix) with ESMTP id 3C5D43EE;
 Sun, 29 Mar 2020 16:13:53 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163])
 by compute4.internal (MEProxy); Sun, 29 Mar 2020 16:13:53 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h=
 from:to:subject:in-reply-to:references:date:message-id
 :mime-version:content-type; s=fm2; bh=fMo4huW8NdL6mxH2vqEk0A3AY3
 2A/jn1CiwtBNPGvWk=; b=Ug4L3AyKwZ+SRG4D5vlVcV9FhihunrpmW7lXb841yg
 Y3yG+USOSmxMbUNy6WpqvB/3+EyyntHGvuelPY11PHDQn70ReI8qkz00hIyNIyTE
 MvwwPBrt2xeSwjQ9VeoolOstue+qzIGpl80cDzvpVkiigr68592A36Sb/3k30mJm
 urstW8hL0TGK8MqOrbag1lh09y4JyB1zdpWFmhymOFMZaxNzriEMiI20OqUZiU6R
 KVKLiinja97wbZB469N0UuP9FNFi3zsBb+KzgVqMkb5qYHW4/+SYlGCBV72XpT+i
 4et8P4gAlD/TNW6ZLOcRcVCsiwfkMr8mfjB1lzxHdMng==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=content-type:date:from:in-reply-to
 :message-id:mime-version:references:subject:to:x-me-proxy
 :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=fMo4hu
 W8NdL6mxH2vqEk0A3AY32A/jn1CiwtBNPGvWk=; b=VPmWSdOIs0erhd32EgQm/2
 mduKSe5ilUuWMEBfHd2Au72KUlIju20S/ZtO2wTDPtSTAWyLi9arceNQYV8mHPve
 2xosd4N6BLRIgDDmaupoOTNWQfGxvywPWnk7LfVpKi/Jxe1jaIRD5rXrfJ1BmtYm
 2YjMSQ2yev/S3AfSbTeItohHSQtMq1R4HSY4MZ8MA7c+yjwrpgAu0/DP0uyNApXb
 SFst4FVexKHj673MRhe3MszQdl4dNypcFzuV43ybcCe7jPDwSKx94w/U3W6E8BKA
 wcZpMX3Li117J+WCrvGSJ2II1mp0bokEpVoDE1F2kVhOMuMtykAP6Yzu1u/Szv5w
 ==
X-ME-Sender: <xms:gAGBXjxNLBXHWn4VGeGSZT9V_X9q1CYGMao090NM_MUsGHi-8RPM4A>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrudeifedgudeglecutefuodetggdotefrod
 ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh
 necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd
 enucfjughrpefhvffujghffgffkfggtgesghdtreertdertdenucfhrhhomhepofgrrhhi
 uhhsuceurghkkhgvuceomhgsrghkkhgvsehfrghsthhmrghilhdrtghomheqnecukfhppe
 ekgedrvddtvddrieekrdejheenucevlhhushhtvghrufhiiigvpedvnecurfgrrhgrmhep
 mhgrihhlfhhrohhmpehmsggrkhhkvgesfhgrshhtmhgrihhlrdgtohhm
X-ME-Proxy: <xmx:gAGBXsjfMijEhY6hIDnZcnDYHcg1ZdzeyEf0HEu4CR0xddJke561nA>
 <xmx:gAGBXsD5-iy10m10PFnXV6Zp6VV5Rg1ufNjLILh-MIRJv9fAPeG9rw>
 <xmx:gAGBXvn3oVFS1avmW_zzAN26foyx16e77CJT25LSfyNHH9o7_jD9KA>
 <xmx:gAGBXu5GnW1w9lTzawOz1MDvCkubWKdbg2d36eWEHqi5VNMHhZQPzg>
Received: from localhost (ti0006q161-2604.bb.online.no [84.202.68.75])
 by mail.messagingengine.com (Postfix) with ESMTPA id 4C79E306C8C9;
 Sun, 29 Mar 2020 16:13:52 -0400 (EDT)
From: Marius Bakke <mbakke@HIDDEN>
To: Vagrant Cascadian <vagrant@HIDDEN>, 40191 <at> debbugs.gnu.org
Subject: Re: [bug#40191] mesa: Support rockchip platforms
In-Reply-To: <87imivbt46.fsf@yucca>
References: <87imivbt46.fsf@yucca>
User-Agent: Notmuch/0.29.3 (https://notmuchmail.org) Emacs/26.3
 (x86_64-pc-linux-gnu)
Date: Sun, 29 Mar 2020 22:13:50 +0200
Message-ID: <877dz2x6kh.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 40191
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

--=-=-=
Content-Type: text/plain

Vagrant Cascadian <vagrant@HIDDEN> writes:

> The attached patch enables drivers in mesa which should allow some
> aarch64/armhf rockchip platforms (e.g. veyron-speedy, pinebook pro) to
> make use of gpu acceleration.

Awesome!  :-)

> I haven't thoroughly tested this patch yet, but it does at least build
> and produces an appropriate dri library!

Sounds good.

> There are almost 2000 dependent packages on mesa, so this probably needs
> though core-updates according to current recommendations... I haven't
> tried rebuilding all the dependent packages? FWIW, I *think* it will
> only trigger a rebuild on aarch64/armhf.

Indeed.  We are just about to start the core-updates branch, so this
patch came just in time.  LGTM, please push!

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl6BAX4ACgkQoqBt8qM6
VPpi3wgAn6fy6MxrMyou5NzMpp2raWfrjVjfgAVk23tLIlpS66RNdEUImI8c1XYH
de84SstKygQuF7cu7lRUZyqptpmzZm9KYMo71+4h+Ho0JO7otmyuMQ5Ah/3wNIM/
nRvsH0syEsMM/dHEsyTGvnOtXY++kbZpEsGQIMhSnSjTz96E9hedBVCepbbu9SLu
EMsLt+U69uL9he2zdN3FZqtDnYibGNjI7ET6oHN8RrNlA7LcAcuBNeK8xo3j5b93
10Fiqldhe/UMD4n7tJ8MaC7pWEZIW0wz3jNyPLmnvjLxw67upC5vBTGCpuyDIzyn
WGLDgtVPkgVdoxW4Z41406FW6PqoUA==
=Al5o
-----END PGP SIGNATURE-----
--=-=-=--




Information forwarded to guix-patches@HIDDEN:
bug#40191; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 23 Mar 2020 04:19:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 23 00:19:47 2020
Received: from localhost ([127.0.0.1]:51353 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jGEZ1-00067m-MS
	for submit <at> debbugs.gnu.org; Mon, 23 Mar 2020 00:19:47 -0400
Received: from lists.gnu.org ([209.51.188.17]:51720)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <vagrant@HIDDEN>) id 1jGEYy-00067Z-SS
 for submit <at> debbugs.gnu.org; Mon, 23 Mar 2020 00:19:46 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:54837)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <vagrant@HIDDEN>) id 1jGEYx-0006zr-Ow
 for guix-patches@HIDDEN; Mon, 23 Mar 2020 00:19:44 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40 autolearn=disabled
 version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <vagrant@HIDDEN>) id 1jGEYw-0001zw-SS
 for guix-patches@HIDDEN; Mon, 23 Mar 2020 00:19:43 -0400
Received: from cascadia.aikidev.net ([173.255.214.101]:60784)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <vagrant@HIDDEN>) id 1jGEYw-0001zY-LS
 for guix-patches@HIDDEN; Mon, 23 Mar 2020 00:19:42 -0400
Received: from localhost (unknown [IPv6:2600:3c01:e000:21:21:21:0:100b])
 (Authenticated sender: vagrant@HIDDEN)
 by cascadia.aikidev.net (Postfix) with ESMTPSA id 24C581A9BD
 for <guix-patches@HIDDEN>; Sun, 22 Mar 2020 21:19:41 -0700 (PDT)
From: Vagrant Cascadian <vagrant@HIDDEN>
To: guix-patches@HIDDEN
Subject: mesa: Support rockchip platforms
Date: Sun, 22 Mar 2020 21:19:37 -0700
Message-ID: <87imivbt46.fsf@yucca>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="==-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
 [fuzzy]
X-Received-From: 173.255.214.101
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

--==-=-=
Content-Type: multipart/mixed; boundary="=-=-="

--=-=-=
Content-Type: text/plain

The attached patch enables drivers in mesa which should allow some
aarch64/armhf rockchip platforms (e.g. veyron-speedy, pinebook pro) to
make use of gpu acceleration.

I haven't thoroughly tested this patch yet, but it does at least build
and produces an appropriate dri library!

There are almost 2000 dependent packages on mesa, so this probably needs
though core-updates according to current recommendations... I haven't
tried rebuilding all the dependent packages? FWIW, I *think* it will
only trigger a rebuild on aarch64/armhf.


live well,
  vagrant


--=-=-=
Content-Type: text/x-diff
Content-Disposition: inline;
 filename=0001-gnu-mesa-Enable-rockchip-support-on-aarch64-armhf.patch
Content-Transfer-Encoding: quoted-printable

From=20d7c810c1a5b306439a47263ab294398d1382ecbe Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@HIDDEN>
Date: Sun, 22 Mar 2020 16:32:33 +0000
Subject: [PATCH] gnu: mesa: Enable rockchip support on aarch64/armhf.

* gnu/packages/gl (mesa): Enable kmsro, lima and panfrost gallium drivers.
=2D--
 gnu/packages/gl.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnu/packages/gl.scm b/gnu/packages/gl.scm
index 01241cd88e..710c602a96 100644
=2D-- a/gnu/packages/gl.scm
+++ b/gnu/packages/gl.scm
@@ -293,7 +293,7 @@ also known as DXTn or DXTC) for Mesa.")
        '(,@(match (%current-system)
              ((or "armhf-linux" "aarch64-linux")
               ;; TODO: Fix svga driver for aarch64 and armhf.
=2D              '("-Dgallium-drivers=3Detnaviv,freedreno,nouveau,r300,r600=
,swrast,tegra,v3d,vc4,virgl"))
+              '("-Dgallium-drivers=3Detnaviv,freedreno,kmsro,lima,nouveau,=
panfrost,r300,r600,swrast,tegra,v3d,vc4,virgl"))
              (_
               '("-Dgallium-drivers=3Diris,nouveau,r300,r600,radeonsi,svga,=
swrast,virgl")))
          ;; Enable various optional features.  TODO: opencl requires libcl=
c,
=2D-=20
2.20.1


--=-=-=--

--==-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCXng42QAKCRDcUY/If5cW
qtCrAP4pY7wonx2i1eQQQpvvd0FWnXpOkizh+kQ9awkmeE5AgAD/blCYg7D8KznW
jRMHwLcSlH/KNU9CK1Wvw2sqpuDytQM=
=7Uhm
-----END PGP SIGNATURE-----
--==-=-=--




Acknowledgement sent to Vagrant Cascadian <vagrant@HIDDEN>:
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#40191; Package guix-patches. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 29 Mar 2020 20:15:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.