ae23c9
From 263ca3b7c89b7fd10aa03547624fe37e9a5dca32 Mon Sep 17 00:00:00 2001
ae23c9
From: David Gibson <dgibson@redhat.com>
ae23c9
Date: Thu, 30 May 2019 04:37:25 +0100
ae23c9
Subject: [PATCH 4/8] pci: Move NVIDIA vendor id to the rest of ids
ae23c9
MIME-Version: 1.0
ae23c9
Content-Type: text/plain; charset=UTF-8
ae23c9
Content-Transfer-Encoding: 8bit
ae23c9
ae23c9
RH-Author: David Gibson <dgibson@redhat.com>
ae23c9
Message-id: <20190530043728.32575-4-dgibson@redhat.com>
ae23c9
Patchwork-id: 88419
ae23c9
O-Subject: [RHEL-8.1 qemu-kvm PATCH 3/6] pci: Move NVIDIA vendor id to the rest of ids
ae23c9
Bugzilla: 1710662
ae23c9
RH-Acked-by: Philippe Mathieu-Daudé <philmd@redhat.com>
ae23c9
RH-Acked-by: Laurent Vivier <lvivier@redhat.com>
ae23c9
RH-Acked-by: Auger Eric <eric.auger@redhat.com>
ae23c9
RH-Acked-by: Cornelia Huck <cohuck@redhat.com>
ae23c9
ae23c9
From: Alexey Kardashevskiy <aik@ozlabs.ru>
ae23c9
ae23c9
sPAPR code will use it too so move it from VFIO to the common code.
ae23c9
ae23c9
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
ae23c9
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
ae23c9
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
ae23c9
Message-Id: <20190214051440.59167-1-aik@ozlabs.ru>
ae23c9
Acked-by: Alex Williamson <alex.williamson@redhat.com>
ae23c9
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
ae23c9
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
ae23c9
(cherry picked from commit ee1cd0099ab04f748c6d839e4f4d9a41b21e7399)
ae23c9
ae23c9
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1710662
ae23c9
ae23c9
Signed-off-by: David Gibson <dgibson@redhat.com>
ae23c9
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
ae23c9
---
ae23c9
 hw/vfio/pci-quirks.c     | 2 --
ae23c9
 include/hw/pci/pci_ids.h | 2 ++
ae23c9
 2 files changed, 2 insertions(+), 2 deletions(-)
ae23c9
ae23c9
diff --git a/hw/vfio/pci-quirks.c b/hw/vfio/pci-quirks.c
ae23c9
index cb2f79c..90859d1 100644
ae23c9
--- a/hw/vfio/pci-quirks.c
ae23c9
+++ b/hw/vfio/pci-quirks.c
ae23c9
@@ -397,8 +397,6 @@ static void vfio_probe_ati_bar2_quirk(VFIOPCIDevice *vdev, int nr)
ae23c9
  * note it for future reference.
ae23c9
  */
ae23c9
 
ae23c9
-#define PCI_VENDOR_ID_NVIDIA                    0x10de
ae23c9
-
ae23c9
 /*
ae23c9
  * Nvidia has several different methods to get to config space, the
ae23c9
  * nouveu project has several of these documented here:
ae23c9
diff --git a/include/hw/pci/pci_ids.h b/include/hw/pci/pci_ids.h
ae23c9
index 63acc72..3ed7d10 100644
ae23c9
--- a/include/hw/pci/pci_ids.h
ae23c9
+++ b/include/hw/pci/pci_ids.h
ae23c9
@@ -271,4 +271,6 @@
ae23c9
 
ae23c9
 #define PCI_VENDOR_ID_SYNOPSYS           0x16C3
ae23c9
 
ae23c9
+#define PCI_VENDOR_ID_NVIDIA             0x10de
ae23c9
+
ae23c9
 #endif
ae23c9
-- 
ae23c9
1.8.3.1
ae23c9