Blame SOURCES/0001-mustard-Don-t-probe-for-drivers-not-shipped-in-RHEL7.patch

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