From 18a5111380343690148122434c8d3e1b9cfe48a5 Mon Sep 17 00:00:00 2001 From: Thomas Fleury Date: Wed, 4 Jan 2017 11:31:26 -0800 Subject: gpu: nvgpu: add GPCCLK on ioctl API Internally we use GPC2CLK in the arbiter, but we should expose GPCCLK on kernel API and in user space. Added GPCCLK on the ioctl API. Arbiter uses GPC2CLK to make queries, then converts to GPCCLK. Jira DNVGPU-210 Change-Id: Id0b8134d0505c1f9bfd655a08e902bdcd03ebd96 Signed-off-by: Thomas Fleury Reviewed-on: http://git-master/r/1280316 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom --- include/uapi/linux/nvgpu.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/uapi/linux/nvgpu.h b/include/uapi/linux/nvgpu.h index e844a205..25c0472c 100644 --- a/include/uapi/linux/nvgpu.h +++ b/include/uapi/linux/nvgpu.h @@ -1,7 +1,7 @@ /* * NVGPU Public Interface Header * - * Copyright (c) 2011-2016, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2011-2017, NVIDIA CORPORATION. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, @@ -536,7 +536,13 @@ struct nvgpu_gpu_alloc_vidmem_args { }; }; +/* Main graphics core clock */ +#define NVGPU_GPU_CLK_DOMAIN_GPCCLK (0x10000000) +/* Memory clock */ #define NVGPU_GPU_CLK_DOMAIN_MCLK (0x00000010) +/* Main graphics core clock x 2 + * deprecated, use NVGPU_GPU_CLK_DOMAIN_GPCCLK instead + */ #define NVGPU_GPU_CLK_DOMAIN_GPC2CLK (0x00010000) struct nvgpu_gpu_clk_range { -- cgit v1.2.2