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 C639CC433EF for ; Thu, 24 Feb 2022 19:07:40 +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=Ux5AN5hYMlUbWHG5DlmEXP9FpYEN7D55DrwrzFJ6bCo=; b=gJxrt0r92x94wO +MdHHr7/8BoU9BMpUa4bJo4Ys0Ww7vkcm83mQWKXzicfjnuB2hnVoG1kNJMm5SxCC/0E1O/hlkKVd 2UPKRzr3qhx/DbtGKq+088TW5oJlTbIb/Xk9jzonTDOu62TOoCSMeQN2BUFncZsdlMpTIvVV119Do ZSlOKKnKuS53mmr+QoEnG7ujnYxr9BCHrbAAxzVNuWVa18TjMmGDqHCJtHA5/AHaSYDbCYUgkEGzt eSCTFKfbvzKKkNfg9DbXHDEGOyi6Ic72PUM1H1M9JEFZcg04ElBjf9+HTTrVpmCu8V79DJh/9N1yw QttK+nOZcHHBiZo2oiQg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nNJRW-0025OZ-G7; Thu, 24 Feb 2022 19:06:22 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nNJRT-0025NN-0s for linux-arm-kernel@lists.infradead.org; Thu, 24 Feb 2022 19:06:20 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 44173B828C7; Thu, 24 Feb 2022 19:06:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 44A61C340E9; Thu, 24 Feb 2022 19:06:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1645729575; bh=yWJ6YhGeyBeU7o/OwUS2Ro51OSyUNTGPsg4tn9Bj88c=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=b1gEUz7fGCIASjUA1yupDQvuOv+j23rOHl306CBdNVhYBa7t6JkjiYjMbHaD0wCAC 0LtfOBAZhRlNs3YGjFXwhRdRn051qE/olNc5jVCvDQysKDVRPSHfjlDNXHpLQPk6Vg jDir6M0vwnndwwEf6gzd4/06GLjaVCQ8jWE8WH7YZ3aYLDzHpcdL3dd6ay6dY86qSv KWgcdLf6BOKifggs0EW/7H54kZZoWRSAvj2R8dCYNabBfz2cgxrhOuNWUSaMjLwWzP 3yy0J69znc9HqNU7ugUg3vYxDbzQHeRtLCy9Km05wWTiEyI0sRcQ7FuhOqEeI8DK/S Jz0813X8Jh1uw== Received: from sofa.misterjones.org ([185.219.108.64] helo=why.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nNJRN-00AHfN-33; Thu, 24 Feb 2022 19:06:13 +0000 Date: Thu, 24 Feb 2022 19:06:12 +0000 Message-ID: <87r17s2ifv.wl-maz@kernel.org> From: Marc Zyngier To: Hector Martin , Mark Rutland Cc: Thomas Gleixner , Rob Herring , Sven Peter , Alyssa Rosenzweig , Mark Kettenis , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH v2 0/7] irqchip/apple-aic: Add support for AICv2 In-Reply-To: References: <20220224130741.63924-1-marcan@marcan.st> 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/27.1 (x86_64-pc-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: marcan@marcan.st, mark.rutland@arm.com, tglx@linutronix.de, robh+dt@kernel.org, sven@svenpeter.dev, alyssa@rosenzweig.io, mark.kettenis@xs4all.nl, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org 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-20220224_110619_392077_ACCC32D3 X-CRM114-Status: GOOD ( 28.60 ) 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, 24 Feb 2022 18:26:41 +0000, Mark Rutland wrote: > > On Thu, Feb 24, 2022 at 10:07:34PM +0900, Hector Martin wrote: > > Hi folks, > > Hi Hector, > > > In the t6000/t6001 (M1 Pro / Max) SoCs, Apple introduced a new version > > of their interrupt controller. This is a significant departure from > > AICv1 and seems designed to better scale to larger chips. This series > > adds support for it to the existing AIC driver. > > > > Gone are CPU affinities; instead there seems to be some kind of > > "automagic" dispatch to willing CPU cores, and cores can also opt-out > > via an IMP-DEF sysreg (!). Right now the bootloader just sets up all > > cores to accept IRQs, and we ignore all this and let the magic > > algorithm pick a CPU to accept the IRQ. > > Maybe that's ok for the set of peripherals attached, but in general that > violates existing expectations regarding affinity, and I fear there'll > be some subtle brokenness resulting from this automatic target > selection. > > For example, in the perf events subsystem there are PMU drivers (even > those for "uncore" or "system" devices which are shared by many/all > CPUs) which rely on a combination of interrupt affinity and local IRQ > masking (without any other locking) to provide exclusion between a PMU's > IRQ handler and any other management operations for that PMU (which are > all handled from the same CPU). It will definitely break anything that relies on managed interrupts, where the kernel expects to allocate interrupts that have a strict affinity. Drivers using this feature can legitimately expect that they can keep their state in per-CPU pointers, and that obviously breaks. This may affect any PCIe device with more than a couple of queues. Maybe users of this HW do not care (yet), but we'll have to find a way to tell drivers of the limitation. 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