Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp561580lqt; Thu, 6 Jun 2024 11:11:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWNkklTuNhh3Gm+XII4uUeaishB6MPdy3iMUaPgYAylvV7I3mU6oJOBn6g+7VdLkfJf8hUlt7ZXlkepMyQjkEbB9M/+z2vfQ8xjyBENZw== X-Google-Smtp-Source: AGHT+IEpJ/Uj3fRbvyw8TQu5ZH3PmG4LAwFQvj0fH9gdg2oskev0ZUqvYHeyKEDSEDM8rs9igsK+ X-Received: by 2002:a17:906:3285:b0:a5a:2d30:b8c1 with SMTP id a640c23a62f3a-a6cd5616a5bmr27467666b.14.1717697503417; Thu, 06 Jun 2024 11:11:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717697503; cv=pass; d=google.com; s=arc-20160816; b=I8A7ArW4F2ITqCvIHFvOgJWvouvLIPwAGL5macc3U0Pu7WMRRs7GMpfF25BlhVjMph HDMRw0Mr9elsLj+ImcFjG2ipyyD4BJMlRsw/xCR+zicihGo6Sjz7XWu5AHl56cP9WLAo c4XCrQtwIPJHD+Qt9I6fQBx628BsujxEdMw+SBmUQ9xKe+mKLVX1QA63hPqmoE3P4qZl srNbC4/Amt5KCq6+2oC1j6Rfs3MiG6ofA/77/f4JXam27G1D80peyFD94d4THxV3lCR/ yDQpRrzThkh4hWwuGaX650HvVbnzEsuwDUoN7mrh3bcTivgFwFFmJ+B2kvACqXlyyq/5 +dkw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:dkim-signature :dkim-signature:from; bh=frfCPswA5SjtUbmGVelHx9IJDTg2Th8/q6fkTUzp43c=; fh=8g+4Jow50qp/M5cDNZrYhakSyz6tNr0pl064Yg0ibVo=; b=cWoTyWwmU0VUomOE7ENcxQ01AT2XQyTXW4o30jKae2U+GGYOTlTVVjNSjrFfzsepbA mkRs4XQKPPFXXtY9aNEcozAOSqITT3svpB4+6LuO/khW5ntjA1DtRcbxUcs9bXopWZ66 lxLRZyyvZIKh0tO0v441ZvgjVaO4N3NWV8qkc1RoUc6EK6ehKRwhg144bcxgMO+58gTM XLtMyQTc9Q0ZQVTnCgYJ6/JPTwp321a2Tq3QcZOZuIPDjziK9OyhBkRBGgh/b16vfkbN xL3mNzZmVFkAoWJMhFdtYJbCxgy17OXKbEUFeZV3cgYapN1mOSeAe9J8EMCF/LHLwNFo mang==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=QiPBf+kf; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-204861-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204861-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a6c80704944si90880666b.499.2024.06.06.11.11.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 11:11:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-204861-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=QiPBf+kf; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-204861-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204861-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 1DF771F25CE9 for ; Thu, 6 Jun 2024 18:11:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 788A51993A1; Thu, 6 Jun 2024 18:11:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="QiPBf+kf"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="vMrg0N6/" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 0B551198E77; Thu, 6 Jun 2024 18:11:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717697488; cv=none; b=H3qytlFNfVIgnMxM6ekeauqVpyqOEmN7fShYNLZvieBtjQDjqQbUS15Jbr/8zDVGwkRU4p+FGD82IR+vi+OGe6LFoOsBnmmNEfvo3v67KpLjIa+3WkWDidLTJv5T8GJYvk6uvlHfigXUnhClorhBQ8OITNos7KsXHojoxeSM+kM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717697488; c=relaxed/simple; bh=89Ru1MLL6Cw+HAnFNn4QiwBAQvIvZ9iwfGCkgjAjm7Q=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=pE3sKZZcuRwf976zAn7euuEwnfYwZ+glRFFJSxsnyM2n1QBG5WgC/EIjbw5X3TqgCRqiBivOubh7IohxXPc6ynpRkmrVNnHVBhRyRsUpO7iY61Bzbzo99RHr6MyIe5vyE43TvtLeYojpyxoVaclLQXidZVO2V7j+kcfY2r5yloY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=QiPBf+kf; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=vMrg0N6/; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1717697483; 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: in-reply-to:in-reply-to:references:references; bh=frfCPswA5SjtUbmGVelHx9IJDTg2Th8/q6fkTUzp43c=; b=QiPBf+kfR3zAriOR0mOk1x5Wyxn/wc9za+nQXOB0mLq8Re+DgHNl2AOOWGnZyPM+8MFxBP K3j2oKjG+HB3ATQPAJe2U3xPSqVPpY185Gn6Epju80mscIHQiR0kDbKGdrEzxHWoDd7ge6 5uNiOcMN7/DpKtOhi2IbGTsStdEMQ/M2AQ7VyGkW5TojCbrNUEsUJZXhmoyq/KdTjfM2JP XF8ZI7VK0VnDztd9gvLOZvCaAnNdM9yXBal4vnXNM8QrTNBiK9p1O8YIrzFNKXgc9Y9b0t +w7H97VK+TzovFRKmD0TOfvttYOGzq8RufL1sh2QGhli5/+5pnosD9NxhSLYow== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1717697483; 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: in-reply-to:in-reply-to:references:references; bh=frfCPswA5SjtUbmGVelHx9IJDTg2Th8/q6fkTUzp43c=; b=vMrg0N6/F32h/+a1DZ4ylDqXYjFaK+sYf6iWmGib1GdhW3obULexnVUhwOg1Rbes/reboj 6oT7igbzdKdpZEAA== To: Herve Codina 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() In-Reply-To: <20240606175258.0e36ea98@bootlin.com> References: <20240527161450.326615-1-herve.codina@bootlin.com> <20240527161450.326615-11-herve.codina@bootlin.com> <8734pr5yq1.ffs@tglx> <20240606175258.0e36ea98@bootlin.com> Date: Thu, 06 Jun 2024 20:11:23 +0200 Message-ID: <87v82m0wms.ffs@tglx> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain 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? >> 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. If the template approach holds, then the infrastructure change is definitely worth it on its own and the actual driver just falls in place and is off your backlog list. Thanks, tglx