xref: /linux/drivers/gpu/drm/xe/Kconfig (revision ffe8ac927d935d7d4a0bd9ac94afd705df79982b)
1dd08ebf6SMatthew Brost# SPDX-License-Identifier: GPL-2.0-only
2dd08ebf6SMatthew Brostconfig DRM_XE
31488a308SLucas De Marchi	tristate "Intel Xe2 Graphics"
4a5594348SHarry Austen	depends on DRM && PCI
5a5594348SHarry Austen	depends on KUNIT || !KUNIT
6e4931f8bSArnd Bergmann	depends on INTEL_VSEC || !INTEL_VSEC
7e4931f8bSArnd Bergmann	depends on X86_PLATFORM_DEVICES || !(X86 && ACPI)
8*022906afSSimon Richter	depends on PAGE_SIZE_4KB || COMPILE_TEST || BROKEN
9dd08ebf6SMatthew Brost	select INTERVAL_TREE
10dd08ebf6SMatthew Brost	# we need shmfs for the swappable backing store, and in particular
11dd08ebf6SMatthew Brost	# the shmem_readpage() which depends upon tmpfs
12dd08ebf6SMatthew Brost	select SHMEM
13dd08ebf6SMatthew Brost	select TMPFS
14dd08ebf6SMatthew Brost	select DRM_BUDDY
15f1d730cbSThomas Zimmermann	select DRM_CLIENT_SELECTION
16d490ecf5SThomas Hellström	select DRM_EXEC
17dd08ebf6SMatthew Brost	select DRM_KMS_HELPER
180e6fec6dSArnd Bergmann	select DRM_KUNIT_TEST_HELPERS if DRM_XE_KUNIT_TEST != n
19dd08ebf6SMatthew Brost	select DRM_PANEL
20dd08ebf6SMatthew Brost	select DRM_SUBALLOC_HELPER
217fe302aeSGeert Uytterhoeven	select DRM_DISPLAY_DP_HELPER
22f6882661SDmitry Baryshkov	select DRM_DISPLAY_DSC_HELPER
2395734469SGeert Uytterhoeven	select DRM_DISPLAY_HDCP_HELPER
24d7c128cbSGeert Uytterhoeven	select DRM_DISPLAY_HDMI_HELPER
2505b8b6ddSGeert Uytterhoeven	select DRM_DISPLAY_HELPER
2644e69495SMaarten Lankhorst	select DRM_MIPI_DSI
27dd08ebf6SMatthew Brost	select RELAY
28dd08ebf6SMatthew Brost	select IRQ_WORK
29d2197029SDave Airlie	# xe depends on ACPI_VIDEO when ACPI is enabled
3044e69495SMaarten Lankhorst	# but for select to work, need to select ACPI_VIDEO's dependencies, ick
3144e69495SMaarten Lankhorst	select BACKLIGHT_CLASS_DEVICE if ACPI
3244e69495SMaarten Lankhorst	select INPUT if ACPI
3344e69495SMaarten Lankhorst	select ACPI_VIDEO if X86 && ACPI
34d2197029SDave Airlie	select ACPI_WMI if X86 && ACPI
35dd08ebf6SMatthew Brost	select SYNC_FILE
36dd08ebf6SMatthew Brost	select CRC32
37dd08ebf6SMatthew Brost	select SND_HDA_I915 if SND_HDA_CORE
38dd08ebf6SMatthew Brost	select CEC_CORE if CEC_NOTIFIER
39dd08ebf6SMatthew Brost	select VMAP_PFN
40dd08ebf6SMatthew Brost	select DRM_TTM
41dd08ebf6SMatthew Brost	select DRM_TTM_HELPER
42d490ecf5SThomas Hellström	select DRM_EXEC
43b06d47beSMatthew Brost	select DRM_GPUVM
44dd08ebf6SMatthew Brost	select DRM_SCHED
45dd08ebf6SMatthew Brost	select MMU_NOTIFIER
46e7994850SRodrigo Vivi	select WANT_DEV_COREDUMP
4787a4c85dSVitaly Lubart	select AUXILIARY_BUS
4881e058a3SOak Zeng	select HMM_MIRROR
49f0e53aadSHeikki Krogerus	select REGMAP if I2C
50dd08ebf6SMatthew Brost	help
511488a308SLucas De Marchi	  Driver for Intel Xe2 series GPUs and later. Experimental support
521488a308SLucas De Marchi	  for Xe series is also available.
53dd08ebf6SMatthew Brost
54dd08ebf6SMatthew Brost	  If "M" is selected, the module will be called xe.
55dd08ebf6SMatthew Brost
5644e69495SMaarten Lankhorstconfig DRM_XE_DISPLAY
5744e69495SMaarten Lankhorst	bool "Enable display support"
58f663c6aeSNiklas Schnelle	depends on DRM_XE && DRM_XE=m && HAS_IOPORT
5968958288SYue Haibing	select FB_IOMEM_HELPERS if DRM_FBDEV_EMULATION
6044e69495SMaarten Lankhorst	select I2C
6144e69495SMaarten Lankhorst	select I2C_ALGOBIT
6244e69495SMaarten Lankhorst	default y
6344e69495SMaarten Lankhorst	help
6444e69495SMaarten Lankhorst	  Disable this option only if you want to compile out display support.
6544e69495SMaarten Lankhorst
6673900dceSImre Deakconfig DRM_XE_DP_TUNNEL
6773900dceSImre Deak	bool "Enable DP tunnel support"
688a2392feSImre Deak	depends on DRM_XE_DISPLAY
6973900dceSImre Deak	depends on USB4
7073900dceSImre Deak	select DRM_DISPLAY_DP_TUNNEL
7173900dceSImre Deak	default y
7273900dceSImre Deak	help
7373900dceSImre Deak	  Choose this option to detect DP tunnels and enable the Bandwidth
7473900dceSImre Deak	  Allocation mode for such tunnels. This allows using the maximum
7573900dceSImre Deak	  resolution allowed by the link BW on all displays sharing the
7673900dceSImre Deak	  link BW, for instance on a Thunderbolt link.
7773900dceSImre Deak
7873900dceSImre Deak	  If in doubt say "Y".
7973900dceSImre Deak
806c55404dSThomas Hellströmconfig DRM_XE_GPUSVM
816c55404dSThomas Hellström	bool "Enable CPU to GPU address mirroring"
826c55404dSThomas Hellström	depends on DRM_XE
836c55404dSThomas Hellström	depends on !UML
846c55404dSThomas Hellström	depends on DEVICE_PRIVATE
856c55404dSThomas Hellström	default y
866c55404dSThomas Hellström	select DRM_GPUSVM
876c55404dSThomas Hellström	help
886c55404dSThomas Hellström	  Enable this option if you want support for CPU to GPU address
896c55404dSThomas Hellström	  mirroring.
906c55404dSThomas Hellström
915ac5e191SMaarten Lankhorst	  If in doubt say "Y".
926c55404dSThomas Hellström
93f86ad0edSMatthew Brostconfig DRM_XE_PAGEMAP
94f86ad0edSMatthew Brost	bool "Enable device memory pool for SVM"
956c55404dSThomas Hellström	depends on DRM_XE_GPUSVM
960c30c654SMatthew Brost	select GET_FREE_REGION
970c30c654SMatthew Brost	default y
980c30c654SMatthew Brost	help
99f86ad0edSMatthew Brost	  Disable this option only if you don't want to expose local device
100f86ad0edSMatthew Brost	  memory for SVM. Will reduce KMD memory footprint when disabled.
101f86ad0edSMatthew Brost
1025ac5e191SMaarten Lankhorst	  If in doubt say "Y".
1030c30c654SMatthew Brost
104dd08ebf6SMatthew Brostconfig DRM_XE_FORCE_PROBE
105dd08ebf6SMatthew Brost	string "Force probe xe for selected Intel hardware IDs"
106dd08ebf6SMatthew Brost	depends on DRM_XE
107dd08ebf6SMatthew Brost	help
108dd08ebf6SMatthew Brost	  This is the default value for the xe.force_probe module
109dd08ebf6SMatthew Brost	  parameter. Using the module parameter overrides this option.
110dd08ebf6SMatthew Brost
111dd08ebf6SMatthew Brost	  Force probe the xe for Intel graphics devices that are
112dd08ebf6SMatthew Brost	  recognized but not properly supported by this kernel version. It is
113dd08ebf6SMatthew Brost	  recommended to upgrade to a kernel version with proper support as soon
114dd08ebf6SMatthew Brost	  as it is available.
115dd08ebf6SMatthew Brost
116dd08ebf6SMatthew Brost	  It can also be used to block the probe of recognized and fully
117dd08ebf6SMatthew Brost	  supported devices.
118dd08ebf6SMatthew Brost
119dd08ebf6SMatthew Brost	  Use "" to disable force probe. If in doubt, use this.
120dd08ebf6SMatthew Brost
121dd08ebf6SMatthew Brost	  Use "<pci-id>[,<pci-id>,...]" to force probe the xe for listed
122dd08ebf6SMatthew Brost	  devices. For example, "4500" or "4500,4571".
123dd08ebf6SMatthew Brost
124dd08ebf6SMatthew Brost	  Use "*" to force probe the driver for all known devices.
125dd08ebf6SMatthew Brost
126dd08ebf6SMatthew Brost	  Use "!" right before the ID to block the probe of the device. For
127dd08ebf6SMatthew Brost	  example, "4500,!4571" forces the probe of 4500 and blocks the probe of
128dd08ebf6SMatthew Brost	  4571.
129dd08ebf6SMatthew Brost
130dd08ebf6SMatthew Brost	  Use "!*" to block the probe of the driver for all known devices.
131dd08ebf6SMatthew Brost
132dd08ebf6SMatthew Brostmenu "drm/Xe Debugging"
133dd08ebf6SMatthew Brostdepends on DRM_XE
134dd08ebf6SMatthew Brostdepends on EXPERT
135dd08ebf6SMatthew Brostsource "drivers/gpu/drm/xe/Kconfig.debug"
136dd08ebf6SMatthew Brostendmenu
137d2776564STejas Upadhyay
138d2776564STejas Upadhyaymenu "drm/xe Profile Guided Optimisation"
139d2776564STejas Upadhyay	visible if EXPERT
140d2776564STejas Upadhyay	depends on DRM_XE
141d2776564STejas Upadhyay	source "drivers/gpu/drm/xe/Kconfig.profile"
142d2776564STejas Upadhyayendmenu
143