Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp427216rwl; Wed, 29 Mar 2023 04:04:32 -0700 (PDT) X-Google-Smtp-Source: AKy350a2s5ckGIUwYc/7/cOIDbN7iYAV7UrYSrdQGvvHF6qWQr3ZXVJh2dk8sYwJBtQ/zbZAhED/ X-Received: by 2002:a17:903:249:b0:19c:d452:b282 with SMTP id j9-20020a170903024900b0019cd452b282mr19508864plh.12.1680087872027; Wed, 29 Mar 2023 04:04:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680087872; cv=none; d=google.com; s=arc-20160816; b=HXRz6JudjwjGQDVWdzoqoSVie3YQkGVzKQQ+px5RqMfv9gw6a4nJ7PBA6p3YFvKF30 lmsUZ+jvgAO6gWrVZGthb0vmZFw+0ouhrQEX9mKc8dyOb0VjnTR6SHpoiw/jeDTZrsWu kGLjdFoStfuchFllecesGS4pO561TO42TY29/Hi3ykDp/0dmy7lzqAGmspsQtPrnK//0 v4v1UST4iGBZH5fqxhYhYEZpEtvUkM9WumAxNiQAM8ubhMAiBHTuCFngsIvYY7crQWNj Jvt0i2Hm1AKYYxIzyZ0dlg0IF0qXGNDVPE94JmblKFyf0l06LXOWOXZ/pMNSgtMlP67a DeFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=CarlS/VU8aJv526dWxLfE21OLuYaolNHG12/rq9FVAw=; b=dVLTRfMw//osDEIIvHzQVF1HXj2teukcG0jN3lqp9o8eJXedQ69xfupdSO6Ktt2zuA WfmnV8OYRk25gCwejkmiiKNg0A9Q3gY3YyRMZKqtljF7ozcdblQtmn2pIhDpxyuVfaqu Gz/lDEjmPU+zm8ES+V+rGfCIOqr8M0RGvvJ3OWneF1wlCtLjCxRTLttJ3FSbptUqDTcS v+D/Y6osE7/YgyLgucx9uNRmtYz2EIvqJySpmK3CNA+a1WhNss1TrH+rpOIVdseO1aTt 6IjHnWzbXQAn3FU8gVz6RcrDHW6VOjEpNyTi3UvT5XuOhHMHthVenHJknNGGs7QS12ej 1IOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NiUPYCtA; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s129-20020a632c87000000b0050ac80fc7b1si32941440pgs.658.2023.03.29.04.03.46; Wed, 29 Mar 2023 04:04:32 -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=NiUPYCtA; 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 S229570AbjC2K7B (ORCPT + 99 others); Wed, 29 Mar 2023 06:59:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229549AbjC2K66 (ORCPT ); Wed, 29 Mar 2023 06:58:58 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B746F1FC3 for ; Wed, 29 Mar 2023 03:58:56 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id j11so19544433lfg.13 for ; Wed, 29 Mar 2023 03:58:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680087535; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=CarlS/VU8aJv526dWxLfE21OLuYaolNHG12/rq9FVAw=; b=NiUPYCtAcly/5nLkHOTow4ELPXiCEO/Vv1E+6JMJX5H0Uvfi1E1Af86mDMyCyd/6Ek Lkmwr3PNug0NBRnKIC3HpzhznMeXYxgJYGRsjyqkMtU8UbZS8OFdWVnqF9JGQw2ksMBv 6TiYVl/83h9LjpcYNwbzIQpgo8cN3SnsOAdUaSS+Pd7ISurPNxWqkQ3r4Vx16BhVQs5l u2xmnobKAdqgey8BDBN8uSRGVTghH6ptanbD216QbJ9QfjtRv8wGvxTaGeP1eWGtFhhD ntP1KMTer630EqjnYeiWTLeGOThrTPHnn8hpvVqONpM+UPQbQGKgKwMPjdWw5O0TGq2q Kikg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680087535; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=CarlS/VU8aJv526dWxLfE21OLuYaolNHG12/rq9FVAw=; b=r9zwMyigTpGknI/aV73zKC3I5ZIJFBio3YOCA3Rt86WhfIukVVQ7yPoYWIRUgPdJWo s/LLXdOFVXYvQWOlemOhLvnZLahF3RwMiIa/EN0VbgoZ4W5nenx5iQPSWWh3tP2ZCRsP u5oa1EDuCdMxaWx0xexVMZ/lqprC/vPnMXJbl3IJ3jqSjPeheFSHVKVC7MJZSGQxFtYX AuiMbEPnd6Lg1gX6UcyQVd0Yb9OAg4Xc9OYZ/T2uBDnX/ZbQdl88rAANMVkKpoCHmrgw oCfUV6NKEO1lxKAl5O8Psl0M2EYQm1yVEf1D580v2mNd6lMz268Xqh/ixVNTAIwh/zf2 1l/w== X-Gm-Message-State: AAQBX9d6bu/bqUoefQkaW0mhUXVkFawW/MJvg+RFww8/aMIvMzpWsmd0 Vt2D4fvjHX7fynNzS0TMzntYsQ== X-Received: by 2002:ac2:5448:0:b0:4e8:485c:6a13 with SMTP id d8-20020ac25448000000b004e8485c6a13mr5732819lfn.21.1680087534896; Wed, 29 Mar 2023 03:58:54 -0700 (PDT) Received: from ?IPV6:2001:14ba:a085:4d00::8a5? (dzccz6yyyyyyyyyyybcwt-3.rev.dnainternet.fi. [2001:14ba:a085:4d00::8a5]) by smtp.gmail.com with ESMTPSA id g12-20020a19ac0c000000b004dda76fad5asm5429156lfc.218.2023.03.29.03.58.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 29 Mar 2023 03:58:54 -0700 (PDT) Message-ID: <5c232df5-fbce-21a4-6414-9522f70be087@linaro.org> Date: Wed, 29 Mar 2023 13:58:53 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH 1/6] arm64: dts: qcom: sm8250: drop incorrect domain idle states properties Content-Language: en-GB To: Ulf Hansson Cc: Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, "Rafael J. Wysocki" , Daniel Lezcano , Neil Armstrong , Linux PM References: <20230324073813.22158-1-krzysztof.kozlowski@linaro.org> <880c0932-117f-61cd-dd97-c36076869c3b@linaro.org> From: Dmitry Baryshkov In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 On 29/03/2023 12:45, Ulf Hansson wrote: > On Wed, 29 Mar 2023 at 00:51, Dmitry Baryshkov > wrote: >> >> On 24/03/2023 09:38, Krzysztof Kozlowski wrote: >>> Domain idle states do not use 'idle-state-name' and 'local-timer-stop': >>> >>> sm8250-hdk.dtb: domain-idle-states: cluster-sleep-0: 'idle-state-name', 'local-timer-stop' do not match any of the regexes: 'pinctrl-[0-9]+' >>> >>> Reported-by: Neil Armstrong >>> Link: https://lore.kernel.org/all/20230323-topic-sm8450-upstream-dt-bindings-fixes-v1-4-3ead1e418fe4@linaro.org/ >>> Signed-off-by: Krzysztof Kozlowski >>> --- >>> arch/arm64/boot/dts/qcom/sm8250.dtsi | 2 -- >>> 1 file changed, 2 deletions(-) >>> >>> diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi >>> index 79d67b466856..9cf2de87c632 100644 >>> --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi >>> +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi >>> @@ -354,12 +354,10 @@ BIG_CPU_SLEEP_0: cpu-sleep-1-0 { >>> domain-idle-states { >>> CLUSTER_SLEEP_0: cluster-sleep-0 { >>> compatible = "domain-idle-state"; >>> - idle-state-name = "cluster-llcc-off"; >>> arm,psci-suspend-param = <0x4100c244>; >>> entry-latency-us = <3264>; >>> exit-latency-us = <6562>; >>> min-residency-us = <9987>; >>> - local-timer-stop; >> >> Hmm, so we support setting the broadcast timer when using plain PSCI >> idle states, but not when using the domain-based idle states. >> >> Ulf, Rafael, Daniel, is that an omission for the domain-based idle >> support? Or is it handled in some other way? > > I am not sure that we need a DT binding specifically for this, or do we? > > So far, the timer is managed from platform specific code. For some > Qcom based platforms, the timer should be managed in > rpmh_rsc_write_next_wakeup(), which makes use of > dev_pm_genpd_get_next_hrtimer(). I'm not sure whether I fully follow this (I might lack some understanding here). I thought that with "local-timer-stop" (well, CPUIDLE_FLAG_TIMER_STOP), we were switching to the broadcast timer before a core/cluster goes into idle state with no local timer, while with rpmh_rsc_write_next_wakeup() we write that only before shutting down the last core (see the comment at rpmh_flush()). This might be an expected thing, I probably don't have enough understanding of the cpuidle internals to judge this. > > [...] > > Kind regards > Uffe -- With best wishes Dmitry