From patchwork Thu Jan 26 10:35:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 48568 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp204916wrn; Thu, 26 Jan 2023 02:40:23 -0800 (PST) X-Google-Smtp-Source: AMrXdXtcojpyYEjAKBHL++pyYXyhvGtKmuFN/yBtkC5Q6bwioLVVb3K2L1sOAwU1gMRn81r03JhZ X-Received: by 2002:a17:907:3a90:b0:7c0:e5c6:2a74 with SMTP id fh16-20020a1709073a9000b007c0e5c62a74mr26387007ejc.34.1674729623110; Thu, 26 Jan 2023 02:40:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674729623; cv=none; d=google.com; s=arc-20160816; b=QOCGodQnrKSpKzaEsuHQCz2i13i7uCcXGEgrD74/01m7V2Vyu3lUrxkZVyWdH6F8MO er8YPIbQI98C3TlOV71A/2FUnAwEtxmaGUL4wdjaIVgMlxOcKDDAJ9CC0SXKBInQnmay dwcOTt0OTNHLeE0gEHW+oxoc3HWqAG6G8k+0Bw5cCI4e1t6GQNDRfunq56S4PWIrPyiZ xsvrzmJ9i7g/T579CRUh1s+vLUWsWa5oIvwiUiL+AMWHgzdeGvj9Ji6wytg58CZlXSaV xCLOebPKV8zhjyLhw3bHixWxWFTNImVAh4Mq9xo2Rn3lMMLVu/c36L7xvb05EugOpNDX q38Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=aT2HZqCYT3K+IY/eTToGMA4uVoLZpwy6WXGXmJenakI=; b=nrAj2uNEKkubTEn5kLhzD/upqxDvdvl2fs9wCfJZG9K2yDMStsWTr8lyTf52Gmv7Rq 48YlpcBHIIX36zdZRyAlZTrIPllkHT4RNol5BNmBpx1zeD/NgtkvLwkdCnhtkBx5HIIQ K0f8m/58iMTWqOSlTXtPWyIjTs9P0WOcsTKynrr0JVRQ28N726uKaiQHr2/eADx9qDkL WMlS0MA7dSJqKnAIFZ1H2Hvt74doz/4F0/2xOKCsUIuIkpQaXuFhdWkXc393aCdXHHmD wWxC/QsI0+HvH4g+OuQzaJ7RxXIQ6lJ2qV7RziNdLh6ylWkQVFKMigYJzbgZptZYQpRn VI5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=YPUDNL9Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gi15-20020a1709070c8f00b008786cea541esi815850ejc.593.2023.01.26.02.39.57; Thu, 26 Jan 2023 02:40:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=YPUDNL9Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236785AbjAZKfr (ORCPT + 99 others); Thu, 26 Jan 2023 05:35:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236701AbjAZKfk (ORCPT ); Thu, 26 Jan 2023 05:35:40 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9BA86AF41; Thu, 26 Jan 2023 02:35:37 -0800 (PST) Received: from IcarusMOD.eternityproject.eu (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (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) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 16AC16602E6C; Thu, 26 Jan 2023 10:35:36 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1674729336; bh=ewzG3bsZfarFS++4YljfNfR9eURvUZDK2OObKxm5aBA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YPUDNL9YCFo2GUu68Jkg79rx/u7sl2UPyeQWRtrcEgcgZFSum3AkkEc/cGPxA9KTt qLtFVCxSJnY6Z92KogNBIQ8sPavcXV1H21Mp+7c5QPDNiuj5mOtx+2UICa1cN0sAZG bJ5V7vUFSdvAeLvcLFI82gZEY/rE3cBicVUD9RzB1q+hFNDWDeVitgkrQp8T/d3y8R DlcKFDTA5KldK776lW1G+hbL5+jT8G8RSvnTv8qd8PoQQ3YqEWbfxiN5lhmHm9xOQc 2nRGRwrRZnoeh0fH/Hn5bJ2faVtvSIfL1zCGbgjqFGyncibQ0+OO/FRuXBUgXlBM+e MBFeOYP7FtJ1A== From: AngeloGioacchino Del Regno To: matthias.bgg@gmail.com Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, seiya.wang@mediatek.com, tinghan.shen@mediatek.com, allen-kh.cheng@mediatek.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, AngeloGioacchino Del Regno Subject: [PATCH 4/6] arm64: dts: mt8195: Change idle states names to reflect actual function Date: Thu, 26 Jan 2023 11:35:24 +0100 Message-Id: <20230126103526.417039-5-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230126103526.417039-1-angelogioacchino.delregno@collabora.com> References: <20230126103526.417039-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756081289310635988?= X-GMAIL-MSGID: =?utf-8?q?1756081289310635988?= The names of the idle states are misleading being this a single cluster SoC, a cluster-off idle state is impossible! After some research in ATF, it emerged that the cpu-off state is in reality putting CPUs in retention state, while the cluster-off one is turning off the CPUs. Summarizing renaming: - cpu-off -> cpu-retention - cluster-off -> cpu-off Signed-off-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt8195.dtsi | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8195.dtsi b/arch/arm64/boot/dts/mediatek/mt8195.dtsi index f04f836d9a72..60ccf02b60bd 100644 --- a/arch/arm64/boot/dts/mediatek/mt8195.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8195.dtsi @@ -38,7 +38,7 @@ cpu0: cpu@0 { performance-domains = <&performance 0>; clock-frequency = <1701000000>; capacity-dmips-mhz = <308>; - cpu-idle-states = <&cpu_off_l &cluster_off_l>; + cpu-idle-states = <&cpu_ret_l &cpu_off_l>; i-cache-size = <32768>; i-cache-line-size = <64>; i-cache-sets = <128>; @@ -57,7 +57,7 @@ cpu1: cpu@100 { performance-domains = <&performance 0>; clock-frequency = <1701000000>; capacity-dmips-mhz = <308>; - cpu-idle-states = <&cpu_off_l &cluster_off_l>; + cpu-idle-states = <&cpu_ret_l &cpu_off_l>; i-cache-size = <32768>; i-cache-line-size = <64>; i-cache-sets = <128>; @@ -76,7 +76,7 @@ cpu2: cpu@200 { performance-domains = <&performance 0>; clock-frequency = <1701000000>; capacity-dmips-mhz = <308>; - cpu-idle-states = <&cpu_off_l &cluster_off_l>; + cpu-idle-states = <&cpu_ret_l &cpu_off_l>; i-cache-size = <32768>; i-cache-line-size = <64>; i-cache-sets = <128>; @@ -95,7 +95,7 @@ cpu3: cpu@300 { performance-domains = <&performance 0>; clock-frequency = <1701000000>; capacity-dmips-mhz = <308>; - cpu-idle-states = <&cpu_off_l &cluster_off_l>; + cpu-idle-states = <&cpu_ret_l &cpu_off_l>; i-cache-size = <32768>; i-cache-line-size = <64>; i-cache-sets = <128>; @@ -114,7 +114,7 @@ cpu4: cpu@400 { performance-domains = <&performance 1>; clock-frequency = <2171000000>; capacity-dmips-mhz = <1024>; - cpu-idle-states = <&cpu_off_b &cluster_off_b>; + cpu-idle-states = <&cpu_ret_b &cpu_off_b>; i-cache-size = <65536>; i-cache-line-size = <64>; i-cache-sets = <256>; @@ -133,7 +133,7 @@ cpu5: cpu@500 { performance-domains = <&performance 1>; clock-frequency = <2171000000>; capacity-dmips-mhz = <1024>; - cpu-idle-states = <&cpu_off_b &cluster_off_b>; + cpu-idle-states = <&cpu_ret_b &cpu_off_b>; i-cache-size = <65536>; i-cache-line-size = <64>; i-cache-sets = <256>; @@ -152,7 +152,7 @@ cpu6: cpu@600 { performance-domains = <&performance 1>; clock-frequency = <2171000000>; capacity-dmips-mhz = <1024>; - cpu-idle-states = <&cpu_off_b &cluster_off_b>; + cpu-idle-states = <&cpu_ret_b &cpu_off_b>; i-cache-size = <65536>; i-cache-line-size = <64>; i-cache-sets = <256>; @@ -171,7 +171,7 @@ cpu7: cpu@700 { performance-domains = <&performance 1>; clock-frequency = <2171000000>; capacity-dmips-mhz = <1024>; - cpu-idle-states = <&cpu_off_b &cluster_off_b>; + cpu-idle-states = <&cpu_ret_b &cpu_off_b>; i-cache-size = <65536>; i-cache-line-size = <64>; i-cache-sets = <256>; @@ -221,7 +221,7 @@ core7 { idle-states { entry-method = "psci"; - cpu_off_l: cpu-off-l { + cpu_ret_l: cpu-retention-l { compatible = "arm,idle-state"; arm,psci-suspend-param = <0x00010001>; local-timer-stop; @@ -230,7 +230,7 @@ cpu_off_l: cpu-off-l { min-residency-us = <580>; }; - cpu_off_b: cpu-off-b { + cpu_ret_b: cpu-retention-b { compatible = "arm,idle-state"; arm,psci-suspend-param = <0x00010001>; local-timer-stop; @@ -239,7 +239,7 @@ cpu_off_b: cpu-off-b { min-residency-us = <740>; }; - cluster_off_l: cluster-off-l { + cpu_off_l: cpu-off-l { compatible = "arm,idle-state"; arm,psci-suspend-param = <0x01010002>; local-timer-stop; @@ -248,7 +248,7 @@ cluster_off_l: cluster-off-l { min-residency-us = <840>; }; - cluster_off_b: cluster-off-b { + cpu_off_b: cpu-off-b { compatible = "arm,idle-state"; arm,psci-suspend-param = <0x01010002>; local-timer-stop;