From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EE177C433DB for ; Thu, 14 Jan 2021 16:19:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C0A9E23B2F for ; Thu, 14 Jan 2021 16:19:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726269AbhANQTb (ORCPT ); Thu, 14 Jan 2021 11:19:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726253AbhANQTa (ORCPT ); Thu, 14 Jan 2021 11:19:30 -0500 Received: from mail-ot1-x334.google.com (mail-ot1-x334.google.com [IPv6:2607:f8b0:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C8E5C061575 for ; Thu, 14 Jan 2021 08:18:50 -0800 (PST) Received: by mail-ot1-x334.google.com with SMTP id b24so5694226otj.0 for ; Thu, 14 Jan 2021 08:18:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=neCDzobYvRj+21LSZnYQ3+mQEK3W3xLbl4DHzCQkpoE=; b=qdcKfyMdd2ZL5FVTBvBiW0Y9q1WXjAQXLY7T/X/mTdIvklxxiFI/nBj4yArVNQ2s80 sTGI9JrUZGSP6lag8/3EqdFjmwyL+dPd/46aaIuuvg/nqK1CKF/dG7IFKeCx7syBo0Vs 9/D3pOgnnpnX34NZkmYWkeLksJNSP0XS0pAla4dnvwwljsPlhsK1oX6x1imhyilyfBWf DosCq5EBtuxW48THGXfDDWWKnsKYaWmqzmPuyenTMJI3snQ9Ad8hw087ZgAUrc2WbG7b 5hN7Kx0HgHhMOPaqrp/GX2LI9Um/rJayFibtJ7G9e/NEcrUhLzlE1aeaoZ2R6MrpLRiL VbQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=neCDzobYvRj+21LSZnYQ3+mQEK3W3xLbl4DHzCQkpoE=; b=VIFsDGiU0u171EGXo+hnESqIlsQJFu7lQGGNbX+4J8yzCZLjbHAecO/un2I/wJCCEQ qZDYN6Uf/QheRwKOQi/tENC4u8ih5bfVNnL7tr4lX0XbnBPPVdM4w5kOerwNsLPJpUBZ Vmy/aT9BIbGx6V2kjJ6Lv/CB+DC82QDHe96BKFVc1swsgJOR0YLYdQZStFX8VoKEcZFe IkDcMaKw3NIC9kGlo/NpojFG/DtBj0wddAMUwrEblsXyUTNT4HYrsM1vxIXDD2JnrZXe IX7xerUPjMzhW6gr5+4iUEhaEGcmarrWKP8kkooQ9nvcWC/6MROUawyS07AHg+PQyMaE MWaA== X-Gm-Message-State: AOAM5334HgHIMtBOCYI+XD2fSaRq2hcn/FAISu1hNgljkuUJOWFtx7CM ynlTNvOGCcmIoyvUJrPQosq0Cg== X-Google-Smtp-Source: ABdhPJzteR1wliWItLJ6Kjqz/X+xzfzkx/i2AsfnizsDebea7ZVBLe/0kc2e0xqRXS6eroS+DVt7LQ== X-Received: by 2002:a05:6830:1e1c:: with SMTP id s28mr4883402otr.82.1610641129851; Thu, 14 Jan 2021 08:18:49 -0800 (PST) Received: from builder.lan (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id a24sm1129933oop.40.2021.01.14.08.18.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Jan 2021 08:18:49 -0800 (PST) Date: Thu, 14 Jan 2021 10:18:47 -0600 From: Bjorn Andersson To: Shawn Guo Cc: "Rafael J . Wysocki" , Viresh Kumar , Andy Gross , Steev Klimaszewski , linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: Re: [PATCH] cpufreq: qcom-hw: enable boost support Message-ID: References: <20210113065241.23829-1-shawn.guo@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210113065241.23829-1-shawn.guo@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org On Wed 13 Jan 00:52 CST 2021, Shawn Guo wrote: > At least on sdm850, the 2956800 khz is detected as a boost frequency in > function qcom_cpufreq_hw_read_lut(). Let's enable boost support by > calling cpufreq_enable_boost_support(), so that we can get the boost > frequency by switching it on via 'boost' sysfs entry like below. > > $ echo 1 > /sys/devices/system/cpu/cpufreq/boost > > Signed-off-by: Shawn Guo Reviewed-by: Bjorn Andersson Regards, Bjorn > --- > drivers/cpufreq/qcom-cpufreq-hw.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/drivers/cpufreq/qcom-cpufreq-hw.c b/drivers/cpufreq/qcom-cpufreq-hw.c > index 315ee987d2d3..6eb88463a24e 100644 > --- a/drivers/cpufreq/qcom-cpufreq-hw.c > +++ b/drivers/cpufreq/qcom-cpufreq-hw.c > @@ -351,6 +351,12 @@ static int qcom_cpufreq_hw_cpu_init(struct cpufreq_policy *policy) > > dev_pm_opp_of_register_em(cpu_dev, policy->cpus); > > + if (policy_has_boost_freq(policy)) { > + ret = cpufreq_enable_boost_support(); > + if (ret) > + dev_warn(cpu_dev, "failed to enable boost: %d\n", ret); > + } > + > return 0; > error: > devm_iounmap(dev, base); > -- > 2.17.1 >