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 0DEBEC433EF for ; Wed, 16 Mar 2022 04:58:36 +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=hxth12AYVEG0mzwoIeSBeK61eYeEQYIA989ZHuWPRYM=; b=JMBSkPkJmDpYwY bHfyQ71Cmp6Xcy6qFsart5XHJi0H4cOltAAF6rByltBCcX34iWxjIwS38cfR3dncZmVPgiMx8M8n8 n7d17+qBXFS7f5yP1awEnGtJcSTWGmxwvwV8iPHE2v9DvWfWjDnqoquYYEOz44mgMEBa++DDIiLEe f6eWoISWiixXGZ+jtE01RIwYlaj1DIqbIbgrrzgb0rdHEIIra83BD8CpCV8Vjrg1BIrLo1bOV0TnG 3wcBiTpHq3ycAPG8uukxmNdifez2HAoZQrQTX7Ow/DQ2fRNkq3hzpr/0waJkNPPKaEX8wV4gbLTUe 899qMG47EqI1xFMlEXtQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nULiO-00BQeT-55; Wed, 16 Mar 2022 04:56:52 +0000 Received: from mail-il1-x12d.google.com ([2607:f8b0:4864:20::12d]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nULiI-00BQe5-3X for linux-arm-kernel@lists.infradead.org; Wed, 16 Mar 2022 04:56:50 +0000 Received: by mail-il1-x12d.google.com with SMTP id h21so853060ila.7 for ; Tue, 15 Mar 2022 21:56:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=ztJ1Lk8LLTXSLzArqNh2AE6+F/3ZvtE7ldIsz+m5/Qs=; b=scCHJVN7OvLDuMEOJBk9E2+Wiaxj69CLT7MY8igNeOwMwVVipXpUfs0UvqUsIoSard 0y8OI4QKEdCVNSKPGfnA1dkY1zIcOcIsqZ6xS31LaG8uLwWrO+UYQf9/NYdj/qn9takX P7X59MIacjHCdlez/Lhnt+hfVCTWbNxNlBGOmNCmo7yrrQ+q0h26zK1R1Oip4jFADKvB D8lB4EPnaDdwz0YIUBDpCGFb4s/1GmLyfvo4ydpbqWn6KD1TRmVKJL9hP8JCE5zeFf+X Lz6/U+6ROG22pgcVotEmrLVwjT2lfzbLpNLX7aAdrXzttMBTF+/6motqniY5Iu+nnsak aeNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=ztJ1Lk8LLTXSLzArqNh2AE6+F/3ZvtE7ldIsz+m5/Qs=; b=IQZzXqqGeaB0VkucMGeb1ZB/XtY4OlFzAS4bb9qG1Y+8CiJv2H2R0AwqTQM0rPOOkT gkWxhkr1l3hJaUydoeqVwnj0DrJcYSSrEmM+4LYGSF3bRjnvpST5qNrq/F46meXcCbXW RHnqAA5R+k6ZvSLnW2VxZfzo2aCH5GF41mFYwRXkdDjOTMfCAN2WAoxUyuyWldMPjFyz WxLh6v4U6lPN9S8DKq4U+vqa4B7Ed876KF9EvG2ovZJOkVk/DGWULuXBtF0Fvy8cs243 XQ4TI8jYEeGGNo7OlbHvk9z0jMlm1bPJ2xrgS6u7wVAK4qQ5ssU5zrxcKLNL3F/J//2l gHXw== X-Gm-Message-State: AOAM530FjeZDBKh424ohSN6Rx0t6piV2Or7JLFHyg5YsbKEp2XbyVyUH jPPC/zbJB2ldSnM5EOByweO6lUvXq+avyw== X-Google-Smtp-Source: ABdhPJw8sIM44m7MfgApubg/Z63nTVkNpN1kFDeiRtMpCBkCR9NUscfJfTtfPluscjfO81eEsSBeKQ== X-Received: by 2002:a05:6e02:12e6:b0:2c7:a2a9:77c7 with SMTP id l6-20020a056e0212e600b002c7a2a977c7mr7843979iln.164.1647406604617; Tue, 15 Mar 2022 21:56:44 -0700 (PDT) Received: from google.com (194.225.68.34.bc.googleusercontent.com. [34.68.225.194]) by smtp.gmail.com with ESMTPSA id n5-20020a056e02148500b002c7aa9c389csm650798ilk.32.2022.03.15.21.56.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Mar 2022 21:56:43 -0700 (PDT) Date: Wed, 16 Mar 2022 04:56:40 +0000 From: Oliver Upton To: linux-arm-kernel@lists.infradead.org Cc: Marc Zyngier , Mark Rutland , Ricardo Koller , Reiji Watanabe Subject: Re: [boot-wrapper PATCH] configure: Allow user to specify the counter frequency Message-ID: References: <20220224044947.980030-1-oupton@google.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220224044947.980030-1-oupton@google.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220315_215646_178855_8AD278AC X-CRM114-Status: GOOD ( 19.37 ) 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 Thu, Feb 24, 2022 at 04:49:47AM +0000, Oliver Upton wrote: > The default counter frequency on certain models is not actually 24MHz. > For example, on the FVP Base RevC model, the default counter frequency > is 100MHz, and is user configurable. Users testing against an ARMv8.6 > counter (1GHz) also need to override the default value. > > Add an optional configuration option which allows users to specify the > counter frequency. > > Signed-off-by: Oliver Upton > --- > Makefile.am | 1 - > configure.ac | 8 ++++++++ > 2 files changed, 8 insertions(+), 1 deletion(-) > > diff --git a/Makefile.am b/Makefile.am > index 08e304a..c71c601 100644 > --- a/Makefile.am > +++ b/Makefile.am > @@ -13,7 +13,6 @@ 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 > > CPU_IDS := $(shell perl -I $(SCRIPT_DIR) $(SCRIPT_DIR)/findcpuids.pl $(KERNEL_DTB)) > NR_CPUS := $(shell echo $(CPU_IDS) | tr ',' ' ' | wc -w) > diff --git a/configure.ac b/configure.ac > index 9e3b722..e7d086a 100644 > --- a/configure.ac > +++ b/configure.ac > @@ -118,6 +118,13 @@ AC_ARG_ENABLE([gicv3], > AM_CONDITIONAL([GICV3], [test "x$USE_GICV3" = "xyes"]) > AS_IF([test "x$USE_GICV3" = "xyes"], [], [USE_GICV3=no]) > > +# Allow a user to set the exposed counter frequency > +C_COUNTER_FREQ=24000000 > +AC_ARG_WITH([counter-frequency], > + AS_HELP_STRING([--with-counter-frequency], [set counter frequency (in Hz)]), > + [C_COUNTER_FREQ=$withval]) > +AC_SUBST([COUNTER_FREQ], [$C_COUNTER_FREQ]) > + > # Ensure that we have all the needed programs > AC_PROG_CC > AC_PROG_CPP > @@ -151,4 +158,5 @@ echo " Xen image ${XEN_IMAGE:-NONE}" > if test "x${XEN_IMAGE}" != "x"; then > echo " Xen command line: ${XEN_CMDLINE}" > fi > +echo " Counter frequency (Hz) ${COUNTER_FREQ}" > echo "" > -- > 2.35.1.473.g83b2b277ed-goog > Friendly ping :) _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel