From 8cfcf181f1e9b03324e4bb04450de154fdf9834d Mon Sep 17 00:00:00 2001 From: Thomas Fleury Date: Fri, 14 Oct 2016 10:41:07 -0700 Subject: 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 Reviewed-on: http://git-master/r/1239379 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom Reviewed-on: http://git-master/r/1267154 Reviewed-by: Automatic_Commit_Validation_User --- drivers/gpu/nvgpu/gk20a/gk20a.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'drivers') 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) gpu->flags |= NVGPU_GPU_FLAGS_SUPPORT_USERSPACE_MANAGED_AS; gpu->flags |= NVGPU_GPU_FLAGS_SUPPORT_TSG; + if (g->ops.clk_arb.get_arbiter_clk_domains) + gpu->flags |= NVGPU_GPU_FLAGS_SUPPORT_CLOCK_CONTROLS; + gpu->gpc_mask = (1 << g->gr.gpc_count)-1; g->ops.gr.detect_sm_arch(g); -- cgit v1.2.2