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