From patchwork Mon Jun 19 16:18:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 110106 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp3128459vqr; Mon, 19 Jun 2023 09:46:52 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4yWXL29VAYWe9raVpEM1anID6CgeDLaedeIQJSlS/pVoC85UkqRmNtxYmbHC8MhrdVwNDH X-Received: by 2002:a05:6a00:1691:b0:665:c10f:709c with SMTP id k17-20020a056a00169100b00665c10f709cmr15391843pfc.21.1687193212658; Mon, 19 Jun 2023 09:46:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687193212; cv=none; d=google.com; s=arc-20160816; b=F1OmbDJx2qe38eIQ4R6zb/2IzydTsUxC/AEY9o5nnadgylhIjbbRFju+ueCDExgrwI YVn22fT6QaohJjCWMk8Wy0asNoLCY0GFTjDQz7rR9vOSDYvT0WI+8TtRqmUkFbUYGrJK VMmo7J6ID6Yz8p1LSOilufbOdoJ8nXHuy0vophT+0aP+zjdGfoocRegG+9/dQEzfZcXT PZ0dSigosXNfY1ZZ+uQtrkqhtK2YaEfBGT8lVj6Yhf3+EuRXB8xF5fr1A+IV1O9bmNvF MvUhNXEgOzhZJXJYMhf80X1aArK/8KQw/rBquCLP69xhrcJmJe1ajBI97KixD6AzJgku CF4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=OoV/xjcktwt+INM9g5muSXeeb6bvGay0A0ymUJBmMcs=; b=nmedE9Hf/7KtbXxQdiflJQv8RN+kIaMVCamKs3xXBXqRSC8SQIhUUae73uj7ERGDtc CIJWZkaXOCQJokJCobovWr+DQYGVoeiYt/h39kY774ZQFD+/QyBELAlYrSzYXUKOLhdX pQ/TAsZ8oyEPQX+y+T6NL8IaFDUv8BF3xOsChkwpT+NZA8qAV3LVKabnIvHx3sOxbdd1 7Ddh0mNSYqOS19yWqgcpMyiD1tii5HD1DcPKZYa9IhQPORjyOQ42H4epf9TtIhJUMDAk JjjT2Xw0WwPHfPM1sX3ZDHAhtqrw/VxbnoIKIThsFfuhUgVI0t4WKuC2bijAsermWZ4f /uNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wVfw2HzZ; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i15-20020a056a00004f00b0063d23b80e00si20832017pfk.392.2023.06.19.09.46.40; Mon, 19 Jun 2023 09:46:52 -0700 (PDT) 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=@linaro.org header.s=google header.b=wVfw2HzZ; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232218AbjFSQTK (ORCPT + 99 others); Mon, 19 Jun 2023 12:19:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232227AbjFSQTA (ORCPT ); Mon, 19 Jun 2023 12:19:00 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 551A9E66 for ; Mon, 19 Jun 2023 09:18:58 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-4f867700f36so2605513e87.0 for ; Mon, 19 Jun 2023 09:18:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687191536; x=1689783536; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=OoV/xjcktwt+INM9g5muSXeeb6bvGay0A0ymUJBmMcs=; b=wVfw2HzZLyB21AFz24OT1v5puatvlwL9EGXHSE6MFMhtyGjLNtUfwKxS0Sjo6JRuf9 ChSc8/dQJySBDrl7C8OthZd3Cso7txRX6yuTHh/j50rLjCZkQwthhKgaxmVTuAAG8uYU sVD/waXm/WurLUIsWPVP9NZecmOcH2aOUzrji9IfxIGgneSPBqxhrDwFZ+Zm/tLVZdYn 81RMIZjbJQxsGUNO84JIRZk8Ho4zz44M2UBx/XPO/amtSA9cpMt6AqzxsSWV9LXoHJfJ fpvAs1gqS4yF5CpOhZPi5K2ljzVVuAtP8sVUzMy/tAz0qgSUcqAhhnJdyygdH1796xWY iMrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687191536; x=1689783536; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=OoV/xjcktwt+INM9g5muSXeeb6bvGay0A0ymUJBmMcs=; b=ZaajKIkKk5UORYaLOECQsXl1aYa8uVfphsiaKK0X7rxB7NZj0d5AcYnQkXDXMc1X9U ILn6QGfxeB9cz3I9ULXzairNrbDWRLfmVf5p2nO3KGCunibDHiOlM2fvpEYM6L/kD81U yZi79oJ/+eKFhBxaE/tmDT0EWAJ63xr0GylJM1wuMXEDjYhnkcEqwI7/SMxXM0HjJH7Y XLRcQg1ADmYr9qzYPnt5Ss3Ou3+NqedGCs5B+TDYq5YCtgjC8BXudCWyrOD2wTTFE5za iF2YNZ8FsxLi4+UDWhB/5bdaMSCnXLYaouqHXivNlIrkwP0xHb6tCUeHXUbAHMf5qswq jI8Q== X-Gm-Message-State: AC+VfDwrK3j1XliV322cEAkJzPP6cwcPKbCO3qpoqt3+0fQ8yCwagXLP vgcLjjHyoNthozUDNEjGGlu+9A== X-Received: by 2002:a19:6d12:0:b0:4f7:604f:f4c8 with SMTP id i18-20020a196d12000000b004f7604ff4c8mr5568228lfc.18.1687191536578; Mon, 19 Jun 2023 09:18:56 -0700 (PDT) Received: from [192.168.1.101] (abyl242.neoplus.adsl.tpnet.pl. [83.9.31.242]) by smtp.gmail.com with ESMTPSA id c11-20020ac2530b000000b004b4cbc942a3sm4332824lfh.127.2023.06.19.09.18.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Jun 2023 09:18:56 -0700 (PDT) From: Konrad Dybcio Date: Mon, 19 Jun 2023 18:18:53 +0200 Subject: [PATCH RFT RFC 1/3] arm64: dts: qcom: sc8280xp: Add lower cluster idle states MIME-Version: 1.0 Message-Id: <20230619-topic-sc8280xp-idle-v1-1-35a8b98451d0@linaro.org> References: <20230619-topic-sc8280xp-idle-v1-0-35a8b98451d0@linaro.org> In-Reply-To: <20230619-topic-sc8280xp-idle-v1-0-35a8b98451d0@linaro.org> To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Johan Hovold Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio , Krzysztof Kozlowski , Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1687191534; l=1687; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=I32j7um6NhN2jAjxwWACUhCcYczpx9OD9HWlBlfpRFA=; b=0b8ZFniFCU6cYHplkHHxQukfuPUxlOA71hmCyW9OJIJTV0N9G95XNLtoemi1Laok9S1n5KQYx 7TeuLTjesYLCJCF7TTPje5T71FtuAuf+nhWM6124/SYTmHo6Zre/alh X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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?1769150310110982008?= X-GMAIL-MSGID: =?utf-8?q?1769150310110982008?= Apart from a total LLCC + APSS power collapse, SC8280XP can also put either the DSU rail (CPU + L3), or VDD_CX in power collapse. Add support for these lower idle states to allow more flexibility. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi index ac0596dfdbc4..d524f851cb53 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi @@ -285,7 +285,23 @@ BIG_CPU_SLEEP_0: cpu-sleep-1-0 { }; domain-idle-states { - CLUSTER_SLEEP_0: cluster-sleep-0 { + CLUSTER_SLEEP_L3_PC: cluster-sleep-0 { + compatible = "domain-idle-state"; + arm,psci-suspend-param = <0x41000044>; + entry-latency-us = <2752>; + exit-latency-us = <3048>; + min-residency-us = <6118>; + }; + + CLUSTER_SLEEP_CX_OFF: cluster-sleep-1 { + compatible = "domain-idle-state"; + arm,psci-suspend-param = <0x41002344>; + entry-latency-us = <3263>; + exit-latency-us = <4562>; + min-residency-us = <8467>; + }; + + CLUSTER_SLEEP_APSS_OFF: cluster-sleep-2 { compatible = "domain-idle-state"; arm,psci-suspend-param = <0x4100c344>; entry-latency-us = <3263>; @@ -632,7 +648,7 @@ CPU_PD7: power-domain-cpu7 { CLUSTER_PD: power-domain-cpu-cluster0 { #power-domain-cells = <0>; - domain-idle-states = <&CLUSTER_SLEEP_0>; + domain-idle-states = <&CLUSTER_SLEEP_L3_PC &CLUSTER_SLEEP_CX_OFF &CLUSTER_SLEEP_APSS_OFF>; }; }; From patchwork Mon Jun 19 16:18:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 110100 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp3126737vqr; Mon, 19 Jun 2023 09:43:38 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5W7UKYTzZztLakw6IwPMXBIWPbb29csHFnXqstQnGgfpj8Fq1Tkp5fIlB9S0BSDhUESVDu X-Received: by 2002:a17:90a:3041:b0:25b:c19c:925b with SMTP id q1-20020a17090a304100b0025bc19c925bmr4943359pjl.39.1687193018406; Mon, 19 Jun 2023 09:43:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687193018; cv=none; d=google.com; s=arc-20160816; b=mWF0Am/wp1/gA6YUrfcNkvRUgudKfIy3UvLNpabT7JLuLw8h72q74dXJvqm4dc1LcH n8+ty7B/ujAShfPfXFKcGN28B02pYpAeljXV5BB3T9PseUH90ht0IukgpOKL+xGkwN4J cCbQe4Q1aYQWXwrM4WtVHcoqG6cRWgZxU+xrHvXHKv3olXXiaduT+jLRM6MF9huJXhSd KLcPmzwb1esoxNbZjJV7NmSmRIq9h1wJYckkCtqiKq9dHRB5IdRo4rm4q51VV5M5680m OEL9WwFwgw97fe7jzZr/pYIKhD23Ez/UuSyfvbuiLEAIrY3dcKSD7wi+MgPWtFu5/ZY8 lCrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=eCJCOnI1yJIgtPY0bSH/Iw3dongLkLZbZa4jU5bzULg=; b=ycAbODxDNWRbja1vFdoUP9pOzbEFAMyiHM57aPl32hHPmkG5rVVN+W8AWpjLmSk2yr ABWBLTFQdW+UHrx1v8dIBLbS4hpGkLX3zmx4zMNN1dkijr9zvvi6NZpa9tCsUbY3JLuA QzhSSKmA2Ogwqq0HShNb/x6m0NW05sS9qZ/SnVtF8auflZQz3rGnFpoUtOJBty8pHsSp jMOY0wEVRTtBQcfYaRaFnmjD3y5OYZ1PrEgCZOUlgeG1R63Y75D7UXxGU9Gotw+nIC+j CaD4TQTP7z4K2ev/ecWtLGuJ7ua3/6lBBhFifLVv9wzkaVeWIrP4O4BPzcaa+lu9KL9M tKDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ePl5J5GF; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g5-20020a17090ace8500b0025bcbc20b9esi7539326pju.74.2023.06.19.09.43.24; Mon, 19 Jun 2023 09:43:38 -0700 (PDT) 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=@linaro.org header.s=google header.b=ePl5J5GF; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232271AbjFSQTQ (ORCPT + 99 others); Mon, 19 Jun 2023 12:19:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231967AbjFSQTD (ORCPT ); Mon, 19 Jun 2023 12:19:03 -0400 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 899D1E72 for ; Mon, 19 Jun 2023 09:18:59 -0700 (PDT) Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-4f841b7a697so4341185e87.3 for ; Mon, 19 Jun 2023 09:18:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687191538; x=1689783538; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=eCJCOnI1yJIgtPY0bSH/Iw3dongLkLZbZa4jU5bzULg=; b=ePl5J5GFFsh+871xAbZME1hNeODYQFBsr/Pf0XGqepVpsc1g7yb6iRA5L+h66bEmwd +fCoNS473AfsfMsi/FXSC59EcVrWlWC9SlM6JjtsJazqZ3KQaRoCI8R8ohZt8P8ugqm9 1vVrw48aQ3dGoA0rACmYQRaIVFcbsxGyw7XYePOANlCgdItNpApuu/Gx6mbxz/fAFNal haHjX3dAUuC9xIm1jroLe9YFQq3/kBJSJznUcUdVUDUF9onHm8TyHxbijkjJTWq751c+ VfOc6pOnIqtvfTewyjSw62LDEO6VW5Mn/+vFCkSnewjm4pn4bxkrrFInvXcVu7/IjKig Ze7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687191538; x=1689783538; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eCJCOnI1yJIgtPY0bSH/Iw3dongLkLZbZa4jU5bzULg=; b=OfeCkIqLDDaO48uJxLZG0n8sVzZBo3ufHuhEsyDQMiScBZzAsOE/G7l2Q9ARxhkTEr Jw+eAzzAPfre6aljzxRZcLt8WrxTGrRKsiCkzcnEvHwJJyw2asiUCnnMeMF3+1X8cgaF q5HBfNoIy1IFiCdXUdXRnhxbdlPapgZxzFAoyrsWcVZ8sFDAJh1CAQGGnEBryUcPgood JeDhcGfhfyoAO/c4WMqLFo9tDtAmM3bdbOvNwOg0jJA9CraDsiysujIWLE6f6yLwfRx5 alOlvIBZDgJx2CSakZ5SRic+7ZdxtgT3ZuAugaNwDuidjob+yhx+GDTtvi5uQ5rwuuyh 2XUQ== X-Gm-Message-State: AC+VfDxbqqgl8ZikqVXExgGnQD1zSzQHoUZdcaJCOfUFkAlC3P29gXjL wCCEz6Jk6x+MRoXm68HK63pcAA== X-Received: by 2002:a19:4412:0:b0:4f8:1e2a:2b55 with SMTP id r18-20020a194412000000b004f81e2a2b55mr5193195lfa.8.1687191537802; Mon, 19 Jun 2023 09:18:57 -0700 (PDT) Received: from [192.168.1.101] (abyl242.neoplus.adsl.tpnet.pl. [83.9.31.242]) by smtp.gmail.com with ESMTPSA id c11-20020ac2530b000000b004b4cbc942a3sm4332824lfh.127.2023.06.19.09.18.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Jun 2023 09:18:57 -0700 (PDT) From: Konrad Dybcio Date: Mon, 19 Jun 2023 18:18:54 +0200 Subject: [PATCH RFT RFC 2/3] arm64: dts: qcom: sc8280xp: Add missing CPU idle states MIME-Version: 1.0 Message-Id: <20230619-topic-sc8280xp-idle-v1-2-35a8b98451d0@linaro.org> References: <20230619-topic-sc8280xp-idle-v1-0-35a8b98451d0@linaro.org> In-Reply-To: <20230619-topic-sc8280xp-idle-v1-0-35a8b98451d0@linaro.org> To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Johan Hovold Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio , Krzysztof Kozlowski , Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1687191534; l=3555; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=KEJh5fKDHpG+tf7FsdNG34aNe2COjzMzqzjlkSjq5mA=; b=EAdzybHN11hL6DoTZDVLIw0L7SbOi69e139T6SXY7Fjnyra2wqywY2P/NKLQ+r5fGg4tHfvw6 DvApguSzEUCApK6v7xQXu7MAXuBYhU13p6VyrVTifD7I5vm31/h+ojP X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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?1769150106824246733?= X-GMAIL-MSGID: =?utf-8?q?1769150106824246733?= Between WFI (C1) and rail power collapse (C4), the Cortex cores on the SC8280XP can also be shut down on their own (C3). Describe that missing idle state. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 36 ++++++++++++++++++++++++++-------- 1 file changed, 28 insertions(+), 8 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi index d524f851cb53..b8f2ec9477f5 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi @@ -264,6 +264,16 @@ idle-states { entry-method = "psci"; LITTLE_CPU_SLEEP_0: cpu-sleep-0-0 { + compatible = "arm,idle-state"; + idle-state-name = "little-power-collapse"; + arm,psci-suspend-param = <0x40000003>; + entry-latency-us = <549>; + exit-latency-us = <901>; + min-residency-us = <1774>; + local-timer-stop; + }; + + LITTLE_CPU_SLEEP_1: cpu-sleep-0-1 { compatible = "arm,idle-state"; idle-state-name = "little-rail-power-collapse"; arm,psci-suspend-param = <0x40000004>; @@ -274,6 +284,16 @@ LITTLE_CPU_SLEEP_0: cpu-sleep-0-0 { }; BIG_CPU_SLEEP_0: cpu-sleep-1-0 { + compatible = "arm,idle-state"; + idle-state-name = "big-power-collapse"; + arm,psci-suspend-param = <0x40000003>; + entry-latency-us = <523>; + exit-latency-us = <1244>; + min-residency-us = <2207>; + local-timer-stop; + }; + + BIG_CPU_SLEEP_1: cpu-sleep-1-1 { compatible = "arm,idle-state"; idle-state-name = "big-rail-power-collapse"; arm,psci-suspend-param = <0x40000004>; @@ -601,49 +621,49 @@ psci { CPU_PD0: power-domain-cpu0 { #power-domain-cells = <0>; power-domains = <&CLUSTER_PD>; - domain-idle-states = <&LITTLE_CPU_SLEEP_0>; + domain-idle-states = <&LITTLE_CPU_SLEEP_0 &LITTLE_CPU_SLEEP_1>; }; CPU_PD1: power-domain-cpu1 { #power-domain-cells = <0>; power-domains = <&CLUSTER_PD>; - domain-idle-states = <&LITTLE_CPU_SLEEP_0>; + domain-idle-states = <&LITTLE_CPU_SLEEP_0 &LITTLE_CPU_SLEEP_1>; }; CPU_PD2: power-domain-cpu2 { #power-domain-cells = <0>; power-domains = <&CLUSTER_PD>; - domain-idle-states = <&LITTLE_CPU_SLEEP_0>; + domain-idle-states = <&LITTLE_CPU_SLEEP_0 &LITTLE_CPU_SLEEP_1>; }; CPU_PD3: power-domain-cpu3 { #power-domain-cells = <0>; power-domains = <&CLUSTER_PD>; - domain-idle-states = <&LITTLE_CPU_SLEEP_0>; + domain-idle-states = <&LITTLE_CPU_SLEEP_0 &LITTLE_CPU_SLEEP_1>; }; CPU_PD4: power-domain-cpu4 { #power-domain-cells = <0>; power-domains = <&CLUSTER_PD>; - domain-idle-states = <&BIG_CPU_SLEEP_0>; + domain-idle-states = <&BIG_CPU_SLEEP_0 &BIG_CPU_SLEEP_1>; }; CPU_PD5: power-domain-cpu5 { #power-domain-cells = <0>; power-domains = <&CLUSTER_PD>; - domain-idle-states = <&BIG_CPU_SLEEP_0>; + domain-idle-states = <&BIG_CPU_SLEEP_0 &BIG_CPU_SLEEP_1>; }; CPU_PD6: power-domain-cpu6 { #power-domain-cells = <0>; power-domains = <&CLUSTER_PD>; - domain-idle-states = <&BIG_CPU_SLEEP_0>; + domain-idle-states = <&BIG_CPU_SLEEP_0 &BIG_CPU_SLEEP_1>; }; CPU_PD7: power-domain-cpu7 { #power-domain-cells = <0>; power-domains = <&CLUSTER_PD>; - domain-idle-states = <&BIG_CPU_SLEEP_0>; + domain-idle-states = <&BIG_CPU_SLEEP_0 &BIG_CPU_SLEEP_1>; }; CLUSTER_PD: power-domain-cpu-cluster0 { From patchwork Mon Jun 19 16:18:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 110105 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp3128292vqr; Mon, 19 Jun 2023 09:46:31 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6D6hIgLkuq8fkLztokRtYUyYHMCVau+/HXnWSss2wG1pCZSCD5qwLzzVy1QhF7wUsI22sY X-Received: by 2002:a05:6a20:158f:b0:101:1e75:78e with SMTP id h15-20020a056a20158f00b001011e75078emr20119864pzj.14.1687193191154; Mon, 19 Jun 2023 09:46:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687193191; cv=none; d=google.com; s=arc-20160816; b=QOgauJWRc5MBd9Icjfqtn3JXGdcuSHqsj0hjd8G4dI/6K2BSVQ2V3Fgy4yIWghbYrW PWhqBdgbEc3fvnfoUKx9djKridA4zY+dmhWe260sU8AJcIYnyESwG8/q0qfEcb9F8uYZ VDoyN+Tl0oHhqNttOI2ishKpZ5gsxCTXnEm++WBmQG/bjAIbJOSOst5/8W4cgrvJgid0 3fcbuVzruRYlV1IhTXjhl++xp0qBJ8HRUQ5S89gSBd+3Yf6qFBx6iu5vDeb+BZatSovA pMElk0kLlOH1+MJRJMHTBO0j1Vs3e0slvD+FxnRNuDsue86SrLIH/IS6viBXvnhnu9Bw HmBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=NeMEcI4+yKDWLM0Xoh1q+uyo2M+zCM82XkXiL0IHChQ=; b=KVhx0lo3OgUvm9L+SNg3YhfGFDjpA/tpOCHb3jGyWd0oTWhK/8/TW/H68Bwwm0L6vd IB36iNWFbfcvBKsicDUJhvgkC0Z5BG84t7fn/Vm6xCTdfu+z8aMXtDN52CRKFsJyedPU ae5KCLAieCA9S2QO2GxT2wW0cjQeKrYv1NPPCV4+r3Q5w0xT2Wp6knnxy/X3wqr4FnX3 pNNUjALEZepDOpB7q4NBz3GvboYpLR2vjjLE0Q90qnysQ2aczGgN64Nx+3Qbfyst0My6 GQHwgfjRG8aaZFXkaJuzsTY9UZiHthyiOmsf9vviLkemO1FlPW7bhZtHMjCsAenlKeNh SM4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ERW7c9xD; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c6-20020a633506000000b0054fe6828cf4si10118617pga.725.2023.06.19.09.46.18; Mon, 19 Jun 2023 09:46:31 -0700 (PDT) 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=@linaro.org header.s=google header.b=ERW7c9xD; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232260AbjFSQTN (ORCPT + 99 others); Mon, 19 Jun 2023 12:19:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232230AbjFSQTE (ORCPT ); Mon, 19 Jun 2023 12:19:04 -0400 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D8C0E4A for ; Mon, 19 Jun 2023 09:19:00 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-4f76b6db73fso5698303e87.1 for ; Mon, 19 Jun 2023 09:19:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687191539; x=1689783539; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=NeMEcI4+yKDWLM0Xoh1q+uyo2M+zCM82XkXiL0IHChQ=; b=ERW7c9xDG11GsK8JfvPDwgUNzimXYc7k+0n+cwTtPkx+e/eN0Mc4b7g36HaVVsUT+2 ZwcynuPACuf5rZr2c+/pXN9FyIhLZ7U8CFeaslkmnjVpcy0SHCuaxcDOGMISALDUdcRL sPUNNeCvRlt7d3PUcwA6sVCvxjfL/E6pOx8hYTSgmje7gyKTVGGVtFt5Kpy7t5owt/bg t6Hnm1z6KXcDTrz5bMOr+avoiyHZ8umjH68N60bfHlmapbzIsPHF0194rN665irS50v1 NUxZWnvzBtSBADz4Wuae4ug52F/Of06tqhh1niZWQ+4ytTuWWnqj5KfMue7ScIQbiSjt KLZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687191539; x=1689783539; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=NeMEcI4+yKDWLM0Xoh1q+uyo2M+zCM82XkXiL0IHChQ=; b=gSp1Tn5+xvBo+GyWBB4LerkDQyUcjglYfpDZB0jJc2RN4wp741HP4nfzNSbs/iONR+ eMo2bHHIAkU8ko0sC2RJJQV5Nb+vHK+v0qxR9zBYsbqjg+wAuWdpvKj8xrYPpm/WzkVT fmEvcEUaKcgRIHLwieg/mBsgemXhFGePR/foMlcDOixIL9NJO1HX1Don8uDfGCiD82Vi lZTlCASS5f4k/bTWD+l6EaNXqoDOprgrPpEk9NYsvvDgQsjveNASQivhvjtPL0bRXnAY cvbLt+tJAaYfJt+kCf1C7OGKWst6UYxERSo05EexhaM5MqQ4UfU6HkWayRUNGyiRSSZ0 fBFg== X-Gm-Message-State: AC+VfDyo8mvtwXcCnDNz4G09ftGCDVeYI6Fr3ZKubUTJ+OKQunqMGv7R ei6BMf+14brMMOhLWHz0AEWSmg== X-Received: by 2002:a19:5f5d:0:b0:4f8:5e62:b94b with SMTP id a29-20020a195f5d000000b004f85e62b94bmr1804453lfj.9.1687191539015; Mon, 19 Jun 2023 09:18:59 -0700 (PDT) Received: from [192.168.1.101] (abyl242.neoplus.adsl.tpnet.pl. [83.9.31.242]) by smtp.gmail.com with ESMTPSA id c11-20020ac2530b000000b004b4cbc942a3sm4332824lfh.127.2023.06.19.09.18.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Jun 2023 09:18:58 -0700 (PDT) From: Konrad Dybcio Date: Mon, 19 Jun 2023 18:18:55 +0200 Subject: [PATCH RFT RFC 3/3] arm64: dts: qcom: sc8280xp: Fix up idle state periods MIME-Version: 1.0 Message-Id: <20230619-topic-sc8280xp-idle-v1-3-35a8b98451d0@linaro.org> References: <20230619-topic-sc8280xp-idle-v1-0-35a8b98451d0@linaro.org> In-Reply-To: <20230619-topic-sc8280xp-idle-v1-0-35a8b98451d0@linaro.org> To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Johan Hovold Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio , Krzysztof Kozlowski , Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1687191534; l=1802; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=mq7mfTgr9ZtvOEPLMaimjrbNtQBLNamSOSbjgI89DqQ=; b=5zkt0CsawhYgMHbQ+uC07azdfetKN9uRQNsiWgI4WMR5ahWeGTk+03QDZRCGWFHV2YpGTc64b bDozYqakncYDn33+Klx7kP0OU9HayubPhGh42pPDLv++NgW8eB+lqCg X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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?1769150287689669034?= X-GMAIL-MSGID: =?utf-8?q?1769150287689669034?= Some of the values were wrong, which may have painted a wrong picture to the scheduler. Fix it. Fixes: 152d1faf1e2f ("arm64: dts: qcom: add SC8280XP platform") Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi index b8f2ec9477f5..d7894465a0d2 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi @@ -277,9 +277,9 @@ LITTLE_CPU_SLEEP_1: cpu-sleep-0-1 { compatible = "arm,idle-state"; idle-state-name = "little-rail-power-collapse"; arm,psci-suspend-param = <0x40000004>; - entry-latency-us = <355>; - exit-latency-us = <909>; - min-residency-us = <3934>; + entry-latency-us = <702>; + exit-latency-us = <915>; + min-residency-us = <4001>; local-timer-stop; }; @@ -297,9 +297,9 @@ BIG_CPU_SLEEP_1: cpu-sleep-1-1 { compatible = "arm,idle-state"; idle-state-name = "big-rail-power-collapse"; arm,psci-suspend-param = <0x40000004>; - entry-latency-us = <241>; - exit-latency-us = <1461>; - min-residency-us = <4488>; + entry-latency-us = <526>; + exit-latency-us = <1854>; + min-residency-us = <5555>; local-timer-stop; }; }; @@ -324,9 +324,9 @@ CLUSTER_SLEEP_CX_OFF: cluster-sleep-1 { CLUSTER_SLEEP_APSS_OFF: cluster-sleep-2 { compatible = "domain-idle-state"; arm,psci-suspend-param = <0x4100c344>; - entry-latency-us = <3263>; + entry-latency-us = <3638>; exit-latency-us = <6562>; - min-residency-us = <9987>; + min-residency-us = <9826>; }; }; };