Received: by 2002:a05:7412:a9a8:b0:f9:92ae:e617 with SMTP id o40csp11237rdh; Wed, 20 Dec 2023 14:14:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IGGc+QreM7HTxu+XaGYDaQIeFqZFWgsYRfMQ4v1XxnLxg9/7049u2fQXKVq8+sFf9VBla/A X-Received: by 2002:a05:6a20:918e:b0:190:14d9:4799 with SMTP id v14-20020a056a20918e00b0019014d94799mr416459pzd.42.1703110464517; Wed, 20 Dec 2023 14:14:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703110464; cv=none; d=google.com; s=arc-20160816; b=JT9oiBxsXkdutx6aPWiwZvjG6vLh1mATihvPNiuMnlagNX2BIwoMjndoO8lTs+WOFd Qi4A4MVfBQDjAiWynmt0yBKWmVHB668ulQTZojJ3Xl1hU23igPlXOoYJfz4TBbdhQDay RdS/O4x1TLL8nHmm/TJ9ial130g3qSdPUVd802rYKbrP5ZaPkTTCWVZy6+njYRL4LUAV iUMnfnXkIhn+oRx399ELlRQqea4f+YENJ0+TsRMtVr7Hi824PrapnyUq1qLm7HtL4cst takDnThA4GvalTZKi0twUEKgWF5uIBklAzRRXY3BapmL9TjphYwWY8Oi7ptdJmMXIs6y FnZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=3HnpnplTrD1orPk+bkW3DK3tg+VQN6eNtW2DmsIuzEk=; fh=9TjP5Br7/jShLalm0TuDyO1COBRVeysBZiyxhQJm5Ms=; b=khkTA16AIX5l241mKrLRWHM+gE2IoXziFnhPZE7WHXolyhNclrFLvi8PROxSN6SdLO YNRdI25u2fPUBMKAyQnzHFEBWesi+J5xunYltQM7Im+kuJ+8StwQAeFvdg/dv1Dp/AgA 8iZKKi1fj2fYEyE/raOXTCr94aujHRsorKP2ehm6ll6CEGbAd+N7sjC8iJiYADoNh6G6 j1E57DnJ5YxO1pELk6HsV/zIZFS0RCc2/fv55Cs05znSf03XEoxyXdvoDlg1wwtPcynR VE3s5BJZOUZhMtiK+PadkPjlAPyR6Y8yGhQlelDzUXXns/GOtR+7SM8BA2RhHy2K5Xwj 3bLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ssHWjGea; spf=pass (google.com: domain of linux-kernel+bounces-7494-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7494-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id y190-20020a638ac7000000b005c6977f9c0dsi413552pgd.214.2023.12.20.14.14.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 14:14:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-7494-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ssHWjGea; spf=pass (google.com: domain of linux-kernel+bounces-7494-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7494-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id E904AB2307C for ; Wed, 20 Dec 2023 22:13:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B5B074B5D0; Wed, 20 Dec 2023 22:13:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ssHWjGea" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3916C4AF6D for ; Wed, 20 Dec 2023 22:13:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ej1-f47.google.com with SMTP id a640c23a62f3a-a268dd99597so14279566b.3 for ; Wed, 20 Dec 2023 14:13:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703110380; x=1703715180; darn=vger.kernel.org; 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=3HnpnplTrD1orPk+bkW3DK3tg+VQN6eNtW2DmsIuzEk=; b=ssHWjGeae+p9pdccO/d4gjRHHPYnHTW1xGhvnokcUduCSa81sbvM7t9cksTMMv0PXB xekric/G4JWDVEPddsBw1majusMr1K7xf4+I4kPak+jO2b/SWQVHyTW0VoOQdiaQnDT3 ag6DsBmY10vfmUl2yMZC+fic5RcHSDAB1kttIKIj8lxI6Jp0wnZC2xGTKIUqNrZpcPjb +Tuza/DgA56in0dtnR4VSM9vOmyp9/zLARTe7zrVrt2kJ/Yr0wfwVLRC8G9Sn3vVF2rm tHsBkaamCs2EVeZ09cFlrGzvAPHbq1Mj262vQLOVjS1oQS8XRMTvmMy0W721Gx16LQ2/ QXDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703110380; x=1703715180; 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=3HnpnplTrD1orPk+bkW3DK3tg+VQN6eNtW2DmsIuzEk=; b=QG7MHZu4kKlwQIhuiIIWpkd7F9/CBGJQzvlQp1DJ+alG8yy9xnZtchGgsV2EXq+WC1 YBXGlwrW2UxmLHJdnZKYpiCa26nrf6xqU4jAWXbc1l7scATWPyPGam+vhrc6iBv6Hh/Z NPrwUrjAvhdMXGcwflVkpRKlyyO8VJYrsrqAOluyuN5TWgheHQyVqB8uaS2eRJl/RScd 5YwH0buuTR+/hRVb52V9d53XtehEh3pshqegKeRnA3R+Ai1D0rcJIHp4BUHh3OBi9IP9 rEno/LX9Ni2vyoGX5oqvO3vV1YHLLkS7Py5Wqj2gbTR8iZXNXCKplemQzFK0DvwBv7c5 +4Eg== X-Gm-Message-State: AOJu0YygsQiDb98RxX8qMKJ8elGz52BC0e7STzSUlocIaIxJlJjyOyZA yr1LGRWxr7AnwOkF6PxVI0HLRg== X-Received: by 2002:a17:906:73ce:b0:a26:8edc:d543 with SMTP id n14-20020a17090673ce00b00a268edcd543mr519704ejl.191.1703110380527; Wed, 20 Dec 2023 14:13:00 -0800 (PST) Received: from [10.167.154.1] (178235179206.dynamic-4-waw-k-1-3-0.vectranet.pl. [178.235.179.206]) by smtp.gmail.com with ESMTPSA id x22-20020a170906135600b00a235f3b8259sm254654ejb.186.2023.12.20.14.12.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 14:13:00 -0800 (PST) From: Konrad Dybcio Date: Wed, 20 Dec 2023 23:12:55 +0100 Subject: [PATCH RFT v2 2/3] arm64: dts: qcom: sc8280xp: Add missing CPU idle states Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230619-topic-sc8280xp-idle-v2-2-cde50bf02f3c@linaro.org> References: <20230619-topic-sc8280xp-idle-v2-0-cde50bf02f3c@linaro.org> In-Reply-To: <20230619-topic-sc8280xp-idle-v2-0-cde50bf02f3c@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=1703110375; l=3555; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=njYYbjQnLKOjnHDRuMuyMmnE/ukystDNC4JUsi3kSaU=; b=RT2azaFKMj0cfGxvNjp/OYW9kpncF83pKfbmWCHN5vwgNdSmf4dYuAKtTdfLc7/F49W8oPQBO cBHzbE0RDRBCkWqmsqA1UAz5kSbTTPWganHvj7sB5tGfPzJ9G6K0mb+ X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= 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 ca56bbac4353..62f3f33220ff 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi @@ -265,6 +265,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>; @@ -275,6 +285,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>; @@ -603,49 +623,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 { -- 2.43.0