summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/Kconfig
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2017-09-22 16:31:26 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-10-29 14:00:55 -0400
commitf01fe2bb3954712935a5dd0ab1d2d02a779d2a2a (patch)
treef0394e41411bd9d0be7fc231ee26a91941e636ee /drivers/gpu/nvgpu/Kconfig
parent0a93373364f8520e552f96b7e8fc22a5917f83ea (diff)
nvgpu: use kernel overlay features
Update all Kconfig files and Makefiles to rely on the kernel overlay feature. In particular, don't include any Kconfig files or Makefiles from other overlays. -I directives in CFLAGS are not yet cleaned up. Bug 1978395 Change-Id: I449ed2f07949785f2dd90a6833f4d8cd1711519a Signed-off-by: Stephen Warren <swarren@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1566641 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/Kconfig')
-rw-r--r--drivers/gpu/nvgpu/Kconfig138
1 files changed, 138 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/Kconfig b/drivers/gpu/nvgpu/Kconfig
new file mode 100644
index 00000000..4f90a35c
--- /dev/null
+++ b/drivers/gpu/nvgpu/Kconfig
@@ -0,0 +1,138 @@
1config GK20A
2 tristate "Nvidia GK20A GPU support"
3 default y
4 help
5 Choose this option if you have an SoC with integrated
6 Nvidia GPU IP.
7
8config GK20A_DEFAULT_TIMEOUT
9 depends on GK20A
10 int "Default timeout for submits"
11 default 3000
12 help
13 Default timeout for jobs in milliseconds. Set to zero for no timeout.
14
15config GK20A_PMU
16 bool "Support GK20A PMU"
17 depends on GK20A
18 default n
19 help
20 Say Y here to enable GK20A PMU features.
21
22choice
23 depends on GK20A
24 prompt "Enable GK20A frequency scaling"
25 default GK20A_PERFMON
26 optional
27 help
28 Select this entry to enable gk20a scaling
29
30config GK20A_PERFMON
31 bool "Use Perfmon"
32 help
33 Select this to enable built-in perfmon scaling.
34 The built-in scaling option uses simplistic
35 scaling mechanism (if busy, increase frequency and
36 decrease frequency if idle).
37
38config GK20A_DEVFREQ
39 depends on COMMON_CLK
40 bool "Use Devfreq"
41 help
42 Select this to use devfreq based scaling.
43 Devfreq is a common framework that allows using
44 variety of different governors and changing
45 between governors on the fly. By default, no
46 governor is selected.
47
48endchoice
49
50config NVGPU_TRACK_MEM_USAGE
51 bool "Track the usage of system memory in nvgpu"
52 depends on GK20A
53 default n
54 help
55 Say Y here to allow nvgpu to track and keep statistics on
56 the system memory used by the driver. This does recreate
57 some of the kmem_leak tracking but this is also applicable
58 to other OSes which do not have Linux' kmem_leak.
59
60
61config GK20A_CYCLE_STATS
62 bool "Support GK20A GPU CYCLE STATS"
63 depends on GK20A
64 default y
65 help
66 Say Y here to enable the cycle stats debugging features.
67
68config GK20A_CTXSW_TRACE
69 bool "Support GK20A Context Switch tracing"
70 depends on GK20A
71 default y
72 help
73 Enable support for the GK20A Context Switch Tracing. In this mode,
74 FECS collects timestamps for contexts loaded on GR engine. This
75 allows tracking context switches on GR engine, as well as
76 identifying processes that submitted work.
77
78config TEGRA_GK20A_NVHOST
79 bool "Support interfacing with nvhost hardware"
80 depends on TEGRA_GRHOST || TEGRA_HOST1X
81 depends on GK20A
82 default y
83 help
84 Enable support in GK20A for the nvhost (host1x) dma engine hardware
85 that includes things like hardware syncpts. This requires either
86 TEGRA_GRHOST or TEGRA_HOST1X.
87
88config TEGRA_GK20A
89 bool "Enable the GK20A GPU on Tegra"
90 depends on GK20A
91 default y
92 help
93 Enable support for the GK20A graphics engine on Tegra
94 by adding a Tegra platfrom interface to the GK20A driver.
95
96config TEGRA_ACR
97 bool "Enable HS bin support on GM20B GPU on Tegra"
98 depends on GK20A && GK20A_PMU
99 default n
100 help
101 Enable Support for Loading High Secure binary, and using
102 Write Protected Regions (WPR) for storing ucodes, and bootstrap
103 PMU, FECS and GPCCS in Low Secure mode.
104
105config TEGRA_USE_NA_GPCPLL
106 bool "Enable noise aware mode of GM20B GPCPLL on Tegra"
107 depends on GK20A
108 depends on COMMON_CLK
109 default n
110 help
111 Enable noise aware (NA) mode of GM20b GPCPLL. In this mode PLL output
112 frequency is automatically adjusted when GM20b voltage is fluctuating
113 because of transient PMIC or power distribution tree noise.
114
115config GK20A_PCI
116 bool "Support PCIe NVIDIA GPUs on nvgpu"
117 depends on PCI && GK20A
118 default y if ARCH_TEGRA_18x_SOC
119 default n
120 help
121 Enable support for GPUs on PCIe bus.
122
123config GK20A_TRACE_PRINTK
124 bool "Support trace_printk debugging"
125 depends on GK20A && FTRACE_PRINTK
126 default n
127 help
128 Enable nvgpu debug facility to redirect debug spew to ftrace. This
129 affects kernel memory use, so should not be enabled by default.
130
131config GK20A_VIDMEM
132 bool "Support separate video memory on nvgpu"
133 depends on GK20A
134 default n
135 help
136 Enable support for using and allocating buffers in a distinct video
137 memory aperture (in contrast to general system memory), available on
138 GPUs that have their own banks. PCIe GPUs have this, for example.