From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTP id C0005DDF0B for ; Mon, 29 Jan 2007 07:15:21 +1100 (EST) Subject: Re: [RFC/PATCH 0/16] Ops based MSI Implementation From: Benjamin Herrenschmidt To: "Eric W. Biederman" In-Reply-To: References: <1169714047.65693.647693675533.qpush@cradle> <1169876504.2294.23.camel@concordia.ozlabs.ibm.com> <1169971963.19887.15.camel@concordia.ozlabs.ibm.com> Content-Type: text/plain Date: Mon, 29 Jan 2007 07:14:52 +1100 Message-Id: <1170015292.26655.6.camel@localhost.localdomain> Mime-Version: 1.0 Cc: Greg Kroah-Hartman , Kyle McMartin , linuxppc-dev@ozlabs.org, Brice Goglin , shaohua.li@intel.com, linux-pci@atrey.karlin.mff.cuni.cz, "David S. Miller" List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , > Anyway for architecture hooks I have it down to just: > /* > * The arch hook for setup up msi irqs > */ > int arch_setup_msi_irq(struct pci_dev *dev, struct msi_desc *desc); > void arch_teardown_msi_irq(unsigned int irq); Which we would have to turn into "ops" hooks right away on powerpc anyway because we can have multiple implementations in a given kernel image depending on a mix of platform and which bus the devie is on. > Which should be good enough to handle everything but RTAS. You keep ignoring the problem then... we -HAVE- to handle the RTAS case. In addition, it's not unlikely that other virtualized environment will provide a similar very high level APIs to MSIs. Ben.