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=-17.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham 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 1FCC4C433ED for ; Mon, 10 May 2021 12:14:34 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 C11EC613EE for ; Mon, 10 May 2021 12:14:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C11EC613EE Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+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=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:MIME-Version:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:References:In-Reply-To:Message-Id:Date:Subject:Cc:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=ya5Q1j6/Ki/bH3M8ngn+7+XwQB5/ENUZY6FAWyMCdy8=; b=JggSjKGWvYKk9f7vwxVRQEZZ3T j7j7PeWNFLIq77G5d0mHc0MjHt8dtY4E5YNLvAcGa1TyHMXXtCzRtmXBjf3cFNzpEz8qNyS93/r2V rQVpLdtBULr3gDvXKDMnVaB1QFGbrdXCXWA9/vzlPlbK7zgXYrPxGJrE4tsPG2oiDp4KQRpbUJe6h 0mSwIBu/7LvGTzChjQ3J/gc+nHLuPIRX4ZqM0AijhJQwsdl5bFyAVIFh3HMDA83T5Mzmwhakry1Tx uwWcwiUYUM0PVouEhAhIs+RAQphAdgIHiqw7BKBRyjJL3qJ6D2cvz4iFTO9vP9xUK0Uvdmihilwen OkOMW6Kg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lg4mc-00EDL7-SY; Mon, 10 May 2021 12:13:11 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lg4hy-00ECPS-Ua for linux-arm-kernel@desiato.infradead.org; Mon, 10 May 2021 12:08:23 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=References:In-Reply-To:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description; bh=AYveGEpY6E7DAEvAzetAJsqldLzAlDwfmI+o8pRd6sY=; b=HYwdviNfLg+WXZInyFp2bA8Q+L HmYr6Qv+C3UwkQDQYM8CqLO2eZnGUzQHgAgZ7R/Z680oCvvILdVPCUj6S+iPBnMi/K+Qdwr5djnhD X4JRQ13JQA+Z9WKOwNSBx/75ZMtMqra1KFPbwIDJLFimpN5nx99hLaYmShjjHznEY8JBpjWq3hmVx 9Obu+qJSn0BHSYeA9D1KmA7pi/Ekf4O8UvLHLd+JKDRwiYHhGTYuEEsY4mUcbqZICR3oRzyGwQzG1 5X16JKTcyOKlQpxJN3JRQSLsSooCVNVbDR+E8Xr95drf3Wx5mrqrtChAQkqiMDJW3QxXwMmHk8omm 2gz73E0Q==; Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lg4hw-008fhO-7N for linux-arm-kernel@lists.infradead.org; Mon, 10 May 2021 12:08: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 BC50B15BE; Mon, 10 May 2021 05:08:15 -0700 (PDT) Received: from localhost.localdomain (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 02F9B3F73B; Mon, 10 May 2021 05:08:14 -0700 (PDT) From: Andre Przywara To: Mark Rutland Cc: linux-arm-kernel@lists.infradead.org, Jaxson Han Subject: [aarch64 boot-wrapper PATCH 4/6] Fix arch counter frequency Date: Mon, 10 May 2021 13:07:24 +0100 Message-Id: <20210510120726.5242-5-andre.przywara@arm.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20210510120726.5242-1-andre.przywara@arm.com> References: <20210510120726.5242-1-andre.przywara@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210510_050820_331979_C468027A X-CRM114-Status: GOOD ( 10.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: , MIME-Version: 1.0 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 As the comment states, the frequency of the Generic Timer in the model is 24 MHz, and not the currently used 0x1800000, which is actually 25,165,824 (~5% higher). Use the proper number, and not something power-of-2 based. Signed-off-by: Andre Przywara --- Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index af694b7..b8c0a49 100644 --- a/Makefile.am +++ b/Makefile.am @@ -11,7 +11,7 @@ PHYS_OFFSET := $(shell perl -I $(top_srcdir) $(top_srcdir)/findmem.pl $(KERNEL_DTB)) UART_BASE := $(shell perl -I $(top_srcdir) $(top_srcdir)/findbase.pl $(KERNEL_DTB) 0 'arm,pl011') SYSREGS_BASE := $(shell perl -I $(top_srcdir) $(top_srcdir)/findbase.pl $(KERNEL_DTB) 0 'arm,vexpress-sysreg') -CNTFRQ := 0x01800000 # 24Mhz +CNTFRQ := 24000000 CPU_IDS := $(shell perl -I $(top_srcdir) $(top_srcdir)/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