Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp751047rwl; Wed, 12 Apr 2023 03:43:11 -0700 (PDT) X-Google-Smtp-Source: AKy350ZnLM1k2lMqsfXYoM/G848x6Xp/2i2+l9c732nMudMbKm7DrlAYdMcAD/RHzi6ofV3Il4Er X-Received: by 2002:a05:6402:14cc:b0:504:7f63:1e3 with SMTP id f12-20020a05640214cc00b005047f6301e3mr1664104edx.11.1681296190894; Wed, 12 Apr 2023 03:43:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681296190; cv=none; d=google.com; s=arc-20160816; b=WtJblsn4jp73bJVSWud3tbfQPuVJO98qGDe8IDvPExcttlhvwNq6S0zTfr4bIef+QD chID2sixQdk5QP3EF/5/S4dTTsXumZc7udvjkfqY66ggJSrUwJtsFtb7qW7g4WuZy7/a XJSQciV3ZrXS8lT/lX17X74rfR7fiYm/Ee8bBvCwuA4rhdqb7KNPr1nI4OFnzFrs3gdO 6Veo6+NqghssX4lfnZvvhOJDxxZqt0dFeIfrfbnG1YDjCLDKaJqsye+05mqbZ7ftskS8 WIZ8pW9PbfEpLBTxywydTFUBXig3No2IS8Jlv3txQgZ2w1WRyZLTHtnbioK/x7tPDXIN xFzQ== 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:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=4HYP1E62hZMod1XVNBzfyD/sK2aIAa5ZCyJ04UGDkE8=; b=IzfBqrKRhDNRrqdHKiZNm4FJKWcZQ3oa0VXpWCoq0VvOBhPQGKRFuGWcoFFXbsIHfB wzw5ssT6ZLwOLg3t5+yFx718MF0kcmrYh9Xl+IFa9K51nV6t13kVfQjGNRELZN0ck6AJ 4wOH3vD9rebqirt2OvPdHU5IffvqO5G+x26jrHn01wjDyPQlaRYZoYgtqjxnOg+shjN5 bgQohhJIWC8b/veJ+mfKPsILslMahS5MeihimrDYDyE1/wRzgrTkixs4creRUO5g6NtH c1HnO3Cqmro4ZVpBGwybTJ2NxbOLlxUf6M6IVznw5NTimWANptJguP4FBYOXFAl6PXqY 7o5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="MXIhSo/w"; 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 u24-20020aa7d0d8000000b0050480f6caf9si9360579edo.62.2023.04.12.03.42.45; Wed, 12 Apr 2023 03:43:10 -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="MXIhSo/w"; 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 S229802AbjDLKfE (ORCPT + 99 others); Wed, 12 Apr 2023 06:35:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229708AbjDLKfC (ORCPT ); Wed, 12 Apr 2023 06:35:02 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 712505B81 for ; Wed, 12 Apr 2023 03:34:59 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id z26so13945864lfj.11 for ; Wed, 12 Apr 2023 03:34:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681295697; x=1683887697; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=4HYP1E62hZMod1XVNBzfyD/sK2aIAa5ZCyJ04UGDkE8=; b=MXIhSo/wAmI6d3Prg/WfOICdVN4TkNa/122j2dZPh703T6YEtMk8tdP20jFagefEHS 53M7rK/CD1hDdlV8naz1A4ijkp8BpWou9r3icDTH5vDOMeuhpcR+dGqLOZcBE2fpQxVS R3gaICweFaG244TfSAU1YKelRJTJXaYRCbh7I1WE6MIUh6Ctk+z4i5cWTsLYnjEp1w18 LmEiN03r9dLBnQR47Ii1d79Wz0aXFPuuLg0fTygtDLoIKwfRUgcpEvwZxvgqAYzfSsOm LZ7Ahbe1GFvg7Hiusf0L93G6Mw1k7O3UdpL1vNeFN2Kc/4rd+F7hriniQL1AgP+MPDi7 Nh+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681295697; x=1683887697; h=content-transfer-encoding:in-reply-to:from:references: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=4HYP1E62hZMod1XVNBzfyD/sK2aIAa5ZCyJ04UGDkE8=; b=yxHnuGi4TLQGg61jkdoaMQzurZQZ+/fbkoytL7/eqmcTsbyT+odRIVmNU6IOJC41Cy mWab628Oj4iNaOa+u9U5rFPj7zLwtrAUsy8wO47V0Hl19pTWxe1yTN42mGqeK4MpzLMP SEl0aVACjwWgCNMd9YJzBiY+NuMOK7zERcOp9XYXhXfbECarZ2Ew5ffyrYyDNQOm0VDa qK24hoAFrSqQx2jJ/uanZMGIZ/i09rQ7k6N3rQdyjxXEsRK9Cqv38mRfhhJZv02xLU1T sjVpvr1BIfg/DcQb7iTZpNeXZ+7D/rHZqO1OF2GfcNeFruRrF81668j2gvBo/n9Er2D4 b+Og== X-Gm-Message-State: AAQBX9fNVcgYNnT9OfGTjbbB6vcIK8mJs++qP4aHymOGJ9Wbn0Ti41Jl qxV7fFnkn27GgzSHwaBVgPzP4A== X-Received: by 2002:ac2:5e91:0:b0:4eb:29b0:1ca4 with SMTP id b17-20020ac25e91000000b004eb29b01ca4mr474557lfq.8.1681295697594; Wed, 12 Apr 2023 03:34:57 -0700 (PDT) Received: from [192.168.1.101] (abxj23.neoplus.adsl.tpnet.pl. [83.9.3.23]) by smtp.gmail.com with ESMTPSA id t11-20020a19ad0b000000b004dc4d26c324sm2935225lfc.143.2023.04.12.03.34.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 12 Apr 2023 03:34:57 -0700 (PDT) Message-ID: <40ccea6a-c536-82ba-3f97-634cbc9a5869@linaro.org> Date: Wed, 12 Apr 2023 12:34:55 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: [PATCH 2/3] dt-bindings: clock: qcom,gcc-sc7180: document CX power domain Content-Language: en-US To: Rajendra Nayak , Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Taniya Das , Dmitry Baryshkov , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230408134820.76050-1-krzysztof.kozlowski@linaro.org> <20230408134820.76050-2-krzysztof.kozlowski@linaro.org> <4757c33c-7e71-262d-a51a-c5f9fb53ff41@linaro.org> <2f9f9cdd-cfbe-ca22-7308-d6b1f0c1c455@quicinc.com> <6406469d-289b-af4e-83f8-8259f5dcaf00@linaro.org> <40854a28-3f64-c0fd-9b77-db92cb0fbe13@quicinc.com> From: Konrad Dybcio In-Reply-To: <40854a28-3f64-c0fd-9b77-db92cb0fbe13@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 12.04.2023 07:42, Rajendra Nayak wrote: > > On 4/11/2023 7:15 PM, Konrad Dybcio wrote: >> >> >> On 11.04.2023 15:31, Rajendra Nayak wrote: >>> >>> On 4/11/2023 4:57 PM, Konrad Dybcio wrote: >>>> >>>> >>>> On 11.04.2023 06:56, Rajendra Nayak wrote: >>>>> >>>>> >>>>> On 4/8/2023 7:33 PM, Konrad Dybcio wrote: >>>>>> >>>>>> >>>>>> On 8.04.2023 15:48, Krzysztof Kozlowski wrote: >>>>>>> The GCC clock controller needs CX power domain, at least according to >>>>>>> DTS: >>>>>>> >>>>>>>      sc7180-trogdor-pompom-r3.dtb: clock-controller@100000: Unevaluated properties are not allowed ('power-domains' was unexpected) >>>>>>> >>>>>>> Signed-off-by: Krzysztof Kozlowski >>>>>>> --- >>>>>> +CC Rajendra (author of 5d6fc6321db1 ("arm64: dts: qcom: >>>>>> sc7180: Add required-opps for USB")) >>>>>> >>>>>> Rajendra, shouldn't SC7180 GCC have PM ops to make sure a vote >>>>>> is only there when AP is active? >>>> So IIUC, CX is never supposed to be shut down? >>> >>> Atleast sc7180 and sc7280 do not support full CX shutdown (or power >>> collapse as its called), it only transitions to a Retention state >>> and even that in the system-wide suspend path only >> And won't outstanding votes on that resource prevent the system >> from entering a system-wide low power state? > > I think most of what you are asking was discussed at https://lore.kernel.org/all/5ff21b1e-3af9-36ef-e13e-fa33f526d0e3@quicinc.com/ > OK so 7[12]80 never actually power off CX fully. Understood. > Are we seeing something broken on sc7180/sc7280 platforms? I don't know, I don't have any devices. I'm just asking questions to make sure things weren't unintentionally broken. > If there is an outstanding vote on CX it would prevent CX from > going down, but ideally we should not have an outstanding vote > from USB (atleast) since we now support RET for the USB GDSC. > If there is some other GDSC (within GCC) thats left turned ON, > yes, that would still prevent CX from going down. Makes sense! Konrad > >> >> Konrad >>> >>>> >>>> Konrad >>>>> >>>>> hmm, I am not quite sure why we would want the performance votes >>>>> from peripherals dropped when CPUs go down in idle? >>>>> >>>>>> Are all GDSCs powered by CX? >>>>>> If not, wouldn't this also need power-domain-names to >>>>>> facilitate e.g. potential MX-powered ones? >>>>> >>>>> For sc7180 GCC, yes. >>>>> >>>>>> >>>>>> Konrad >>>>>>>     .../devicetree/bindings/clock/qcom,gcc-sc7180.yaml         | 7 +++++++ >>>>>>>     1 file changed, 7 insertions(+) >>>>>>> >>>>>>> diff --git a/Documentation/devicetree/bindings/clock/qcom,gcc-sc7180.yaml b/Documentation/devicetree/bindings/clock/qcom,gcc-sc7180.yaml >>>>>>> index 06dce0c6b7d0..8bf9b6f49550 100644 >>>>>>> --- a/Documentation/devicetree/bindings/clock/qcom,gcc-sc7180.yaml >>>>>>> +++ b/Documentation/devicetree/bindings/clock/qcom,gcc-sc7180.yaml >>>>>>> @@ -32,6 +32,10 @@ properties: >>>>>>>           - const: bi_tcxo_ao >>>>>>>           - const: sleep_clk >>>>>>>     +  power-domains: >>>>>>> +    items: >>>>>>> +      - description: CX domain >>>>>>> + >>>>>>>     required: >>>>>>>       - compatible >>>>>>>       - clocks >>>>>>> @@ -45,6 +49,8 @@ unevaluatedProperties: false >>>>>>>     examples: >>>>>>>       - | >>>>>>>         #include >>>>>>> +    #include >>>>>>> + >>>>>>>         clock-controller@100000 { >>>>>>>           compatible = "qcom,gcc-sc7180"; >>>>>>>           reg = <0x00100000 0x1f0000>; >>>>>>> @@ -52,6 +58,7 @@ examples: >>>>>>>                    <&rpmhcc RPMH_CXO_CLK_A>, >>>>>>>                    <&sleep_clk>; >>>>>>>           clock-names = "bi_tcxo", "bi_tcxo_ao", "sleep_clk"; >>>>>>> +      power-domains = <&rpmhpd SC7180_CX>; >>>>>>>           #clock-cells = <1>; >>>>>>>           #reset-cells = <1>; >>>>>>>           #power-domain-cells = <1>;