Blame SOURCES/0001-mustard-xfree86-Only-call-the-driver-s-platformProbe.patch

976099
From ab756b13392448201c106b7629c55f68af4d8ec5 Mon Sep 17 00:00:00 2001
976099
From: Adam Jackson <ajax@redhat.com>
976099
Date: Fri, 1 Oct 2021 11:47:21 -0400
976099
Subject: [PATCH xserver] mustard: xfree86: Only call the driver's
976099
 platformProbe
976099
976099
The code to detangle what's a PCI device and what's platform is... bad.
976099
The PCI-specific initialization path should never be necessary these
976099
days, and the ancient "just probe something" path should especially
976099
never be necessary, so we can avoid a bunch of fragile code by simply
976099
never calling into the non-platform probe paths and letting platform
976099
handle everything.
976099
976099
Among other things this fixes hypervdrm on v1 devices, which have both a
976099
PCI and a platform presentation, in a way that would cause X to fail to
976099
start.
976099
---
976099
 hw/xfree86/common/xf86Bus.c | 2 ++
976099
 1 file changed, 2 insertions(+)
976099
976099
diff --git a/hw/xfree86/common/xf86Bus.c b/hw/xfree86/common/xf86Bus.c
976099
index fd144dbe7a..88e07dec40 100644
976099
--- a/hw/xfree86/common/xf86Bus.c
976099
+++ b/hw/xfree86/common/xf86Bus.c
976099
@@ -84,6 +84,7 @@ xf86CallDriverProbe(DriverPtr drv, Bool detect_only)
976099
     }
976099
 #endif
976099
 
976099
+#if 0
976099
 #ifdef XSERVER_LIBPCIACCESS
976099
     if (!foundScreen && (drv->PciProbe != NULL)) {
976099
         if (xf86DoConfigure && xf86DoConfigurePass1) {
976099
@@ -102,6 +103,7 @@ xf86CallDriverProbe(DriverPtr drv, Bool detect_only)
976099
         foundScreen = (*drv->Probe) (drv, (detect_only) ? PROBE_DETECT
976099
                                      : PROBE_DEFAULT);
976099
     }
976099
+#endif
976099
 
976099
     return foundScreen;
976099
 }
976099
-- 
976099
2.31.1
976099