Sophie

Sophie

distrib > Mageia > 9 > armv7hl > media > core-release-src > by-pkgid > f33c4cfc0e55333b80c6bb254dd68789 > files > 7

x11-server-21.1.8-7.mga9.src.rpm

From 87eea600507b8553cfa97638e6d4b6fad21b0766 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Giuseppe=20Ghib=C3=B2?= <ghibo@mageia.org>
Date: Mon, 5 Jun 2023 20:53:58 +0200
Subject: [PATCH] Force modesetting for more AlderLake-N with UHD graphics and
 others (bug #31654)

Force modesetting for more AlderLake-P|N|HX|UP* with UHD graphics, as
well as for some other RaptorLake-P and some MeteorLake.

---
 hw/xfree86/common/xf86pciBus.c | 36 ++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/hw/xfree86/common/xf86pciBus.c b/hw/xfree86/common/xf86pciBus.c
index 3d18c5e..d6c174d 100644
--- a/hw/xfree86/common/xf86pciBus.c
+++ b/hw/xfree86/common/xf86pciBus.c
@@ -1174,6 +1174,26 @@ xf86VideoPtrToDriverList(struct pci_device *dev, XF86MatchedDrivers *md)
 		case 0x0bef:
 			/* Use fbdev/vesa driver on Oaktrail, Medfield, CDV */
 			break;
+                case 0x4626:
+                case 0x4628:
+                case 0x462a:
+                case 0x4636:
+                case 0x4638:
+                case 0x463a:
+                case 0x4682:
+                case 0x4688:
+                case 0x468a:
+                case 0x468b:
+                case 0x4690:
+                case 0x4692:
+                case 0x4693:
+                case 0x46a3:
+                case 0x46b3:
+                case 0x46c3:
+                case 0x46d0:
+                case 0x46d1:
+                case 0x46d2:
+                        /* Use modesetting on AlderLake-P|N|HX|UP* with UHD Graphics */
                 case 0x46a0:
                 case 0x46a6:
                 case 0x46a8:
@@ -1190,7 +1210,23 @@ xf86VideoPtrToDriverList(struct pci_device *dev, XF86MatchedDrivers *md)
                         /* Use modesetting on RaptorLake-P with Iris Xe Graphics */
                 case 0xa720:
                 case 0xa721:
+                case 0xa780:
+                case 0xa781:
+                case 0xa782:
+                case 0xa783:
+                case 0xa788:
+                case 0xa789:
+                case 0xa78a:
+                case 0xa78b:
+                case 0xa7a8:
+                case 0xa7a9:
                         /* Use modesetting on RaptorLake-P with Iris UHD Graphics */
+                case 0x7d40:
+                case 0x7d45:
+                case 0x7d55:
+                case 0x7d60:
+                case 0x7dd5:
+                        /* Use modesetting on MeteorLake with Intel Graphics */
                         driverList[0] = "modesetting";
                         break;
 		default:
-- 
2.41.0