mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 01:50:07 +03:00
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>
This commit is contained in:
committed by
mobile promotions
parent
b7ad7016d4
commit
18a5111380
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user