Skip to contentSkip to conversation

pci: Move NVIDIA vendor id to the rest of ids

PATCH In review Alexey Kardashevskiy 2 participants 2 messages Feb 14, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pci: Move NVIDIA vendor id to the rest of ids

sPAPR code will use it too so move it from VFIO to the common code.

---

Previous version was RFC, this is is not.

---
 include/hw/pci/pci_ids.h | 2 ++
 hw/vfio/pci-quirks.c     | 2 --
 2 files changed, 2 insertions(+), 2 deletions(-)
include/hw/pci/pci_ids.h +2 -0
index eeb3301..0abe27a 100644
@@ -271,4 +271,6 @@
 
 #define PCI_VENDOR_ID_SYNOPSYS           0x16C3
 
+#define PCI_VENDOR_ID_NVIDIA             0x10de
+
 #endif
hw/vfio/pci-quirks.c +0 -2
index eae31c7..40a1200 100644
@@ -526,8 +526,6 @@ static void vfio_probe_ati_bar2_quirk(VFIOPCIDevice *vdev, int nr)
  * note it for future reference.
  */
 
-#define PCI_VENDOR_ID_NVIDIA                    0x10de
-
 /*
  * Nvidia has several different methods to get to config space, the
  * nouveu project has several of these documented here:
Signature · 1 line
2.17.1
Acked-by on v1 1/1
#1 lore raw
Quoted 8 lines · On Thu, 14 Feb 2019 16:14:40 +1100 Alexey Kardashevskiy <[email protected]> wrote:

sPAPR code will use it too so move it from VFIO to the common code.

---

Previous version was RFC, this is is not.

I assume as a stand-alone patch this should go through the PCI branch, cc'ing maintainers.

Quoted 29 lines
---
 include/hw/pci/pci_ids.h | 2 ++
 hw/vfio/pci-quirks.c     | 2 --
 2 files changed, 2 insertions(+), 2 deletions(-)
include/hw/pci/pci_ids.h +2 -0
index eeb3301..0abe27a 100644
@@ -271,4 +271,6 @@
 
 #define PCI_VENDOR_ID_SYNOPSYS           0x16C3
 
+#define PCI_VENDOR_ID_NVIDIA             0x10de
+
 #endif
hw/vfio/pci-quirks.c +0 -2
index eae31c7..40a1200 100644
@@ -526,8 +526,6 @@ static void vfio_probe_ati_bar2_quirk(VFIOPCIDevice *vdev, int nr)
  * note it for future reference.
  */
 
-#define PCI_VENDOR_ID_NVIDIA                    0x10de
-
 /*
  * Nvidia has several different methods to get to config space, the
  * nouveu project has several of these documented here: