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 8B99DCD37B0 for ; Mon, 18 Sep 2023 11:11:46 +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:MIME-Version:References:In-Reply-To: Subject:Cc:To:From:Message-ID:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=NCPBATmdAnU0ytePwQV03dHneOIPoenJgNmdkX9yNy8=; b=em6gB7WLIPlnB5 xYk0uostaMRMXwqoj18pyqjbDkj/h3npWPQXlF381hEhrPk2uNnPigH6uEqfvHWVB6GDte0PRVlmN lo2M+ywbztWl7vk2OcHl5CWhheQaEsaJ1AlamFy7moNmf7RAui36dOD5OdJi0DVYu0P3gETtW0XL9 b2cpCnq+3pVa3pPtC2hSzgnMPpQnmUl8C3HZc+QGm6NEDYGrla6tMJnq2H59brMb+uil1WNYmgPV6 tzDbauyPfPXW0lD3bGX6bHUX0n+wF8WgNNbjvCcKsDKzIEH+mQJX/jZNZWncu/4LOwqDrmBq4ns/e J7/jqZh3AuHIMlonKWUQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qiC9y-00FIo0-0O; Mon, 18 Sep 2023 11:11:22 +0000 Received: from sin.source.kernel.org ([2604:1380:40e1:4800::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qiC9w-00FInc-0h for linux-arm-kernel@lists.infradead.org; Mon, 18 Sep 2023 11:11:21 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 87B56CE0B99; Mon, 18 Sep 2023 11:11:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D73AFC433CA; Mon, 18 Sep 2023 11:11:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695035476; bh=5hQycVA7KMCN6afk7MZOTflIs9jB3IHBfyU/PBD3Vw0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Cc5MVugx0gvApBnA/scg/hfHFLuLp3xtqfYxYW+4kY+za3Qasgre07vYRUajVKRBW +2UYLsLykm4ailOjA7eH9aPoZmmc6qqh96JKeDRm6n4vYhvDI1zELSEoPYLxgURk03 uSidZ2g24EokoYpS6jy0/Se21EAvOha9OA3Sv9xo44aqHVpxW7xvhdveF8UYIN4EMm 8bLLrqj5G7pegks4yanq1yn1VR3WKeTBsLNTct81OdGitOKi8wi4NT/BwPeFNut1mF JTNrtb7mSgUaLVPmODwGXCI/QgBg10uP1vaz4KfutCKNpOHJz05278c5Xv6FeNxutE WhlG4UQxceUPw== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1qiC9q-00Dw73-IM; Mon, 18 Sep 2023 12:11:14 +0100 Date: Mon, 18 Sep 2023 12:11:14 +0100 Message-ID: <864jjrenxp.wl-maz@kernel.org> From: Marc Zyngier To: Mark Rutland Cc: linux-arm-kernel@lists.infradead.org, daniel.lezcano@linaro.org, linux-kernel@vger.kernel.org, tglx@linutronix.de Subject: Re: [PATCH] clocksource/drivers/arm_arch_timer: Initialize evtstrm after finalizing cpucaps In-Reply-To: <20230907133410.3817800-1-mark.rutland@arm.com> References: <20230907133410.3817800-1-mark.rutland@arm.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/28.2 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: mark.rutland@arm.com, linux-arm-kernel@lists.infradead.org, daniel.lezcano@linaro.org, linux-kernel@vger.kernel.org, tglx@linutronix.de X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230918_041120_427667_FEFCC10D X-CRM114-Status: GOOD ( 20.42 ) 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, 07 Sep 2023 14:34:10 +0100, Mark Rutland wrote: > > We attempt to initialize each CPU's arch_timer event stream in > arch_timer_evtstrm_enable(), which we call from the > arch_timer_starting_cpu() cpu hotplug callback which is registered early > in boot. As this is registered before we initialize the system cpucaps, > the test for ARM64_HAS_ECV will always be false for CPUs present at boot > time, and will only be taken into account for CPUs onlined late > (including those which are hotplugged out and in again). > > Due to this, CPUs present and boot time may not use the intended divider > and scale factor to generate the event stream, and may differ from other > CPUs. > > Correct this by only initializing the event stream after cpucaps have been > finalized, registering a separate CPU hotplug callback for the event stream > configuration. Since the caps must be finalized by this point, use > spus_have_final_cap() to verify this. > > Signed-off-by: Mark Rutland > Cc: Daniel Lezcano > Cc: Marc Zyngier > Cc: Thomas Gleixner Acked-by: Marc Zyngier M. -- Without deviation from the norm, progress is not possible. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel