xref: /netbsd-src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/Kconfig (revision 41ec02673d281bbb3d38e6c78504ce6e30c228c1)
1*41ec0267Sriastradh# SPDX-License-Identifier: MIT
2*41ec0267Sriastradhconfig DRM_AMDGPU_SI
3*41ec0267Sriastradh	bool "Enable amdgpu support for SI parts"
4*41ec0267Sriastradh	depends on DRM_AMDGPU
5*41ec0267Sriastradh	help
6*41ec0267Sriastradh	  Choose this option if you want to enable experimental support
7*41ec0267Sriastradh	  for SI asics.
8*41ec0267Sriastradh
9*41ec0267Sriastradh	  SI is already supported in radeon. Experimental support for SI
10*41ec0267Sriastradh	  in amdgpu will be disabled by default and is still provided by
11*41ec0267Sriastradh	  radeon. Use module options to override this:
12*41ec0267Sriastradh
13*41ec0267Sriastradh	  radeon.si_support=0 amdgpu.si_support=1
14*41ec0267Sriastradh
15efa246c0Sriastradhconfig DRM_AMDGPU_CIK
16efa246c0Sriastradh	bool "Enable amdgpu support for CIK parts"
17efa246c0Sriastradh	depends on DRM_AMDGPU
18efa246c0Sriastradh	help
19*41ec0267Sriastradh	  Choose this option if you want to enable support for CIK asics.
20efa246c0Sriastradh
21*41ec0267Sriastradh	  CIK is already supported in radeon. Support for CIK in amdgpu
22*41ec0267Sriastradh	  will be disabled by default and is still provided by radeon.
23*41ec0267Sriastradh	  Use module options to override this:
24*41ec0267Sriastradh
25*41ec0267Sriastradh	  radeon.cik_support=0 amdgpu.cik_support=1
26efa246c0Sriastradh
27efa246c0Sriastradhconfig DRM_AMDGPU_USERPTR
28efa246c0Sriastradh	bool "Always enable userptr write support"
29efa246c0Sriastradh	depends on DRM_AMDGPU
30*41ec0267Sriastradh	depends on MMU
31*41ec0267Sriastradh	select HMM_MIRROR
32efa246c0Sriastradh	select MMU_NOTIFIER
33efa246c0Sriastradh	help
34*41ec0267Sriastradh	  This option selects CONFIG_HMM and CONFIG_HMM_MIRROR if it
35*41ec0267Sriastradh	  isn't already selected to enabled full userptr support.
36*41ec0267Sriastradh
37*41ec0267Sriastradhconfig DRM_AMDGPU_GART_DEBUGFS
38*41ec0267Sriastradh	bool "Allow GART access through debugfs"
39*41ec0267Sriastradh	depends on DRM_AMDGPU
40*41ec0267Sriastradh	depends on DEBUG_FS
41*41ec0267Sriastradh	default n
42*41ec0267Sriastradh	help
43*41ec0267Sriastradh	  Selecting this option creates a debugfs file to inspect the mapped
44*41ec0267Sriastradh	  pages. Uses more memory for housekeeping, enable only for debugging.
45*41ec0267Sriastradh
46*41ec0267Sriastradhsource "drivers/gpu/drm/amd/acp/Kconfig"
47*41ec0267Sriastradhsource "drivers/gpu/drm/amd/display/Kconfig"
48*41ec0267Sriastradhsource "drivers/gpu/drm/amd/amdkfd/Kconfig"
49