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>; }; }; From patchwork Wed Jul 5 13:36:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 116158 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp1895528vqx; Wed, 5 Jul 2023 07:08:40 -0700 (PDT) X-Google-Smtp-Source: APBJJlGo80wiJc/Wx2cl0cCdf0WYhK7pycP1msfiNy8GwNEetr9KibR57aCGapDx38sEL0EFS8cY X-Received: by 2002:a05:6870:6122:b0:1b3:e896:9bfc with SMTP id s34-20020a056870612200b001b3e8969bfcmr1776733oae.4.1688566120658; Wed, 05 Jul 2023 07:08:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688566120; cv=none; d=google.com; s=arc-20160816; b=hFkEPKs8Vu4aC8aF4zYeXDoK2wT29w/J1ltGq15EUUo8dMveXBqzVlk+HglMYTJ/Nw FI/SZmB06XR8ANRtO/uPxiUwpvdKeVQVA1zCSZYWdZqmA+rxH4yttRfcAmZJfmwLqGfm qQGrWz64pb6c3r2b8bnrlgOCg9vSramwXOZgUm/sRXTqptvW56XiM/PtLXHmmtWgOHY4 /j+EUAeX8hnHkoFgfmQ7hdcOXysWRi8tlhCoSoY9ziqvUldQQGBkFqw5W3r6OnSrAxmK aoOy/cut7eKwdAdFcN13ST7R8rJnKANUHSAzXHQNlzn+fNNgYO2udv5fFk8f10o1+edw FczA== 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=B8RY0oLrcN1ziCn11wNT5C3sfW5R+ySCTN0M0/9f5vY=; fh=3rLEKqO4yJKtZMH3ZzohpSBEaN0oSHW6IhV40juD3jE=; b=0WAhWoUw43OF63AEKnp35Lj+8Mp//3uEk1n5fvNUZb3bBP3BCM7mI/uC0XOWcYbBS5 sruq5zPs0WFUPE7dcexEWhGlpivADeLo97LWyIS3CULhMeEtk7DpoOHpcUexAxkjWRzo 7tlxYbEjoGROJY/hK8biXDU4UdoaPGfh/nmSKaFxPzsAAAhs4e2EQz5aKL6nU7VPUV6U fjij/+SwXIOdJWVVrq6ZCytW22pqo2Nb7p9ltR6JXmXK47cgYKBaiaRVoj8XxhHxOfm3 QXlIbEUSmtCSsS/GWgXt78Jk8L0iklpQ4YuVqae4dvAI1yyvR41oR4hGhzVw89mRXzvw keqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Jp3mxKwY; 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 g63-20020a636b42000000b0055798b90375si21954812pgc.709.2023.07.05.07.08.25; Wed, 05 Jul 2023 07:08:40 -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=Jp3mxKwY; 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 S232276AbjGENgj (ORCPT + 99 others); Wed, 5 Jul 2023 09:36:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232125AbjGENgf (ORCPT ); Wed, 5 Jul 2023 09:36:35 -0400 Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C85C1713 for ; Wed, 5 Jul 2023 06:36:34 -0700 (PDT) Received: by mail-lj1-x22c.google.com with SMTP id 38308e7fff4ca-2b6afc1ceffso110791111fa.0 for ; Wed, 05 Jul 2023 06:36:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688564192; x=1691156192; 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=B8RY0oLrcN1ziCn11wNT5C3sfW5R+ySCTN0M0/9f5vY=; b=Jp3mxKwYNkkoUnXXhfNDZ+p+0OtWAFBF8gqXp/TXxIGXxj1hRUkkn2R81H8QfhQBJ1 dp8bzRj8qcnwv4aW7V18GXYJZqzzHINZEJXEvleslxa3ij7SYlcsluM/Ecajieg03T1t aBaTnlUm4a/S+AovBnTJ3UFAs2bhmNwm5gWjv8fQ62quSMWiKVKhcNc3unWChizwi/Rf 9prmkbnYSvsCRGbLV+u4B8vw8ny/Rf7ni+/I4VbdbmQrH2Inh9mspgM0LjWXZNXQX+UG Nrp7/StM1jQ3mF+G+kIeVNL9LoKHbCBk8PDVtlTIlUmHYS5Q8AMAtUAzdtdZA09Dr0hY 7uSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688564192; x=1691156192; 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=B8RY0oLrcN1ziCn11wNT5C3sfW5R+ySCTN0M0/9f5vY=; b=WcuJ6W5+UqGqi6wKEeRL4IWMATRVMr6XHdW09DgOs9qYiByVb9uNcqrjwouEyqKJpU qbDDZS8wEpAHtJJhJcYacQpm8ed1lpiC/En4vT9USdSvn1z+KAEfc34QN4CXtsCZ+KTm /9X8/6+4cCcKFTHvf8JyYZewNbVxWvju8eRIX//cwYmTRfxnO/PyCA1meT9kjPGynZ4X 3qNxyaZiVBJDLAbiYElThE2RkpojT/mS6eIkGT0GgYKdGA9wlbFjaYgyc3jNECF4v3Um fu/85PS4es9vUL4zn0eRT/DYRrNg70ksNukTfdkwYQrj8aI4/Sfhdpit4bAAqzYQlih3 HuOA== X-Gm-Message-State: ABy/qLa1huoBsrNN/f9F6ezWF8GWQuGW9byQSCN/LvIlAl9EYeXQC/C8 Hcff+yCISR7tqxvBZijj5YsJvw== X-Received: by 2002:a2e:b003:0:b0:2b6:fa3f:9233 with SMTP id y3-20020a2eb003000000b002b6fa3f9233mr3089622ljk.46.1688564192720; Wed, 05 Jul 2023 06:36:32 -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.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jul 2023 06:36:32 -0700 (PDT) From: Konrad Dybcio Date: Wed, 05 Jul 2023 15:36:22 +0200 Subject: [PATCH 2/3] arm64: dts: qcom: sm8350: Fix CPU idle state residency times MIME-Version: 1.0 Message-Id: <20230705-topic-sm8350_fixes-v1-2-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=1330; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=ooYmQL6SkQkkWldHfPPw/4CdhDWAvNOD09W/OjxDDVk=; b=HYmLCG3uLYSMmBCcd1xWjYslQpb362zInqSFP19FBUp5aJ0ODv7GRkC7SdlLIWgZG5tgi5tv1 WV+oNEzjN4FD26urwK6lhu24m/lsmDhfcQz/PpR5uw8dWappp/J96/W 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?1770589908664880868?= X-GMAIL-MSGID: =?utf-8?q?1770589908664880868?= The present values look to have been copypasted from 8150 or 8180. Fix that. Fixes: 07ddb302811e ("arm64: dts: qcom: sm8350: Add CPU topology and idle-states") Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm8350.dtsi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8350.dtsi b/arch/arm64/boot/dts/qcom/sm8350.dtsi index e1a09d4a83c4..4981a502d4ce 100644 --- a/arch/arm64/boot/dts/qcom/sm8350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8350.dtsi @@ -246,8 +246,8 @@ LITTLE_CPU_SLEEP_0: cpu-sleep-0-0 { compatible = "arm,idle-state"; idle-state-name = "silver-rail-power-collapse"; arm,psci-suspend-param = <0x40000004>; - entry-latency-us = <355>; - exit-latency-us = <909>; + entry-latency-us = <360>; + exit-latency-us = <531>; min-residency-us = <3934>; local-timer-stop; }; @@ -256,8 +256,8 @@ BIG_CPU_SLEEP_0: cpu-sleep-1-0 { compatible = "arm,idle-state"; idle-state-name = "gold-rail-power-collapse"; arm,psci-suspend-param = <0x40000004>; - entry-latency-us = <241>; - exit-latency-us = <1461>; + entry-latency-us = <702>; + exit-latency-us = <1061>; min-residency-us = <4488>; local-timer-stop; }; From patchwork Wed Jul 5 13:36:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 116153 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp1889498vqx; Wed, 5 Jul 2023 07:01:46 -0700 (PDT) X-Google-Smtp-Source: APBJJlHeCYnSACqnmg/uOk2d8H7E+WuWp+dmHXlKlwFHHbJfqk+NnT6vGCtwf/Hw6nrxz6S7uZYx X-Received: by 2002:a17:902:ab56:b0:1b8:954c:1fb with SMTP id ij22-20020a170902ab5600b001b8954c01fbmr3390417plb.7.1688565705879; Wed, 05 Jul 2023 07:01:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688565705; cv=none; d=google.com; s=arc-20160816; b=U7nmxNqUg1lNKsTLddPmIQFAx3CyNuYv4ZolLJ6/J00+tFtKoQ+//mcVG63PU/slhN XSR2nbOSk4ZMXE4xqRo63ogUqtVnQqLjaK4eOclGbxybLqz0aT7Kbj7DXRnKcum/DDC7 ajSXNLwAIn84D4eMua0EajzNZwtY5mtBKFaqCZXzYHqFPLh0lIHHekrYNhkqw7iuTCK2 CGkjCdt523JGK78QEui0YugmLEuGoPbRNJufFqRMWeGCUlFiKPHYHPhfdAN3K36qkgK+ eo9hk5nXYloK318tdv2DaUeyK6nfEgk6rlaelnOHaUcnoWzGQvQVAW/BgVp8TeFLz9X0 j8rw== 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=wLuG9KuEJuS9NyZByQeLuBduARgWRDXGrvbnJCmv87Y=; fh=3rLEKqO4yJKtZMH3ZzohpSBEaN0oSHW6IhV40juD3jE=; b=z3y3YQHLpGjkPp6ezYLt8T38FPkomYJlekmsPyHZlXvf6AHDMvNoqy+bTuaDz2lGB5 U1H1qqR4dwGvB5MXOXniY8g6/znqYMiRXEt8v0NrvP0+FaoxC9qPi4aZuQAFjTqFY+BA +Z0+8ROMjg0v3nd0GyUiJdXtcKpcsQ+C1F7Cm4kuWmnlsOiX37A6h6GgRF3v3e09E4yX Rw06t9+LUkIzxR/dB6QHmqLAQ8jF+R8csnnkYqiSV/4ya5ksBjdnF5FTIC+h8oofguVJ ufvSYjqtzihIVWVFftzRPd2kCDXY28V/Q79jiO+TzSeuRS0bBDtiM6ROFWJbu6z56lzh +04A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BVnw0z00; 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 e19-20020a17090a9a9300b0026343b62cdasi1633200pjp.154.2023.07.05.07.01.29; Wed, 05 Jul 2023 07:01:45 -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=BVnw0z00; 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 S231963AbjGENgm (ORCPT + 99 others); Wed, 5 Jul 2023 09:36:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231955AbjGENgg (ORCPT ); Wed, 5 Jul 2023 09:36:36 -0400 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E1A1171C for ; Wed, 5 Jul 2023 06:36:35 -0700 (PDT) Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2b69f958ef3so109222701fa.1 for ; Wed, 05 Jul 2023 06:36:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688564194; x=1691156194; 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=wLuG9KuEJuS9NyZByQeLuBduARgWRDXGrvbnJCmv87Y=; b=BVnw0z00jp36hhC2CRXVrcj5uVSHR6InYJBj4hMLIXFa8/SKsh/RaG+1RI+UOGQ/yW theNQEoCGiIHclWLQg98wFeSTC+2aaw4YllAjdoqgiTOXGAylJT4GCf3AO/3SiyM69vc mtrf0Nv6JTWtJ24owN8rnoBJslj7jxNJYG34l0kNB5HUOol2+jb3IcgVgdJsYxmlMZQc dzI3WZEjTfYmCz5TeFMWRrCesbGnNLi3uoMxvKSndNqHQs5ArZcKYlj2reUxzJppDFNp twdUCX0z6Nrso70p0+k9IdpqbLNN9S+LOBfGbUgMki8A5tItVrmHpZTtRviPcRA4MP8U dgpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688564194; x=1691156194; 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=wLuG9KuEJuS9NyZByQeLuBduARgWRDXGrvbnJCmv87Y=; b=OZQj6EBX44vcqonnFFadOTvacXEgaoiAU8ushovKHCrELb6GoEVkA1tTRMUeF8WtEF 2lN0eEHWxg2NWXsWYLEk1/cRJqkIerHe9mZAaUmSDdYp70/gl+KJijQZgbCa6tpp73LV QTcPDeNiI+01mM0PUCKVEgDkV9sPvPHkxSFSDd15EBCW+sewwqCrPAcBI4qZ/ylHDl7h 4lStrWbfVdP7GiywQ9b/gt6NBVr1v1envhYlfjnPWSDK+OHDmNJTAdZgAkwH1/LZZ8gs TCiEzB1hVhcLJ/OHTZDZNXSRtm3lv7h5W+5UIGOaNLsvvPP6+h6WvqiNfjF976pxkcKC UlEA== X-Gm-Message-State: ABy/qLb0h7zfa2DhC9qlQhSgdwgfMLafJcw/mEQVfEumpymIEN9Ophdp RooxILB6ZAyGg26N5f4EXkIgDw== X-Received: by 2002:a2e:800b:0:b0:2b6:bbb9:b560 with SMTP id j11-20020a2e800b000000b002b6bbb9b560mr10341358ljg.0.1688564193976; Wed, 05 Jul 2023 06:36:33 -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.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jul 2023 06:36:33 -0700 (PDT) From: Konrad Dybcio Date: Wed, 05 Jul 2023 15:36:23 +0200 Subject: [PATCH 3/3] arm64: dts: qcom: sm8350: Add missing LMH interrupts to cpufreq MIME-Version: 1.0 Message-Id: <20230705-topic-sm8350_fixes-v1-3-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=1028; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=3JUnpoYQtL09+7PeKMql4RBG+8C55y1mCnZjG94miQ0=; b=ESKn+TvZGOWU0NLEyoasfkSRD43nl9nmnMCc3i4JjgppwwLbDBljAr2Xh+ZVoXLhx9Aq7M9+x pNGYcRv1PguBbilxGVBPeccr/PyJsHGhQMruXkh27l6DZTD1N2WTvWi 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?1770589473829206378?= X-GMAIL-MSGID: =?utf-8?q?1770589473829206378?= Add the missing interrupts that communicate the hardware-managed throttling to Linux. Fixes: ccbb3abb23a5 ("arm64: dts: qcom: sm8350: Add cpufreq node") Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm8350.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8350.dtsi b/arch/arm64/boot/dts/qcom/sm8350.dtsi index 4981a502d4ce..00083782e533 100644 --- a/arch/arm64/boot/dts/qcom/sm8350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8350.dtsi @@ -3407,6 +3407,13 @@ cpufreq_hw: cpufreq@18591000 { <0 0x18593000 0 0x1000>; reg-names = "freq-domain0", "freq-domain1", "freq-domain2"; + interrupts = , + , + ; + interrupt-names = "dcvsh-irq-0", + "dcvsh-irq-1", + "dcvsh-irq-2"; + clocks = <&rpmhcc RPMH_CXO_CLK>, <&gcc GCC_GPLL0>; clock-names = "xo", "alternate";