From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:48957) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDkJU-0000CN-7h for qemu-devel@nongnu.org; Thu, 07 Mar 2013 18:33:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UDkJT-0002C0-A8 for qemu-devel@nongnu.org; Thu, 07 Mar 2013 18:33:28 -0500 Received: from mx1.redhat.com ([209.132.183.28]:25240) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDk3O-0005JO-Au for qemu-devel@nongnu.org; Thu, 07 Mar 2013 18:16:50 -0500 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r27NGn1t009808 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 7 Mar 2013 18:16:49 -0500 From: Alex Williamson Date: Thu, 07 Mar 2013 16:16:48 -0700 Message-ID: <20130307230844.31144.93342.stgit@bling.home> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH 0/2] pci_bridge: Fixup/Cleanup bridge map_irq functions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: mst@redhat.com Cc: qemu-devel@nongnu.org Rather than have everyone call pci_bridge_map_irq() themselves and come up with incorrect mapping functions let's use the default PCI defined swizzle function unless told otherwise. Then we can also clean out the duplicate function in pci_bridge_dev. Tested with an assigned device behind a PCIe switch behind a PCIe root port at addresses 0-3. Note that Linux requires the pci=pcie_scan_all boot option to find devices behind PCIe ports if not addr=0.0. Windows finds them but won't use them (code 10). This replaces the ioh3420 & xio3130 upstream/downstream patches. Thanks, Alex --- Alex Williamson (2): pci_bridge: Use a default map_irq function pci_bridge: Remove duplicate IRQ swizzle function hw/pci/pci_bridge.c | 2 +- hw/pci_bridge_dev.c | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-)