virtio_gpu: Add PCI ID to driver map
authorRob Herring <robh@kernel.org>
Thu, 17 Dec 2015 15:45:49 +0000 (09:45 -0600)
committerDave Airlie <airlied@redhat.com>
Sat, 23 Jan 2016 02:35:24 +0000 (12:35 +1000)
Add the virtio-gpu PCI ID so the driver probing works.

Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
include/pci_ids/virtio_gpu_pci_ids.h [new file with mode: 0644]
src/loader/pci_id_driver_map.h

diff --git a/include/pci_ids/virtio_gpu_pci_ids.h b/include/pci_ids/virtio_gpu_pci_ids.h
new file mode 100644 (file)
index 0000000..2e6ecaf
--- /dev/null
@@ -0,0 +1 @@
+CHIPSET(0x0010, VIRTGL, VIRTGL)
index 11e39d3a20605bf907e14fd5b6db70c030ece394..cab69fb87f440825b5f640c8ec8f8604b62017d6 100644 (file)
@@ -53,6 +53,12 @@ static const int radeonsi_chip_ids[] = {
 #undef CHIPSET
 };
 
+static const int virtio_gpu_chip_ids[] = {
+#define CHIPSET(chip, name, family) chip,
+#include "pci_ids/virtio_gpu_pci_ids.h"
+#undef CHIPSET
+};
+
 static const int vmwgfx_chip_ids[] = {
 #define CHIPSET(chip, name, family) chip,
 #include "pci_ids/vmwgfx_pci_ids.h"
@@ -78,6 +84,7 @@ static const struct {
    { 0x1002, "radeonsi", radeonsi_chip_ids, ARRAY_SIZE(radeonsi_chip_ids), _LOADER_GALLIUM},
    { 0x10de, "nouveau_vieux", NULL, -1,  _LOADER_DRI, is_nouveau_vieux },
    { 0x10de, "nouveau", NULL, -1,  _LOADER_GALLIUM },
+   { 0x1af4, "virtio_gpu", virtio_gpu_chip_ids, ARRAY_SIZE(virtio_gpu_chip_ids), _LOADER_GALLIUM },
    { 0x15ad, "vmwgfx", vmwgfx_chip_ids, ARRAY_SIZE(vmwgfx_chip_ids), _LOADER_GALLIUM },
    { 0x0000, NULL, NULL, 0 },
 };