From patchwork Fri Oct 15 08:15:14 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giulio Benetti X-Patchwork-Id: 1541441 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.a=rsa-sha256 header.s=a1 header.b=ILakVtEf; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::136; helo=smtp3.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136]) (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) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4HVzbl3xn9z9shx for ; Fri, 15 Oct 2021 19:15:29 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id DA49D60782; Fri, 15 Oct 2021 08:15:26 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZngHBsPwJVva; Fri, 15 Oct 2021 08:15:26 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id 4271360789; Fri, 15 Oct 2021 08:15:25 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 5A9F61BF334 for ; Fri, 15 Oct 2021 08:15:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 56DD660789 for ; Fri, 15 Oct 2021 08:15:23 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0wq92mlMJYiv for ; Fri, 15 Oct 2021 08:15:21 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0 Received: from smtpcmd12131.aruba.it (smtpcmd12131.aruba.it [62.149.156.131]) by smtp3.osuosl.org (Postfix) with ESMTP id 4A12C60782 for ; Fri, 15 Oct 2021 08:15:20 +0000 (UTC) Received: from ubuntu.localdomain ([146.241.216.221]) by Aruba Outgoing Smtp with ESMTPSA id bIN3mg0jYnxSqbIN3mS5uo; Fri, 15 Oct 2021 10:15:18 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aruba.it; s=a1; t=1634285719; bh=NaDAoQ48eJhKiWGMaauDsmHaFquyM3soMfzKlZJ6VPQ=; h=From:To:Subject:Date:MIME-Version; b=ILakVtEfnM51EBYPwPVs0g0sr3iXs1LRknVTmG489+VJmAWArTbEEUI+BNEr06ZKc 9PGaeR+xCv8OgssOyvznTb/4SjNZrEXhSk3TrwXNhXbvX63GWH1Gd/SP7fLunuwndT A1v3nKijRCgQkLkwU5VOmz8Oi4bS91cVEbnzzWvyrm7HXOjs7E+AQA/SQO2MhtWXzh +5E1ljUaFRq9bEFE1Fa+Nzbq3qIm1G6HEKdGs5sLLsfgVNt6+nccJwGLOzxrqf5zzH IhPqyAfq0bKsPahFsauYk5SAT05Y98HDW7a6UU1YKZX7tSA36+W3tnEa+ijdpFrwrn SAyn4PeSiq6mg== From: Giulio Benetti To: buildroot@buildroot.org Date: Fri, 15 Oct 2021 10:15:14 +0200 Message-Id: <20211015081514.2472764-1-giulio.benetti@benettiengineering.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 X-CMAE-Envelope: MS4wfASkHvOtW0YbD7V7FnaAf24+kK6tg/dPMIVGMEuT/Iz0nNOa8kIrPXcvj0AnqIC24amQdDfyJxa8qyAJeJUbapfZVM+4/yhKqvFUY8Ik7ThHfcqp4rgw Ge0l7kQ8Vo92WY+/BWw4vg1m4eZZV3O+FJGc8pc0IUoD6YxbMKDtL1r/xwtTSpEaVb+m6HCtqcXogBg5tozv6tnZsZmWIp9WvZaBY8O4Bhg3GgtxHo9+TQwS 7KHZevrKl1vc1W8INr8ziNZ8wVlDvtl3GL/FiYfeG6L4/6zRiz98aYW4EHEyNmErgJeTxo0wuD4MG11oEpuTi3Efg/8skqKWAlBlidOKYO8= Subject: [Buildroot] [PATCH v2] configs/olimex_a20_olinuxino: fix mali not working because Linux version >= 4.20 X-BeenThere: buildroot@buildroot.org 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: Luca Ceresoli , Giulio Benetti Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Since on olinuxino_lime/lime2 we have a Linux version >= 4.20 we need to pass drm_kms_helper.drm_leak_fbdev_smem=1 to kernel command-line that really enables DRM_FBDEV_LEAK_PHYS_SMEM. CONFIG_DRM_FBDEV_LEAK_PHYS_SMEM only adds the code for this, but drm_leak_fbdev_smem is 0 by default, so we need to override it with 1. Same goes for drm_fbdev_overalloc that must be at least 200 for having a double buffer that is required by Mali. This fixes both olimex_a20_olinuxino_lime and lime2 that use extlinux.conf. Signed-off-by: Giulio Benetti --- V1->V2: * add double buffer setting too --- .../a20_olinuxino/rootfs_overlay/boot/extlinux/extlinux.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/olimex/a20_olinuxino/rootfs_overlay/boot/extlinux/extlinux.conf b/board/olimex/a20_olinuxino/rootfs_overlay/boot/extlinux/extlinux.conf index f754da3623..358bda056b 100644 --- a/board/olimex/a20_olinuxino/rootfs_overlay/boot/extlinux/extlinux.conf +++ b/board/olimex/a20_olinuxino/rootfs_overlay/boot/extlinux/extlinux.conf @@ -1,4 +1,4 @@ label Olinuxino kernel /boot/zImage fdtdir /boot - append console=ttyS0,115200 root=/dev/mmcblk0p1 rootwait panic=10 ${extra} + append console=ttyS0,115200 root=/dev/mmcblk0p1 rootwait panic=10 drm_kms_helper.drm_leak_fbdev_smem=1 drm_kms_helper.drm_fbdev_overalloc=200 ${extra}