162306a36Sopenharmony_ci# SPDX-License-Identifier: MIT 262306a36Sopenharmony_ci 362306a36Sopenharmony_ciconfig DRM_AMDGPU 462306a36Sopenharmony_ci tristate "AMD GPU" 562306a36Sopenharmony_ci depends on DRM && PCI && MMU 662306a36Sopenharmony_ci depends on !UML 762306a36Sopenharmony_ci select FW_LOADER 862306a36Sopenharmony_ci select DRM_DISPLAY_DP_HELPER 962306a36Sopenharmony_ci select DRM_DISPLAY_HDMI_HELPER 1062306a36Sopenharmony_ci select DRM_DISPLAY_HDCP_HELPER 1162306a36Sopenharmony_ci select DRM_DISPLAY_HELPER 1262306a36Sopenharmony_ci select DRM_KMS_HELPER 1362306a36Sopenharmony_ci select DRM_SCHED 1462306a36Sopenharmony_ci select DRM_TTM 1562306a36Sopenharmony_ci select DRM_TTM_HELPER 1662306a36Sopenharmony_ci select POWER_SUPPLY 1762306a36Sopenharmony_ci select HWMON 1862306a36Sopenharmony_ci select I2C 1962306a36Sopenharmony_ci select I2C_ALGOBIT 2062306a36Sopenharmony_ci select BACKLIGHT_CLASS_DEVICE 2162306a36Sopenharmony_ci select INTERVAL_TREE 2262306a36Sopenharmony_ci select DRM_BUDDY 2362306a36Sopenharmony_ci select DRM_SUBALLOC_HELPER 2462306a36Sopenharmony_ci select DRM_EXEC 2562306a36Sopenharmony_ci # amdgpu depends on ACPI_VIDEO when ACPI is enabled, for select to work 2662306a36Sopenharmony_ci # ACPI_VIDEO's dependencies must also be selected. 2762306a36Sopenharmony_ci select INPUT if ACPI 2862306a36Sopenharmony_ci select ACPI_VIDEO if ACPI 2962306a36Sopenharmony_ci # On x86 ACPI_VIDEO also needs ACPI_WMI 3062306a36Sopenharmony_ci select X86_PLATFORM_DEVICES if ACPI && X86 3162306a36Sopenharmony_ci select ACPI_WMI if ACPI && X86 3262306a36Sopenharmony_ci help 3362306a36Sopenharmony_ci Choose this option if you have a recent AMD Radeon graphics card. 3462306a36Sopenharmony_ci 3562306a36Sopenharmony_ci If M is selected, the module will be called amdgpu. 3662306a36Sopenharmony_ci 3762306a36Sopenharmony_ciconfig DRM_AMDGPU_SI 3862306a36Sopenharmony_ci bool "Enable amdgpu support for SI parts" 3962306a36Sopenharmony_ci depends on DRM_AMDGPU 4062306a36Sopenharmony_ci help 4162306a36Sopenharmony_ci Choose this option if you want to enable experimental support 4262306a36Sopenharmony_ci for SI (Southern Islands) asics. 4362306a36Sopenharmony_ci 4462306a36Sopenharmony_ci SI is already supported in radeon. Experimental support for SI 4562306a36Sopenharmony_ci in amdgpu will be disabled by default and is still provided by 4662306a36Sopenharmony_ci radeon. Use module options to override this: 4762306a36Sopenharmony_ci 4862306a36Sopenharmony_ci radeon.si_support=0 amdgpu.si_support=1 4962306a36Sopenharmony_ci 5062306a36Sopenharmony_ciconfig DRM_AMDGPU_CIK 5162306a36Sopenharmony_ci bool "Enable amdgpu support for CIK parts" 5262306a36Sopenharmony_ci depends on DRM_AMDGPU 5362306a36Sopenharmony_ci help 5462306a36Sopenharmony_ci Choose this option if you want to enable support for CIK (Sea 5562306a36Sopenharmony_ci Islands) asics. 5662306a36Sopenharmony_ci 5762306a36Sopenharmony_ci CIK is already supported in radeon. Support for CIK in amdgpu 5862306a36Sopenharmony_ci will be disabled by default and is still provided by radeon. 5962306a36Sopenharmony_ci Use module options to override this: 6062306a36Sopenharmony_ci 6162306a36Sopenharmony_ci radeon.cik_support=0 amdgpu.cik_support=1 6262306a36Sopenharmony_ci 6362306a36Sopenharmony_ciconfig DRM_AMDGPU_USERPTR 6462306a36Sopenharmony_ci bool "Always enable userptr write support" 6562306a36Sopenharmony_ci depends on DRM_AMDGPU 6662306a36Sopenharmony_ci depends on MMU 6762306a36Sopenharmony_ci select HMM_MIRROR 6862306a36Sopenharmony_ci select MMU_NOTIFIER 6962306a36Sopenharmony_ci help 7062306a36Sopenharmony_ci This option selects CONFIG_HMM and CONFIG_HMM_MIRROR if it 7162306a36Sopenharmony_ci isn't already selected to enabled full userptr support. 7262306a36Sopenharmony_ci 7362306a36Sopenharmony_ciconfig DRM_AMDGPU_WERROR 7462306a36Sopenharmony_ci bool "Force the compiler to throw an error instead of a warning when compiling" 7562306a36Sopenharmony_ci depends on DRM_AMDGPU 7662306a36Sopenharmony_ci depends on EXPERT 7762306a36Sopenharmony_ci depends on !COMPILE_TEST 7862306a36Sopenharmony_ci default n 7962306a36Sopenharmony_ci help 8062306a36Sopenharmony_ci Add -Werror to the build flags for amdgpu.ko. 8162306a36Sopenharmony_ci Only enable this if you are warning code for amdgpu.ko. 8262306a36Sopenharmony_ci 8362306a36Sopenharmony_cisource "drivers/gpu/drm/amd/acp/Kconfig" 8462306a36Sopenharmony_cisource "drivers/gpu/drm/amd/display/Kconfig" 8562306a36Sopenharmony_cisource "drivers/gpu/drm/amd/amdkfd/Kconfig" 86