diff options
| author | California Sullivan <california.l.sullivan@intel.com> | 2018-03-19 17:25:11 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-03-25 09:40:41 +0100 |
| commit | be7511a33deb7c7eb38760ca60564da42c79d41e (patch) | |
| tree | 06edeaf6c73635a571b0109aa1f9f077f7b81c33 /meta | |
| parent | 7a8099635534a1c7991eb3e1da26398482f54a7c (diff) | |
| download | poky-be7511a33deb7c7eb38760ca60564da42c79d41e.tar.gz | |
xserver-xorg: import distro patch to use modesetting driver on newer hardware
Debian and Fedora both carry this patch, and the xf86-video-modesetting
driver seems better on recent hardware.
As an example, on a NUC6CAYS, the x11perf -aa10text and -rgb10text tests
see around a 20x increase.
[YOCTO #12019]
[YOCTO #12390]
(From OE-Core rev: 2e4934d5d4b2745ffcd76020b307b9021f8d8853)
Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/recipes-graphics/xorg-xserver/xserver-xorg/0001-xf86pciBus.c-use-Intel-ddx-only-for-pre-gen4-hardwar.patch | 53 | ||||
| -rw-r--r-- | meta/recipes-graphics/xorg-xserver/xserver-xorg_1.19.6.bb | 1 |
2 files changed, 54 insertions, 0 deletions
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xorg/0001-xf86pciBus.c-use-Intel-ddx-only-for-pre-gen4-hardwar.patch b/meta/recipes-graphics/xorg-xserver/xserver-xorg/0001-xf86pciBus.c-use-Intel-ddx-only-for-pre-gen4-hardwar.patch new file mode 100644 index 0000000000..d05eec5bb9 --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-xorg/0001-xf86pciBus.c-use-Intel-ddx-only-for-pre-gen4-hardwar.patch | |||
| @@ -0,0 +1,53 @@ | |||
| 1 | From d77cdc5e1eee26821ab98c947abea53fb7b18fe5 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: California Sullivan <california.l.sullivan@intel.com> | ||
| 3 | Date: Fri, 16 Mar 2018 17:23:11 -0700 | ||
| 4 | Subject: [PATCH] xf86pciBus.c: use Intel ddx only for pre-gen4 hardware | ||
| 5 | |||
| 6 | Use intel ddx only on pre-gen4 hw, newer ones will fall back to modesetting | ||
| 7 | Author: Timo Aaltonen <tjaalton@debian.org> | ||
| 8 | |||
| 9 | Instead of defaulting to the Intel driver for all Intel hardware, only | ||
| 10 | default it for older hardware for which it has shown to be better for. | ||
| 11 | |||
| 12 | Others fall through to the -modesetting default. | ||
| 13 | |||
| 14 | Upstream-Status: Pending [Debian/Fedora patch | ||
| 15 | https://src.fedoraproject.org/rpms/xorg-x11-server/c/ee515e44b07e37689abf48cf2fffb41578f3bc1d] | ||
| 16 | |||
| 17 | Signed-off-by: California Sullivan <california.l.sullivan@intel.com> | ||
| 18 | --- | ||
| 19 | hw/xfree86/common/xf86pciBus.c | 18 +++++++++++++++++- | ||
| 20 | 1 file changed, 17 insertions(+), 1 deletion(-) | ||
| 21 | |||
| 22 | diff --git a/hw/xfree86/common/xf86pciBus.c b/hw/xfree86/common/xf86pciBus.c | ||
| 23 | index e61ae0cd4..d70c99197 100644 | ||
| 24 | --- a/hw/xfree86/common/xf86pciBus.c | ||
| 25 | +++ b/hw/xfree86/common/xf86pciBus.c | ||
| 26 | @@ -1173,7 +1173,23 @@ xf86VideoPtrToDriverList(struct pci_device *dev, | ||
| 27 | case 0x0bef: | ||
| 28 | /* Use fbdev/vesa driver on Oaktrail, Medfield, CDV */ | ||
| 29 | break; | ||
| 30 | - default: | ||
| 31 | + /* Default to intel only on pre-gen4 chips */ | ||
| 32 | + case 0x3577: | ||
| 33 | + case 0x2562: | ||
| 34 | + case 0x3582: | ||
| 35 | + case 0x358e: | ||
| 36 | + case 0x2572: | ||
| 37 | + case 0x2582: | ||
| 38 | + case 0x258a: | ||
| 39 | + case 0x2592: | ||
| 40 | + case 0x2772: | ||
| 41 | + case 0x27a2: | ||
| 42 | + case 0x27ae: | ||
| 43 | + case 0x29b2: | ||
| 44 | + case 0x29c2: | ||
| 45 | + case 0x29d2: | ||
| 46 | + case 0xa001: | ||
| 47 | + case 0xa011: | ||
| 48 | driverList[0] = "intel"; | ||
| 49 | break; | ||
| 50 | } | ||
| 51 | -- | ||
| 52 | 2.14.3 | ||
| 53 | |||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xorg_1.19.6.bb b/meta/recipes-graphics/xorg-xserver/xserver-xorg_1.19.6.bb index 76a4990427..c680cf9e89 100644 --- a/meta/recipes-graphics/xorg-xserver/xserver-xorg_1.19.6.bb +++ b/meta/recipes-graphics/xorg-xserver/xserver-xorg_1.19.6.bb | |||
| @@ -4,6 +4,7 @@ SRC_URI += "file://musl-arm-inb-outb.patch \ | |||
| 4 | file://0001-configure.ac-Fix-check-for-CLOCK_MONOTONIC.patch \ | 4 | file://0001-configure.ac-Fix-check-for-CLOCK_MONOTONIC.patch \ |
| 5 | file://0003-modesetting-Fix-16-bit-depth-bpp-mode.patch \ | 5 | file://0003-modesetting-Fix-16-bit-depth-bpp-mode.patch \ |
| 6 | file://0003-Remove-check-for-useSIGIO-option.patch \ | 6 | file://0003-Remove-check-for-useSIGIO-option.patch \ |
| 7 | file://0001-xf86pciBus.c-use-Intel-ddx-only-for-pre-gen4-hardwar.patch \ | ||
| 7 | " | 8 | " |
| 8 | SRC_URI[md5sum] = "3e47777ff034a331aed2322b078694a8" | 9 | SRC_URI[md5sum] = "3e47777ff034a331aed2322b078694a8" |
| 9 | SRC_URI[sha256sum] = "a732502f1db000cf36a376cd0c010ffdbf32ecdd7f1fa08ba7f5bdf9601cc197" | 10 | SRC_URI[sha256sum] = "a732502f1db000cf36a376cd0c010ffdbf32ecdd7f1fa08ba7f5bdf9601cc197" |
