summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.c
diff options
context:
space:
mode:
authorThomas Fleury <tfleury@nvidia.com>2016-10-14 13:41:07 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2016-12-09 23:24:06 -0500
commit8cfcf181f1e9b03324e4bb04450de154fdf9834d (patch)
treea54ef7f2c337d0ed96babeb3a3316a5b3867fdca /drivers/gpu/nvgpu/gk20a/gk20a.c
parenta4731b328268e1d75429942f769252e3e0d41328 (diff)
gpu: nvgpu: add clocks control capability
Add NVGPU_GPU_FLAGS_SUPPORT_CLOCK_CONTROLS bit to allow user library to determine if GPU supports clock control ioctls. Jira DNVGPU-125 Change-Id: Ia09808ed36aa85a7c520039bb336888e2b467076 Signed-off-by: David Martine Nieto <dmartineznie@nvidia.com> Reviewed-on: http://git-master/r/1239379 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1267154 Reviewed-by: Automatic_Commit_Validation_User
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c
index 8a1df1cc..df57ec7c 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.c
@@ -2056,6 +2056,9 @@ int gk20a_init_gpu_characteristics(struct gk20a *g)
2056 gpu->flags |= NVGPU_GPU_FLAGS_SUPPORT_USERSPACE_MANAGED_AS; 2056 gpu->flags |= NVGPU_GPU_FLAGS_SUPPORT_USERSPACE_MANAGED_AS;
2057 gpu->flags |= NVGPU_GPU_FLAGS_SUPPORT_TSG; 2057 gpu->flags |= NVGPU_GPU_FLAGS_SUPPORT_TSG;
2058 2058
2059 if (g->ops.clk_arb.get_arbiter_clk_domains)
2060 gpu->flags |= NVGPU_GPU_FLAGS_SUPPORT_CLOCK_CONTROLS;
2061
2059 gpu->gpc_mask = (1 << g->gr.gpc_count)-1; 2062 gpu->gpc_mask = (1 << g->gr.gpc_count)-1;
2060 2063
2061 g->ops.gr.detect_sm_arch(g); 2064 g->ops.gr.detect_sm_arch(g);