From patchwork Tue Sep 6 15:30:29 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: 12967745 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 E905FECAAD5 for ; Tue, 6 Sep 2022 16:02:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=qls1eiYteExpbkol5C1+sKwk4+fVxVC1kuMV36D1XoA=; b=0PoT9mwlgrHV9E /vwvcpCiJX2t16UeKlDktCSqUGu66sPHmTSd6t5qRxNX67vUbkm6nwXP2CgUeHzROVBplbLJh32KO 9S7GBI9IvTorZ4wDro/6MS2bfUwPmMj8IVRiUoTjsa/z/HR2IE33Y32dSQxV8mZMZzFYIgQM3GRhW /1OVrSZavjvli3vYOxdNPcJOlA6BKCTP/IvbZpUHXthDktgNEg5PP8ch4evzqjRVHAFC/hz2W1ER9 ojhjyTYNTgDdgB+/Dx8RNoroeKPIYbB9fZoomBbkYluCbwAyNekZz1nJGc3eJ69nFkpnv4shCmNgV dXzH/psETZpHA92adHFA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oVb06-00F8i0-U0; Tue, 06 Sep 2022 16:00:35 +0000 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oVaXA-00EolD-JL for linux-arm-kernel@lists.infradead.org; Tue, 06 Sep 2022 15:30:42 +0000 Received: by mail-wm1-x32f.google.com with SMTP id ay39-20020a05600c1e2700b003a5503a80cfso7683460wmb.2 for ; Tue, 06 Sep 2022 08:30:38 -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=NW5MbJ9oB/CKkA2uVQGgD3qEK3k/FiXePuny+oDqcy4=; b=od9qULTexRVgJTef8J4V+LaNVdUZgsqXUCA7ADevHkDIFUNi/UoNZnBNjyp6BsZb9R JDNEe2dNcV72YeBEEi3YHSs0ygvkEdhlqHMyiJxfyZbQtRLVBgknwl6VDbyTBJMewa1q YpuCtQpKPI79clSoysJJPrF1aC/rofgxM4AVo/DsHoSGIAAX+zjFGSKam+atpJdSQFOT hSA7vu6IUhhql/4Mdvn6n6r3IPvcVZ9RsLkgnGhPcxj3q4n19uY22IhwesEmqSeTu8wB a0c9VyEDre/6DXydgGrvQ21J9nzcSUAXF1tzkv1pkXEAhM40XPnLRbuhdsUwUzzEqpLc bWMA== 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=NW5MbJ9oB/CKkA2uVQGgD3qEK3k/FiXePuny+oDqcy4=; b=wLMpn0RVD+Qo1OMxl5wNZGLeIZMky5z5Wb2SG34vV90jF8Zl4580qXuAEnP1bnsJLb uHMCD8GboInAJqXyDWpl03AVqevhFL+YuwxilpOVylmS8tnjz+nhhh3bK3R4vD0B1n8d euO7yiMVF9KUGtqdvtcqZdavSGkY4aznpaMUM+LuWsxF9S73BaGQgXaTyLEkuaoo6GME UwYu7SGFkfK+Es+h+u/mETMM1F7M1+UAsyCJnmNSSfdYlG4rxmElKmlafZKUEWee1hjF CqUR7xFWL9lb+VM+qOJB7MOHf0pPVyzznRvQjqBm2yqqzCpUeMPE8Vi7Tf6bYI/N5490 eMpw== X-Gm-Message-State: ACgBeo0QPBADOaRL8WvuQa0njR7ACIbLFO9rQHhY9HP8UPujTI3fDQTH NkWbqBR8Nero0iNioYk04FWPxF8ao5BzvA== X-Google-Smtp-Source: AA6agR7Xp8vqGGwqNGcb09DGgwhi3xKkb+Aoi7Ihjymn/0Fa1D/5dd1OIycy1XIwV/wusOVvCHIBtw== X-Received: by 2002:a05:600c:4a09:b0:3a6:9a22:3979 with SMTP id c9-20020a05600c4a0900b003a69a223979mr14303510wmp.57.1662478236817; Tue, 06 Sep 2022 08:30:36 -0700 (PDT) Received: from Clement-Blade14.outsight.local (lputeaux-656-1-11-33.w82-127.abo.wanadoo.fr. [82.127.142.33]) by smtp.gmail.com with ESMTPSA id 24-20020a05600c22d800b003a6125562e1sm14922731wmg.46.2022.09.06.08.30.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Sep 2022 08:30:35 -0700 (PDT) From: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= To: Chen-Yu Tsai , Jernej Skrabec , Samuel Holland Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= Subject: [PATCH v4 0/5] Allwinner H6 GPU devfreq Date: Tue, 6 Sep 2022 17:30:29 +0200 Message-Id: <20220906153034.153321-1-peron.clem@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220906_083040_747214_8058CA2C X-CRM114-Status: GOOD ( 12.43 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 v3: - Try to be more explicit for panfrost OPP patch - Fix typo 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 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 | 11 +++ 5 files changed, 149 insertions(+), 2 deletions(-) create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-h6-gpu-opp.dtsi