18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only
28c2ecf20Sopenharmony_ciconfig DRM_I915
38c2ecf20Sopenharmony_ci	tristate "Intel 8xx/9xx/G3x/G4x/HD Graphics"
48c2ecf20Sopenharmony_ci	depends on DRM
58c2ecf20Sopenharmony_ci	depends on X86 && PCI
68c2ecf20Sopenharmony_ci	select INTEL_GTT
78c2ecf20Sopenharmony_ci	select INTERVAL_TREE
88c2ecf20Sopenharmony_ci	# we need shmfs for the swappable backing store, and in particular
98c2ecf20Sopenharmony_ci	# the shmem_readpage() which depends upon tmpfs
108c2ecf20Sopenharmony_ci	select SHMEM
118c2ecf20Sopenharmony_ci	select TMPFS
128c2ecf20Sopenharmony_ci	select DRM_KMS_HELPER
138c2ecf20Sopenharmony_ci	select DRM_PANEL
148c2ecf20Sopenharmony_ci	select DRM_MIPI_DSI
158c2ecf20Sopenharmony_ci	select RELAY
168c2ecf20Sopenharmony_ci	select IRQ_WORK
178c2ecf20Sopenharmony_ci	# i915 depends on ACPI_VIDEO when ACPI is enabled
188c2ecf20Sopenharmony_ci	# but for select to work, need to select ACPI_VIDEO's dependencies, ick
198c2ecf20Sopenharmony_ci	select BACKLIGHT_CLASS_DEVICE if ACPI
208c2ecf20Sopenharmony_ci	select INPUT if ACPI
218c2ecf20Sopenharmony_ci	select ACPI_VIDEO if ACPI
228c2ecf20Sopenharmony_ci	select ACPI_BUTTON if ACPI
238c2ecf20Sopenharmony_ci	select SYNC_FILE
248c2ecf20Sopenharmony_ci	select IOSF_MBI
258c2ecf20Sopenharmony_ci	select CRC32
268c2ecf20Sopenharmony_ci	select SND_HDA_I915 if SND_HDA_CORE
278c2ecf20Sopenharmony_ci	select CEC_CORE if CEC_NOTIFIER
288c2ecf20Sopenharmony_ci	select VMAP_PFN
298c2ecf20Sopenharmony_ci	help
308c2ecf20Sopenharmony_ci	  Choose this option if you have a system that has "Intel Graphics
318c2ecf20Sopenharmony_ci	  Media Accelerator" or "HD Graphics" integrated graphics,
328c2ecf20Sopenharmony_ci	  including 830M, 845G, 852GM, 855GM, 865G, 915G, 945G, 965G,
338c2ecf20Sopenharmony_ci	  G35, G41, G43, G45 chipsets and Celeron, Pentium, Core i3,
348c2ecf20Sopenharmony_ci	  Core i5, Core i7 as well as Atom CPUs with integrated graphics.
358c2ecf20Sopenharmony_ci
368c2ecf20Sopenharmony_ci	  This driver is used by the Intel driver in X.org 6.8 and
378c2ecf20Sopenharmony_ci	  XFree86 4.4 and above. It replaces the older i830 module that
388c2ecf20Sopenharmony_ci	  supported a subset of the hardware in older X.org releases.
398c2ecf20Sopenharmony_ci
408c2ecf20Sopenharmony_ci	  Note that the older i810/i815 chipsets require the use of the
418c2ecf20Sopenharmony_ci	  i810 driver instead, and the Atom z5xx series has an entirely
428c2ecf20Sopenharmony_ci	  different implementation.
438c2ecf20Sopenharmony_ci
448c2ecf20Sopenharmony_ci	  If "M" is selected, the module will be called i915.
458c2ecf20Sopenharmony_ci
468c2ecf20Sopenharmony_ciconfig DRM_I915_FORCE_PROBE
478c2ecf20Sopenharmony_ci	string "Force probe driver for selected new Intel hardware"
488c2ecf20Sopenharmony_ci	depends on DRM_I915
498c2ecf20Sopenharmony_ci	help
508c2ecf20Sopenharmony_ci	  This is the default value for the i915.force_probe module
518c2ecf20Sopenharmony_ci	  parameter. Using the module parameter overrides this option.
528c2ecf20Sopenharmony_ci
538c2ecf20Sopenharmony_ci	  Force probe the driver for new Intel graphics devices that are
548c2ecf20Sopenharmony_ci	  recognized but not properly supported by this kernel version. It is
558c2ecf20Sopenharmony_ci	  recommended to upgrade to a kernel version with proper support as soon
568c2ecf20Sopenharmony_ci	  as it is available.
578c2ecf20Sopenharmony_ci
588c2ecf20Sopenharmony_ci	  Use "" to disable force probe. If in doubt, use this.
598c2ecf20Sopenharmony_ci
608c2ecf20Sopenharmony_ci	  Use "<pci-id>[,<pci-id>,...]" to force probe the driver for listed
618c2ecf20Sopenharmony_ci	  devices. For example, "4500" or "4500,4571".
628c2ecf20Sopenharmony_ci
638c2ecf20Sopenharmony_ci	  Use "*" to force probe the driver for all known devices.
648c2ecf20Sopenharmony_ci
658c2ecf20Sopenharmony_ciconfig DRM_I915_CAPTURE_ERROR
668c2ecf20Sopenharmony_ci	bool "Enable capturing GPU state following a hang"
678c2ecf20Sopenharmony_ci	depends on DRM_I915
688c2ecf20Sopenharmony_ci	default y
698c2ecf20Sopenharmony_ci	help
708c2ecf20Sopenharmony_ci	  This option enables capturing the GPU state when a hang is detected.
718c2ecf20Sopenharmony_ci	  This information is vital for triaging hangs and assists in debugging.
728c2ecf20Sopenharmony_ci	  Please report any hang for triaging according to:
738c2ecf20Sopenharmony_ci	    https://gitlab.freedesktop.org/drm/intel/-/wikis/How-to-file-i915-bugs
748c2ecf20Sopenharmony_ci
758c2ecf20Sopenharmony_ci	  If in doubt, say "Y".
768c2ecf20Sopenharmony_ci
778c2ecf20Sopenharmony_ciconfig DRM_I915_COMPRESS_ERROR
788c2ecf20Sopenharmony_ci	bool "Compress GPU error state"
798c2ecf20Sopenharmony_ci	depends on DRM_I915_CAPTURE_ERROR
808c2ecf20Sopenharmony_ci	select ZLIB_DEFLATE
818c2ecf20Sopenharmony_ci	default y
828c2ecf20Sopenharmony_ci	help
838c2ecf20Sopenharmony_ci	  This option selects ZLIB_DEFLATE if it isn't already
848c2ecf20Sopenharmony_ci	  selected and causes any error state captured upon a GPU hang
858c2ecf20Sopenharmony_ci	  to be compressed using zlib.
868c2ecf20Sopenharmony_ci
878c2ecf20Sopenharmony_ci	  If in doubt, say "Y".
888c2ecf20Sopenharmony_ci
898c2ecf20Sopenharmony_ciconfig DRM_I915_USERPTR
908c2ecf20Sopenharmony_ci	bool "Always enable userptr support"
918c2ecf20Sopenharmony_ci	depends on DRM_I915
928c2ecf20Sopenharmony_ci	select MMU_NOTIFIER
938c2ecf20Sopenharmony_ci	default y
948c2ecf20Sopenharmony_ci	help
958c2ecf20Sopenharmony_ci	  This option selects CONFIG_MMU_NOTIFIER if it isn't already
968c2ecf20Sopenharmony_ci	  selected to enabled full userptr support.
978c2ecf20Sopenharmony_ci
988c2ecf20Sopenharmony_ci	  If in doubt, say "Y".
998c2ecf20Sopenharmony_ci
1008c2ecf20Sopenharmony_ciconfig DRM_I915_GVT
1018c2ecf20Sopenharmony_ci	bool "Enable Intel GVT-g graphics virtualization host support"
1028c2ecf20Sopenharmony_ci	depends on DRM_I915
1038c2ecf20Sopenharmony_ci	depends on X86
1048c2ecf20Sopenharmony_ci	depends on 64BIT
1058c2ecf20Sopenharmony_ci	default n
1068c2ecf20Sopenharmony_ci	help
1078c2ecf20Sopenharmony_ci	  Choose this option if you want to enable Intel GVT-g graphics
1088c2ecf20Sopenharmony_ci	  virtualization technology host support with integrated graphics.
1098c2ecf20Sopenharmony_ci	  With GVT-g, it's possible to have one integrated graphics
1108c2ecf20Sopenharmony_ci	  device shared by multiple VMs under different hypervisors.
1118c2ecf20Sopenharmony_ci
1128c2ecf20Sopenharmony_ci	  Note that at least one hypervisor like Xen or KVM is required for
1138c2ecf20Sopenharmony_ci	  this driver to work, and it only supports newer device from
1148c2ecf20Sopenharmony_ci	  Broadwell+. For further information and setup guide, you can
1158c2ecf20Sopenharmony_ci	  visit: http://01.org/igvt-g.
1168c2ecf20Sopenharmony_ci
1178c2ecf20Sopenharmony_ci	  Now it's just a stub to support the modifications of i915 for
1188c2ecf20Sopenharmony_ci	  GVT device model. It requires at least one MPT modules for Xen/KVM
1198c2ecf20Sopenharmony_ci	  and other components of GVT device model to work. Use it under
1208c2ecf20Sopenharmony_ci	  you own risk.
1218c2ecf20Sopenharmony_ci
1228c2ecf20Sopenharmony_ci	  If in doubt, say "N".
1238c2ecf20Sopenharmony_ci
1248c2ecf20Sopenharmony_ciconfig DRM_I915_GVT_KVMGT
1258c2ecf20Sopenharmony_ci	tristate "Enable KVM/VFIO support for Intel GVT-g"
1268c2ecf20Sopenharmony_ci	depends on DRM_I915_GVT
1278c2ecf20Sopenharmony_ci	depends on KVM
1288c2ecf20Sopenharmony_ci	depends on VFIO_MDEV && VFIO_MDEV_DEVICE
1298c2ecf20Sopenharmony_ci	default n
1308c2ecf20Sopenharmony_ci	help
1318c2ecf20Sopenharmony_ci	  Choose this option if you want to enable KVMGT support for
1328c2ecf20Sopenharmony_ci	  Intel GVT-g.
1338c2ecf20Sopenharmony_ci
1348c2ecf20Sopenharmony_cimenu "drm/i915 Debugging"
1358c2ecf20Sopenharmony_cidepends on DRM_I915
1368c2ecf20Sopenharmony_cidepends on EXPERT
1378c2ecf20Sopenharmony_cisource "drivers/gpu/drm/i915/Kconfig.debug"
1388c2ecf20Sopenharmony_ciendmenu
1398c2ecf20Sopenharmony_ci
1408c2ecf20Sopenharmony_cimenu "drm/i915 Profile Guided Optimisation"
1418c2ecf20Sopenharmony_ci	visible if EXPERT
1428c2ecf20Sopenharmony_ci	depends on DRM_I915
1438c2ecf20Sopenharmony_ci	source "drivers/gpu/drm/i915/Kconfig.profile"
1448c2ecf20Sopenharmony_ciendmenu
1458c2ecf20Sopenharmony_ci
1468c2ecf20Sopenharmony_cimenu "drm/i915 Unstable Evolution"
1478c2ecf20Sopenharmony_ci	visible if EXPERT && STAGING && BROKEN
1488c2ecf20Sopenharmony_ci	depends on DRM_I915
1498c2ecf20Sopenharmony_ci	source "drivers/gpu/drm/i915/Kconfig.unstable"
1508c2ecf20Sopenharmony_ciendmenu
151