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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 86366C4332F for ; Tue, 30 Nov 2021 19:21:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245755AbhK3TZN (ORCPT ); Tue, 30 Nov 2021 14:25:13 -0500 Received: from ale.deltatee.com ([204.191.154.188]:57912 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239820AbhK3TZL (ORCPT ); Tue, 30 Nov 2021 14:25:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=deltatee.com; s=20200525; h=Subject:In-Reply-To:MIME-Version:Date: Message-ID:From:References:Cc:To:content-disposition; bh=Dlyz49EtKbJqaNzZfY1tx0m9Yx6JL073qjZfik+uWwE=; b=VEornqptojdVzaRUFG+WqR1CYD GF5KRyNgtfYRTD6G10G4SN4gIAkwQ2CzgN4UUfuM0nazIEfV6ByTXoLsuRLJWIZcC1zrTuAZXLxdb GVND9pkSL5czg6JUyIpVKoyl2mMHN+ZUkB7QML2Ozuabyn5UTrmPnZvmVu2g2zVrlm5zphOgc51X5 kziw93b1XB+yHPG1ChiV6lUR4/dTF+cr+AtJ9dN8s5UWqHSFMQpV7n1TNzuc54YPDQqZ3KuKhEs3K DG4mm5pm8xhOKLxvC1gesniPE++b0EoASHbZnuyBPB+f7q1Li4IiO5e+D62zngvT0fqbnyPMZNWwi l1uIvong==; Received: from guinness.priv.deltatee.com ([172.16.1.162]) by ale.deltatee.com with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1ms8gy-00BCOF-Ov; Tue, 30 Nov 2021 12:21:29 -0700 To: Thomas Gleixner , LKML Cc: Bjorn Helgaas , Marc Zygnier , Alex Williamson , Kevin Tian , Jason Gunthorpe , Megha Dey , Ashok Raj , linux-pci@vger.kernel.org, Greg Kroah-Hartman , Jon Mason , Dave Jiang , Allen Hubbe , linux-ntb@googlegroups.com, linux-s390@vger.kernel.org, Heiko Carstens , Christian Borntraeger , x86@kernel.org References: <20211126230957.239391799@linutronix.de> <20211126232735.547996838@linutronix.de> <7daba0e2-73a3-4980-c3a5-a71f6b597b22@deltatee.com> <874k7ueldt.ffs@tglx> <6ba084d6-2b26-7c86-4526-8fcd3d921dfd@deltatee.com> <87ilwacwp8.ffs@tglx> From: Logan Gunthorpe Message-ID: Date: Tue, 30 Nov 2021 12:21:21 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <87ilwacwp8.ffs@tglx> Content-Type: text/plain; charset=utf-8 Content-Language: en-CA Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 172.16.1.162 X-SA-Exim-Rcpt-To: x86@kernel.org, borntraeger@de.ibm.com, hca@linux.ibm.com, linux-s390@vger.kernel.org, linux-ntb@googlegroups.com, allenbh@gmail.com, dave.jiang@intel.com, jdmason@kudzu.us, gregkh@linuxfoundation.org, linux-pci@vger.kernel.org, ashok.raj@intel.com, megha.dey@intel.com, jgg@nvidia.com, kevin.tian@intel.com, alex.williamson@redhat.com, maz@kernel.org, helgaas@kernel.org, linux-kernel@vger.kernel.org, tglx@linutronix.de X-SA-Exim-Mail-From: logang@deltatee.com Subject: Re: [patch 21/32] NTB/msi: Convert to msi_on_each_desc() X-SA-Exim-Version: 4.2.1 (built Sat, 13 Feb 2021 17:57:42 +0000) X-SA-Exim-Scanned: Yes (on ale.deltatee.com) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-11-29 5:29 p.m., Thomas Gleixner wrote: > At the conceptual level these interrupts are in separate irq domains: > > | _______________________ > | | | > | | NTB | > | | | > | | PCI config space | > | | MSI-X space | <- #1 Global or per IOMMU zone PCI/MSI domain > | |_____________________ | > |---| | > | Memory window A | > | Memory window .. | <- #2 Per device NTB domain > | Memory window N | > |______________________| > > You surely can see the disctinction between #1 and #2, right? I wouldn't say that's entirely obvious or even irrefutable. However, I'm certainly open to this approach if it improves the code. > I'm way too tired to come up with a proper solution for that, but that > PCI_IRQ_VIRTUAL has to die ASAP. I'm willing to volunteer a bit of my time to clean this up, but I'd need a bit more direction on what a proper solution would look like. The MSI domain code is far from well documented nor is it easy to understand. Logan