1# SPDX-License-Identifier: GPL-2.0-only
2config DRM_I915
3	tristate "Intel 8xx/9xx/G3x/G4x/HD Graphics"
4	depends on DRM
5	depends on X86 && PCI
6	depends on !PREEMPT_RT
7	select INTEL_GTT if X86
8	select INTERVAL_TREE
9	# we need shmfs for the swappable backing store, and in particular
10	# the shmem_readpage() which depends upon tmpfs
11	select SHMEM
12	select TMPFS
13	select DRM_DISPLAY_DP_HELPER
14	select DRM_DISPLAY_HDCP_HELPER
15	select DRM_DISPLAY_HDMI_HELPER
16	select DRM_DISPLAY_HELPER
17	select DRM_KMS_HELPER
18	select DRM_PANEL
19	select DRM_MIPI_DSI
20	select RELAY
21	select IRQ_WORK
22	# i915 depends on ACPI_VIDEO when ACPI is enabled
23	# but for select to work, need to select ACPI_VIDEO's dependencies, ick
24	select BACKLIGHT_CLASS_DEVICE if ACPI
25	select INPUT if ACPI
26	select X86_PLATFORM_DEVICES if ACPI
27	select ACPI_WMI if ACPI
28	select ACPI_VIDEO if ACPI
29	select ACPI_BUTTON if ACPI
30	select SYNC_FILE
31	select IOSF_MBI if X86
32	select CRC32
33	select SND_HDA_I915 if SND_HDA_CORE
34	select CEC_CORE if CEC_NOTIFIER
35	select VMAP_PFN
36	select DRM_TTM
37	select DRM_BUDDY
38	select AUXILIARY_BUS
39	help
40	  Choose this option if you have a system that has "Intel Graphics
41	  Media Accelerator" or "HD Graphics" integrated graphics,
42	  including 830M, 845G, 852GM, 855GM, 865G, 915G, 945G, 965G,
43	  G35, G41, G43, G45 chipsets and Celeron, Pentium, Core i3,
44	  Core i5, Core i7 as well as Atom CPUs with integrated graphics.
45
46	  This driver is used by the Intel driver in X.org 6.8 and
47	  XFree86 4.4 and above. It replaces the older i830 module that
48	  supported a subset of the hardware in older X.org releases.
49
50	  Note that the older i810/i815 chipsets require the use of the
51	  i810 driver instead, and the Atom z5xx series has an entirely
52	  different implementation.
53
54	  If "M" is selected, the module will be called i915.
55
56config DRM_I915_FORCE_PROBE
57	string "Force probe driver for selected new Intel hardware"
58	depends on DRM_I915
59	help
60	  This is the default value for the i915.force_probe module
61	  parameter. Using the module parameter overrides this option.
62
63	  Force probe the driver for new Intel graphics devices that are
64	  recognized but not properly supported by this kernel version. It is
65	  recommended to upgrade to a kernel version with proper support as soon
66	  as it is available.
67
68	  Use "" to disable force probe. If in doubt, use this.
69
70	  Use "<pci-id>[,<pci-id>,...]" to force probe the driver for listed
71	  devices. For example, "4500" or "4500,4571".
72
73	  Use "*" to force probe the driver for all known devices.
74
75config DRM_I915_CAPTURE_ERROR
76	bool "Enable capturing GPU state following a hang"
77	depends on DRM_I915
78	default y
79	help
80	  This option enables capturing the GPU state when a hang is detected.
81	  This information is vital for triaging hangs and assists in debugging.
82	  Please report any hang for triaging according to:
83	    https://gitlab.freedesktop.org/drm/intel/-/wikis/How-to-file-i915-bugs
84
85	  If in doubt, say "Y".
86
87config DRM_I915_COMPRESS_ERROR
88	bool "Compress GPU error state"
89	depends on DRM_I915_CAPTURE_ERROR
90	select ZLIB_DEFLATE
91	default y
92	help
93	  This option selects ZLIB_DEFLATE if it isn't already
94	  selected and causes any error state captured upon a GPU hang
95	  to be compressed using zlib.
96
97	  If in doubt, say "Y".
98
99config DRM_I915_USERPTR
100	bool "Always enable userptr support"
101	depends on DRM_I915
102	select MMU_NOTIFIER
103	default y
104	help
105	  This option selects CONFIG_MMU_NOTIFIER if it isn't already
106	  selected to enabled full userptr support.
107
108	  If in doubt, say "Y".
109
110config DRM_I915_GVT
111	bool
112
113config DRM_I915_GVT_KVMGT
114	tristate "Enable KVM host support Intel GVT-g graphics virtualization"
115	depends on DRM_I915
116	depends on X86
117	depends on 64BIT
118	depends on KVM
119	depends on VFIO_MDEV
120	select DRM_I915_GVT
121	select KVM_EXTERNAL_WRITE_TRACKING
122
123	help
124	  Choose this option if you want to enable Intel GVT-g graphics
125	  virtualization technology host support with integrated graphics.
126	  With GVT-g, it's possible to have one integrated graphics
127	  device shared by multiple VMs under KVM.
128
129	  Note that this driver only supports newer device from Broadwell on.
130	  For further information and setup guide, you can visit:
131	  http://01.org/igvt-g.
132
133	  If in doubt, say "N".
134
135config DRM_I915_PXP
136	bool "Enable Intel PXP support"
137	depends on DRM_I915
138	depends on INTEL_MEI && INTEL_MEI_PXP
139	default n
140	help
141	  PXP (Protected Xe Path) is an i915 component, available on graphics
142	  version 12 and newer GPUs, that helps to establish the hardware
143	  protected session and manage the status of the alive software session,
144	  as well as its life cycle.
145
146menu "drm/i915 Debugging"
147depends on DRM_I915
148depends on EXPERT
149source "drivers/gpu/drm/i915/Kconfig.debug"
150endmenu
151
152menu "drm/i915 Profile Guided Optimisation"
153	visible if EXPERT
154	depends on DRM_I915
155	source "drivers/gpu/drm/i915/Kconfig.profile"
156endmenu
157
158menu "drm/i915 Unstable Evolution"
159	visible if EXPERT && STAGING && BROKEN
160	depends on DRM_I915
161	source "drivers/gpu/drm/i915/Kconfig.unstable"
162endmenu
163