summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorThomas Fleury <tfleury@nvidia.com>2017-01-04 14:31:26 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2017-01-05 13:38:45 -0500
commit18a5111380343690148122434c8d3e1b9cfe48a5 (patch)
tree5ebd6e0297241c0cfb60cd36d2e6aafacaa0c881 /include
parentb7ad7016d4dbc2c6522ab58da262ce4c14d51d34 (diff)
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 <tfleury@nvidia.com> Reviewed-on: http://git-master/r/1280316 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r--include/uapi/linux/nvgpu.h8
1 files changed, 7 insertions, 1 deletions
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 @@
1/* 1/*
2 * NVGPU Public Interface Header 2 * NVGPU Public Interface Header
3 * 3 *
4 * Copyright (c) 2011-2016, NVIDIA CORPORATION. All rights reserved. 4 * Copyright (c) 2011-2017, NVIDIA CORPORATION. All rights reserved.
5 * 5 *
6 * This program is free software; you can redistribute it and/or modify it 6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License, 7 * under the terms and conditions of the GNU General Public License,
@@ -536,7 +536,13 @@ struct nvgpu_gpu_alloc_vidmem_args {
536 }; 536 };
537}; 537};
538 538
539/* Main graphics core clock */
540#define NVGPU_GPU_CLK_DOMAIN_GPCCLK (0x10000000)
541/* Memory clock */
539#define NVGPU_GPU_CLK_DOMAIN_MCLK (0x00000010) 542#define NVGPU_GPU_CLK_DOMAIN_MCLK (0x00000010)
543/* Main graphics core clock x 2
544 * deprecated, use NVGPU_GPU_CLK_DOMAIN_GPCCLK instead
545 */
540#define NVGPU_GPU_CLK_DOMAIN_GPC2CLK (0x00010000) 546#define NVGPU_GPU_CLK_DOMAIN_GPC2CLK (0x00010000)
541 547
542struct nvgpu_gpu_clk_range { 548struct nvgpu_gpu_clk_range {