gpu: nvgpu: Allow defining min_freq and stepping

Allow defining min_freq and stepping to use for generating freq
table via Kconfig.

Bug 1869602
Bug 200348636

Change-Id: Iaf0af19219a5ce48f424df336e5e5d27d0b7acb4
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Signed-off-by: Rohit Vaswani <rvaswani@nvidia.com>
Reviewed-on: http://git-master/r/1297666
Signed-off-by: Debarshi Dutta <ddutta@nvidia.com>
GVS: Gerrit_Virtual_Submit
(cherry picked from commit 811880da40 in
rel-27)
Reviewed-on: https://git-master.nvidia.com/r/1645028
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Tested-by: Winnie Hsu <whsu@nvidia.com>
This commit is contained in:
Rohit Vaswani
2017-02-01 17:32:56 -08:00
committed by Winnie Hsu
parent 85494f6428
commit d18c8b3dff

View File

@@ -128,4 +128,20 @@ config GK20A_VIDMEM
memory aperture (in contrast to general system memory), available on memory aperture (in contrast to general system memory), available on
GPUs that have their own banks. PCIe GPUs have this, for example. GPUs that have their own banks. PCIe GPUs have this, for example.
config GK20A_FREQ_SELECT_MIN
int "Minimum frequency to use for generating devfreq freq_table"
depends on GK20A_DEVFREQ
default 0
help
Choose the minimum frequency to use for generating devfreq
freq_table.
config GK20A_FREQ_SELECT_STEP
int "Stepping to use for generating devfreq freq_table"
depends on GK20A_DEVFREQ
default 8
help
Stepping to use for generating freq_table. nvgpu will choose
every nth entry, where n is controlled by this config.
trysource "../nvgpu-t19x/drivers/gpu/nvgpu/Kconfig" trysource "../nvgpu-t19x/drivers/gpu/nvgpu/Kconfig"