From patchwork Wed Jul 5 13:36:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 116142 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp1878972vqx; Wed, 5 Jul 2023 06:43:37 -0700 (PDT) X-Google-Smtp-Source: APBJJlE6cYm6Gi8L67b5XEgiJbgOQ9crxUnL1fGmAvOpWRJAcH6ihqZLSmBq5l8WRbi/a64aN7SF X-Received: by 2002:a17:902:ec82:b0:1b8:45e4:cc73 with SMTP id x2-20020a170902ec8200b001b845e4cc73mr22858657plg.40.1688564616808; Wed, 05 Jul 2023 06:43:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688564616; cv=none; d=google.com; s=arc-20160816; b=upM0tDmzClOpbqlmtwifUwB0Eb8FqRYAlwdM0a/vNWhKa5uh/D0JUfww4bq1IKBtHv 6nvqwmmWVdMfhWNh+87FhsHEWShPZJxN1pFM3U9DozvmiqP4cCx4dVaI9RxI20JaC/E/ qlqsuMelXY774ROyRFRfssroOXuo8uQEO6gEE1PxeMyvKqhyzuy11EVZZa1AV/4kk4w0 LT2LF7t5lq3bYw3OTt5OYqHD5FTb460b+mqeNT+H7r4vvidEKaiT0+EFzBnCWQL18gZ+ CLxMsDNYUUI/XjukhuYKrNhin/vRI2xamFlEXH4jKmPJrycKDF21gKn9MFwDKl59DBhL oU9w== 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=tDehjscIk2SWf6ZQIAfGyZlVXOMBjkBzSfoQGLWDyj4=; fh=3rLEKqO4yJKtZMH3ZzohpSBEaN0oSHW6IhV40juD3jE=; b=GxytIXoMPnNMlQ+y6tcKLe7ozyDBEq43TFocKwThZIu9ktk39KIIT7y8vnmlmkgzJh w7Km45BAW0Gc+A77WEf6snmB+bIV56AXSQX0xH5RXaJlSS5qsEx3RVv5LJyH9whnRPd4 9AcxY76CgFcaadMt20Z6IyT8vG+dUDQ5kXDyIOyU36AiR2mrhwfSIcxGtLtH0CaP7S4p g4Ffjth8jOCOUVL6VcVC9yZ2vKm99JER2s5Xucc1JcfRNO46CF6NdOJCwF0k/Q1ZcT40 z4HVbSqcVXfR8hq+ZpN047jwrjv1AYElxREx2MV6jxMVNtAeofQUk9cg7yfi9oN3wIVl 6CuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=feC0yXfQ; 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 iy18-20020a170903131200b001b81fe65fa3si16702132plb.569.2023.07.05.06.43.23; Wed, 05 Jul 2023 06:43:36 -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=feC0yXfQ; 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 S232238AbjGENgh (ORCPT + 99 others); Wed, 5 Jul 2023 09:36:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231963AbjGENge (ORCPT ); Wed, 5 Jul 2023 09:36:34 -0400 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75051171C for ; Wed, 5 Jul 2023 06:36:33 -0700 (PDT) Received: by mail-lj1-x22d.google.com with SMTP id 38308e7fff4ca-2b6c5ede714so9410931fa.1 for ; Wed, 05 Jul 2023 06:36:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688564191; x=1691156191; 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=tDehjscIk2SWf6ZQIAfGyZlVXOMBjkBzSfoQGLWDyj4=; b=feC0yXfQzzZp6eVr5IJdwjCUikDuSUaJAmKIXJOZwZ5+R10CQ6r+DOZEudkiQQaWI6 wdHgR9qbWqnZxhLX7rBfJbl1oOfV25bC0SznNqG0DIqQrB8sBUFslNtuv2aOMqgR1jAN PITEjF9m+9oHY3DMrySOuzd4NVdcO2O4WlLCiLaMmHZSQ7/iHPALb+MWKswwALk04Ttl ra2PA/zoTwZPTZ5gjnz4iwINYH9TAwDzS3myZTkmcIZMoSPJD5O6fyctkPwfYZlsjkx5 3A7KeefQiggNHDtjNhUomOOuhYSkvlRg5I5qB2At21K7CX9pQ8PV4dm3ZimRhlOsHoOG tcJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688564191; x=1691156191; 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=tDehjscIk2SWf6ZQIAfGyZlVXOMBjkBzSfoQGLWDyj4=; b=M15DwcO1i3XZkfk47c/ceTSYuyacuvoBccIS7eE1+GMtfTbYKCR83uowHqrCpsnLZR UgPLaqeLYgc7S5RybkWhZt8k/yRjH0vICLI+IULgKkjizwbSJolPAMyeV6LYnP942x9Z UMQH8HWH0f0pfKDPL4yVdiaCloPb8L2z3730TNC8p9uEZbsOf5xeDBpAUUhxuIyqrQ6I JN8uW6pJNzdsF4tQdmp96zVlRDFXku0mOd41wtlTt8GZmXXJa7wPxQVDeDqMm3LswmBm Rsk2VNZyC5mzDI8G7N7LehcAtcg9h7CKcBPrWc/wdt3rzRnii/v5WjF+8e7GqlLzD9Yr RauA== X-Gm-Message-State: ABy/qLbpLI5OiyZOWs7hBmQF6UnrUeAbxATerIA89sJx3GI+mk1QOogc 5OHdvH0TxLgoe83KayNnEiCyMg== X-Received: by 2002:a2e:aa13:0:b0:2b6:f942:ad50 with SMTP id bf19-20020a2eaa13000000b002b6f942ad50mr910220ljb.11.1688564191441; Wed, 05 Jul 2023 06:36:31 -0700 (PDT) Received: from [192.168.1.101] (abyj26.neoplus.adsl.tpnet.pl. [83.9.29.26]) by smtp.gmail.com with ESMTPSA id z16-20020a2e7e10000000b002b700952298sm246803ljc.33.2023.07.05.06.36.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jul 2023 06:36:31 -0700 (PDT) From: Konrad Dybcio Date: Wed, 05 Jul 2023 15:36:21 +0200 Subject: [PATCH 1/3] arm64: dts: qcom: sm8350: Add missing cluster sleep state MIME-Version: 1.0 Message-Id: <20230705-topic-sm8350_fixes-v1-1-0f69f70ccb6a@linaro.org> References: <20230705-topic-sm8350_fixes-v1-0-0f69f70ccb6a@linaro.org> In-Reply-To: <20230705-topic-sm8350_fixes-v1-0-0f69f70ccb6a@linaro.org> To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Robert Foss , Vinod Koul Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1688564188; l=1346; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=2d2DhQq++j2DfhV91lvpb7i8X8VdjQL38pPB0W6MgOc=; b=L7k96R2XaasHAcso5HGo7jWJ4j61BNSo3itSsd3rvV5zyuYSTOOhPNh5t1l6nO0q1pu8DvA6g RLIwJk/aRbXCIRAsuycgO4uQefMW3/pgDFuDPghe+tfY01d2uw3uf81 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,URIBL_BLOCKED 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?1770588331601145821?= X-GMAIL-MSGID: =?utf-8?q?1770588331601145821?= SM8350's cores can be shut off, without engaging full-on SoC-wide power collapse. Add the missing idle state to allow for that. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm8350.dtsi | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8350.dtsi b/arch/arm64/boot/dts/qcom/sm8350.dtsi index ec451c616f3e..e1a09d4a83c4 100644 --- a/arch/arm64/boot/dts/qcom/sm8350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8350.dtsi @@ -264,7 +264,15 @@ BIG_CPU_SLEEP_0: cpu-sleep-1-0 { }; domain-idle-states { - CLUSTER_SLEEP_0: cluster-sleep-0 { + CLUSTER_SLEEP_APSS_OFF: 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_AOSS_SLEEP: cluster-sleep-1 { compatible = "domain-idle-state"; arm,psci-suspend-param = <0x4100c344>; entry-latency-us = <3263>; @@ -346,7 +354,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_APSS_OFF &CLUSTER_SLEEP_AOSS_SLEEP>; }; };