From patchwork Wed Dec 20 22:12: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: 181791 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2483:b0:fb:cd0c:d3e with SMTP id q3csp40843dyi; Wed, 20 Dec 2023 14:13:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IHJ85iQJ1gJAWycb/XjqZum2/4wMwr/XeB2cx1pYN5r01p+ag+RcW+elfWNDgfvmg5R4FtQ X-Received: by 2002:a17:902:780f:b0:1cf:747e:89c6 with SMTP id p15-20020a170902780f00b001cf747e89c6mr9321850pll.26.1703110425858; Wed, 20 Dec 2023 14:13:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703110425; cv=none; d=google.com; s=arc-20160816; b=qGXQF7t2ul99timaA0gDU3d9DxEo9gm2AhszY+XqqkNvAoVrYjITDy8W/Lco7zI7Rk hcoQ4LTYhm67CUMKqIVzW4Uh7E3cdDMi5QKOYfJs2MJ+iJs1xFhVuaEFcennS7dGgEE+ Hdw4oB4g6YpMGy5u7jXXDF9xdIu5YJXiE0CGIONb0dliK3/UTCkFTm1VuNZ4SiOra5g8 bZUQmqzNZVptT7bAMqXXqfaVf9oN2a8t7eW6W3Kx869qrKpDM7hCK4y6tOyH3PpdES2g LCeMijcuYdUd6+2MXBsZUDHeKvtuXgpnVt7oYpb3zLkxoNad3mBznjl7+t7tw8GhvGuf TXRQ== 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=NSm7Kkb7iQIhLnJh6bvdjkMX+zpHH9VA+QckFeFJQgc=; fh=9TjP5Br7/jShLalm0TuDyO1COBRVeysBZiyxhQJm5Ms=; b=XC85Vo97iB6V2uoIbumNokXXzbRdUotk1/YnnPn9iGfOPCaVtUvvdqkuqsunni3uwv 4/OIQ3c/3jEtzRaRrGVx7slgYBBrgEKjLyjCmK5h+CDhiSJXLJaW2JkACZMKBcYN+PuR nE4t6ydRbVRNp4kgMzMX0TgdmHucVInLcSF9+4rQuV57hFznMllLPRWIMDAtTx0KATVM 3fBgdJiDuhLgnixDJsvvrMPR6Irzznb7RedzQ8P9GaadgX2ihozNL/UfyxazN/J4SSxG 7hkWjGAQ+unMGgEw7DktfnMODEe6qR5kSXFzCqOlfADdqOU0KXUPpIin0dNqWCsWA42v 4diQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DOMevE6B; spf=pass (google.com: domain of linux-kernel+bounces-7492-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7492-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id l17-20020a170902f69100b001d3e44faf1bsi331709plg.242.2023.12.20.14.13.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 14:13:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-7492-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DOMevE6B; spf=pass (google.com: domain of linux-kernel+bounces-7492-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7492-ouuuleilei=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id A08D3283174 for ; Wed, 20 Dec 2023 22:13:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B1EDD4B5AD; Wed, 20 Dec 2023 22:13:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="DOMevE6B" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (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 6055749885 for ; Wed, 20 Dec 2023 22:13:00 +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-wm1-f48.google.com with SMTP id 5b1f17b1804b1-40d190044c5so1803455e9.2 for ; Wed, 20 Dec 2023 14:13:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703110378; x=1703715178; 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=NSm7Kkb7iQIhLnJh6bvdjkMX+zpHH9VA+QckFeFJQgc=; b=DOMevE6BavQ7i9/NK0hzdEcNPYd6axPghMFLE+9uMppWUWmZWOD8dUMRvzf7o7T+2y sJn0Z3DVATf556VAVR7cJPWHJ7umyLeocoZnMXXZlqdBYAJfwQSiUjruT5riPepo50EA j9G67cev5/rK3wd2lsRt5cDc+70WVuSBlU06kRkdQjTtcOaPOv6wqwH9IVOvVjeLRvpL +2qkN1Cry2zx/2/q8aH4WqFWnex6LHFzmdR9LtRoJgyiE7scmq2Vuu8bJVOVnOtj+LNB M1YlGg+Sa8h2YUuFo0oCe7kjRDJDyhvXPTyjfZDrML8thozQ3ZykvbpysFsoEdP5PCQ1 4bKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703110378; x=1703715178; 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=NSm7Kkb7iQIhLnJh6bvdjkMX+zpHH9VA+QckFeFJQgc=; b=mHcxzPvPhHIFgdXd/dho/hGMEhJvHcWmSWQDPy+0AyYNLXvKmOOSNWgDCNI6XXmRHY 2+lz/NqIonU5ELlf202NaIWkQjkMwweI2Wv50asKD0BSgH3AVVCyFymXux/60FL7sOMY QXxli7lvrc8sPPnVEXn/OnBpe4h+lVep9nKX7g5VrpwoRZAScfdb+NHb6F/hzDKxemIX y1jdnCORNEhAonHwkpMwAQAprFhvMgyYSvUF8IpKNLsRqdbVYRGAf/SnXToL8pSG0CH4 3B6KCIsp90Wsb132VS8qukCWRvd0ZmTxUeQpAPCRRS97BCIDuO8HvTlFFrqmNcSAl4sK RsfA== X-Gm-Message-State: AOJu0Yw7bDAesptsezP329fqrB2K9DHtuMKLZ9gAbEU/+/u+Mt9IGR0C bFkxrjP3+6hTSpaaefvwPEcHhQ== X-Received: by 2002:a05:600c:4fc5:b0:40c:902:dc25 with SMTP id o5-20020a05600c4fc500b0040c0902dc25mr211199wmq.51.1703110378637; Wed, 20 Dec 2023 14:12:58 -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.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 14:12:58 -0800 (PST) From: Konrad Dybcio Date: Wed, 20 Dec 2023 23:12:54 +0100 Subject: [PATCH RFT v2 1/3] arm64: dts: qcom: sc8280xp: Add lower cluster idle states Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20230619-topic-sc8280xp-idle-v2-1-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=1697; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=JjG1dfCZcMMBaOd+NpvseWTXSJQeolxAsWRg/zSEauw=; b=fNvoy8VUX06ZR/89piYsrqsxZDd9/vblFAD1lS1fiyyeTkkxj2kihoijzFB1il2WOsKSY+dVx NOYxHqMdkEKCIntWIvRiDLojaxRGCk6XTS+nb2TjIRxQaeTy6QANkkI X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785840717935336417 X-GMAIL-MSGID: 1785840717935336417 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 febf28356ff8..ca56bbac4353 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi @@ -286,7 +286,23 @@ 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_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_AOSS_SLEEP: cluster-sleep-2 { compatible = "domain-idle-state"; arm,psci-suspend-param = <0x4100c344>; entry-latency-us = <3263>; @@ -634,7 +650,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_CX_OFF &CLUSTER_SLEEP_AOSS_SLEEP>; }; }; From patchwork Wed Dec 20 22:12: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: 181792 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2483:b0:fb:cd0c:d3e with SMTP id q3csp41037dyi; Wed, 20 Dec 2023 14:14:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IHTmr7QwyjWH+jPnXEn2Dm31/mbWfiaqRNXanRG9YpJGCqv7DlXITccauqSOXAbaS5lBN85 X-Received: by 2002:a05:6214:262a:b0:67f:3611:ce22 with SMTP id gv10-20020a056214262a00b0067f3611ce22mr4678457qvb.31.1703110457446; Wed, 20 Dec 2023 14:14:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703110457; cv=none; d=google.com; s=arc-20160816; b=QQZmSAl96KjAvyGNQFYv8PuohTltpPl7I9Ltb2dRYz4i4pD2Xkkt/8MN82N1agbmuf B72ZU0vbsxnMTYhHTuGjaExfADxapoQJwWc9Z2Th0aDnmBEkPPJPDYxrb40ktBletd/O x+u4I/twO7fJyDueRzdAV0lDxkUCVQrryOEjovJAMx05nUXWBWbBZQIlHZ3ImRrF0TFt 1q+LCPbowCpKKZgknQyYH4wPyqs/rYgo9qbxBbw6VipJuwArAavN1na6Vpp95vwerm5t aYcrbZ99WZCWuq58+Czg77hHJ+n3cpJvTt41Eh/rLtKduQ8ctj0SWW6P4BxUG2Si2uAU D8jg== 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-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7494-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id dw9-20020a0562140a0900b0067f7fc336fasi468368qvb.206.2023.12.20.14.14.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 14:14:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-7494-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::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-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7494-ouuuleilei=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 317101C22695 for ; Wed, 20 Dec 2023 22:14:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8BA3F4BAA7; Wed, 20 Dec 2023 22:13:07 +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 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= X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785840751324238052 X-GMAIL-MSGID: 1785840751324238052 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 { From patchwork Wed Dec 20 22:12:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 181793 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2483:b0:fb:cd0c:d3e with SMTP id q3csp41083dyi; Wed, 20 Dec 2023 14:14:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IHLl2u8n5R2INaBZHkuiTM2vXjwvVwxwKv8EU3Go6OC6RVYteudUW9UyNCBlKZSgaVEqpd6 X-Received: by 2002:a05:620a:839b:b0:77f:3cda:32df with SMTP id pb27-20020a05620a839b00b0077f3cda32dfmr20212092qkn.130.1703110463584; Wed, 20 Dec 2023 14:14:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703110463; cv=none; d=google.com; s=arc-20160816; b=Zdul5ngALCg5go+IGcapJy3VOoZVhCH2e7sYHuD28kCLuZWhfAlbkpDWw+FGEGQCNK N5b21WTqigWO0m8M47GpoGBv3R+1VvgPYq6rVASdTOaH7iGVXvMvBgA+0ilp6iRdZjE9 nZ+BbFkhbIGXK2siG3yznqn+tmajEjTsxrY5Wbpx8P3KfF1H7yUDWSvCgvOJfTaMeMCx SjkLyjdfPE9milsWVt/Jaib4wOwJpADGqHhip6Hb846LyFfzGh3UgYt/QJSUNFHVz2o5 4mQKdkC1qWxNbpaoF3OyByEfD+9Oiy2r7V84bYRYibEde/q8kkM+qOW+gG2yCbnG+Dnk c0Uw== 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=9DxvM6dJkXr3AT8uqclVXbZKCSa9zDAjYg1Tc1GwtgQ=; fh=9TjP5Br7/jShLalm0TuDyO1COBRVeysBZiyxhQJm5Ms=; b=BaOdqWNrWSZ+oow4vzrbqzILRG9UetQsp2UYGekHRxnnHZ64HGhuWMKMzKxf9ubMWd HNeZlIiVsJs/bdAd9EVyDbkBAruCQL8C8XPTzn1eaYnsqrhGy6yJj6f+hNRmoT1ZQuQo GILKKA/12/ssCNP3hH1gkW/bV26+8qOK4JHqnsgopGk1czg4rLrjVobOMCGaRjwP17kW iubU4l4BLObR88i51ueht31VaGcFv124NZu7f5SlMfbgBjbiQ67jXPefW3UTWEmJBtVS hhnajLU21y6lA6vhrX0yz9EWLtS5M+vEN+sdWu3Q4fAuupIXrak42IDSoq7V9ogQWmYt LKVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ty9LQw3M; spf=pass (google.com: domain of linux-kernel+bounces-7495-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7495-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id q14-20020a05620a0d8e00b007756dfea0ccsi820266qkl.90.2023.12.20.14.14.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 14:14:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-7495-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ty9LQw3M; spf=pass (google.com: domain of linux-kernel+bounces-7495-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7495-ouuuleilei=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 51D211C2271C for ; Wed, 20 Dec 2023 22:14:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6DA484BABD; Wed, 20 Dec 2023 22:13:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Ty9LQw3M" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ej1-f53.google.com (mail-ej1-f53.google.com [209.85.218.53]) (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 45DD54B5A1 for ; Wed, 20 Dec 2023 22:13:04 +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-f53.google.com with SMTP id a640c23a62f3a-a2340c803c6so15847066b.0 for ; Wed, 20 Dec 2023 14:13:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703110382; x=1703715182; 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=9DxvM6dJkXr3AT8uqclVXbZKCSa9zDAjYg1Tc1GwtgQ=; b=Ty9LQw3Mfv6h+l7ZX8byVyljcsnrsUmHW5gabv8COtiYkUicrhDeqaV2oUPDKEey5u 4a+8fw4ZYu61sUd7zfCX3oKADbKQsVDOAv/igS+YcjZmdl1htzoSN+OhekZ5iuq4hnFe gNcgDZW1OqnUeEJhpozsYnd5bznGeDVL2w8MYQVwOdffCFICwMnt10NzrYPxkEmIldGC VVuetXUrZ8iF3OZvy2GWem5UkMImeC/Q+bNa08veVDxC/nYV/qy84BfjWa//khBcKjH+ 7Y9736xLUxb6TTrzutLhMR+hldDnze53GSukHkXg/u3QGUG/LKqC28fFXPx1FsPke3z1 fqiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703110382; x=1703715182; 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=9DxvM6dJkXr3AT8uqclVXbZKCSa9zDAjYg1Tc1GwtgQ=; b=EUvqzneoyXX9uXpT1MeYRGQkYjQrkg3RysXxwEVXXLCrBvqIPJG+77neRK1LeDj3dg E5TjdrSssqvS2/E72/HWHV+Lx5VbgnpKDeM9faArX5AmuLIXjzgNPY3lT1/YL4UeeqIz yYCz5qqUikoLrT003NQIcluI+2UkMVzYsWCFPtSeY0gcWbI3xQmuY2g+wi5SNjS7lsYa 6uwAbf4YfQ/5tXhKSuIrq8QAQ6V7jT4Llm5KtP6+Vnv9IAt9l67hsrhT+QSVQZvgrz7+ 3gqYmrxFAwJbG3KxJ5OBjOyLNva+cmfHOcrI6zwuBkMyr4z6Tc1KEzIwmsbHx1zLmQ97 DhCQ== X-Gm-Message-State: AOJu0Ywmvnf6Z8TfI3QK7TK4TBz9CYyXy/Zmft6t4MFd9q5mNAYC9JZW bNnM+k+ydmBuQjrTKoJCa8Sd0Q== X-Received: by 2002:a17:907:4d7:b0:a26:9c58:3ad8 with SMTP id vz23-20020a17090704d700b00a269c583ad8mr353676ejb.145.1703110382392; Wed, 20 Dec 2023 14:13:02 -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.13.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 14:13:02 -0800 (PST) From: Konrad Dybcio Date: Wed, 20 Dec 2023 23:12:56 +0100 Subject: [PATCH RFT v2 3/3] arm64: dts: qcom: sc8280xp: Fix up idle state periods Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20230619-topic-sc8280xp-idle-v2-3-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=1804; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=c3T3c0tRpO5oGLK3Rx2bXv5zepnSj3efGb1cym3Og74=; b=CqWRArCrFNQSGcd2JvKSmBjJO6OK5sVHZ15tRniyJHsxaCCV8BxqNAoXGdQdeffFz3YCYlsxA WZXJiTtkmbVAthr7ZVoTCXFbjZf6/wOhU0slMr7JJH/7YJfDGDINyf8 X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785840757889532598 X-GMAIL-MSGID: 1785840757889532598 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 62f3f33220ff..7625db4512c7 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi @@ -278,9 +278,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; }; @@ -298,9 +298,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; }; }; @@ -325,9 +325,9 @@ CLUSTER_SLEEP_CX_OFF: cluster-sleep-1 { CLUSTER_SLEEP_AOSS_SLEEP: 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>; }; }; };