From patchwork Mon Sep 5 17:15:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= X-Patchwork-Id: 12966892 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5DA0AC38145 for ; Tue, 6 Sep 2022 06:11:40 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2847110E54E; Tue, 6 Sep 2022 06:11:28 +0000 (UTC) Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by gabe.freedesktop.org (Postfix) with ESMTPS id D184910E449 for ; Mon, 5 Sep 2022 17:16:07 +0000 (UTC) Received: by mail-wr1-x42c.google.com with SMTP id t7so7118021wrm.10 for ; Mon, 05 Sep 2022 10:16:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=6jua7XnB+S6QXNBg/xY2SX2MwZ+5JccffQnTKsOaqDk=; b=kgxn/iA5M9NOE/FH/QgrgFrxAlMWYsOVL1vev7aZqaKj6cSVe5RQu6Ww9/m9lFCwCB 2/A6a3MiFL0manWBuKAT8ClQIPJLDfkHBpFiTk287Fn8TzFFF6FNvR072trcXHX+zgKu RyU+XqriqsXa48+mrZcgbsgthA1+F1Szi1KR6ugjKpyh6qLZi9wtieC3w+AUZz8HP9M5 0kXlUxhdIq7kWBWo8duWoPoSBZ/pmp7gtQbhmFp12lb2UWVSr1om04J9Z42dWiDAyi1w 9trYU69D2oS0BcjCjIm4yRP1QWaMN+NCZ0Xmwj68pdOQzFbnIP7bNa54oEz1MF3Zcmjd p4Tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=6jua7XnB+S6QXNBg/xY2SX2MwZ+5JccffQnTKsOaqDk=; b=2tiaz8T6Rj54GzknGnVtrzcZgdb2PKBFFnJvjqWj/nt/8Sq9MjstetuYqQdtJLzZpk xlJnD72oX3EQwuPrxcuSzlK/tpLYx09okakC1C49YYqCTl25e+bI6KUdpCow1vqCKVnW yiXtV+WgDkIiKx71q1EmBFM7wktr377P1jewNDMEtHp4TDUrHlwpi0cT9F0fFKGPgqCP fh56ds/wXDZq2wPfJffqrscUtnziBXC1MRSz2i5MF4fWHtX43Im70pr4sy50Z+nkACla RKTNydy1EVHK8T766nlguewqdKtZVbxZtFg1GUqdAiFhvgG2KSw5aqUmYSzFrBqQ1qOO 7Luw== X-Gm-Message-State: ACgBeo0DbrbTIK9bEpzwzzHJjkkZtDheW9eRIX7nqWpKo5UEy+aqR2Z6 gb8bNM4fX28i0/zrqDboaaadEQ4dEbbbqg== X-Google-Smtp-Source: AA6agR5ygwYGBm+rLrHkshGbCtPvib5qsaV24F9hXwanS5vZYK/GZL3sk0pdeyAzqgdef3O42Uiq5w== X-Received: by 2002:a5d:684e:0:b0:228:74d5:54e8 with SMTP id o14-20020a5d684e000000b0022874d554e8mr3860063wrw.101.1662398165821; Mon, 05 Sep 2022 10:16:05 -0700 (PDT) Received: from Clement-Blade14.home (2a01cb000c0d3d00995730c36491d21b.ipv6.abo.wanadoo.fr. [2a01:cb00:c0d:3d00:9957:30c3:6491:d21b]) by smtp.gmail.com with ESMTPSA id v22-20020a7bcb56000000b003a5ad7f6de2sm11437072wmj.15.2022.09.05.10.16.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Sep 2022 10:16:05 -0700 (PDT) From: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= To: Rob Herring , Krzysztof Kozlowski , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Catalin Marinas , Will Deacon , Tomeu Vizoso , Steven Price , Alyssa Rosenzweig , David Airlie , Daniel Vetter , Bjorn Andersson , Shawn Guo , Geert Uytterhoeven , Arnd Bergmann , Marcel Ziswiler , Vinod Koul , Dmitry Baryshkov , Biju Das Subject: [PATCH v3 0/5] Allwinner H6 GPU devfreq Date: Mon, 5 Sep 2022 19:15:56 +0200 Message-Id: <20220905171601.79284-1-peron.clem@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Mailman-Approved-At: Tue, 06 Sep 2022 06:11:24 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= , linux-sunxi@lists.linux.dev, linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hi, This is a refresh of previous patches sent to enable GPU Devfreq on H6 Beelink GS1 but that wasn't stable at that time[0]. With the recent fix on GPU PLL from Roman Stratiienko I have retested and everything seems stable and works as expected[1]. Regards, Clement 0: https://lore.kernel.org/lkml/CAJiuCce58Gaxf_Qg2cnMwvOgUqYU__eKb3MDX1Fe_+47htg2bA@mail.gmail.com/ 1: https://lore.kernel.org/linux-arm-kernel/2562485.k3LOHGUjKi@kista/T/ Changes since v2: - Fixes device-tree warnings - Add panfrost fix to enable regulator - Remove always-on regulator from device-tree - Update cooling map from vendor kernel Clément Péron (5): arm64: defconfig: Enable devfreq cooling device arm64: dts: allwinner: h6: Add cooling map for GPU arm64: dts: allwinner: h6: Add GPU OPP table drm/panfrost: devfreq: set opp to the recommended one to configure and enable regulator arm64: dts: allwinner: beelink-gs1: Enable GPU OPP .../dts/allwinner/sun50i-h6-beelink-gs1.dts | 1 + .../boot/dts/allwinner/sun50i-h6-gpu-opp.dtsi | 87 +++++++++++++++++++ arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 51 ++++++++++- arch/arm64/configs/defconfig | 1 + drivers/gpu/drm/panfrost/panfrost_devfreq.c | 8 ++ 5 files changed, 146 insertions(+), 2 deletions(-) create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-h6-gpu-opp.dtsi