|
|
4724a4 |
From 3fef2f0a6b01a627b77ff82e9119f9fc6c285147 Mon Sep 17 00:00:00 2001
|
|
|
4724a4 |
From: Adam Jackson <ajax@redhat.com>
|
|
|
4724a4 |
Date: Wed, 17 Sep 2014 13:19:59 -0400
|
|
|
4724a4 |
Subject: [PATCH] mustard: Don't probe for drivers not shipped in RHEL7
|
|
|
4724a4 |
|
|
|
4724a4 |
Mostly this is here to prevent noise for ast/cirrus/mga/other server kit
|
|
|
4724a4 |
trying to probe a driver that isn't there. I'm leaving vboxvideo in out
|
|
|
4724a4 |
of the goodness of my heart; if people have RHEL7 vbox guests they
|
|
|
4724a4 |
probably want the native driver, but we can't ship it in good conscience
|
|
|
4724a4 |
since it's too tightly bound to the hypervisor version.
|
|
|
4724a4 |
|
|
|
4724a4 |
Signed-off-by: Adam Jackson <ajax@redhat.com>
|
|
|
4724a4 |
---
|
|
|
4724a4 |
hw/xfree86/common/xf86pciBus.c | 121 +----------------------------------------
|
|
|
4724a4 |
1 file changed, 1 insertion(+), 120 deletions(-)
|
|
|
4724a4 |
|
|
|
4724a4 |
diff --git a/hw/xfree86/common/xf86pciBus.c b/hw/xfree86/common/xf86pciBus.c
|
|
|
4724a4 |
index 258988a..e4d4402 100644
|
|
|
4724a4 |
--- a/hw/xfree86/common/xf86pciBus.c
|
|
|
4724a4 |
+++ b/hw/xfree86/common/xf86pciBus.c
|
|
|
4724a4 |
@@ -1099,68 +1099,18 @@ xf86VideoPtrToDriverList(struct pci_device *dev,
|
|
|
4724a4 |
const char *driverList[5] = { NULL, NULL, NULL, NULL, NULL };
|
|
|
4724a4 |
|
|
|
4724a4 |
switch (dev->vendor_id) {
|
|
|
4724a4 |
- /* AMD Geode LX */
|
|
|
4724a4 |
- case 0x1022:
|
|
|
4724a4 |
- if (dev->device_id == 0x2081)
|
|
|
4724a4 |
- driverList[0] = "geode";
|
|
|
4724a4 |
- break;
|
|
|
4724a4 |
- /* older Geode products acquired by AMD still carry an NSC vendor_id */
|
|
|
4724a4 |
- case 0x100b:
|
|
|
4724a4 |
- if (dev->device_id == 0x0030) {
|
|
|
4724a4 |
- /* NSC Geode GX2 specifically */
|
|
|
4724a4 |
- driverList[0] = "geode";
|
|
|
4724a4 |
- /* GX2 support started its life in the NSC tree and was later
|
|
|
4724a4 |
- forked by AMD for GEODE so we keep it as a backup */
|
|
|
4724a4 |
- driverList[1] = "nsc";
|
|
|
4724a4 |
- }
|
|
|
4724a4 |
- else
|
|
|
4724a4 |
- /* other NSC variant e.g. 0x0104 (SC1400), 0x0504 (SCx200) */
|
|
|
4724a4 |
- driverList[0] = "nsc";
|
|
|
4724a4 |
- break;
|
|
|
4724a4 |
- /* Cyrix Geode GX1 */
|
|
|
4724a4 |
- case 0x1078:
|
|
|
4724a4 |
- if (dev->device_id == 0x0104)
|
|
|
4724a4 |
- driverList[0] = "cyrix";
|
|
|
4724a4 |
- break;
|
|
|
4724a4 |
- case 0x1142:
|
|
|
4724a4 |
- driverList[0] = "apm";
|
|
|
4724a4 |
- break;
|
|
|
4724a4 |
- case 0xedd8:
|
|
|
4724a4 |
- driverList[0] = "ark";
|
|
|
4724a4 |
- break;
|
|
|
4724a4 |
- case 0x1a03:
|
|
|
4724a4 |
- driverList[0] = "ast";
|
|
|
4724a4 |
- break;
|
|
|
4724a4 |
case 0x1002:
|
|
|
4724a4 |
driverList[0] = "ati";
|
|
|
4724a4 |
break;
|
|
|
4724a4 |
- case 0x102c:
|
|
|
4724a4 |
- driverList[0] = "chips";
|
|
|
4724a4 |
- break;
|
|
|
4724a4 |
- case 0x1013:
|
|
|
4724a4 |
- driverList[0] = "cirrus";
|
|
|
4724a4 |
- break;
|
|
|
4724a4 |
- case 0x3d3d:
|
|
|
4724a4 |
- driverList[0] = "glint";
|
|
|
4724a4 |
- break;
|
|
|
4724a4 |
- case 0x105d:
|
|
|
4724a4 |
- driverList[0] = "i128";
|
|
|
4724a4 |
- break;
|
|
|
4724a4 |
case 0x8086:
|
|
|
4724a4 |
switch (dev->device_id)
|
|
|
4724a4 |
{
|
|
|
4724a4 |
/* Intel i740 */
|
|
|
4724a4 |
case 0x00d1:
|
|
|
4724a4 |
case 0x7800:
|
|
|
4724a4 |
- driverList[0] = "i740";
|
|
|
4724a4 |
- break;
|
|
|
4724a4 |
/* GMA500/Poulsbo */
|
|
|
4724a4 |
case 0x8108:
|
|
|
4724a4 |
case 0x8109:
|
|
|
4724a4 |
- /* Try psb driver on Poulsbo - if available */
|
|
|
4724a4 |
- driverList[0] = "psb";
|
|
|
4724a4 |
- driverList[1] = "psb_drv";
|
|
|
4724a4 |
- break;
|
|
|
4724a4 |
/* GMA600/Oaktrail */
|
|
|
4724a4 |
case 0x4100:
|
|
|
4724a4 |
case 0x4101:
|
|
|
4724a4 |
@@ -1205,91 +1155,22 @@ xf86VideoPtrToDriverList(struct pci_device *dev,
|
|
|
4724a4 |
break;
|
|
|
4724a4 |
}
|
|
|
4724a4 |
break;
|
|
|
4724a4 |
- case 0x102b:
|
|
|
4724a4 |
- driverList[0] = "mga";
|
|
|
4724a4 |
- break;
|
|
|
4724a4 |
- case 0x10c8:
|
|
|
4724a4 |
- driverList[0] = "neomagic";
|
|
|
4724a4 |
- break;
|
|
|
4724a4 |
case 0x10de:
|
|
|
4724a4 |
case 0x12d2:
|
|
|
4724a4 |
- {
|
|
|
4724a4 |
- int idx = 0;
|
|
|
4724a4 |
-
|
|
|
4724a4 |
-#ifdef __linux__
|
|
|
4724a4 |
- driverList[idx++] = "nouveau";
|
|
|
4724a4 |
-#endif
|
|
|
4724a4 |
- driverList[idx++] = "nv";
|
|
|
4724a4 |
+ driverList[0] = "nouveau";
|
|
|
4724a4 |
break;
|
|
|
4724a4 |
- }
|
|
|
4724a4 |
case 0x1106:
|
|
|
4724a4 |
driverList[0] = "openchrome";
|
|
|
4724a4 |
break;
|
|
|
4724a4 |
case 0x1b36:
|
|
|
4724a4 |
driverList[0] = "qxl";
|
|
|
4724a4 |
break;
|
|
|
4724a4 |
- case 0x1163:
|
|
|
4724a4 |
- driverList[0] = "rendition";
|
|
|
4724a4 |
- break;
|
|
|
4724a4 |
- case 0x5333:
|
|
|
4724a4 |
- switch (dev->device_id) {
|
|
|
4724a4 |
- case 0x88d0:
|
|
|
4724a4 |
- case 0x88d1:
|
|
|
4724a4 |
- case 0x88f0:
|
|
|
4724a4 |
- case 0x8811:
|
|
|
4724a4 |
- case 0x8812:
|
|
|
4724a4 |
- case 0x8814:
|
|
|
4724a4 |
- case 0x8901:
|
|
|
4724a4 |
- driverList[0] = "s3";
|
|
|
4724a4 |
- break;
|
|
|
4724a4 |
- case 0x5631:
|
|
|
4724a4 |
- case 0x883d:
|
|
|
4724a4 |
- case 0x8a01:
|
|
|
4724a4 |
- case 0x8a10:
|
|
|
4724a4 |
- case 0x8c01:
|
|
|
4724a4 |
- case 0x8c03:
|
|
|
4724a4 |
- case 0x8904:
|
|
|
4724a4 |
- case 0x8a13:
|
|
|
4724a4 |
- driverList[0] = "s3virge";
|
|
|
4724a4 |
- break;
|
|
|
4724a4 |
- default:
|
|
|
4724a4 |
- driverList[0] = "savage";
|
|
|
4724a4 |
- break;
|
|
|
4724a4 |
- }
|
|
|
4724a4 |
- break;
|
|
|
4724a4 |
- case 0x1039:
|
|
|
4724a4 |
- driverList[0] = "sis";
|
|
|
4724a4 |
- break;
|
|
|
4724a4 |
- case 0x126f:
|
|
|
4724a4 |
- driverList[0] = "siliconmotion";
|
|
|
4724a4 |
- break;
|
|
|
4724a4 |
- case 0x121a:
|
|
|
4724a4 |
- if (dev->device_id < 0x0003)
|
|
|
4724a4 |
- driverList[0] = "voodoo";
|
|
|
4724a4 |
- else
|
|
|
4724a4 |
- driverList[0] = "tdfx";
|
|
|
4724a4 |
- break;
|
|
|
4724a4 |
- case 0x1011:
|
|
|
4724a4 |
- driverList[0] = "tga";
|
|
|
4724a4 |
- break;
|
|
|
4724a4 |
- case 0x1023:
|
|
|
4724a4 |
- driverList[0] = "trident";
|
|
|
4724a4 |
- break;
|
|
|
4724a4 |
- case 0x100c:
|
|
|
4724a4 |
- driverList[0] = "tseng";
|
|
|
4724a4 |
- break;
|
|
|
4724a4 |
case 0x80ee:
|
|
|
4724a4 |
driverList[0] = "vboxvideo";
|
|
|
4724a4 |
break;
|
|
|
4724a4 |
case 0x15ad:
|
|
|
4724a4 |
driverList[0] = "vmware";
|
|
|
4724a4 |
break;
|
|
|
4724a4 |
- case 0x18ca:
|
|
|
4724a4 |
- if (dev->device_id == 0x47)
|
|
|
4724a4 |
- driverList[0] = "xgixp";
|
|
|
4724a4 |
- else
|
|
|
4724a4 |
- driverList[0] = "xgi";
|
|
|
4724a4 |
- break;
|
|
|
4724a4 |
default:
|
|
|
4724a4 |
break;
|
|
|
4724a4 |
}
|
|
|
4724a4 |
--
|
|
|
4724a4 |
1.9.3
|
|
|
4724a4 |
|