Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp889303lqt; Fri, 7 Jun 2024 01:26:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXibN96lJQxFjrHG1llxnDDQ3xubtDq5zc0DYpy6p8Hmw7398FbMUOkFNVIeOvDgo7C/hK0G7EMHM5yRUsWLojkHfzx+L7mpQ9t/XKJCg== X-Google-Smtp-Source: AGHT+IG51RbfDW3DQ3ntwqPbnuzg46bgXT500AK5m96rqnLgVo9L52qyna2IbVsktYOWRTXvGJ5y X-Received: by 2002:a17:90b:18e:b0:2ba:a1d:5a73 with SMTP id 98e67ed59e1d1-2c2bcc0b2ebmr1807242a91.22.1717748818920; Fri, 07 Jun 2024 01:26:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717748818; cv=pass; d=google.com; s=arc-20160816; b=aycbNAvqqyjnw3GU8ThFH15W0J3Dy/rPmQ4ro9j1oy45EzOGkiFnyMl0JwrADzdKBC gi+PHudigwa6K5mcM5ZhRWR12LaYu0N3UN8fhYBuxIYeyeSZHYUKUh7xNACQHLyHUKd2 1NSZ3C49lAd3sjN4EGKOKrP+Rpg0nOPzqceM2miemzp/nVaDh9ZrqliD05y/TfF8xpxU Gn5zU+rQbPw1cyWmsmEKPSOZIk5jd7fsWHPysSqjwKwn6XgD2c6TFOrs7O3r4r31i3eg O/0iteIKreHesOdH0KafuXbYu+6OunOiPyFnU+/6N3usSdf8us94uAUkDW+g4Qsljb+s Ac3g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date:dkim-signature; bh=BFfuVjtrcTLRobaSH0psf6/I1QuxZBKYWSnIuQ5XmGY=; fh=V2262uIi4WTmKrwexecfaFwgUZiiEEQIF3sDQvqhB84=; b=Ggd/0OgMz6ViB0xCfh5Hm+1aS2rGFDAN4a05R9aQzAewQRl1A6ILMp4sM+/SdFx0hA YaMwWoc1J9EHLhLMuy6mLgQ3ZimmVk4H8XXx5e2sL9z4pv5St/bq2p3lxa57d+E+ZM01 NrLtMQyQc+z4GZkhOKCPtIsxTBeSirYpBNweilx1BbOkbZBg+Gs19oh7JiOYJNa1nKON pn1HyRVFsEsPrY50Xa27OVnQjyEIVCstPa6uPBJLUeCcEpTu5fyMLMVo4GKr3AhfveB6 qA3wRU+ax/gdWtgNAPzcCflZF93mV6ZZsHwo7Wvus1BLTaBI/ml4/RFWjAHp9c3z+jvI 0aDg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=PH0J6+8z; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-205584-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205584-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c29c49f61fsi2696661a91.163.2024.06.07.01.26.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 01:26:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-205584-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=PH0J6+8z; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-205584-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205584-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 4EADB28A9BF for ; Fri, 7 Jun 2024 08:06:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C226615ADB7; Fri, 7 Jun 2024 08:06:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="PH0J6+8z" Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 991A913C69B; Fri, 7 Jun 2024 08:06:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.197 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717747577; cv=none; b=QKatUUWifn/uTNSvXp+S3DiiJE1PnISy/HG7z/KiCKr7zE6Ymdo+n/stIuyLuOnfmc/6B1h3/Y3IQFYiDuEOqIRerV/cUD8aLf67IGCfqpPDRybvzIgojQZR2Tfxg7OF0FE28k0sLYXFY/Co3UFyKe5JidRdyH1Sg7awaSovAFI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717747577; c=relaxed/simple; bh=D+/UALLSv9oy4xrGrHjWW+E2Ia6tzKVJHvFUaGkGlwc=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=OwiMoYODoGp5ua/dw5uCnvN/2vwxbstHqeFudM1qtnXT+P+JII+4BfO0nnPcR1KBalbV1I0gxp3MwuQoH4ANNPRa8OCHdU4eobYoSF3COWlG7BxZKQDnNEnzD2MGXWiN/9bZ+Uh6083yd9jFqShFyrs6dasEVk8edTCBkTAmH18= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=PH0J6+8z; arc=none smtp.client-ip=217.70.183.197 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 3A06D1C0007; Fri, 7 Jun 2024 08:06:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1717747571; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BFfuVjtrcTLRobaSH0psf6/I1QuxZBKYWSnIuQ5XmGY=; b=PH0J6+8ztUFADaSZDGfHF5vJoDDUoehBQuL0rnhj6Ma8m2WkOuDaQiNIaA7QAPzuAC1Ym9 GoJdsST2eUkSP8+5iY6JrMym0qUGpiy+NqNvGnDi+/L49RlwfebD6AxcnAiQIhiyPo+sPs ajtCZg98h/of8iYKa75/kDuP5ls7hcE1d8j758hYYQ8MpanGim680eb9TxamL8H6JzRxnP gt8wsuEyueFEr94ynXLWrQvXsj+ef5qT1UD4y3ELSK4SGXLaHWnnqFYD2OmJXNu74GMXud afFFmhjBoHAjvKS8ge/I1ku3JNZnqjBXujksJ/hOOc/g1AVw2yxw+zgk106yLg== Date: Fri, 7 Jun 2024 10:06:03 +0200 From: Herve Codina To: Thomas Gleixner Cc: Simon Horman , Sai Krishna Gajula , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Lee Jones , Arnd Bergmann , Horatiu Vultur , UNGLinuxDriver@microchip.com, Andrew Lunn , Heiner Kallweit , Russell King , Saravana Kannan , Bjorn Helgaas , Philipp Zabel , Lars Povlsen , Steen Hegelund , Daniel Machon , Alexandre Belloni , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, netdev@vger.kernel.org, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Allan Nielsen , Luca Ceresoli , Thomas Petazzoni Subject: Re: [PATCH v2 10/19] irqdomain: Introduce irq_domain_alloc() and irq_domain_publish() Message-ID: <20240607100603.660efc87@bootlin.com> In-Reply-To: <87v82m0wms.ffs@tglx> References: <20240527161450.326615-1-herve.codina@bootlin.com> <20240527161450.326615-11-herve.codina@bootlin.com> <8734pr5yq1.ffs@tglx> <20240606175258.0e36ea98@bootlin.com> <87v82m0wms.ffs@tglx> Organization: Bootlin X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; x86_64-redhat-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-GND-Sasl: herve.codina@bootlin.com On Thu, 06 Jun 2024 20:11:23 +0200 Thomas Gleixner wrote: > Herve! > > On Thu, Jun 06 2024 at 17:52, Herve Codina wrote: > > On Wed, 05 Jun 2024 15:02:46 +0200 > > Thomas Gleixner wrote: > >> On Mon, May 27 2024 at 18:14, Herve Codina wrote: > >> > To avoid a window where the domain is published but not yet ready to be > >> > >> I can see the point, but why is this suddenly a problem? There are tons > >> of interrupt chip drivers which have exactly that pattern. > > > > I thing the issue was not triggered because these interrupt chip driver > > are usually builtin compiled and the probe sequence is the linear one > > done at boot time. Consumers/supplier are probe sequentially without any > > parallel execution issues. > > > > In the LAN966x PCI device driver use case, the drivers were built as > > modules. Modules loading and drivers .probe() calls for the irqs supplier > > and irqs consumers are done in parallel. This reveals the race condition. > > So how is that supposed to work? There is clearly a requirement that the > interrupt controller is ready to use when the network driver is probed, no? Yes, EPROBE_DEFER mecanism. The race condition window leads to an other error code instead of the expected EPROBE_DEFER. > > >> Also why is all of this burried in a series which aims to add a network > >> driver and touches the world and some more. If you had sent the two irq > >> domain patches seperately w/o spamming 100 people on CC then this would > >> have been solved long ago. That's documented clearly, no? > > > > Yes, the main idea of the series, as mentioned in the cover letter, is to > > give the big picture of the LAN966x PCI device use case in order to have > > all the impacted subsystems and drivers maintainers be aware of the global > > use case: DT overlay on top of PCI device. > > Of course, the plan is to split this series into smaller ones once parts > > get discussed in the DT overlay on top of PCI use case and reach some kind > > of maturity at least on the way to implement a solution. > > Fair enough. > > > Thomas, do you prefer to have all the IRQ related patches extracted right > > now from this big picture series ? > > I think the interrupt controller problem is completely orthogonal to the > PCI/DT issue. > > So yes, please split them out as preparatory work which is probably also > not that interesting for the PCI/DT/net folks. > Will do that. Best regards, Hervé