Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3896964imu; Fri, 30 Nov 2018 07:42:02 -0800 (PST) X-Google-Smtp-Source: AFSGD/WDwricTpNkO9CUaVMwn1esoWEMi3p+u7tdcmJkFe+t41shpZnOivmgDvSlpk5FkgslmJgL X-Received: by 2002:a62:2a4b:: with SMTP id q72mr5989488pfq.61.1543592522569; Fri, 30 Nov 2018 07:42:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543592522; cv=none; d=google.com; s=arc-20160816; b=BEO4VsqGpVOtxt6npw6EMcT82Hwl8WpjYm44ui/cL9wZe8DvEF5Gsrpo1EH1MpW1EQ ZGbAYgqYOGDz8cDrL+8UdU78bB5EeBj74cgdNzdvXHzGQPpeflBGHU8A6URe91r3jNyY yYeJiHpe2pRePnp/7qtDYn2XJs1EUKo0ltMpghzCJclCtVLbG4Cjo9nC82newk9FLdWb Ukf7ltmFW0NOt7j16o8wOky1DH8ApAgEP6FQmsaIogUc8vkRlBgbjqO3E875X+wIkQ34 N6bJlidZk+ill2sPo9La6WE6rXN4TFzp7qhSodKa+UYGyRtqfEsFGbfJqB9QD9BAkwQo PtCw== 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:dmarc-filter :dkim-signature:dkim-signature; bh=uUnC5oGriGJJJlUlMI/PlLQgIReu8QV0qQ67uKtdHPM=; b=zVXPutGJux7TBwA2x90X2Y/3KNFcRq+rioiyxIXbGRAkt8groLVbvWWLSM/Lp7LIkf uTj8bObWRBEo4iXRlSjGcAhVlWWglTgA4fT5ZxmFFBtrLGg8WAdKloL8w+dJ3KfRO+xM FjtLPE2Kkeh7+YM32ha/+4FKeG6Vqi4Feufvf2ync+ZwrY6vwxMRzX/aaiB7Rpddf2ic swG+Pa8NNJxuz8mDwwNlbcQnzm8NDCRn6jk5XeNHBQvRwFXTz0+aY34sTvvNY45sL0n7 RQnx3yCasxdvCJ8IXI05UVywAQ7fPYPDdj2SzdjCqOcJ4nMw1oBjcb7kGAl/QuxOX715 hq8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=MyuoMBiP; dkim=pass header.i=@codeaurora.org header.s=default header.b=L0ge9JtM; 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 q8si6497921pli.284.2018.11.30.07.41.38; Fri, 30 Nov 2018 07:42:02 -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; dkim=pass header.i=@codeaurora.org header.s=default header.b=MyuoMBiP; dkim=pass header.i=@codeaurora.org header.s=default header.b=L0ge9JtM; 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 S1727450AbeLACtQ (ORCPT + 99 others); Fri, 30 Nov 2018 21:49:16 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:44874 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726572AbeLACtQ (ORCPT ); Fri, 30 Nov 2018 21:49:16 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 5E9BA613C2; Fri, 30 Nov 2018 15:39:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1543592371; bh=B6ePkGvCq4o7KNWp1ARfZRvwuJPMrrlqx2Dv9p3Qtt8=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=MyuoMBiPbdV2voRwpcDg1Jjacq8Vxnqi7CsgJSxJSDuIzFiU7QOignZTphO/VmjFW Oy6O3X4fsqB+SBBwXiIvqEiJFL3CHl1L5svtqbDBQZUm5el4Ps3G4nKBuH4jOXM9Hl I5AsO2qoxN7pRQj1g/B312Rxg0rTwAWwpB6YkTbQ= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.0 Received: from [10.226.60.81] (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: jhugo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id B14FE613C2; Fri, 30 Nov 2018 15:39:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1543592369; bh=B6ePkGvCq4o7KNWp1ARfZRvwuJPMrrlqx2Dv9p3Qtt8=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=L0ge9JtM569syhkmcgJJuhwL1XEd3IsVVe8WtaPjoiI6tmeDTSWjyUghwKOtYxnJG Geod7KkxWh7HiTH1mhtt7ur5p7a7V3FdkasMzlZj7+iY/5UAQ8/sqrm+lW0H9gG9Mi 3hgc/e6OgtDFKvXoAR/iIdZnw5UoV1Zwo9U7mDNc= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org B14FE613C2 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=jhugo@codeaurora.org Subject: Re: [PATCH 1/3] clk: qcom: gcc-msm8998: Mark hmss_dvm and lpass_at critical To: Marc Gonzalez , 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: Jeffrey Hugo Message-ID: Date: Fri, 30 Nov 2018 08:39:26 -0700 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed 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 11/30/2018 2:23 AM, Marc Gonzalez wrote: > 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. HMSS = Hydra Monaco SubSystem > > > I couldn't find gcc_lpass_at_clk in the downstream 4.4 kernel... > LPASS = Low Power Audio Subsystem > > Regards. > -- Jeffrey Hugo Qualcomm Datacenter Technologies as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.