Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965591AbbKDPPi (ORCPT ); Wed, 4 Nov 2015 10:15:38 -0500 Received: from www.linutronix.de ([62.245.132.108]:50173 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932365AbbKDPPh (ORCPT ); Wed, 4 Nov 2015 10:15:37 -0500 Date: Wed, 4 Nov 2015 16:14:50 +0100 (CET) From: Thomas Gleixner To: Keith Busch cc: LKML , x86@kernel.org, linux-pci@vger.kernel.org, Jiang Liu , Dan Williams , Bjorn Helgaas , Bryan Veal , Ingo Molnar , "H. Peter Anvin" , Martin Mares , Jon Derrick , Peter Zijlstra Subject: Re: [RFC PATCHv3 3/4] x86/pci: Initial commit for new VMD device driver In-Reply-To: <20151104144905.GI13904@localhost.localdomain> Message-ID: References: <1445967247-24310-1-git-send-email-keith.busch@intel.com> <1445967247-24310-4-git-send-email-keith.busch@intel.com> <20151103001552.GE13904@localhost.localdomain> <20151104144905.GI13904@localhost.localdomain> User-Agent: Alpine 2.11 (DEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1552 Lines: 42 On Wed, 4 Nov 2015, Keith Busch wrote: > On Tue, Nov 03, 2015 at 12:42:02PM +0100, Thomas Gleixner wrote: > > On Tue, 3 Nov 2015, Keith Busch wrote: > > > > > + msi_irqdomain = pci_msi_create_irq_domain(NULL, &pci_chained_msi_domain_info, > > > > > + vmd_irqdomain); > > > > But that parent limitation does not matter simply because your > > msi_irqdomain does not follow down the hierarchy in the allocation > > path. > > > > So we can avoid the vmd_irqdomain creation completely. It's just > > wasting memory and has no value at all. Creating the msi domain with a > > NULL parent is possible. > > I'm having trouble following the hierarchy and didn't understand the > connection between the parent and msi comain. It's still new to me, > but I don't think a NULL parent is allowable with msi domains: > > pci_msi_setup_msi_irqs() > pci_msi_domain_alloc_irqs() > msi_domain_alloc_irqs() > __irq_domain_alloc_irqs() > irq_domain_alloc_irqs_recursive() > msi_domain_alloc() > irq_domain_alloc_irqs_parent() > > The last call returns -ENOSYS since there parent is NULL. Was the > intension to allow no parent, or do I still need to allocate one to > achieve the desired chaining? Hmm, seems I missed that part. But that's a fixable problem. Jiang? Thanks, tglx -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/