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 B7C30C433EF for ; Tue, 1 Mar 2022 11:21:13 +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-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=kix6KcfBcMiRylz9My6yokabK+ujeZxwU0ISl+NW93M=; b=LJU9+jOuQMclHR i+Idazlwht9rrxRvmlY54x06XJC7Mx+3SP6/sIg752X7efT+reHcX9/d75R/kdIdyYBYVgY2tvdDN yLj0Ylh3n9PG3v2aztAJX6YNFJpKj3efJ3iEk9sw7w9ArQcbd8cb75pxFBs03tCOya3rVideHtdwa SZgIDfhzKUz0+gZMnfoBA3zwLR3pOHPrcl2XO0lz+TrEhkKfBpdtHf/hJoiojcfasIN0YBNmkeUH0 5sgwkbjg42LYt/3j/BdiNl5bHlxr7uEG5NTTeUOrnwjHmcJFjST+nJdVISDM91GwQjupkiC5NEj+x CCMONT/xLEpBtSmKNfbw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nP0Xm-00GORf-K4; Tue, 01 Mar 2022 11:19:51 +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 1nP0X5-00GOCK-GE for linux-arm-kernel@lists.infradead.org; Tue, 01 Mar 2022 11:19:10 +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 84665ED1; Tue, 1 Mar 2022 03:19:03 -0800 (PST) Received: from [10.57.90.29] (unknown [10.57.90.29]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 5B83B3F73D; Tue, 1 Mar 2022 03:19:02 -0800 (PST) Message-ID: <9dd03939-ffbd-9b2d-055a-c3d70b0ff439@arm.com> Date: Tue, 1 Mar 2022 11:18:54 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [boot-wrapper PATCH] Makefile: Change COUNTER_FREQ to 100 MHz Content-Language: en-US To: Mark Rutland 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 References: <20220215115418.678223-1-peter.hoyes@arm.com> From: Peter Hoyes In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220301_031907_673099_A3F24948 X-CRM114-Status: GOOD ( 18.58 ) 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-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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? 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