From patchwork Fri Oct 15 08:16:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giulio Benetti X-Patchwork-Id: 1541443 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=QNO+NNtS; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::137; helo=smtp4.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137]) (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 4HVzcV3jTTz9shx for ; Fri, 15 Oct 2021 19:16:10 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 9DF02404E6; Fri, 15 Oct 2021 08:16:08 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YX0DBXw3kMmc; Fri, 15 Oct 2021 08:16:07 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id 0BE92404D2; Fri, 15 Oct 2021 08:16:07 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id B414F1BF334 for ; Fri, 15 Oct 2021 08:16:05 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id B130482F37 for ; Fri, 15 Oct 2021 08:16:05 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp1.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=aruba.it Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZzrByWf4zR4I for ; Fri, 15 Oct 2021 08:16:04 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0 Received: from smtpcmd13146.aruba.it (smtpcmd13146.aruba.it [62.149.156.146]) by smtp1.osuosl.org (Postfix) with ESMTP id 7704982EB5 for ; Fri, 15 Oct 2021 08:16:04 +0000 (UTC) Received: from ubuntu.localdomain ([146.241.216.221]) by Aruba Outgoing Smtp with ESMTPSA id bINmmNKmdiqGsbINnmEBJh; Fri, 15 Oct 2021 10:16:03 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aruba.it; s=a1; t=1634285763; bh=wIJeCHjr8kkipH7m6EHiLX5W3vI+1ZNgIQ+K8nmmPlI=; h=From:To:Subject:Date:MIME-Version; b=QNO+NNtSERWorXeyBLF2a8AzaHk8UHNNpwmoZtIeb8nMn9IKwIrIcIvlNBSF+xhF9 mtS/38LWfQctIl6/7kLR0eZhJvnQmbB+O023MNS9Nty240BpDweW3zRfAcvC94RTfh znxbVT9DbkkIb0W2DejvssP1xvTsh+JfL3sdDnVcGObIEifllZ5438WC61SK80MDMI lhHrgwgIwJrTQCzuf/bFIuH2+JnjxtFAaupZXt+irfwpliXgJquLVZqh81cm9bTL5q q7L+LYV1SzfphwO1WxY63UA3Uhvx0RdvpCcNXZFew1gE8I22kUEEoYEfKlTtUW9+up fi8JIoCORnPfg== From: Giulio Benetti To: buildroot@buildroot.org Date: Fri, 15 Oct 2021 10:16:01 +0200 Message-Id: <20211015081601.2472850-1-giulio.benetti@benettiengineering.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 X-CMAE-Envelope: MS4wfMHfXCk/x2ZuGJUP9PcrJB0OwOut+0Qjhy1fHk43DUpbqvKBHlG2eDEavNGm2y+1svZ7hWwoTUIotV9poMX3Ih8o1ppf2vxshaMhoY8VET+27BvtCsbE vYF1lebt8ZgFhzIFh+AtPSEUqM2d7BdryjuOW2oKtcCFKrYPQW/a2EjSD/kymnWJWVRi5O6urITCJp3c82bkw9xdRL4pdA2YgpTncDPXQ+bM5TfFf2OSzHIT QJhHvSVmjXKc+h/sPOrqaFrNWGzaBh2u+vRLmpIl2xE= Subject: [Buildroot] [PATCH v2] package/sunxi-mali-mainline-driver: update help section to make it work on Linux >= 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: Giulio Benetti Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" On Linux version >= 4.20 in order to have mali working we need to pass drm_kms_helper.drm_leak_fbdev_smem=1 and at least drm_kms_helper.drm_fbdev_overalloc=200 to have a double buffer fbdev. Signed-off-by: Giulio Benetti --- V1->V2: * add double buffer too --- package/sunxi-mali-mainline-driver/Config.in | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/package/sunxi-mali-mainline-driver/Config.in b/package/sunxi-mali-mainline-driver/Config.in index 5db66c5bf6..bd6819cf82 100644 --- a/package/sunxi-mali-mainline-driver/Config.in +++ b/package/sunxi-mali-mainline-driver/Config.in @@ -25,5 +25,11 @@ config BR2_PACKAGE_SUNXI_MALI_MAINLINE_DRIVER starting from Linux Kernel >= 4.20 following options must be enabled: - CONFIG_DRM_FBDEV_LEAK_PHYS_SMEM + and following kernel command-line must be passed: + `drm_kms_helper.drm_leak_fbdev_smem = 1` + since drm_kms_helper.drm_leak_fbdev_smem is set to 0 by default + `drm_kms_helper.drm_fbdev_overalloc >= 200` + since the driver requires at least double buffering and fails to + work with the default value(100). https://github.com/mripard/sunxi-mali/blob/master/README.md