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 6C779D2502F for ; Sun, 11 Jan 2026 10:38:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:MIME-Version: References:In-Reply-To:Subject:Cc:To:From:Message-ID:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Fdk75BjANLMGE6Ry86JHcn0CpohRJqA4JmuSMQdlu+o=; b=FWyNUarxJKdJ33SRoTaPnDHWdC 46e/TgtYZBQJr6rwTxbkuzfwafvWM4RYDZ0T0f9fkXZr6rkQBSbeu7ld//5QYth4dpiczMrbJn/r8 +iPPgyXpGa5FhSKLX2g+fUEFhFZZ/vhvZKaIdLbqPi63S2DzASLu5Iju0PsP24BV4McBXmXfwEvRf hRVYEJNCpHnQZUSVDfCaAlXkQaGCkCcsctl/5VkQo0asznGOp/QmEZaKqyphy4F1ylzxSImlTCJvy VxkV+gxjgxJH2ndmdvzYo/zNOBTfirAgff9BldJBIEBWG1cDuckEtg0mHI+PxbrBeyHikBsULokxz OOO9LTCQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vesqL-000000048NQ-0Ilm; Sun, 11 Jan 2026 10:38:45 +0000 Received: from sea.source.kernel.org ([2600:3c0a:e001:78e:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vesqI-000000048N0-2EwG for linux-arm-kernel@lists.infradead.org; Sun, 11 Jan 2026 10:38:43 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id 69EF1408CB; Sun, 11 Jan 2026 10:38:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 425E6C4CEF7; Sun, 11 Jan 2026 10:38:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1768127921; bh=7I4kxU/y7yloFCNkfGJ50mHLmQEVZqEXA/AJs91wt9s=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=qJfWGYjd+ZepmxK7UEPHv2i2vi4c7ObyN52kIRk9uUCxov7X1YtYwxGdg9Zw7tX5P EXUzn52p+KLdIAT3mmXrvWX5LOQJR870gJnOWdZ1vvmOzeuQfg0JVtz931J/IjlsA9 csvfX5wvrWKN3r0psLpyRMWyQNglTIA0KCjsA8Mm0cIxbJf1yzCCKq5fB2Eu3f5GCV YPepkJK4PAH+mVAt3r7m0YGL7syYjdRbf8/BTvcW4FRN4zxmfYVCUUWkeRUOncw1Ou RSGwpn3wZDxxu7fD45fi37+6gxwi7X8Qd2QMZkd2jIqQvAnSd2qw42yH2oFDzNwUY9 43Ykms3o4+F7Q== 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.98.2) (envelope-from ) id 1vesqE-00000001Awb-3nA4; Sun, 11 Jan 2026 10:38:39 +0000 Date: Sun, 11 Jan 2026 10:38:38 +0000 Message-ID: <86v7h8l9ht.wl-maz@kernel.org> From: Marc Zyngier To: Thomas Gleixner Cc: Waiman Long , Sebastian Andrzej Siewior , Clark Williams , Steven Rostedt , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rt-devel@lists.linux.dev Subject: Re: [PATCH] irqchip/gic-v3-its: Don't acquire rt_spin_lock in allocate_vpe_l1_table() In-Reply-To: <87ecnwij44.ffs@tglx> References: <20260107215353.75612-1-longman@redhat.com> <864iowmrx6.wl-maz@kernel.org> <87ms2nsqju.ffs@tglx> <86wm1qlq7l.wl-maz@kernel.org> <87ecnwij44.ffs@tglx> 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/30.1 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: tglx@kernel.org, longman@redhat.com, bigeasy@linutronix.de, clrkwllms@kernel.org, rostedt@goodmis.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rt-devel@lists.linux.dev 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-20260111_023842_611470_67A0E1CD X-CRM114-Status: GOOD ( 24.07 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Sun, 11 Jan 2026 09:39:07 +0000, Thomas Gleixner wrote: > > On Fri, Jan 09 2026 at 16:13, Marc Zyngier wrote: > > On Thu, 08 Jan 2026 22:11:33 +0000, > > Thomas Gleixner wrote: > >> At the point where a CPU is brought up, the topology should be known > >> already, which means this can be allocated on the control CPU _before_ > >> the new CPU comes up, no? > > > > No. Each CPU finds *itself* in the forest of redistributors, and from > > there tries to find whether it has some shared resource with a CPU > > that has booted before it. That's because firmware is absolutely awful > > and can't present a consistent view of the system. > > Groan.... > > > Anyway, I expect it could be solved by moving this part of the init to > > an ONLINE HP callback. > > Which needs to be before CPUHP_AP_IRQ_AFFINITY_ONLINE, but even that > might be to late because there are callbacks in the STARTING section, > i.e. timer, perf, which might rely on interrupts being accessible. Nah. This stuff is only for direct injection of vLPIs into guests, so as long as this is done before we can schedule a vcpu on this physical CPU, we're good. No physical interrupt is concerned with this code. > Also that patch seems to be incomplete because there is another > allocation further down in allocate_vpe_l1_table().... Yeah, I wondered why page allocation wasn't affected by this issue, but didn't try to find out. M. -- Without deviation from the norm, progress is not possible.