From d18c8b3dffa42867ba5fdd730bf4bd757889e856 Mon Sep 17 00:00:00 2001 From: Rohit Vaswani Date: Wed, 1 Feb 2017 17:32:56 -0800 Subject: [PATCH] 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 Signed-off-by: Rohit Vaswani Reviewed-on: http://git-master/r/1297666 Signed-off-by: Debarshi Dutta GVS: Gerrit_Virtual_Submit (cherry picked from commit 811880da40b917e578ebd65696f8ea617b41d784 in rel-27) Reviewed-on: https://git-master.nvidia.com/r/1645028 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Winnie Hsu Tested-by: Winnie Hsu --- drivers/gpu/nvgpu/Kconfig.nvgpu | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/drivers/gpu/nvgpu/Kconfig.nvgpu b/drivers/gpu/nvgpu/Kconfig.nvgpu index d15a9fd08..92206a29f 100644 --- a/drivers/gpu/nvgpu/Kconfig.nvgpu +++ b/drivers/gpu/nvgpu/Kconfig.nvgpu @@ -128,4 +128,20 @@ config GK20A_VIDMEM memory aperture (in contrast to general system memory), available on 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"