Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3516582imu; Fri, 30 Nov 2018 01:25:50 -0800 (PST) X-Google-Smtp-Source: AFSGD/Vb1IjhAsCaQ0OdZtGJdOHIETcF0+5JI4oAwj4sNyNuOvV18JJF8HCNnBImTf1PYpQdTj3a X-Received: by 2002:a63:902:: with SMTP id 2mr3923370pgj.219.1543569950860; Fri, 30 Nov 2018 01:25:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543569950; cv=none; d=google.com; s=arc-20160816; b=OhlDedRcjInPvMncoI0lBjR5xot3Ejm3GWxnRjnSl5KSJwXd/2Vw1eKMOF3zIzs/4J G9cKnevYOC1zoEOTyxo0FA8ybSCG6RjR928C8iCaCRP4khOpfCSn0a7zP0ePNa0tyFlP CKW9kvYmNK0c0PXIiAiwScnJ5LfXk8zXbMTFe4Z/uZ8EEytzYD2hMWko4Ue6wjJvbEEn Scj9ekEaCUSiFuivOQJs3YylpBDcNLkD02WlkjR2fZI/b24IphUKBK3jHhEmOMvze+PM KqiH8SjyhIPaV/t4DYiWglo4tCBbGuS8AkxGZy7Rm8SCRzcTZiqfLYTQFlSJ8DgMv1kT hirQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=zut/tAqCCzHzuXRX818sjl1tRAuBSHmX4j/iw85gEXU=; b=jiJ+sbzKuJOf7DFrei9ptFNcqxDj4spm5OZMcY0MAonpXJPSHq/WiB8z335x1JtMoV kVPLcYrxYH26HTJbp0ym7u4c5zV2EmmetydmIt/wxJHO9AuEmFv1Svi/7aoyW7IZP8Sj Un9mpj2BEwGqqAFo6/3Dlk4RyxfQrAF4N5g3hOb1VtxWrXV9pDEDFEPSHKt3dnEa5ZsF GA5p2m0p+i/z5BUUD3XEN+ILKE3Cb+MoBy4bt+X7tbsgwhp0bvRASF6knhfRbLbmXW5U N2pEx/hr0Atpck0Msz5tltOZuaglHJWCnQasJ4touLW0A5m1A4qDMp8ZqYpbpfqORNAe JYqQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n15si4038798pgk.27.2018.11.30.01.25.35; Fri, 30 Nov 2018 01:25:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726615AbeK3Uc0 (ORCPT + 99 others); Fri, 30 Nov 2018 15:32:26 -0500 Received: from smtp3-g21.free.fr ([212.27.42.3]:49368 "EHLO smtp3-g21.free.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726467AbeK3Uc0 (ORCPT ); Fri, 30 Nov 2018 15:32:26 -0500 Received: from [192.168.108.68] (unknown [213.36.7.13]) (Authenticated sender: marc.w.gonzalez) by smtp3-g21.free.fr (Postfix) with ESMTPSA id 2565813F87C; Fri, 30 Nov 2018 10:23:23 +0100 (CET) Subject: Re: [PATCH 1/3] clk: qcom: gcc-msm8998: Mark hmss_dvm and lpass_at critical To: Stephen Boyd , Bjorn Andersson Cc: Michael Turquette , Andy Gross , David Brown , linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Amit Kucheria References: <20181130065259.26497-1-bjorn.andersson@linaro.org> <20181130065259.26497-2-bjorn.andersson@linaro.org> <154356151361.88331.1298482384404357982@swboyd.mtv.corp.google.com> <20181130072420.GG5278@tuxbook-pro> <154356557630.88331.15462727905875864666@swboyd.mtv.corp.google.com> From: Marc Gonzalez Message-ID: Date: Fri, 30 Nov 2018 10:23:22 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <154356557630.88331.15462727905875864666@swboyd.mtv.corp.google.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 30/11/2018 09:12, Stephen Boyd wrote: > Quoting Bjorn Andersson (2018-11-29 23:24:20) > >> On Thu 29 Nov 23:05 PST 2018, Stephen Boyd wrote: >> >>> Quoting Bjorn Andersson (2018-11-29 22:52:57) >>> >>>> Keep the two clocks enabled, so that the platform passes >>>> clk_disable_unused(). >>>> >>>> Signed-off-by: Bjorn Andersson >>>> --- >>>> drivers/clk/qcom/gcc-msm8998.c | 2 ++ >>>> 1 file changed, 2 insertions(+) >>>> >>>> diff --git a/drivers/clk/qcom/gcc-msm8998.c b/drivers/clk/qcom/gcc-msm8998.c >>>> index 9f0ae403d5f5..d89f8e7c2a59 100644 >>>> --- a/drivers/clk/qcom/gcc-msm8998.c >>>> +++ b/drivers/clk/qcom/gcc-msm8998.c >>>> @@ -1972,6 +1972,7 @@ static struct clk_branch gcc_hmss_dvm_bus_clk = { >>>> .enable_mask = BIT(0), >>>> .hw.init = &(struct clk_init_data){ >>>> .name = "gcc_hmss_dvm_bus_clk", >>>> + .flags = CLK_IS_CRITICAL, >>> >>> Please add a comment about why they're critical. This is a temporary >>> solution? >> >> Disabling them in clk_disable_unused() are bad, mkay... > > Ugh sad. > >> SDM845 marks the equivalent clocks as critical with a comment that they >> must be on for system operation... I'm uncertain what the exact purpose >> of these two clocks are, so I don't have a better explanation right now. > > Ok. But does any driver ever want to use it? It may make more sense to > just remove it entirely and not touch it. FWIW, gcc_hmss_dvm_bus_clk is flagged "always on" downstream: https://source.codeaurora.org/quic/la/kernel/msm-4.4/tree/drivers/clk/msm/clock-gcc-8998.c?h=LE.UM.1.3.r3.25#n1715 config REGULATOR_CPR3_HMSS bool "CPR3 regulator for HMSS" depends on OF select REGULATOR_CPR3 help This driver supports Qualcomm Technologies, Inc. HMSS application processor specific features including memory array power mux (APM) switching, two CPR3 threads which monitor the two HMSS clusters that are both powered by a shared supply, and hardware closed-loop auto voltage stepping. This driver reads both initial voltage and CPR target quotient values out of hardware fuses. I wasn't able to find the meaning of the HMSS acronym via git grep, pdfgrep, or a web search. It should be forbidden to use an undefined acronyms in bindings documentation, IMHO. I couldn't find gcc_lpass_at_clk in the downstream 4.4 kernel... LPASS = Low Power Audio Subsystem Regards.