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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 4F0CDC54EAA for ; Mon, 30 Jan 2023 17:13:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc: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=xq14TWWQSf+yqKWwzbkVJVqN/GGhNm6PxhRJ9gToFeQ=; b=ehgWYMH2dBkcnN 4Dir78nH2RdSIjtHciFHK32gSbUstOL0DtS1k/+HELr0mWi3Sc+v+SRp0XC14PMg9CpvErVaQDGk/ 0sZ3b8859VfZr81/JXDOFIteBRF1kBH74HareU7L64hCI0FBeWpbwevSvur0Hx4iPxpykviIZB7Sg b642S8JoUqlxWNTU/zu0POYT5NhUeV9zIUsXlz+oSlI1nJf65WeS3F5VQ64cLnUxApRgR+xIUbSAb DeZXn0fQ8f2PZ+0xtLY4VKJbYn5SYglsrX4Mrw9/OOQ+JKzwEVSkh4JqL/6KzMtcrJTdeiKqU2aUa XIl1q2vPy5tCPO199mjA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pMXgN-004QB4-VI; Mon, 30 Jan 2023 17:11:04 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pMXbO-004Nc1-Mj for linux-arm-kernel@lists.infradead.org; Mon, 30 Jan 2023 17:05:56 +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 E9AA1175A; Mon, 30 Jan 2023 06:39:45 -0800 (PST) Received: from FVFF77S0Q05N (unknown [10.57.11.245]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id A4ADF3F882; Mon, 30 Jan 2023 06:39:02 -0800 (PST) Date: Mon, 30 Jan 2023 14:38:59 +0000 From: Mark Rutland To: Peter Hoyes Cc: linux-arm-kernel@lists.infradead.org, andre.przywara@arm.com, diego.sueiro@arm.com, jaxson.han@arm.com, vladimir.murzin@arm.com, robbie.cao@arm.com Subject: Re: [boot-wrapper PATCH] Makefile: Change COUNTER_FREQ to 100 MHz Message-ID: References: <20220215115418.678223-1-peter.hoyes@arm.com> <9dd03939-ffbd-9b2d-055a-c3d70b0ff439@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <9dd03939-ffbd-9b2d-055a-c3d70b0ff439@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230130_090554_809575_82AA8E72 X-CRM114-Status: GOOD ( 25.54 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Peter, On Tue, Mar 01, 2022 at 11:18:54AM +0000, Peter Hoyes wrote: > On 15/02/2022 12:29, Mark Rutland wrote: > > On Tue, Feb 15, 2022 at 11:54:18AM +0000, Peter Hoyes wrote: > > > From: Peter Hoyes > > > > > > Older Arm Fast Models (AEM < RevC) had a base frequency of 24 MHz. but > > > the RevC base models use 100 MHz. There is not a robust method of > > > determining the configured base frequency at runtime, so update > > > COUNTER_FREQ to be 100 MHz. > > This looks right to me; if no-one shouts in the next day or two I'll apply > > this. > > > > In future, if we need this to be configurable, I reckon we can either add a > > specific option for this or a more general "platform" option which can also > > know about other things which aren't in the DTB. > > > > Thanks, > > Mark. > > I don't think there have been any further comments - would it be possible to > apply this? Apologies for the extremely long delay; I've applied this and pushed it out now. Thanks, Mark. > Peter > > > > Signed-off-by: Peter Hoyes > > > --- > > > Makefile.am | 2 +- > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > diff --git a/Makefile.am b/Makefile.am > > > index 08e304a..6ebece2 100644 > > > --- a/Makefile.am > > > +++ b/Makefile.am > > > @@ -13,7 +13,7 @@ SCRIPT_DIR := $(top_srcdir)/scripts > > > PHYS_OFFSET := $(shell perl -I $(SCRIPT_DIR) $(SCRIPT_DIR)/findmem.pl $(KERNEL_DTB)) > > > UART_BASE := $(shell perl -I $(SCRIPT_DIR) $(SCRIPT_DIR)/findbase.pl $(KERNEL_DTB) 0 'arm,pl011') > > > SYSREGS_BASE := $(shell perl -I $(SCRIPT_DIR) $(SCRIPT_DIR)/findbase.pl $(KERNEL_DTB) 0 'arm,vexpress-sysreg' 2> /dev/null) > > > -COUNTER_FREQ := 24000000 > > > +COUNTER_FREQ := 100000000 > > > CPU_IDS := $(shell perl -I $(SCRIPT_DIR) $(SCRIPT_DIR)/findcpuids.pl $(KERNEL_DTB)) > > > NR_CPUS := $(shell echo $(CPU_IDS) | tr ',' ' ' | wc -w) > > > -- > > > 2.25.1 > > > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel