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

f34ecf
From b6e50ece375b6b1fbe053b30b52fc40dde5c682b Mon Sep 17 00:00:00 2001
f34ecf
From: Adam Jackson <ajax@redhat.com>
f34ecf
Date: Tue, 13 Nov 2018 10:11:36 -0500
f34ecf
Subject: [PATCH] mustard: Don't probe for drivers not shipped in RHEL8
f34ecf
f34ecf
As with RHEL7, this is mostly to keep spurious probe messages out of the
f34ecf
X log and prevent questions like "why isn't it loading mga on my
f34ecf
G200SE" or "why isn't it loading radeon_dri.so on my RN50".
f34ecf
---
f34ecf
 hw/xfree86/common/xf86pciBus.c              | 162 --------------------
f34ecf
 hw/xfree86/dri2/pci_ids/pci_id_driver_map.h |  32 ----
f34ecf
 2 files changed, 194 deletions(-)
f34ecf
f34ecf
diff --git a/hw/xfree86/common/xf86pciBus.c b/hw/xfree86/common/xf86pciBus.c
f34ecf
index b7f9999..398ed45 100644
f34ecf
--- a/hw/xfree86/common/xf86pciBus.c
f34ecf
+++ b/hw/xfree86/common/xf86pciBus.c
f34ecf
@@ -1074,107 +1074,12 @@ xf86VideoPtrToDriverList(struct pci_device *dev, XF86MatchedDrivers *md)
f34ecf
     const char *driverList[5] = { NULL, NULL, NULL, NULL, NULL };
f34ecf
 
f34ecf
     switch (dev->vendor_id) {
f34ecf
-        /* AMD Geode LX */
f34ecf
-    case 0x1022:
f34ecf
-        if (dev->device_id == 0x2081)
f34ecf
-            driverList[0] = "geode";
f34ecf
-        break;
f34ecf
-        /* older Geode products acquired by AMD still carry an NSC vendor_id */
f34ecf
-    case 0x100b:
f34ecf
-        if (dev->device_id == 0x0030) {
f34ecf
-            /* NSC Geode GX2 specifically */
f34ecf
-            driverList[0] = "geode";
f34ecf
-            /* GX2 support started its life in the NSC tree and was later
f34ecf
-               forked by AMD for GEODE so we keep it as a backup */
f34ecf
-            driverList[1] = "nsc";
f34ecf
-        }
f34ecf
-        else
f34ecf
-            /* other NSC variant e.g. 0x0104 (SC1400), 0x0504 (SCx200) */
f34ecf
-            driverList[0] = "nsc";
f34ecf
-        break;
f34ecf
-        /* Cyrix Geode GX1 */
f34ecf
-    case 0x1078:
f34ecf
-        if (dev->device_id == 0x0104)
f34ecf
-            driverList[0] = "cyrix";
f34ecf
-        break;
f34ecf
-    case 0x1142:
f34ecf
-        driverList[0] = "apm";
f34ecf
-        break;
f34ecf
-    case 0xedd8:
f34ecf
-        driverList[0] = "ark";
f34ecf
-        break;
f34ecf
-    case 0x1a03:
f34ecf
-        driverList[0] = "ast";
f34ecf
-        break;
f34ecf
     case 0x1002:
f34ecf
         driverList[0] = "ati";
f34ecf
         break;
f34ecf
-    case 0x102c:
f34ecf
-        driverList[0] = "chips";
f34ecf
-        break;
f34ecf
-    case 0x1013:
f34ecf
-        driverList[0] = "cirrus";
f34ecf
-        break;
f34ecf
-    case 0x3d3d:
f34ecf
-        driverList[0] = "glint";
f34ecf
-        break;
f34ecf
-    case 0x105d:
f34ecf
-        driverList[0] = "i128";
f34ecf
-        break;
f34ecf
     case 0x8086:
f34ecf
 	switch (dev->device_id)
f34ecf
 	{
f34ecf
-		/* Intel i740 */
f34ecf
-		case 0x00d1:
f34ecf
-		case 0x7800:
f34ecf
-			driverList[0] = "i740";
f34ecf
-			break;
f34ecf
-		/* GMA500/Poulsbo */
f34ecf
-		case 0x8108:
f34ecf
-		case 0x8109:
f34ecf
-			/* Try psb driver on Poulsbo - if available */
f34ecf
-			driverList[0] = "psb";
f34ecf
-			driverList[1] = "psb_drv";
f34ecf
-			break;
f34ecf
-		/* GMA600/Oaktrail */
f34ecf
-		case 0x4100:
f34ecf
-		case 0x4101:
f34ecf
-		case 0x4102:
f34ecf
-		case 0x4103:
f34ecf
-		case 0x4104:
f34ecf
-		case 0x4105:
f34ecf
-		case 0x4106:
f34ecf
-		case 0x4107:
f34ecf
-		/* Atom E620/Oaktrail */
f34ecf
-		case 0x4108:
f34ecf
-		/* Medfield */
f34ecf
-		case 0x0130:
f34ecf
-		case 0x0131:
f34ecf
-		case 0x0132:
f34ecf
-		case 0x0133:
f34ecf
-		case 0x0134:
f34ecf
-		case 0x0135:
f34ecf
-		case 0x0136:
f34ecf
-		case 0x0137:
f34ecf
-		/* GMA 3600/CDV */
f34ecf
-		case 0x0be0:
f34ecf
-		case 0x0be1:
f34ecf
-		case 0x0be2:
f34ecf
-		case 0x0be3:
f34ecf
-		case 0x0be4:
f34ecf
-		case 0x0be5:
f34ecf
-		case 0x0be6:
f34ecf
-		case 0x0be7:
f34ecf
-		case 0x0be8:
f34ecf
-		case 0x0be9:
f34ecf
-		case 0x0bea:
f34ecf
-		case 0x0beb:
f34ecf
-		case 0x0bec:
f34ecf
-		case 0x0bed:
f34ecf
-		case 0x0bee:
f34ecf
-		case 0x0bef:
f34ecf
-			/* Use fbdev/vesa driver on Oaktrail, Medfield, CDV */
f34ecf
-			break;
f34ecf
 		/* Default to intel only on pre-gen4 chips */
f34ecf
 		case 0x3577:
f34ecf
 		case 0x2562:
f34ecf
@@ -1196,14 +1101,7 @@ xf86VideoPtrToDriverList(struct pci_device *dev, XF86MatchedDrivers *md)
f34ecf
 			break;
f34ecf
         }
f34ecf
         break;
f34ecf
-    case 0x102b:
f34ecf
-        driverList[0] = "mga";
f34ecf
-        break;
f34ecf
-    case 0x10c8:
f34ecf
-        driverList[0] = "neomagic";
f34ecf
-        break;
f34ecf
     case 0x10de:
f34ecf
-    case 0x12d2:
f34ecf
     {
f34ecf
         int idx = 0;
f34ecf
 
f34ecf
@@ -1229,77 +1127,17 @@ xf86VideoPtrToDriverList(struct pci_device *dev, XF86MatchedDrivers *md)
f34ecf
 
f34ecf
         driverList[idx++] = "nouveau";
f34ecf
 #endif
f34ecf
-        driverList[idx++] = "nv";
f34ecf
         break;
f34ecf
     }
f34ecf
-    case 0x1106:
f34ecf
-        driverList[0] = "openchrome";
f34ecf
-        break;
f34ecf
     case 0x1b36:
f34ecf
         driverList[0] = "qxl";
f34ecf
         break;
f34ecf
-    case 0x1163:
f34ecf
-        driverList[0] = "rendition";
f34ecf
-        break;
f34ecf
-    case 0x5333:
f34ecf
-        switch (dev->device_id) {
f34ecf
-        case 0x88d0:
f34ecf
-        case 0x88d1:
f34ecf
-        case 0x88f0:
f34ecf
-        case 0x8811:
f34ecf
-        case 0x8812:
f34ecf
-        case 0x8814:
f34ecf
-        case 0x8901:
f34ecf
-            driverList[0] = "s3";
f34ecf
-            break;
f34ecf
-        case 0x5631:
f34ecf
-        case 0x883d:
f34ecf
-        case 0x8a01:
f34ecf
-        case 0x8a10:
f34ecf
-        case 0x8c01:
f34ecf
-        case 0x8c03:
f34ecf
-        case 0x8904:
f34ecf
-        case 0x8a13:
f34ecf
-            driverList[0] = "s3virge";
f34ecf
-            break;
f34ecf
-        default:
f34ecf
-            driverList[0] = "savage";
f34ecf
-            break;
f34ecf
-        }
f34ecf
-        break;
f34ecf
-    case 0x1039:
f34ecf
-        driverList[0] = "sis";
f34ecf
-        break;
f34ecf
-    case 0x126f:
f34ecf
-        driverList[0] = "siliconmotion";
f34ecf
-        break;
f34ecf
-    case 0x121a:
f34ecf
-        if (dev->device_id < 0x0003)
f34ecf
-            driverList[0] = "voodoo";
f34ecf
-        else
f34ecf
-            driverList[0] = "tdfx";
f34ecf
-        break;
f34ecf
-    case 0x1011:
f34ecf
-        driverList[0] = "tga";
f34ecf
-        break;
f34ecf
-    case 0x1023:
f34ecf
-        driverList[0] = "trident";
f34ecf
-        break;
f34ecf
-    case 0x100c:
f34ecf
-        driverList[0] = "tseng";
f34ecf
-        break;
f34ecf
     case 0x80ee:
f34ecf
         driverList[0] = "vboxvideo";
f34ecf
         break;
f34ecf
     case 0x15ad:
f34ecf
         driverList[0] = "vmware";
f34ecf
         break;
f34ecf
-    case 0x18ca:
f34ecf
-        if (dev->device_id == 0x47)
f34ecf
-            driverList[0] = "xgixp";
f34ecf
-        else
f34ecf
-            driverList[0] = "xgi";
f34ecf
-        break;
f34ecf
     default:
f34ecf
         break;
f34ecf
     }
f34ecf
diff --git a/hw/xfree86/dri2/pci_ids/pci_id_driver_map.h b/hw/xfree86/dri2/pci_ids/pci_id_driver_map.h
f34ecf
index 7036d10..689a570 100644
f34ecf
--- a/hw/xfree86/dri2/pci_ids/pci_id_driver_map.h
f34ecf
+++ b/hw/xfree86/dri2/pci_ids/pci_id_driver_map.h
f34ecf
@@ -7,38 +7,12 @@
f34ecf
 #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
f34ecf
 #endif
f34ecf
 
f34ecf
-static const int i915_chip_ids[] = {
f34ecf
-#define CHIPSET(chip, desc, name) chip,
f34ecf
-#include "pci_ids/i915_pci_ids.h"
f34ecf
-#undef CHIPSET
f34ecf
-};
f34ecf
-
f34ecf
 static const int i965_chip_ids[] = {
f34ecf
 #define CHIPSET(chip, family, name) chip,
f34ecf
 #include "pci_ids/i965_pci_ids.h"
f34ecf
 #undef CHIPSET
f34ecf
 };
f34ecf
 
f34ecf
-#ifndef DRIVER_MAP_GALLIUM_ONLY
f34ecf
-static const int r100_chip_ids[] = {
f34ecf
-#define CHIPSET(chip, name, family) chip,
f34ecf
-#include "pci_ids/radeon_pci_ids.h"
f34ecf
-#undef CHIPSET
f34ecf
-};
f34ecf
-
f34ecf
-static const int r200_chip_ids[] = {
f34ecf
-#define CHIPSET(chip, name, family) chip,
f34ecf
-#include "pci_ids/r200_pci_ids.h"
f34ecf
-#undef CHIPSET
f34ecf
-};
f34ecf
-#endif
f34ecf
-
f34ecf
-static const int r300_chip_ids[] = {
f34ecf
-#define CHIPSET(chip, name, family) chip,
f34ecf
-#include "pci_ids/r300_pci_ids.h"
f34ecf
-#undef CHIPSET
f34ecf
-};
f34ecf
-
f34ecf
 static const int r600_chip_ids[] = {
f34ecf
 #define CHIPSET(chip, name, family) chip,
f34ecf
 #include "pci_ids/r600_pci_ids.h"
f34ecf
@@ -70,13 +44,7 @@ static const struct {
f34ecf
    const int *chip_ids;
f34ecf
    int num_chips_ids;
f34ecf
 } driver_map[] = {
f34ecf
-   { 0x8086, "i915", "i915", i915_chip_ids, ARRAY_SIZE(i915_chip_ids) },
f34ecf
    { 0x8086, "i965", "va_gl", i965_chip_ids, ARRAY_SIZE(i965_chip_ids) },
f34ecf
-#ifndef DRIVER_MAP_GALLIUM_ONLY
f34ecf
-   { 0x1002, "radeon", "radeon", r100_chip_ids, ARRAY_SIZE(r100_chip_ids) },
f34ecf
-   { 0x1002, "r200", "r200", r200_chip_ids, ARRAY_SIZE(r200_chip_ids) },
f34ecf
-#endif
f34ecf
-   { 0x1002, "r300", "r300", r300_chip_ids, ARRAY_SIZE(r300_chip_ids) },
f34ecf
    { 0x1002, "r600","r600",  r600_chip_ids, ARRAY_SIZE(r600_chip_ids) },
f34ecf
    { 0x1002, "radeonsi", "radeonsi", radeonsi_chip_ids, ARRAY_SIZE(radeonsi_chip_ids) },
f34ecf
    { 0x10de, "nouveau", "nouveau", NULL, -1 },
f34ecf
-- 
f34ecf
2.19.1
f34ecf