Skip to contentSkip to conversation

drm/bochs: add Bochs PCI ID for Simics model

PATCH In review H. Peter Anvin (Intel) 2 participants 2 messages Sep 10, 2021 – Sep 15, 2021

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/bochs: add Bochs PCI ID for Simics model

Current (and older) Simics models for the Bochs VGA used the wrong PCI vendor ID (0x4321 instead of 0x1234). Although this can hopefully be fixed in the future, it is a problem for users of the current version, not the least because to update the device ID the BIOS has to be rebuilt in order to see BIOS output.

Add support for the 4321:1111 device number in addition to the 1234:1111 one.

---
 drivers/gpu/drm/tiny/bochs.c | 8 ++++++++
 1 file changed, 8 insertions(+)
drivers/gpu/drm/tiny/bochs.c +8 -0
index 73415fa9ae0f..2ce3bd903b70 100644
@@ -63,6 +63,7 @@ MODULE_PARM_DESC(defy, "default y resolution");
 
 enum bochs_types {
 	BOCHS_QEMU_STDVGA,
+	BOCHS_SIMICS,
 	BOCHS_UNKNOWN,
 };
 
@@ -695,6 +696,13 @@ static const struct pci_device_id bochs_pci_tbl[] = {
 		.subdevice   = PCI_ANY_ID,
 		.driver_data = BOCHS_UNKNOWN,
 	},
+	{
+		.vendor      = 0x4321,
+		.device      = 0x1111,
+		.subvendor   = PCI_ANY_ID,
+		.subdevice   = PCI_ANY_ID,
+		.driver_data = BOCHS_SIMICS,
+	},
 	{ /* end of list */ }
 };
 
Signature · 1 line
2.31.1
maintainer
#1 lore raw
Quoted 10 lines · H. Peter Anvin (Intel)

Current (and older) Simics models for the Bochs VGA used the wrong PCI vendor ID (0x4321 instead of 0x1234). Although this can hopefully be fixed in the future, it is a problem for users of the current version, not the least because to update the device ID the BIOS has to be rebuilt in order to see BIOS output.

Add support for the 4321:1111 device number in addition to the 1234:1111 one.

Pusged to drm-misc-next.

thanks,
Gerd