Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5528103rwl; Tue, 11 Apr 2023 06:46:45 -0700 (PDT) X-Google-Smtp-Source: AKy350ZIW8HeYT25txBmFvaZm162f5ZTxeN/yWjWXRMByd+FU5I8xjZT0SZ/Syz++sJXsxedumXR X-Received: by 2002:a17:906:b282:b0:932:e6d5:bd7c with SMTP id q2-20020a170906b28200b00932e6d5bd7cmr9962595ejz.20.1681220805502; Tue, 11 Apr 2023 06:46:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681220805; cv=none; d=google.com; s=arc-20160816; b=OeJG8ld1XrZ6w0WZJdi8a82E4nKN1v4zkubIF0Y2yFqMT9UIGdseb6wAsMhou+MevR 3dH8gR3o1vhgPrdhZJQFIL9fIxtCqdGu32WxMHXvOarzajBmf5qErM7DFWI8o5x77Zkm SKr7beV8js/kfjxt7515J7CDHt2v52pXKXHpO/EzuW8SAmPdHcGXPOzURKGNwRLM+ANg gFCHL8hSfVBtnnY/TnKngm79zyC4exf/7bq8Al0HoLaqndx91r2WNCTKInqtTaByoXg3 eKIdXnXIKLZQRFB+crzkMg04l9TW88VwIw7WpmotR4wkaAMOAjAIh8p9mpxc7kcSjAbe CJCA== 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=i8j4IUlVj3riTiWQmjJ2d73DxaHhOYBTiZKwAU5TtVk=; b=JdzthbvP3yXvvbkGBfKHzZJyDnm2j0B02qfw0+RwpQZDRpXHObUeBiTDddK7Kgj1qm 3jObOqjmnUdZJGXMbPZuBV8BZZm7QDhQauaVBLZlsh4RbYtk7gEKgv5zAttL4lH9uubG WtcExfYYdShHTT33RYkSKRs2195PeD+ldHrGZdYF2TRig8ilO5PntHUvArQ0caGnW+Wr xMWOMKwfNU6ouWQbqHQjEBo9gao7XgupWQd8z8/R8+1WAsrGcdJUEqxi9usYbSzBa/X/ 6DiyUZDdSCBcB4BupHDKHDY9kxohaXXZcgmT9QP+JHrkn77yp+zLN5/7Be9lKGnRVAfc 5HLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Nmxt/npR"; 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 gn32-20020a1709070d2000b0094a95d5cfb6si5227475ejc.886.2023.04.11.06.46.21; Tue, 11 Apr 2023 06:46: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="Nmxt/npR"; 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 S230212AbjDKNpU (ORCPT + 99 others); Tue, 11 Apr 2023 09:45:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229848AbjDKNpR (ORCPT ); Tue, 11 Apr 2023 09:45:17 -0400 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E741B10C3 for ; Tue, 11 Apr 2023 06:45:14 -0700 (PDT) Received: by mail-lf1-x129.google.com with SMTP id d7so21560063lfj.3 for ; Tue, 11 Apr 2023 06:45:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681220713; 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=i8j4IUlVj3riTiWQmjJ2d73DxaHhOYBTiZKwAU5TtVk=; b=Nmxt/npRMsGRl91Njy5uOxNJ5ZRJhRyCTrLxKD/Im/NDTaIgtmneBfPNbAruinun7N 3xxyphT+PJ3k1wYimkETsSUmNMrA0nkqltYApc7EPmzqLqKmimOf3dDLFlTM4R7PT4fu JwYNREFqbZPPnfJlXWHla/k3hr1P9Dd98fOJpXLHwGlp/f6k42UgDXZzPyVcAPCswcWC e6LAjm9WFUKcS1GHS3AM9u2vteWpjLxasAlp4WhwJSeGA/5BFkp8BWklwpXInYHZRTxF lQfp2paWZX3THOc3prZdCfhTi3oWEwv6UR8hcziugtLy+siHknPG5CddfAhl364umhVU xadA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681220713; 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=i8j4IUlVj3riTiWQmjJ2d73DxaHhOYBTiZKwAU5TtVk=; b=n2IgrH6ahk3eqcQWDKhtZsMyqSK3PXpAFWtW3UvkO8YNC7bxXDB3wGKxWskGKkx+f3 xDTwIfOkVoh+PWBv3mGETs8KJlW+BNYnTFK/skSpuNXG5dpWdr0EyM+ztMmbE6TBhuki 7cK/kGz2aK9dVHch+t+PjyV6shG3yd+/1u9zj2Z+2c+kgfbRIV19fBMaAdQXELmr4zr+ bK+CazwRi3aiEFpzQNPpCjXdhrECgviZpuTJmY/iOCkElHnRTqXRk3VQ5EXL95Hh12TC FfIX4ahVfwYik38h/4lqrfI3PaVpLU6lOwPeYSBhcWN2myki+2/Lz7mNkNPPcreYmkeO GwxA== X-Gm-Message-State: AAQBX9dMaO3UWJnvK5LQ4lBmUN2n3Sj1EEWA9dSt0TvP5QnNX0oEJmH6 t4ylUwrrEtMs3UPwdKLoLoItog== X-Received: by 2002:a05:6512:11ef:b0:4db:3847:12f0 with SMTP id p15-20020a05651211ef00b004db384712f0mr3366560lfs.50.1681220713146; Tue, 11 Apr 2023 06:45:13 -0700 (PDT) Received: from [192.168.1.101] (abxj23.neoplus.adsl.tpnet.pl. [83.9.3.23]) by smtp.gmail.com with ESMTPSA id r6-20020a056512102600b004e843d6244csm2569541lfr.99.2023.04.11.06.45.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 11 Apr 2023 06:45:12 -0700 (PDT) Message-ID: <6406469d-289b-af4e-83f8-8259f5dcaf00@linaro.org> Date: Tue, 11 Apr 2023 15:45:11 +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> From: Konrad Dybcio In-Reply-To: <2f9f9cdd-cfbe-ca22-7308-d6b1f0c1c455@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.4 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 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? 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>;