[packages/xorg-driver-video-intel] - add Alderlke devices

baggins baggins at pld-linux.org
Mon Sep 11 03:00:22 CEST 2023


commit 4e1322d0a6ccb0d65795fd3c9ae3668bb00ee159
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Mon Sep 11 03:00:01 2023 +0200

    - add Alderlke devices

 alderlake.patch              | 111 +++++++++++++++++++++++++++++++++++++++++++
 xorg-driver-video-intel.spec |   9 ++++
 2 files changed, 120 insertions(+)
---
diff --git a/xorg-driver-video-intel.spec b/xorg-driver-video-intel.spec
index b7fce86..5164286 100644
--- a/xorg-driver-video-intel.spec
+++ b/xorg-driver-video-intel.spec
@@ -25,6 +25,7 @@ Patch0:		xorg-driver-video-intel-git.patch
 # Patch0-md5:	170b42aa5a6b04c11c67a91757a78516
 Patch1:		driver-intel-sna-cursor-Make-sure-hw-cursors-are-disabled-before-disabling-secondary-planes.patch
 Patch2:		link.patch
+Patch3:		alderlake.patch
 BuildRequires:	Mesa-libGL-devel
 #BuildRequires:	autoconf >= 2.63
 #BuildRequires:	automake >= 1:1.10.2-2
@@ -38,7 +39,12 @@ BuildRequires:	rpmbuild(macros) >= 1.389
 BuildRequires:	udev-devel
 BuildRequires:	xcb-util-devel
 BuildRequires:	xorg-lib-libX11-devel
+BuildRequires:	xorg-lib-libXcursor-devel
+BuildRequires:	xorg-lib-libXdamage-devel
+BuildRequires:	xorg-lib-libXext-devel
 BuildRequires:	xorg-lib-libXfixes-devel
+BuildRequires:	xorg-lib-libXinerama-devel
+BuildRequires:	xorg-lib-libXrandr-devel
 BuildRequires:	xorg-lib-libXrender-devel
 BuildRequires:	xorg-lib-libXtst-devel
 BuildRequires:	xorg-lib-libXvMC-devel
@@ -49,9 +55,11 @@ BuildRequires:	xorg-proto-fontsproto-devel
 BuildRequires:	xorg-proto-glproto-devel
 BuildRequires:	xorg-proto-randrproto-devel
 BuildRequires:	xorg-proto-renderproto-devel
+BuildRequires:	xorg-proto-scrnsaverproto-devel
 BuildRequires:	xorg-proto-videoproto-devel
 BuildRequires:	xorg-proto-xextproto-devel >= 7.0.99.1
 BuildRequires:	xorg-proto-xf86driproto-devel
+BuildRequires:	xorg-proto-xineramaproto-devel
 BuildRequires:	xorg-proto-xproto-devel >= 7.0.13
 BuildRequires:	xorg-util-util-macros >= 1.8
 BuildRequires:	xorg-xserver-server-devel >= %{xserver_ver}
@@ -100,6 +108,7 @@ Wymaga aktywnego Kernel Mode Setting (KMS).
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 %build
 %{__aclocal}
diff --git a/alderlake.patch b/alderlake.patch
new file mode 100644
index 0000000..4a35f9c
--- /dev/null
+++ b/alderlake.patch
@@ -0,0 +1,111 @@
+--- xf86-video-intel-2.99.917/src/i915_pciids.h.orig	2023-09-09 16:07:15.000000000 +0200
++++ xf86-video-intel-2.99.917/src/i915_pciids.h	2023-09-11 02:07:14.406515377 +0200
+@@ -601,4 +601,42 @@
+ 	INTEL_VGA_DEVICE(0x9A70, info), \
+ 	INTEL_VGA_DEVICE(0x9A78, info)
+ 
++/* ADL-S */
++#define INTEL_ADLS_IDS(info) \
++	INTEL_VGA_DEVICE(0x4680, info), \
++	INTEL_VGA_DEVICE(0x4682, info), \
++	INTEL_VGA_DEVICE(0x4688, info), \
++	INTEL_VGA_DEVICE(0x468A, info), \
++	INTEL_VGA_DEVICE(0x468B, info), \
++	INTEL_VGA_DEVICE(0x4690, info), \
++	INTEL_VGA_DEVICE(0x4692, info), \
++	INTEL_VGA_DEVICE(0x4693, info)
++
++/* ADL-P */
++#define INTEL_ADLP_IDS(info) \
++	INTEL_VGA_DEVICE(0x46A0, info), \
++	INTEL_VGA_DEVICE(0x46A1, info), \
++	INTEL_VGA_DEVICE(0x46A2, info), \
++	INTEL_VGA_DEVICE(0x46A3, info), \
++	INTEL_VGA_DEVICE(0x46A6, info), \
++	INTEL_VGA_DEVICE(0x46A8, info), \
++	INTEL_VGA_DEVICE(0x46AA, info), \
++	INTEL_VGA_DEVICE(0x462A, info), \
++	INTEL_VGA_DEVICE(0x4626, info), \
++	INTEL_VGA_DEVICE(0x4628, info), \
++	INTEL_VGA_DEVICE(0x46B0, info), \
++	INTEL_VGA_DEVICE(0x46B1, info), \
++	INTEL_VGA_DEVICE(0x46B2, info), \
++	INTEL_VGA_DEVICE(0x46B3, info), \
++	INTEL_VGA_DEVICE(0x46C0, info), \
++	INTEL_VGA_DEVICE(0x46C1, info), \
++	INTEL_VGA_DEVICE(0x46C2, info), \
++	INTEL_VGA_DEVICE(0x46C3, info)
++
++/* ADL-N */
++#define INTEL_ADLN_IDS(info) \
++	INTEL_VGA_DEVICE(0x46D0, info), \
++	INTEL_VGA_DEVICE(0x46D1, info), \
++	INTEL_VGA_DEVICE(0x46D2, info)
++
+ #endif /* _I915_PCIIDS_H */
+--- xf86-video-intel-2.99.917/src/intel_module.c.orig	2023-09-09 16:07:15.000000000 +0200
++++ xf86-video-intel-2.99.917/src/intel_module.c	2023-09-11 02:07:12.843026367 +0200
+@@ -158,6 +158,10 @@
+ 	.gen = 0140,
+ };
+ 
++static const struct intel_device_info intel_alderlake_info = {
++	.gen = 0140,
++};
++
+ static const SymTabRec intel_chipsets[] = {
+ 	{PCI_CHIP_I810,				"i810"},
+ 	{PCI_CHIP_I810_DC100,			"i810-dc100"},
+@@ -415,6 +419,41 @@
+ 	{0x9A70, "HD Graphics"},
+ 	{0x9A78, "HD Graphics"},
+ 
++	/* Alderlake S */
++	{0x4680, "HD Graphics 770"},
++	{0x4682, "HD Graphics"},
++	{0x4688, "HD Graphics"},
++	{0x468A, "HD Graphics"},
++	{0x468B, "HD Graphics"},
++	{0x4690, "HD Graphics"},
++	{0x4692, "HD Graphics"},
++	{0x4693, "HD Graphics"},
++
++	/* Alderlake P */
++	{0x46A0, "HD Graphics"},
++	{0x46A1, "HD Graphics"},
++	{0x46A2, "HD Graphics"},
++	{0x46A3, "HD Graphics"},
++	{0x46A6, "Iris Xe"},
++	{0x46A8, "Iris Xe"},
++	{0x46AA, "Iris Xe"},
++	{0x462A, "HD Graphics"},
++	{0x4626, "HD Graphics"},
++	{0x4628, "HD Graphics"},
++	{0x46B0, "HD Graphics"},
++	{0x46B1, "HD Graphics"},
++	{0x46B2, "HD Graphics"},
++	{0x46B3, "HD Graphics"},
++	{0x46C0, "HD Graphics"},
++	{0x46C1, "HD Graphics"},
++	{0x46C2, "HD Graphics"},
++	{0x46C3, "HD Graphics"},
++
++	/* Alderlake N */
++	{0x46D0, "HD Graphics"},
++	{0x46D1, "HD Graphics"},
++	{0x46D2, "HD Graphics"},
++
+ 	/* When adding new identifiers, also update:
+ 	 * 1. intel_identify()
+ 	 * 2. man/intel.man
+@@ -481,6 +488,10 @@
+ 
+ 	INTEL_TGL_12_IDS(&intel_tigerlake_info),
+ 
++	INTEL_ADLS_IDS(&intel_alderlake_info),
++	INTEL_ADLP_IDS(&intel_alderlake_info),
++	INTEL_ADLN_IDS(&intel_alderlake_info),
++
+ 	INTEL_VGA_DEVICE(PCI_MATCH_ANY, &intel_generic_info),
+ #endif
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/xorg-driver-video-intel.git/commitdiff/4e1322d0a6ccb0d65795fd3c9ae3668bb00ee159



More information about the pld-cvs-commit mailing list