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=-2.3 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no 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 08323C433DF for ; Wed, 17 Jun 2020 12:48:07 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CEB5820DD4 for ; Wed, 17 Jun 2020 12:48:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="dcypsCrO" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CEB5820DD4 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=T4PyKSi4/Qk1m8wa4UtlROD3KFeO9V1YzpkZ0oKtwCU=; b=dcypsCrOlVGPcs RpNiizbBMiWtIQckCvdr4lk+gOczhgO2SkT5SKNdKzDcmZQ2joht7D/JP3T4ZPfLo8cHY2CSkqSd9 L3wRB6tE6jMLPt5/8dWrmPCxjzPdGuTavIzVufAXOSrNOMqPHUhOKShYK4SrI5bIfOU8hO87a4mqn Aq/fuyt27Yn/VVdVrSMN3DkuhyeGUX2QFXjsoKmQJekukKDpMsDEGiAae5q+DTPObUi3JBxy0/lVW wd8CGlc3ztmQJuqSAnEYG1iPV2Rt34fWoNZefmbCeshCbHOCWZBeK/Kqd/gwOSzYxVeSN5H8A+f25 f7z87jCvWGIx3GsVWiOQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jlXU5-00058y-Pf; Wed, 17 Jun 2020 12:48:05 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jlXU2-00058M-EI for linux-arm-kernel@lists.infradead.org; Wed, 17 Jun 2020 12:48:03 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 6E62E1042; Wed, 17 Jun 2020 05:48:01 -0700 (PDT) Received: from bogus (unknown [10.37.12.89]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C35E93F6CF; Wed, 17 Jun 2020 05:47:59 -0700 (PDT) Date: Wed, 17 Jun 2020 13:47:53 +0100 From: Sudeep Holla To: Nicola Mazzucato , viresh.kumar@linaro.org Subject: Re: [PATCH 2/2] cpufreq: arm_scmi: Set fast_switch_possible conditionally Message-ID: <20200617124753.GA15211@bogus> References: <20200617094332.8391-1-nicola.mazzucato@arm.com> <20200617094332.8391-2-nicola.mazzucato@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200617094332.8391-2-nicola.mazzucato@arm.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200617_054802_522196_6595653D X-CRM114-Status: GOOD ( 11.81 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-pm@vger.kernel.org, rjw@rjwysocki.net, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Sudeep Holla , lukasz.luba@arm.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Jun 17, 2020 at 10:43:32AM +0100, Nicola Mazzucato wrote: > Currently the fast_switch_possible flag is set unconditionally > to true. Based on this, schedutil does not create a > thread for frequency switching and would always use the > fast switch path. > However, if the platform does not support frequency > fast switch, this may cause the governor to attempt an > operation that is not supported by the platform. > > Fix this by correctly retrieve the fast_switch capability > from the driver which knows if the platform can support > this feature. > Hi Viresh, This is first step towards avoiding polling based cpufreq set if firmware has fast access registers that bypass normal mailbox based messaging. If you happy with this and provide ack, I will take this along with scmi changes via ARM SoC. Hope that is fine by you. -- Regards, Sudeep _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel