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