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