Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp699629rdg; Wed, 11 Oct 2023 03:07:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFpfUKBVQeZko3WA69A9sGIaEpfLnIOQtYCR1IWEYdCGJadnM5xF+lXR6JSufeMfdZ4/Vc4 X-Received: by 2002:a17:903:4284:b0:1ab:11c8:777a with SMTP id ju4-20020a170903428400b001ab11c8777amr20611545plb.13.1697018852345; Wed, 11 Oct 2023 03:07:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697018852; cv=none; d=google.com; s=arc-20160816; b=KzK9d8sBVdCpTCufKeHdMS//1Z6WgMVQDJEQMmcLdtMU4r8ccLCu200zwXCgKEwTWy LkErPM5l6nRA4Wk6Rt4EJ5quEJwMwz8I+83/XZyNzrEFNbZkevyDuXUjDcMrFiT8+qv1 3rEyXFChHpurdUn7IGjBUD/pyFLLrYwF3o1jgzEgRl0mp7b2zrdMc/rWm9iIvrrH3j2F gPP/2+RFL696NEXmIph32XqdK957PnHBt+SiQUeLFEB4le16WPT1C8U3ah5sLUcWr8H3 pDlgdqpVbeoOZMXvQsvhoiXm5MxKPox+TZ22jV74eId+2eBVFan1xOjG3Qp+crRvdg7T vRmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Bcu8SH2nyw79dGr/lHHTOch/RopwLLp/av5OXKcyU8g=; fh=mvaMLh/GEJhrGyqq+Mgoz9AlMeBHCOEC3wajxxyKy08=; b=DjP3ykrGx3ale0RCuCIkzb3IvF+2GgzfUtldXMDRqWyd7fjRULtVN4EkgEf9ej74KL SXHvrhjRtPXd3mbgrVHy0aKp/50F9YKo+gdCgDDE7xF0NDuWAwEGOPeexuExwIkSMBz/ 7wdapqg60XDmbFPHc4Eg6Pa/mcW9ZuL1KY5oX2Bp/Ek65So9qEz9JbXQkKitgQw7qRbJ 6rpDZNFHMvtU5FDbJi/Ie85aKYVhazYX69hhZxn+Up5QlU5JCdsTkFm6O7Kq0grnHHFb aNg6djhmFPTLGtqb5Kc3ieBjCdXq5c/yFhKeFJTVsA335Gr4F62HuNQccowsUQ5wj+HC fmPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=i3iy7kfu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id u7-20020a170903124700b001b8b4330585si15154528plh.510.2023.10.11.03.07.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 03:07:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=i3iy7kfu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id E1032806311C; Wed, 11 Oct 2023 03:06:52 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234410AbjJKKGb (ORCPT + 99 others); Wed, 11 Oct 2023 06:06:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234253AbjJKKG1 (ORCPT ); Wed, 11 Oct 2023 06:06:27 -0400 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8E2FDB for ; Wed, 11 Oct 2023 03:06:23 -0700 (PDT) Received: by mail-wr1-x431.google.com with SMTP id ffacd0b85a97d-32c9f2ce71aso1473716f8f.1 for ; Wed, 11 Oct 2023 03:06:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697018781; x=1697623581; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Bcu8SH2nyw79dGr/lHHTOch/RopwLLp/av5OXKcyU8g=; b=i3iy7kfubYPSObP3K78GPcM2whq/r6YPezjDkKtPlfjWxlEzJYfDql47mhY9EF1DvR KqQQLjVvNOco2oaEmt5z/Af+Ef/w4Km/ur5vfaG2vluWTjlnIP/f/Q8gPZPE2Y4ZLozv JHf9ukrT7r8oCE0kxQVWPx4xohoRvSJ1tL65F5k5tkORy7tMNzn+a84QFxGLszFopt1Q BzWkjMYyel8QNHagH05ByIIkcU+s45XfW7umnj9enMbAtCyTj8OdX6G3KFuTl/QrSqeC i1LUII07ay0Fgq9cMw4rwZuEcoE0GG4BOXg92oFutjTcJcBDof4VuvjgAaZSLtEUeuqh w9Fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697018781; x=1697623581; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Bcu8SH2nyw79dGr/lHHTOch/RopwLLp/av5OXKcyU8g=; b=QgZSGee4e/i4XEjH4DRwT+fekzL6FJhDY2c/o9tajJCmR6j46laRbgcAsPO7rV3+Lm mvdkYrVDT+VrZVLxByStvNQdrIb1fK2KgrD1t8QrBjSbSoF9EGVOvIe8uMMYF6nHVLeD +gCd5qET5/aMUiLYRVnyPydjWcgGbuNqKQfWLcXf1zeMuAHQgXM1P5gfIHUWdX6s4Gs+ PtNN8B+Gaxr1XCx0mZrIBq9h3rzixHyHASGWidnnoeMF4Sdxhdd40iWbHRM7A8usEgCu fmTAvyKm/ALsdA0KDloi0n7rG5R1PRZYRRr3bpEInw9ITLX8vzd5sDbR4cIT6pfFEK9F 8hcQ== X-Gm-Message-State: AOJu0YzWIP7K9nRgIKTtn9QMxTYVoki++aqWE2f1qpB+sU4JPTCmDkkk no+Rw7A/fpQiwiwNFhNumYI0zw== X-Received: by 2002:a05:6000:109:b0:320:1c6:628c with SMTP id o9-20020a056000010900b0032001c6628cmr18980219wrx.65.1697018781585; Wed, 11 Oct 2023 03:06:21 -0700 (PDT) Received: from ?IPV6:2a05:6e02:1041:c10:de95:eca9:6b1e:b330? ([2a05:6e02:1041:c10:de95:eca9:6b1e:b330]) by smtp.googlemail.com with ESMTPSA id e14-20020adffd0e000000b00315af025098sm15162004wrr.46.2023.10.11.03.06.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 11 Oct 2023 03:06:21 -0700 (PDT) Message-ID: <500f7f18-65cf-4182-a174-5f0081456b3b@linaro.org> Date: Wed, 11 Oct 2023 12:06:20 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] clocksource/drivers/arm_arch_timer: Initialize evtstrm after finalizing cpucaps Content-Language: en-US To: Mark Rutland Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, maz@kernel.org, tglx@linutronix.de References: <20230907133410.3817800-1-mark.rutland@arm.com> From: Daniel Lezcano In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.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 (pete.vger.email [0.0.0.0]); Wed, 11 Oct 2023 03:06:53 -0700 (PDT) X-Spam-Level: ** On 11/10/2023 11:36, Mark Rutland wrote: > 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. Sure, thanks for letting me know. I was suspecting that was the case :) I've dropped it -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog