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 70E48C433F5 for ; Tue, 15 Feb 2022 12:30:44 +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=rS0VJC4f42bS/xhQ8obK0NcKPNx+VpD6v6hN+8VMJRI=; b=2Qe0iPMR6cpC5i b7x/rmN9kJczlBkGcBG8ZqhfhsZ9mMOGhGzhlt2sQkehoVX7NrFMdjmZnuKJwnV/ArpZgRqdGF6Nm V6Rj4UOFaxR4FZAO31L1Ohr3f5nksr9DVaRtGy9W3wAI4kBZdPRpi9WEP2PgANIkNA+rj/xoZ4Gbq RzwPJkAttHxbQcX1mwHEWdVWczjRcRbXyeKafvojTDvYhc9kllaLGd6K0O0Cv/cntzRT9MSNdT+oh 0LhaLEl1946YA/qtz7qAVjvQzm7xqBGiMXNRu0UI0eRs1UA/sSWhIxc7qdHiu4VpB3aMxPyERnM9j 82hGNkneUiEFXTCCINhQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nJwxQ-002gDl-4G; Tue, 15 Feb 2022 12:29:24 +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 1nJwxM-002gDR-Sc for linux-arm-kernel@lists.infradead.org; Tue, 15 Feb 2022 12:29:22 +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 988E61FB; Tue, 15 Feb 2022 04:29:18 -0800 (PST) Received: from FVFF77S0Q05N (unknown [10.57.89.173]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 86CFD3F718; Tue, 15 Feb 2022 04:29:17 -0800 (PST) Date: Tue, 15 Feb 2022 12:29:08 +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 Subject: Re: [boot-wrapper PATCH] Makefile: Change COUNTER_FREQ to 100 MHz Message-ID: References: <20220215115418.678223-1-peter.hoyes@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220215115418.678223-1-peter.hoyes@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220215_042920_996659_8AFBCB30 X-CRM114-Status: GOOD ( 17.43 ) 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 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. > > 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