From e45516afa648c8bc759c78d616154d043afd5d3f Mon Sep 17 00:00:00 2001 From: Timo Aaltonen Date: Fri, 16 Mar 2018 17:23:11 -0700 Subject: [PATCH] xf86pciBus.c: use Intel ddx only for pre-gen3 hardware MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use intel ddx only on pre-gen4 hw, newer ones will fall back to modesetting. Instead of defaulting to the Intel driver for all Intel hardware, only default it for older hardware for which it has shown to be better for. Note that Debian/Fedora and their derivatives, as well as the yocto project have been carrying this patch for many years: https://salsa.debian.org/xorg-team/xserver/xorg-server/-/commit/192254841ab79e102c18fc299f18af0e27d5b517 https://src.fedoraproject.org/rpms/xorg-x11-server/c/ee515e44b07e37689abf48cf2fffb41578f3bc1d so this simply aligns xserver upstream with Linux distributions. Signed-off-by: California Sullivan Signed-off-by: Alexander Kanavin Co-authored-by: Balló György Reviewed-by: Emma Anholt Part-of: --- hw/xfree86/common/xf86pciBus.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/hw/xfree86/common/xf86pciBus.c b/hw/xfree86/common/xf86pciBus.c index d20fef47c..0fb945c3d 100644 --- a/hw/xfree86/common/xf86pciBus.c +++ b/hw/xfree86/common/xf86pciBus.c @@ -1174,7 +1174,16 @@ xf86VideoPtrToDriverList(struct pci_device *dev, XF86MatchedDrivers *md) case 0x0bef: /* Use fbdev/vesa driver on Oaktrail, Medfield, CDV */ break; - default: + /* Default to intel only on pre-gen3 chips */ + case 0x7121: + case 0x7123: + case 0x7125: + case 0x1132: + case 0x3577: + case 0x2562: + case 0x3582: + case 0x358e: + case 0x2572: driverList[0] = "intel"; break; }