From patchwork Fri Mar 6 09:25:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Howard Mitchell X-Patchwork-Id: 1250157 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=hmbedded.co.uk Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48Yj3860wrz9sSK for ; Fri, 6 Mar 2020 20:28:20 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id AD10720774; Fri, 6 Mar 2020 09:28:16 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id u+hVuLmcmckS; Fri, 6 Mar 2020 09:28:14 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 7CAAD204DB; Fri, 6 Mar 2020 09:28:14 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id CCADF1BF842 for ; Fri, 6 Mar 2020 09:28:11 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id C9DFA87598 for ; Fri, 6 Mar 2020 09:28:11 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5j7h0jYBBRl7 for ; Fri, 6 Mar 2020 09:28:09 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from avasout03.plus.net (avasout03.plus.net [84.93.230.244]) by whitealder.osuosl.org (Postfix) with ESMTPS id 63FC68758F for ; Fri, 6 Mar 2020 09:28:09 +0000 (UTC) Received: from howard-VirtualMint.home.gateway ([212.159.100.40]) by smtp with ESMTPSA id A9GnjDmUuNXR9A9GxjkOeP; Fri, 06 Mar 2020 09:28:04 +0000 X-Clacks-Overhead: "GNU Terry Pratchett" X-CM-Score: 0.00 X-CNFS-Analysis: v=2.3 cv=Et9JURUA c=1 sm=1 tr=0 a=VGUxJGZ/H8UixBFj6Q9CRg==:117 a=VGUxJGZ/H8UixBFj6Q9CRg==:17 a=eIRpCU4CAAAA:8 a=R3IXrxi5P2_m5ZGGsjYA:9 a=7Zwj6sZBwVKJAoWSPKxL6X1jA+E=:19 a=KRcjph3C3QkoscwFyxAa:22 X-AUTH: oscars+hm@:46500 From: Howard Mitchell To: buildroot@busybox.net Date: Fri, 6 Mar 2020 09:25:03 +0000 Message-Id: <20200306092504.30340-1-hm@hmbedded.co.uk> X-Mailer: git-send-email 2.17.1 X-CMAE-Envelope: MS4wfDNkUamXecBKRUcMD4aIwTFDJ+X2GzFth8KPC8s1VgvzV7Ea3vQpWjY1NvQ1MDdI2A03mGShddASAko3w49Ao9YG+Bkfh50sMpkRzw0xVZz6/hk9j1uZ xlLiRG6umQUJo8zn6QsVpu1tFIn0EHQEruPxBYq/mdRvHDyDN8j6mYBdH2r47UgbUQ6thB9vpBEMcnEQTQJOeK8NAFwgRjweRPc= Subject: [Buildroot] [PATCH 1/2] package/mesa3d: select vc4 and kmsro driver for gallium v3d X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Howard Mitchell MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Currently, when building for rpi2/3 it is only necessary to to select vc4 to get acceleration working. However, when building for rpi4 v3d, vc4 and kmsro have to be selected. Therefore this commit forces the selection of vc4 and kmsro when v3d is selected. Signed-off-by: Howard Mitchell --- package/mesa3d/Config.in | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/package/mesa3d/Config.in b/package/mesa3d/Config.in index 13e516e452..3950170533 100644 --- a/package/mesa3d/Config.in +++ b/package/mesa3d/Config.in @@ -257,12 +257,10 @@ config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_TEGRA config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_V3D bool "Gallium v3d driver" depends on BR2_arm || BR2_aarch64 - select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER - select BR2_PACKAGE_MESA3D_GALLIUM_KMSRO - select BR2_PACKAGE_LIBDRM_VC4 - select BR2_PACKAGE_MESA3D_OPENGL_EGL + select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_VC4 + select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_KMSRO help - Driver for Broadcom VC6 (rpi4) GPUs (needs kmsro and vc4). + Driver for Broadcom VC6 (rpi4) GPUs. It requires a kernel 4.18+ with DRM V3D support enabled: From patchwork Fri Mar 6 09:25:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Howard Mitchell X-Patchwork-Id: 1250156 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=hmbedded.co.uk Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48Yj350VhBz9sRY for ; Fri, 6 Mar 2020 20:28:16 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id DDBCA8689B; Fri, 6 Mar 2020 09:28:13 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id intZP-NF-jbp; Fri, 6 Mar 2020 09:28:11 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 8FB99864B3; Fri, 6 Mar 2020 09:28:11 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 110BE1BF842 for ; Fri, 6 Mar 2020 09:28:11 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 0E10A87598 for ; Fri, 6 Mar 2020 09:28:11 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KGJi25LcGV5P for ; Fri, 6 Mar 2020 09:28:09 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from avasout03.plus.net (avasout03.plus.net [84.93.230.244]) by whitealder.osuosl.org (Postfix) with ESMTPS id 9220C875B6 for ; Fri, 6 Mar 2020 09:28:09 +0000 (UTC) Received: from howard-VirtualMint.home.gateway ([212.159.100.40]) by smtp with ESMTPSA id A9GnjDmUuNXR9A9H5jkOea; Fri, 06 Mar 2020 09:28:08 +0000 X-Clacks-Overhead: "GNU Terry Pratchett" X-CM-Score: 0.00 X-CNFS-Analysis: v=2.3 cv=Et9JURUA c=1 sm=1 tr=0 a=VGUxJGZ/H8UixBFj6Q9CRg==:117 a=VGUxJGZ/H8UixBFj6Q9CRg==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=eIRpCU4CAAAA:8 a=xxYw2aTeMtGPcwmomDYA:9 a=KRcjph3C3QkoscwFyxAa:22 X-AUTH: oscars+hm@:46500 From: Howard Mitchell To: buildroot@busybox.net Date: Fri, 6 Mar 2020 09:25:04 +0000 Message-Id: <20200306092504.30340-2-hm@hmbedded.co.uk> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200306092504.30340-1-hm@hmbedded.co.uk> References: <20200306092504.30340-1-hm@hmbedded.co.uk> X-CMAE-Envelope: MS4wfD/YrRCrPCpFMFVRNLQafPPcg/WPk4tnmueDueesuGJj5hW6Jq8CnVjajmGK1ynTQav6MWA9TpyhKxgIjKgboA3GgdCx6XFLIbm7EOZvTXd8AArojnGU OQs7+RgergD8yezgTJNHwwy+wBrzGSLhRFHfyq5be5AS6N+Ykhf0m2bktVxRaEtkg2NtfGyDbY17LSiNFZcSX2v6oCDntlRZi1g= Subject: [Buildroot] [PATCH 2/2] package/mesa3d: get glxgears working for v3d/vc4 minimal builds X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Howard Mitchell MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Currently a minimal build for rpi2/3/4 (i.e. only v3d and/or vc4 selected, no dri drivers selected) results in working X11 except that glxgears shows a blank window. This commit effectively results in the following conf options being added: -Dglx-direct=true -Ddri3=true Signed-off-by: Howard Mitchell --- package/mesa3d/Config.in | 1 + 1 file changed, 1 insertion(+) diff --git a/package/mesa3d/Config.in b/package/mesa3d/Config.in index 3950170533..59b8f60773 100644 --- a/package/mesa3d/Config.in +++ b/package/mesa3d/Config.in @@ -274,6 +274,7 @@ config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_VC4 select BR2_PACKAGE_MESA3D_GALLIUM_KMSRO select BR2_PACKAGE_LIBDRM_VC4 select BR2_PACKAGE_MESA3D_OPENGL_EGL + select BR2_PACKAGE_MESA3D_DRI_DRIVER help Driver for Broadcom VC4 (rpi2/3) GPUs. It requires a vanilla 4.5+ kernel with drm vc4 (open) support.