Skip to content

Commit 657dc4f

Browse files
robherringairlied
authored andcommitted
virtio_gpu: Add PCI ID to driver map
Add the virtio-gpu PCI ID so the driver probing works. Signed-off-by: Rob Herring <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
1 parent b3340cd commit 657dc4f

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

include/pci_ids/virtio_gpu_pci_ids.h

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CHIPSET(0x0010, VIRTGL, VIRTGL)

src/loader/pci_id_driver_map.h

+7
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ static const int radeonsi_chip_ids[] = {
5353
#undef CHIPSET
5454
};
5555

56+
static const int virtio_gpu_chip_ids[] = {
57+
#define CHIPSET(chip, name, family) chip,
58+
#include "pci_ids/virtio_gpu_pci_ids.h"
59+
#undef CHIPSET
60+
};
61+
5662
static const int vmwgfx_chip_ids[] = {
5763
#define CHIPSET(chip, name, family) chip,
5864
#include "pci_ids/vmwgfx_pci_ids.h"
@@ -78,6 +84,7 @@ static const struct {
7884
{ 0x1002, "radeonsi", radeonsi_chip_ids, ARRAY_SIZE(radeonsi_chip_ids), _LOADER_GALLIUM},
7985
{ 0x10de, "nouveau_vieux", NULL, -1, _LOADER_DRI, is_nouveau_vieux },
8086
{ 0x10de, "nouveau", NULL, -1, _LOADER_GALLIUM },
87+
{ 0x1af4, "virtio_gpu", virtio_gpu_chip_ids, ARRAY_SIZE(virtio_gpu_chip_ids), _LOADER_GALLIUM },
8188
{ 0x15ad, "vmwgfx", vmwgfx_chip_ids, ARRAY_SIZE(vmwgfx_chip_ids), _LOADER_GALLIUM },
8289
{ 0x0000, NULL, NULL, 0 },
8390
};

0 commit comments

Comments
 (0)