| 1 | # SPDX-License-Identifier: MIT |
| 2 | |
| 3 | config DRM_AMDGPU |
| 4 | tristate "AMD GPU" |
| 5 | depends on DRM && PCI |
| 6 | select FW_LOADER |
| 7 | select DRM_CLIENT |
| 8 | select DRM_CLIENT_SELECTION |
| 9 | select DRM_DISPLAY_DP_HELPER |
| 10 | select DRM_DISPLAY_DSC_HELPER |
| 11 | select DRM_DISPLAY_HDMI_HELPER |
| 12 | select DRM_DISPLAY_HDCP_HELPER |
| 13 | select DRM_DISPLAY_HELPER |
| 14 | select DRM_KMS_HELPER |
| 15 | select DRM_SCHED |
| 16 | select DRM_TTM |
| 17 | select DRM_TTM_HELPER |
| 18 | select POWER_SUPPLY |
| 19 | select HWMON |
| 20 | select I2C |
| 21 | select I2C_ALGOBIT |
| 22 | select CRC16 |
| 23 | select BACKLIGHT_CLASS_DEVICE |
| 24 | select INTERVAL_TREE |
| 25 | select DRM_BUDDY |
| 26 | select DRM_SUBALLOC_HELPER |
| 27 | select DRM_EXEC |
| 28 | select DRM_PANEL_BACKLIGHT_QUIRKS |
| 29 | # amdgpu depends on ACPI_VIDEO when ACPI is enabled, for select to work |
| 30 | # ACPI_VIDEO's dependencies must also be selected. |
| 31 | select INPUT if ACPI |
| 32 | select ACPI_VIDEO if ACPI |
| 33 | # On x86 ACPI_VIDEO also needs ACPI_WMI |
| 34 | select X86_PLATFORM_DEVICES if ACPI && X86 |
| 35 | select ACPI_WMI if ACPI && X86 |
| 36 | help |
| 37 | Choose this option if you have a recent AMD Radeon graphics card. |
| 38 | |
| 39 | If M is selected, the module will be called amdgpu. |
| 40 | |
| 41 | config DRM_AMDGPU_SI |
| 42 | bool "Enable amdgpu support for SI parts" |
| 43 | depends on DRM_AMDGPU |
| 44 | help |
| 45 | Choose this option if you want to enable support |
| 46 | for SI (Southern Islands) asics. |
| 47 | |
| 48 | SI (Southern Islands) are first generation GCN GPUs, |
| 49 | supported by both drivers: radeon (old) and amdgpu (new). |
| 50 | By default, SI dedicated GPUs are supported by amdgpu. |
| 51 | |
| 52 | Use module options to override this: |
| 53 | To use radeon for SI, |
| 54 | radeon.si_support=1 amdgpu.si_support=0 |
| 55 | |
| 56 | config DRM_AMDGPU_CIK |
| 57 | bool "Enable amdgpu support for CIK parts" |
| 58 | depends on DRM_AMDGPU |
| 59 | help |
| 60 | Choose this option if you want to enable support for CIK (Sea |
| 61 | Islands) asics. |
| 62 | |
| 63 | CIK (Sea Islands) are second generation GCN GPUs, |
| 64 | supported by both drivers: radeon (old) and amdgpu (new). |
| 65 | By default, |
| 66 | CIK dedicated GPUs are supported by amdgpu |
| 67 | CIK APUs are supported by radeon |
| 68 | |
| 69 | Use module options to override this: |
| 70 | To use amdgpu for CIK, |
| 71 | radeon.cik_support=0 amdgpu.cik_support=1 |
| 72 | To use radeon for CIK, |
| 73 | radeon.cik_support=1 amdgpu.cik_support=0 |
| 74 | |
| 75 | config DRM_AMDGPU_USERPTR |
| 76 | bool "Always enable userptr write support" |
| 77 | depends on DRM_AMDGPU |
| 78 | select HMM_MIRROR |
| 79 | select MMU_NOTIFIER |
| 80 | help |
| 81 | This option selects CONFIG_HMM and CONFIG_HMM_MIRROR if it |
| 82 | isn't already selected to enabled full userptr support. |
| 83 | |
| 84 | config DRM_AMD_ISP |
| 85 | bool "Enable AMD Image Signal Processor IP support" |
| 86 | depends on DRM_AMDGPU && ACPI |
| 87 | select MFD_CORE |
| 88 | select PM_GENERIC_DOMAINS if PM |
| 89 | help |
| 90 | Choose this option to enable ISP IP support for AMD SOCs. |
| 91 | This adds the ISP (Image Signal Processor) IP driver and wires |
| 92 | it up into the amdgpu driver. It is required for cameras |
| 93 | on APUs which utilize mipi cameras. |
| 94 | |
| 95 | config DRM_AMDGPU_WERROR |
| 96 | bool "Force the compiler to throw an error instead of a warning when compiling" |
| 97 | depends on DRM_AMDGPU |
| 98 | depends on EXPERT |
| 99 | depends on !COMPILE_TEST |
| 100 | default n |
| 101 | help |
| 102 | Add -Werror to the build flags for amdgpu.ko. |
| 103 | Only enable this if you are warning code for amdgpu.ko. |
| 104 | |
| 105 | |
| 106 | config GCOV_PROFILE_AMDGPU |
| 107 | bool "Enable GCOV profiling on amdgpu" |
| 108 | depends on DRM_AMDGPU |
| 109 | depends on GCOV_KERNEL |
| 110 | default n |
| 111 | help |
| 112 | Enable GCOV profiling on the amdgpu driver for checking which |
| 113 | functions/lines are executed during testing. This adds compiler |
| 114 | instrumentation flags to all amdgpu source files, producing |
| 115 | .gcda/.gcno coverage data accessible via debugfs. |
| 116 | |
| 117 | This increases the amdgpu module size by ~50% and adds ~2-5% |
| 118 | runtime overhead on GPU submission paths. |
| 119 | |
| 120 | If unsure, say N. |
| 121 | |
| 122 | source "drivers/gpu/drm/amd/acp/Kconfig" |
| 123 | source "drivers/gpu/drm/amd/display/Kconfig" |
| 124 | source "drivers/gpu/drm/amd/amdkfd/Kconfig" |