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 64BIT 107 default n 108 help 109 Choose this option if you want to enable Intel GVT-g graphics 110 virtualization technology host support with integrated graphics. 111 With GVT-g, it's possible to have one integrated graphics 112 device shared by multiple VMs under different hypervisors. 113 114 Note that at least one hypervisor like Xen or KVM is required for 115 this driver to work, and it only supports newer device from 116 Broadwell+. For further information and setup guide, you can 117 visit: http://01.org/igvt-g. 118 119 Now it's just a stub to support the modifications of i915 for 120 GVT device model. It requires at least one MPT modules for Xen/KVM 121 and other components of GVT device model to work. Use it under 122 you own risk. 123 124 If in doubt, say "N". 125 126config DRM_I915_GVT_KVMGT 127 tristate "Enable KVM/VFIO support for Intel GVT-g" 128 depends on DRM_I915_GVT 129 depends on KVM 130 depends on VFIO_MDEV 131 select KVM_EXTERNAL_WRITE_TRACKING 132 default n 133 help 134 Choose this option if you want to enable KVMGT support for 135 Intel GVT-g. 136 137config DRM_I915_PXP 138 bool "Enable Intel PXP support" 139 depends on DRM_I915 140 depends on INTEL_MEI && INTEL_MEI_PXP 141 default n 142 help 143 PXP (Protected Xe Path) is an i915 component, available on graphics 144 version 12 and newer GPUs, that helps to establish the hardware 145 protected session and manage the status of the alive software session, 146 as well as its life cycle. 147 148menu "drm/i915 Debugging" 149depends on DRM_I915 150depends on EXPERT 151source "drivers/gpu/drm/i915/Kconfig.debug" 152endmenu 153 154menu "drm/i915 Profile Guided Optimisation" 155 visible if EXPERT 156 depends on DRM_I915 157 source "drivers/gpu/drm/i915/Kconfig.profile" 158endmenu 159 160menu "drm/i915 Unstable Evolution" 161 visible if EXPERT && STAGING && BROKEN 162 depends on DRM_I915 163 source "drivers/gpu/drm/i915/Kconfig.unstable" 164endmenu 165