From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2088.outbound.protection.outlook.com. [40.107.92.88]) by gmr-mx.google.com with ESMTPS id lr18si1257540pjb.3.2021.12.01.07.11.24 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Dec 2021 07:11:24 -0800 (PST) Date: Wed, 1 Dec 2021 11:11:21 -0400 From: Jason Gunthorpe Subject: Re: [patch 21/32] NTB/msi: Convert to msi_on_each_desc() Message-ID: <20211201151121.GL4670@nvidia.com> References: <20211126232735.547996838@linutronix.de> <7daba0e2-73a3-4980-c3a5-a71f6b597b22@deltatee.com> <874k7ueldt.ffs@tglx> <6ba084d6-2b26-7c86-4526-8fcd3d921dfd@deltatee.com> <87ilwacwp8.ffs@tglx> <87v909bf2k.ffs@tglx> <20211130202800.GE4670@nvidia.com> <87o861banv.ffs@tglx> <871r2w9y3x.ffs@tglx> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <871r2w9y3x.ffs@tglx> Return-Path: jgg@nvidia.com MIME-Version: 1.0 To: Thomas Gleixner Cc: Logan Gunthorpe , LKML , Bjorn Helgaas , Marc Zygnier , Alex Williamson , Kevin Tian , 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 List-ID: On Wed, Dec 01, 2021 at 03:52:02PM +0100, Thomas Gleixner wrote: > So we really can go and create a MSI irqdomain and stick the pointer > into stdev->dev.irqdomain. The parent domain of this irqdomain is > > stdev->pdev.dev.irqdomain->parent It can work (pending some solution to the iommu stuff), but IMHO it is strange/hacky to put HW objects like irqdomain on what is a character struct device with a set major/minor in dev->devt and associated struct cdev. Conceptually it makes no sense to me, cdevs are software constructs, they should never go into HW areas.. Jason