Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp685538rdg; Wed, 11 Oct 2023 02:36:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHaczvVlTI6qciBSsTV/sHqz0I544/Cg+q+yQCRiUI00LiyoKKcJBcGg85wTn6lKd2E0mN2 X-Received: by 2002:a17:902:9a8e:b0:1c5:d063:b70e with SMTP id w14-20020a1709029a8e00b001c5d063b70emr16026793plp.53.1697017017218; Wed, 11 Oct 2023 02:36:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697017017; cv=none; d=google.com; s=arc-20160816; b=aBuGKvn0Cn1LN0x14M4nLnPhrQvEktDcg3yIQKL4nfTpSYlnpUa/0VdiSbILDhQQY7 i8x+5/eo77sHAlLHEAETe89tc//UWyX9Bs0cuDpdAN2abWnqhw6PdTkgXywvJzndoEHd ycTTKhodi2mrMG28jMIW8oBPCmlD/lhjiz1uxiLR//vvQR+2MJ3camfvZO5wU6sFiZUD mf6aourx2X/5UOegrC+SMtCsjTNl1g1H0fFzazDNqni67d2ceh+7rHlBoD2GwBeKjG8X HrTah+svP/rncxwVeBmyM5CPP8MFSAO9gT/v1FY5clCCecurh+hYQ7vrcciSw5M/NzVt zJhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=q1RrtDj23o8krxeYIisbFYMp1X4BEzW8V+L+ohDr7yU=; fh=5vA8n6tDhmXVSwACu6frl31dGc16grc5UC7Yv4W+Yog=; b=nS9LoET+aXZTk4zxvEAjM3yBex29IITbU57G2We6xv/4+G+0LvwfvffqMYIm5xWTp6 /YiGMArN7zV+WJAGHJn7O6qpIyFA6Zul2Tlq+rGBUVxqriRy7mqwNzkUSUfZ8UQ/Hxjt M04y7Q1KU4YYt2pErKna6139ddLqKZzVREoFEH4PNoWaDBLrvjIEeWZZNr7wDdFtGEes fh+Kl1pexWisAr8crKJf5ABFZoYkum1qaQ6Bwzeua9HoSKmS6qeua73unkwHfrVyshLw hx4LokI+N229CX2r9dODrMoNz7rz3Tm+o9PyHtfLjUiW/Kn+Fn24OZhRLyJrEvxCM35m VI0g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id v14-20020a170903238e00b001c60f6cf46bsi12194176plh.12.2023.10.11.02.36.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 02:36:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 3C309802158B; Wed, 11 Oct 2023 02:36:54 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231305AbjJKJgn (ORCPT + 99 others); Wed, 11 Oct 2023 05:36:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231221AbjJKJgk (ORCPT ); Wed, 11 Oct 2023 05:36:40 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 369FD91 for ; Wed, 11 Oct 2023 02:36:38 -0700 (PDT) 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 B2A13106F; Wed, 11 Oct 2023 02:37:18 -0700 (PDT) Received: from FVFF77S0Q05N (unknown [10.57.93.218]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 001133F762; Wed, 11 Oct 2023 02:36:36 -0700 (PDT) Date: Wed, 11 Oct 2023 10:36:34 +0100 From: Mark Rutland To: Daniel Lezcano Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, maz@kernel.org, tglx@linutronix.de Subject: Re: [PATCH] clocksource/drivers/arm_arch_timer: Initialize evtstrm after finalizing cpucaps Message-ID: References: <20230907133410.3817800-1-mark.rutland@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=2.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 11 Oct 2023 02:36:54 -0700 (PDT) X-Spam-Level: ** Hi Daniel, On Wed, Oct 11, 2023 at 10:30:39AM +0200, Daniel Lezcano wrote: > On 07/09/2023 15:34, 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 > > --- > > Applied thanks This got folded into a larger series that we were hoping to take through the arm64 tree: https://lore.kernel.org/linux-arm-kernel/20231010103139.3113421-1-mark.rutland@arm.com/ https://lore.kernel.org/linux-arm-kernel/20231010103139.3113421-2-mark.rutland@arm.com/ I think that won't conflict, since all that's changed is the commit text, but it might be worth dropping this patch for now to avoid the risk of a conflict. Thanks, Mark.