From patchwork Thu Jan 26 10:35:21 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: 48564 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp204358wrn; Thu, 26 Jan 2023 02:38:18 -0800 (PST) X-Google-Smtp-Source: AMrXdXu1Q+6t4lalXA/8U4r7xVGNRdbeNoUcridlcYbEpYo+5QW8jgZUbr3Uaf8JouYQFFRhP44m X-Received: by 2002:a05:6402:1009:b0:479:8313:3008 with SMTP id c9-20020a056402100900b0047983133008mr35020494edu.0.1674729498613; Thu, 26 Jan 2023 02:38:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674729498; cv=none; d=google.com; s=arc-20160816; b=I8WxxPFChRlVHHqjcCunuBNTTjfjifWGVu/zbHXjiWM0FSIXx9rNrQETjeiKUfXZz3 QwZO4FFwPG7h3GU3vI/EROwngqSpPa8LWJqPgUzlfuK+bMgFgVbqbpWRHo/Hzk3rercw gkl93anGxMCNFRT0WZ217O4otxqdG4+Z7O9UEWTgtZvBgfZe6AMKSsNgafE2NPMiSQ2j pUtIAMCK+liu1UB3K88VD6MJPFQNN+zpMEwMgNsPdmksx+nyMDmS+Wc0nvxV2LvKudE1 YAGyiJxnLJPJOn0DuwAGpqmZ4/42nzMB/IehoG9Xfm19VxHN2N1J1bXOmRrmXK+JLF48 u2Gg== 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=oq9ZeEBJe3kRXlo/6/IjznWvVQskObsD2w8mpTfUG1E=; b=JzCYFajW30VTLD+OuJMDoUJ9bbM4tJVMJdSoF8Xfzj9PVkrBAEM/wp5GSbjwLtbZ77 zNwn/cIvsyD8S6QAiZ2TBZ+yFWG2XCih82JWN0GYRjDR2UwN2D8owl+SMeHtntmyjLoh H4nvs/mYj8F33fySYTr9L2bJ9T1Nvz6BTWgVuSh2AbDVJkWGge/eJ1lLFdHYBsUnU0ar xGzWd2T2DomWjPUKwKVhjTOz3QRcJgeezdAlWNbavjeFy0tVj07J5hgSF5CEuSDKEgNY bptijPsjPzYpZiPq08puL2tda/6U70SjIKWrr2P8rjTZ2LhBKYEei5lO+sO6Ez9TIaY7 6C+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=WBmewUkJ; 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 dm20-20020a05640222d400b0049e3fcd693dsi1299883edb.489.2023.01.26.02.37.54; Thu, 26 Jan 2023 02:38:18 -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=WBmewUkJ; 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 S236622AbjAZKfi (ORCPT + 99 others); Thu, 26 Jan 2023 05:35:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236431AbjAZKfh (ORCPT ); Thu, 26 Jan 2023 05:35:37 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9AA153B38; Thu, 26 Jan 2023 02:35:35 -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 CE3086602E69; Thu, 26 Jan 2023 10:35:33 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1674729334; bh=iKRWu1G6lRj82iCKcuPFgVRRJGOdOZ+wFl7EKyG3ooo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WBmewUkJe5wonIHRiTpTwd4y9LJFeNiqAIRlyHP0ntZd3YdC9VuAR4IWXrnCi5j6O bVj76/T7a4Mvh4jI3IHgOXufyAPmv1JhOd1wOXW46ObYVRwnp5ULe49E51NDG2vAXs RoI4Do0lmXPc5o7ngrW1HkNemIZzSBhStzqhh5U8w/ti2mscnMobiokVo+yQBe4UB1 kgdoW1GG5Gq39tRfG3/3T57TtAmr3f4Y/66k025ngMKJS+HDXPBQVoBp1qUq8hXiOk dANmYtFKfSL3Upae90DEf0qATiImCLsraUIEv4/y87LfFMI2wikuI2CRB/zHF5RKES dgJQtDozy246A== 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 1/6] arm64: dts: mt8195: Fix CPU map for single-cluster SoC Date: Thu, 26 Jan 2023 11:35:21 +0100 Message-Id: <20230126103526.417039-2-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?1756081158680954881?= X-GMAIL-MSGID: =?utf-8?q?1756081158680954881?= MT8195 features the ARM DynamIQ technology and combines both four Cortex-A78 (big) and four Cortex-A55 (LITTLE) CPUs in one cluster: fix the CPU map to reflect that. Signed-off-by: AngeloGioacchino Del Regno Fixes: 37f2582883be ("arm64: dts: Add mediatek SoC mt8195 and evaluation board") --- arch/arm64/boot/dts/mediatek/mt8195.dtsi | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8195.dtsi b/arch/arm64/boot/dts/mediatek/mt8195.dtsi index 926325935777..f04f836d9a72 100644 --- a/arch/arm64/boot/dts/mediatek/mt8195.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8195.dtsi @@ -199,22 +199,20 @@ core2 { core3 { cpu = <&cpu3>; }; - }; - cluster1 { - core0 { + core4 { cpu = <&cpu4>; }; - core1 { + core5 { cpu = <&cpu5>; }; - core2 { + core6 { cpu = <&cpu6>; }; - core3 { + core7 { cpu = <&cpu7>; }; }; From patchwork Thu Jan 26 10:35:22 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: 48565 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp204457wrn; Thu, 26 Jan 2023 02:38:42 -0800 (PST) X-Google-Smtp-Source: AMrXdXvzp/XhkoSyk+qBUmybToLmxOy1OcqVSZ0jSBY/E264AX2JYvKaHi830hhJgFhZa+kYr1pr X-Received: by 2002:aa7:c842:0:b0:491:3a5c:6e2 with SMTP id g2-20020aa7c842000000b004913a5c06e2mr35510437edt.5.1674729521997; Thu, 26 Jan 2023 02:38:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674729521; cv=none; d=google.com; s=arc-20160816; b=FePvz296jk6yuAtUq31+XYqNwTtrkpNsTrHxgtGqh1jzD7x9+G+1WQU6FXBRXUD/QY WrqB0aRzVSQON5gahact3R6V468x24AL4tBxcXMn2SvtspWmWs0iQ/mx/uf5q39o75Ao Rqnl/HJpujAG6/FjxLG/qc+LiGbYrTVAuW8789KUTbnKtIcPOHT/hvECqb8M3R3o//tn dnrukbGjv8baiLRk8eyKHYbWm/+HmChGmQKOC/rCl2Mx8H3nKKHrDaWQjGVv/7aHExFP Gbsc/aS7N2O9qPyppMuDMt87EzB5frkWiq+rphNp76mPmO6NJEa8oiFbKXEvwJsLQfhW IA2A== 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=wMqsQ9Zf/3zRu5jyZdUXBXLRRFx/EViyHcyMuUzQvns=; b=jnSu8EAT4VdPvh8KTrW3IbMVCmJD0+pbu6b7DiZPxnY19GgeZKWyvpIvhkNIM/M/RQ ozEcms4N/iKOYk9GGexQcDY/dD6W2JUF5hJE0eFB6yWdfnivj7GL9qtSYAW0pJBMUKHA NfrFzYR0rKBeo0p8HwsQOvarc/um3jMP/IdkO0oR8BFosSvexJDc+Cvio3MOndSp82in GoCNq0pTwjzjZNe6brrnd9lHgb2asIyYIyLscFJBTTZ/XZY5jKrDSKIiaR8rOXfU2PJ3 NOSuWKskJyu4fP0WDw0VxkUxaJPXMyR0bjZsvHWBlDnnMgFJEnEtlY3UFswopDFmoURC Jl2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=YBZ523Gy; 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 k6-20020aa7d8c6000000b004837719c1cfsi1327556eds.220.2023.01.26.02.38.17; Thu, 26 Jan 2023 02:38:41 -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=YBZ523Gy; 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 S236716AbjAZKfl (ORCPT + 99 others); Thu, 26 Jan 2023 05:35:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236527AbjAZKfh (ORCPT ); Thu, 26 Jan 2023 05:35:37 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5557A518E4; Thu, 26 Jan 2023 02:35:36 -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 8CBD56602E6A; Thu, 26 Jan 2023 10:35:34 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1674729335; bh=wKr87X3ee2/ldebp0uI7OsQ8x9sd9DyzBVImLZaNJnk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YBZ523GyKgfEXh0o9iDuKK9lS0MLU9urZBpc71Zuto/nmWwqp0dyCWJU6nDBgXQMT +sT8N6fqDiDimxFEcv+AaoRCAlOMh8iDTaWvn3qsW8XJfnzE3fkM7sRyGAmVDKrrJy coJKYSYxHDE7F4fRySuN5bJcVaWsrRvEDSMWCtdMCtN21XoNKrXMuVCUUB9bBBqMST yafhWH8N5C0CCbQb0l3NPNyQPkG2oGzKunpy0ah1tVCrvbGIDtBpBKS9+TL+jS6oLI XlechJ3tF6n4nF9K5I2qz43y+9IHAE2VBJzc3S8lnL1bApCWEI8KzFCk0Q7IuwPIV+ PgFGPNeJ4v2CQ== 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 2/6] arm64: dts: mt8192: Fix CPU map for single-cluster SoC Date: Thu, 26 Jan 2023 11:35:22 +0100 Message-Id: <20230126103526.417039-3-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?1756081183042204313?= X-GMAIL-MSGID: =?utf-8?q?1756081183042204313?= MT8192 features the ARM DynamIQ technology and combines both four Cortex-A76 (big) and four Cortex-A55 (LITTLE) CPUs in one cluster: fix the CPU map to reflect that. Signed-off-by: AngeloGioacchino Del Regno Fixes: 48489980e27e ("arm64: dts: Add Mediatek SoC MT8192 and evaluation board dts and Makefile") --- arch/arm64/boot/dts/mediatek/mt8192.dtsi | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi b/arch/arm64/boot/dts/mediatek/mt8192.dtsi index ef4fcefa2bfc..eb46cbadd310 100644 --- a/arch/arm64/boot/dts/mediatek/mt8192.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8192.dtsi @@ -206,19 +206,16 @@ core2 { core3 { cpu = <&cpu3>; }; - }; - - cluster1 { - core0 { + core4 { cpu = <&cpu4>; }; - core1 { + core5 { cpu = <&cpu5>; }; - core2 { + core6 { cpu = <&cpu6>; }; - core3 { + core7 { cpu = <&cpu7>; }; }; From patchwork Thu Jan 26 10:35:23 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: 48566 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp204609wrn; Thu, 26 Jan 2023 02:39:19 -0800 (PST) X-Google-Smtp-Source: AMrXdXt9z7aSTqQNDsqtln1N0/nbqeHGKs2X8aOEi53//0iu6g5HnIiM3OWSadNGFoyCo7ghMk1h X-Received: by 2002:a17:907:8a1d:b0:84d:3822:2fc7 with SMTP id sc29-20020a1709078a1d00b0084d38222fc7mr48675137ejc.77.1674729559557; Thu, 26 Jan 2023 02:39:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674729559; cv=none; d=google.com; s=arc-20160816; b=QXA+xLKyrFnsnbhlGKaAE/LO+qweXdmGcOFV2VEfU2Jbua87rczykt9z2kVu3bLMNU ubmK1hvfpPQpksa0bwLGjaX6UgfhEz8+jparwc1UP7fvRsNVqwtsfzW0FjkAyRCBQsrU 1ex3GbxvAVx5mY3RXTaHe/R15U43+gkWh3+l89Dv7Pzk/gG4UrnfpomOPD8PTKwitrM6 TzeE3osRDij2x74bMuzG7lFkRWkvtnToXQgKu27lV6U52iGg49S+bOFopSI0ByzhVXem PKUvdNXPkDAQ3/54E/+7pIoa3ZtY0WI6IDm8bEzGyiof+v1sFCZxV/zTLmHe7Pn+BvKd MpQw== 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=CdMhwvhhDbBYQI9iPyyHxhBBR1u18WorVVYVl8Rrz88=; b=kD/TzC27fVIC9IaJdUHgkPpf5+LwBKfxj5FnzlefNhHfZRDSes58oh0ESV+IBaLzdE 0xE6p0MPHpLViLPjKdyHrTUvIbnueHRjOmgfLT6EAPUC+L23nWYq2N2w5T9goRkFAxa/ 6MQnfwys4Ojznbn+0T/Kjvc2l5xII+AwLio3n/ckQlgzQ4vWK/fEsObZ74fW5o5HggCZ 2DEjDZZSAzM+rEpitwp8ayxnNNaFhubjn+kVbCG/q5urofOUfBYlFAE20Y6KfUsH91zS pxchrEpUvB7c3G9HDs4l0WPZGNlHSofR5CVPV2bs1wGNT1O5GeTOzlLZPX77BfCyFcpd V9mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Y6f19OUr; 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 10-20020a170906028a00b00866e6cae111si1057817ejf.18.2023.01.26.02.38.55; Thu, 26 Jan 2023 02:39:19 -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=Y6f19OUr; 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 S236821AbjAZKfp (ORCPT + 99 others); Thu, 26 Jan 2023 05:35:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236636AbjAZKfi (ORCPT ); Thu, 26 Jan 2023 05:35:38 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1DF1C5619C; 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 4A5856602E6B; Thu, 26 Jan 2023 10:35:35 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1674729335; bh=EMl5yatPQKhtWM2fU3fhn8R0Jnt0BN2gaE4N11T994Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Y6f19OUrNeNzCjr6L+ZBaC4DyPgc+JYOsCxmwcQOLpd9vW6TCon7lYhjV6Zw/dHvA NXl/DKKPev3eeQaRUrLg4e3pKPqnIPiLkaihZhPi4YCeXB5vFzCOlbirFICVQkLFvH AUfnFIaWTar0j0B8ZShrBx2k3RrMOoQmtmtfuAstwkSyTeUGamZjdsXfPx74vUDpuz ebk56daRyTxwQGtR73T07iQageU+SxG3GZpuRHfOIFWXvua4dnkrcgdQC8yeK54dGY vYk8pgVJ5NSLlpwPOfts1xAnmHNAO5A3Jxy5QnudA19ZDNLf8C1L6OQfMWEqiFNNh9 UjJfElFU7zuSw== 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 3/6] arm64: dts: mt8186: Fix CPU map for single-cluster SoC Date: Thu, 26 Jan 2023 11:35:23 +0100 Message-Id: <20230126103526.417039-4-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?1756081222630728284?= X-GMAIL-MSGID: =?utf-8?q?1756081222630728284?= MT8186 features the ARM DynamIQ technology and combines both two Cortex-A76 (big) and six Cortex-A55 (LITTLE) CPUs in one cluster: fix the CPU map to reflect that. Signed-off-by: AngeloGioacchino Del Regno Fixes: 2e78620b1350 ("arm64: dts: Add MediaTek MT8186 dts and evaluation board and Makefile") --- arch/arm64/boot/dts/mediatek/mt8186.dtsi | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8186.dtsi b/arch/arm64/boot/dts/mediatek/mt8186.dtsi index c9124bb0c960..9e8daaa044dc 100644 --- a/arch/arm64/boot/dts/mediatek/mt8186.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8186.dtsi @@ -48,14 +48,12 @@ core4 { core5 { cpu = <&cpu5>; }; - }; - cluster1 { - core0 { + core6 { cpu = <&cpu6>; }; - core1 { + core7 { cpu = <&cpu7>; }; }; 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; From patchwork Thu Jan 26 10:35:25 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: 48567 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp204913wrn; Thu, 26 Jan 2023 02:40:22 -0800 (PST) X-Google-Smtp-Source: AMrXdXtchQcOwiZEbFAQpkJQELYDF5HrWctRozXJSTAJmUvcz4ZqkuRn02K/gaVow39uvkUGh3rF X-Received: by 2002:a17:906:9f07:b0:877:60d7:3181 with SMTP id fy7-20020a1709069f0700b0087760d73181mr30625428ejc.17.1674729622522; Thu, 26 Jan 2023 02:40:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674729622; cv=none; d=google.com; s=arc-20160816; b=reiufB/h9p4D0IrAvriXxEVwkbL+KCjbojOUQynqNh23sXC1vlObL8gxEPVM5LyROe JqMPfi5zMOObSWvjg75a/rr3FlT+pq5Vs944Kgw/9RGMPyTd/7UGpTjQNfp7qYytDxWB SqO4Uj2z1dpG45Itoc4yQpawc/ml9MLbK03dwL0EBpro7HsbRN+I4/9zNkaiayPsIECJ ImfjWQVyqXlZn+yZEIBV9KNr6AIRsnsT12x82uWKr9LCba+ulxwEPLMF9K2fqAS37kl/ utErEmE75Dd90xmM6RBrAx152JdHpwiBkovOmnUiCARy3JI/OPNTiRZV0dDloJt4xpWx 3mwQ== 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=XG4WUJy9bxp7WdaWJxJIM+BLioT3MpCHnIBpkxf7Q3Y=; b=UW9VSxi9Yh75zHvIHhvPEFKFLdMR2vIiYswB+4D4Nx3NSOeqdXY+FchQ2gXWclGLQE YBr6Dl2i5OrCmoD9PmZN/rrnrzRd1wnXEcDx3vwMXDlBN7KnHXIrEVjXbPLLYTrWMyrM /3ZiqDWX4Zs5dAjod8j+vi5exUIlQfMgDuRexO8dvDLeLAVmsBLOHH2Amei1aIJSgkHU APqDnJff5m7wCvB345NkePqhjGNmMwlVcAn0PjkUH9KWgJf8KGV4fwskxQHoAMbRrR9M 1UVON6LvvHpMNbQQq2JXrnwxmi3z44J3CZaMMZPwjQjR5/3tJb3ZgRC0bwdQL3XMzUNj mbLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=YWlikC9d; 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 fl12-20020a1709072a8c00b007ad9c8201e7si895916ejc.93.2023.01.26.02.39.58; Thu, 26 Jan 2023 02:40:22 -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=YWlikC9d; 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 S236941AbjAZKfu (ORCPT + 99 others); Thu, 26 Jan 2023 05:35:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236761AbjAZKfo (ORCPT ); Thu, 26 Jan 2023 05:35:44 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F08A26C565; Thu, 26 Jan 2023 02:35:38 -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 C957D6602E6E; 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=1674729337; bh=5G3lKYmabCCWJ0ClcZ1qdU2NYkJbDWfAMHVhV3swQrI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YWlikC9dJpMUomqbG+4kS6bsrepJPL0Xpy+LUnPnPHCxIISVJX0yqiE/nqnhxuY4R HsPWsWZZk7lUMWfyOLRRUfAVnp1qF6AxPacymnrQPlgpd9MFkSN2BfqEGWCoiYgtFs epSNECzNdXVb4J+ZmpmN8/57mWsZ41cnJBUAFirLlu7lDA/H7+daKpoYf3CbS1bE/d tzxn/V+XypyABKLs2hr77cOzWJZWnjqB7ih6MYpvqeWeSRQRtKhpCmqmd63ri/Qfbo VrfLUvShXES8FErpBanAyQ6NsVSE2zSWdFJ7/tpq5qOoIlRPQnCcRoTHAkskMxKVpP sJPaAxkXxvUFw== 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 5/6] arm64: dts: mt8186: Change idle states names to reflect actual function Date: Thu, 26 Jan 2023 11:35:25 +0100 Message-Id: <20230126103526.417039-6-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?1756081288292481387?= X-GMAIL-MSGID: =?utf-8?q?1756081288292481387?= 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/mt8186.dtsi | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8186.dtsi b/arch/arm64/boot/dts/mediatek/mt8186.dtsi index 9e8daaa044dc..50fdb88bdc3d 100644 --- a/arch/arm64/boot/dts/mediatek/mt8186.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8186.dtsi @@ -66,7 +66,7 @@ cpu0: cpu@0 { enable-method = "psci"; clock-frequency = <2000000000>; capacity-dmips-mhz = <382>; - 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>; @@ -84,7 +84,7 @@ cpu1: cpu@100 { enable-method = "psci"; clock-frequency = <2000000000>; capacity-dmips-mhz = <382>; - 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>; @@ -102,7 +102,7 @@ cpu2: cpu@200 { enable-method = "psci"; clock-frequency = <2000000000>; capacity-dmips-mhz = <382>; - 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>; @@ -120,7 +120,7 @@ cpu3: cpu@300 { enable-method = "psci"; clock-frequency = <2000000000>; capacity-dmips-mhz = <382>; - 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>; @@ -138,7 +138,7 @@ cpu4: cpu@400 { enable-method = "psci"; clock-frequency = <2000000000>; capacity-dmips-mhz = <382>; - 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>; @@ -156,7 +156,7 @@ cpu5: cpu@500 { enable-method = "psci"; clock-frequency = <2000000000>; capacity-dmips-mhz = <382>; - 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>; @@ -174,7 +174,7 @@ cpu6: cpu@600 { enable-method = "psci"; clock-frequency = <2050000000>; 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>; @@ -192,7 +192,7 @@ cpu7: cpu@700 { enable-method = "psci"; clock-frequency = <2050000000>; 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>; @@ -206,7 +206,7 @@ cpu7: cpu@700 { 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; @@ -215,7 +215,7 @@ cpu_off_l: cpu-off-l { min-residency-us = <1600>; }; - cpu_off_b: cpu-off-b { + cpu_ret_b: cpu-retention-b { compatible = "arm,idle-state"; arm,psci-suspend-param = <0x00010001>; local-timer-stop; @@ -224,7 +224,7 @@ cpu_off_b: cpu-off-b { min-residency-us = <1400>; }; - cluster_off_l: cluster-off-l { + cpu_off_l: cpu-off-l { compatible = "arm,idle-state"; arm,psci-suspend-param = <0x01010001>; local-timer-stop; @@ -233,7 +233,7 @@ cluster_off_l: cluster-off-l { min-residency-us = <2100>; }; - cluster_off_b: cluster-off-b { + cpu_off_b: cpu-off-b { compatible = "arm,idle-state"; arm,psci-suspend-param = <0x01010001>; local-timer-stop; From patchwork Thu Jan 26 10:35:26 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: 48569 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp204922wrn; Thu, 26 Jan 2023 02:40:24 -0800 (PST) X-Google-Smtp-Source: AMrXdXshah5jw9qYHcpUNCpjRAd9L5qMNi9X9DaHr6quA1SCWr2byIHnNywc5Oz8/dVcjRdPrHLE X-Received: by 2002:a17:906:3a97:b0:86e:bbdf:95c5 with SMTP id y23-20020a1709063a9700b0086ebbdf95c5mr38472975ejd.26.1674729624326; Thu, 26 Jan 2023 02:40:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674729624; cv=none; d=google.com; s=arc-20160816; b=I+sOlKryibWQiWcAA8J91FgWThRu9nmFlp2ZV4dH6IIQJWeVgLL3jPmuugXhtOkvBt KdPNSJ419fAxI6Y31xRq2yOJKZ8s4YJYr1Bdh05sB2RAhzzAiojZ7IVVO09YuBSKHqdw 3PVF2lQ9nWPx7keiPxIe8FfBcj8pMRIQYSa3MqTfgk3m3sBVrf+menPJ+/xjW00DUnXB pi1nD234glhP99bOikBzOC/oZpuiOHWl37xFtade1ZvW8btDPJLyoet/SKFFsEQWUtL8 fdMYcTPDLfSJGJQL0K/pg8BPscJNheW12UUMNgckUZXUGuYa6/EAFRMQozXs8lubcdgQ hZwg== 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=RQsfoZbXuZwou/TbdXt+KlmirRkhUgvJHSvx6afG21M=; b=n2pO/NKpBslTxrx2o40fkm5aVVY5bje2e0nVZ9LhJw81HQK5mvdBK/RA6abXckLDDb o+tEQAsslSfT6WjflL98YFjaKMwOeVIhnQ2PAYoh5LErjI0zXsOhLeswtOTtJ5GXNhWq aULmfepyKWjcPlcsOoK2LWISPnNw1+dM7NiZckznqXCsWyuaxd7r1+gBPLAje6QJbMGY V16PebjYVlA/BeyobIJXBzzy25w8kFCrc0d3HJpaoLyPSSjsjyp4beKeJtQo2VLkQrmz x0fBIj7mf0P09pkrcmHAKhkGLGCf+CjJDFXo2WeNPO0U91Sg8nGUrugyzlCCJjtTZSPT kAfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=dLEWxzAE; 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 14-20020a17090600ce00b0086f53c24daasi947825eji.792.2023.01.26.02.40.00; Thu, 26 Jan 2023 02:40:24 -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=dLEWxzAE; 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 S236952AbjAZKfw (ORCPT + 99 others); Thu, 26 Jan 2023 05:35:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236806AbjAZKfo (ORCPT ); Thu, 26 Jan 2023 05:35:44 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BCAF6C578; Thu, 26 Jan 2023 02:35:39 -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 871386602E70; Thu, 26 Jan 2023 10:35:37 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1674729338; bh=811mGtt7JeQpT1SuTm7rNcFj7Fd9S3mKqBcc7+C7qO8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dLEWxzAERpYLA71egOjO1LATE/G5//9XwW2RYijXWjLBe5kqhJ3/LtFQpMax9utRN qz8/Hv4oCO8+KLAbBReSaZ/B+VmF7Gz9YWHK+/KCNmEv+uTJ9Ks9Yf1HTZ1lQBLICO 8BK5wVqph8zbM4odGWGIpXiZw0pfEJTVFK+9b/A3RumiYMFPLegMuYjc74AwKSEujX 9NIN9hOr1GMELINFzyKxZOSdVxTl06G10xlvFF8SQxoimP/1pNMVBCHtddIJz9PTwh gpxyBVVO9E5kh0T/p/MUmD0CuHXQOZ+qAUo2DM+2SvrdHnxDoLZxWJ+fNuEEiQPtpw 2U8HKU8f8jfjw== 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 6/6] arm64: dts: mt8192: Change idle states names to reflect actual function Date: Thu, 26 Jan 2023 11:35:26 +0100 Message-Id: <20230126103526.417039-7-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?1756081290665269957?= X-GMAIL-MSGID: =?utf-8?q?1756081290665269957?= The names of the idle states are misleading being this a single cluster SoC, a cluster-sleep idle state is impossible! After some research in ATF, it emerged that the cpu-sleep state is in reality putting CPUs in retention state, while the cluster-sleep one is turning off the CPUs. Summarizing renaming: - cpu-sleep -> cpu-retention - cluster-sleep -> cpu-off Signed-off-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt8192.dtsi | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi b/arch/arm64/boot/dts/mediatek/mt8192.dtsi index eb46cbadd310..87b91c8feaf9 100644 --- a/arch/arm64/boot/dts/mediatek/mt8192.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8192.dtsi @@ -62,7 +62,7 @@ cpu0: cpu@0 { reg = <0x000>; enable-method = "psci"; clock-frequency = <1701000000>; - cpu-idle-states = <&cpu_sleep_l &cluster_sleep_l>; + cpu-idle-states = <&cpu_ret_l &cpu_off_l>; i-cache-size = <32768>; i-cache-line-size = <64>; i-cache-sets = <128>; @@ -79,7 +79,7 @@ cpu1: cpu@100 { reg = <0x100>; enable-method = "psci"; clock-frequency = <1701000000>; - cpu-idle-states = <&cpu_sleep_l &cluster_sleep_l>; + cpu-idle-states = <&cpu_ret_l &cpu_off_l>; i-cache-size = <32768>; i-cache-line-size = <64>; i-cache-sets = <128>; @@ -96,7 +96,7 @@ cpu2: cpu@200 { reg = <0x200>; enable-method = "psci"; clock-frequency = <1701000000>; - cpu-idle-states = <&cpu_sleep_l &cluster_sleep_l>; + cpu-idle-states = <&cpu_ret_l &cpu_off_l>; i-cache-size = <32768>; i-cache-line-size = <64>; i-cache-sets = <128>; @@ -113,7 +113,7 @@ cpu3: cpu@300 { reg = <0x300>; enable-method = "psci"; clock-frequency = <1701000000>; - cpu-idle-states = <&cpu_sleep_l &cluster_sleep_l>; + cpu-idle-states = <&cpu_ret_l &cpu_off_l>; i-cache-size = <32768>; i-cache-line-size = <64>; i-cache-sets = <128>; @@ -130,7 +130,7 @@ cpu4: cpu@400 { reg = <0x400>; enable-method = "psci"; clock-frequency = <2171000000>; - cpu-idle-states = <&cpu_sleep_b &cluster_sleep_b>; + cpu-idle-states = <&cpu_ret_b &cpu_off_b>; i-cache-size = <65536>; i-cache-line-size = <64>; i-cache-sets = <256>; @@ -147,7 +147,7 @@ cpu5: cpu@500 { reg = <0x500>; enable-method = "psci"; clock-frequency = <2171000000>; - cpu-idle-states = <&cpu_sleep_b &cluster_sleep_b>; + cpu-idle-states = <&cpu_ret_b &cpu_off_b>; i-cache-size = <65536>; i-cache-line-size = <64>; i-cache-sets = <256>; @@ -164,7 +164,7 @@ cpu6: cpu@600 { reg = <0x600>; enable-method = "psci"; clock-frequency = <2171000000>; - cpu-idle-states = <&cpu_sleep_b &cluster_sleep_b>; + cpu-idle-states = <&cpu_ret_b &cpu_off_b>; i-cache-size = <65536>; i-cache-line-size = <64>; i-cache-sets = <256>; @@ -181,7 +181,7 @@ cpu7: cpu@700 { reg = <0x700>; enable-method = "psci"; clock-frequency = <2171000000>; - cpu-idle-states = <&cpu_sleep_b &cluster_sleep_b>; + cpu-idle-states = <&cpu_ret_b &cpu_off_b>; i-cache-size = <65536>; i-cache-line-size = <64>; i-cache-sets = <256>; @@ -250,7 +250,7 @@ l3_0: l3-cache { idle-states { entry-method = "psci"; - cpu_sleep_l: cpu-sleep-l { + cpu_ret_l: cpu-retention-l { compatible = "arm,idle-state"; arm,psci-suspend-param = <0x00010001>; local-timer-stop; @@ -258,7 +258,7 @@ cpu_sleep_l: cpu-sleep-l { exit-latency-us = <140>; min-residency-us = <780>; }; - cpu_sleep_b: cpu-sleep-b { + cpu_ret_b: cpu-retention-b { compatible = "arm,idle-state"; arm,psci-suspend-param = <0x00010001>; local-timer-stop; @@ -266,7 +266,7 @@ cpu_sleep_b: cpu-sleep-b { exit-latency-us = <145>; min-residency-us = <720>; }; - cluster_sleep_l: cluster-sleep-l { + cpu_off_l: cpu-off-l { compatible = "arm,idle-state"; arm,psci-suspend-param = <0x01010002>; local-timer-stop; @@ -274,7 +274,7 @@ cluster_sleep_l: cluster-sleep-l { exit-latency-us = <155>; min-residency-us = <860>; }; - cluster_sleep_b: cluster-sleep-b { + cpu_off_b: cpu-off-b { compatible = "arm,idle-state"; arm,psci-suspend-param = <0x01010002>; local-timer-stop;