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.2 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,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 63014C3B189 for ; Thu, 13 Feb 2020 15:22:23 +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 3498924699 for ; Thu, 13 Feb 2020 15:22:23 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="NRiRD5g5" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3498924699 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:Date: Message-ID:From:References:To:Subject:Reply-To:Content-ID:Content-Description :Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=VQmRrCM0o58/Q8jcKliOjOcGA0HgJfMyTsryCz7Fr5k=; b=NRiRD5g5X375RP knYOuN1xJZN7Zgr4B9rJQZyWtGswJif8SQxvy2BhVNlcdvtL9j1NwtQJtxBB8Kt3NGmUgtf5eWBxe KZpAjiMHkH7qdBtSfeh3CGKkj5fjkDJ0WiWCG1RYzWmGp+yLokkHZXsL5xIwPcEZdZVeoC6Evm0wU xUIiWJGdI94wDcoOJKKW0fJai3Bw0MFy80WiEcmzriccjn8yR1QMxCjashRosHxmfGxnLzIDFWWXa Ft6RhPJwBZ/HHcxPzQtBuPN072NGjzVZd8NLcdjVTtAsSZ5g/IpIDEFY+tVUVmr1ggXXOLC2nV+Ti PmFqMdfaX+sivzIsFhvQ==; 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 1j2GJq-0002cs-M6; Thu, 13 Feb 2020 15:22:22 +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 1j2GJn-0002bO-Qt for linux-arm-kernel@lists.infradead.org; Thu, 13 Feb 2020 15:22:21 +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 663CD328; Thu, 13 Feb 2020 07:22:14 -0800 (PST) Received: from [10.1.195.59] (ifrit.cambridge.arm.com [10.1.195.59]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 5FE623F68E; Thu, 13 Feb 2020 07:22:12 -0800 (PST) Subject: Re: [PATCH v3 5/7] cpufreq: add function to get the hardware max frequency To: Ionela Voinescu References: <20200211184542.29585-1-ionela.voinescu@arm.com> <20200211184542.29585-6-ionela.voinescu@arm.com> <20200213125918.GA2397@arm.com> From: Valentin Schneider Message-ID: Date: Thu, 13 Feb 2020 15:22:11 +0000 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <20200213125918.GA2397@arm.com> Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200213_072219_914214_A314D964 X-CRM114-Status: GOOD ( 11.47 ) 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: mark.rutland@arm.com, maz@kernel.org, suzuki.poulose@arm.com, peterz@infradead.org, catalin.marinas@arm.com, linux-pm@vger.kernel.org, linux-doc@vger.kernel.org, rjw@rjwysocki.net, linux-kernel@vger.kernel.org, mingo@redhat.com, viresh.kumar@linaro.org, linux-arm-kernel@lists.infradead.org, sudeep.holla@arm.com, will@kernel.org, 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 2/13/20 12:59 PM, Ionela Voinescu wrote: >> What about intel_pstate / turbo stuff? IIRC one of Giovanni's issues was that >> turbo freq is not always reported as the max freq. Dunno if we can do >> anything about it; at the very least maybe document the caveat? >> > > Okay, I can add details in the description in regards to potential > reasons to overwrite this function. But basically this is one of the > reasons for making this a weak function. The best information we can > generically get for maximum hardware frequency is cpuinfo.max_freq. > But if platforms have the possibility to obtain this differently from > either hardware or firmware they can overwrite this. > Right, that would be handled by a different implementation of that function, so this wasn't too relevant of a comment. Sorry! _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel