Merge tag 'amd-drm-next-6.4-2023-03-17' of https://gitlab.freedesktop.org/agd5f/linux...
[sfrench/cifs-2.6.git] / drivers / gpu / drm / amd / amdgpu / Kconfig
1 # SPDX-License-Identifier: MIT
2
3 config DRM_AMDGPU
4         tristate "AMD GPU"
5         depends on DRM && PCI && MMU
6         depends on !UML
7         select FW_LOADER
8         select DRM_DISPLAY_DP_HELPER
9         select DRM_DISPLAY_HDMI_HELPER
10         select DRM_DISPLAY_HDCP_HELPER
11         select DRM_DISPLAY_HELPER
12         select DRM_KMS_HELPER
13         select DRM_SCHED
14         select DRM_TTM
15         select DRM_TTM_HELPER
16         select POWER_SUPPLY
17         select HWMON
18         select I2C
19         select I2C_ALGOBIT
20         select BACKLIGHT_CLASS_DEVICE
21         select INTERVAL_TREE
22         select DRM_BUDDY
23         select DRM_SUBALLOC_HELPER
24         # amdgpu depends on ACPI_VIDEO when ACPI is enabled, for select to work
25         # ACPI_VIDEO's dependencies must also be selected.
26         select INPUT if ACPI
27         select ACPI_VIDEO if ACPI
28         # On x86 ACPI_VIDEO also needs ACPI_WMI
29         select X86_PLATFORM_DEVICES if ACPI && X86
30         select ACPI_WMI if ACPI && X86
31         help
32           Choose this option if you have a recent AMD Radeon graphics card.
33
34           If M is selected, the module will be called amdgpu.
35
36 config DRM_AMDGPU_SI
37         bool "Enable amdgpu support for SI parts"
38         depends on DRM_AMDGPU
39         help
40           Choose this option if you want to enable experimental support
41           for SI (Southern Islands) asics.
42
43           SI is already supported in radeon. Experimental support for SI
44           in amdgpu will be disabled by default and is still provided by
45           radeon. Use module options to override this:
46
47           radeon.si_support=0 amdgpu.si_support=1
48
49 config DRM_AMDGPU_CIK
50         bool "Enable amdgpu support for CIK parts"
51         depends on DRM_AMDGPU
52         help
53           Choose this option if you want to enable support for CIK (Sea
54           Islands) asics.
55
56           CIK is already supported in radeon. Support for CIK in amdgpu
57           will be disabled by default and is still provided by radeon.
58           Use module options to override this:
59
60           radeon.cik_support=0 amdgpu.cik_support=1
61
62 config DRM_AMDGPU_USERPTR
63         bool "Always enable userptr write support"
64         depends on DRM_AMDGPU
65         depends on MMU
66         select HMM_MIRROR
67         select MMU_NOTIFIER
68         help
69           This option selects CONFIG_HMM and CONFIG_HMM_MIRROR if it
70           isn't already selected to enabled full userptr support.
71
72 source "drivers/gpu/drm/amd/acp/Kconfig"
73 source "drivers/gpu/drm/amd/display/Kconfig"
74 source "drivers/gpu/drm/amd/amdkfd/Kconfig"