summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/Kconfig.nvgpu
blob: d15a9fd085d9b44e6c815c8f7014def6a4ebf5de (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
config GK20A
	tristate "Nvidia GK20A GPU support"
	default y
	help
	  Choose this option if you have an SoC with integrated
	  Nvidia GPU IP.

config GK20A_DEFAULT_TIMEOUT
	depends on GK20A
	int "Default timeout for submits"
	default 3000
	help
	  Default timeout for jobs in milliseconds. Set to zero for no timeout.

config GK20A_PMU
	bool "Support GK20A PMU"
	depends on GK20A
	default n
	help
	  Say Y here to enable GK20A PMU features.

choice
	depends on GK20A
	prompt "Enable GK20A frequency scaling"
	default GK20A_PERFMON
	optional
	help
	  Select this entry to enable gk20a scaling

config GK20A_PERFMON
	bool "Use Perfmon"
	help
	  Select this to enable built-in perfmon scaling.
	  The built-in scaling option uses simplistic
	  scaling mechanism (if busy, increase frequency and
	  decrease frequency if idle).

config GK20A_DEVFREQ
	depends on TEGRA_CLK_FRAMEWORK || COMMON_CLK
	bool "Use Devfreq"
	help
	  Select this to use devfreq based scaling.
	  Devfreq is a common framework that allows using
	  variety of different governors and changing
	  between governors on the fly. By default, no
	  governor is selected.

endchoice

config NVGPU_TRACK_MEM_USAGE
        bool "Track the usage of system memory in nvgpu"
	depends on GK20A
	default n
	help
	  Say Y here to allow nvgpu to track and keep statistics on
	  the system memory used by the driver. This does recreate
	  some of the kmem_leak tracking but this is also applicable
	  to other OSes which do not have Linux' kmem_leak.


config GK20A_CYCLE_STATS
	bool "Support GK20A GPU CYCLE STATS"
	depends on GK20A
	default y
	help
	  Say Y here to enable the cycle stats debugging features.

config GK20A_CTXSW_TRACE
	bool "Support GK20A Context Switch tracing"
	depends on GK20A
	default y
	help
	  Enable support for the GK20A Context Switch Tracing. In this mode,
	  FECS collects timestamps for contexts loaded on GR engine. This
	  allows tracking context switches on GR engine, as well as
	  identifying processes that submitted work.

config TEGRA_GK20A
	bool "Enable the GK20A GPU on Tegra"
	depends on TEGRA_GRHOST || TEGRA_HOST1X
	depends on GK20A
	default y
	help
	  Enable support for the GK20A graphics engine on Tegra
	  by adding a Tegra platfrom interface to the GK20A driver.
	  The Tegra platform interface requires TEGRA_GRHOST (host1x).

config TEGRA_ACR
	bool "Enable HS bin support on GM20B GPU on Tegra"
	depends on GK20A_PMU
	default n
	help
	  Enable Support for Loading High Secure binary, and using
	  Write Protected Regions (WPR) for storing ucodes, and bootstrap
	  PMU, FECS and GPCCS in Low Secure mode.

config TEGRA_USE_NA_GPCPLL
	bool "Enable noise aware mode of GM20B GPCPLL on Tegra"
	depends on TEGRA_CLK_FRAMEWORK || COMMON_CLK
	default n
	help
	  Enable noise aware (NA) mode of GM20b GPCPLL. In this mode PLL output
	  frequency is automatically adjusted when GM20b voltage is fluctuating
	  because of transient PMIC or power distribution tree noise.

config GK20A_PCI
	bool "Support PCIe NVIDIA GPUs on nvgpu"
	depends on PCI && GK20A
	default y if ARCH_TEGRA_18x_SOC
	default n
	help
	  Enable support for GPUs on PCIe bus.

config GK20A_TRACE_PRINTK
	bool "Support trace_printk debugging"
	depends on CONFIG_FTRACE_PRINTK
	default n
	help
	  Enable nvgpu debug facility to redirect debug spew to ftrace. This
	  affects kernel memory use, so should not be enabled by default.

config GK20A_VIDMEM
	bool "Support separate video memory on nvgpu"
	depends on GK20A
	default n
	help
	  Enable support for using and allocating buffers in a distinct video
	  memory aperture (in contrast to general system memory), available on
	  GPUs that have their own banks. PCIe GPUs have this, for example.

trysource "../nvgpu-t19x/drivers/gpu/nvgpu/Kconfig"