summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp106/clk_gp106.h
diff options
context:
space:
mode:
authorDavid Nieto <dmartineznie@nvidia.com>2016-10-12 17:54:37 -0400
committerDeepak Nibade <dnibade@nvidia.com>2016-12-27 04:56:52 -0500
commitc123d5056d3af043e2376fa0c5429db7deb3b31b (patch)
tree4bca5ae3f0643b4f864f0c365510233c20c3da46 /drivers/gpu/nvgpu/gp106/clk_gp106.h
parent1cf7baa7fde73ae1e3f28a115dfe7bc28bc5cc75 (diff)
gpu: nvgpu: gpu: read effective frequence from counter
(1) modified counters debug code to export to the driver (2) modified arbiter to read from those functions (3) modified counter for higher accuracy on MHz range JIRA DNVGPU-164 Change-Id: I2bbf7c9be4dc59718d1d91c53028a39020b5aea5 Signed-off-by: David Nieto <dmartineznie@nvidia.com> Reviewed-on: http://git-master/r/1239467 GVS: Gerrit_Virtual_Submit Reviewed-by: Thomas Fleury <tfleury@nvidia.com> Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1268008
Diffstat (limited to 'drivers/gpu/nvgpu/gp106/clk_gp106.h')
-rw-r--r--drivers/gpu/nvgpu/gp106/clk_gp106.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gp106/clk_gp106.h b/drivers/gpu/nvgpu/gp106/clk_gp106.h
index a50819aa..7df4b974 100644
--- a/drivers/gpu/nvgpu/gp106/clk_gp106.h
+++ b/drivers/gpu/nvgpu/gp106/clk_gp106.h
@@ -26,9 +26,9 @@
26#define CLK_DEFAULT_CNTRL_SETTLE_RETRIES 10 26#define CLK_DEFAULT_CNTRL_SETTLE_RETRIES 10
27#define CLK_DEFAULT_CNTRL_SETTLE_USECS 5 27#define CLK_DEFAULT_CNTRL_SETTLE_USECS 5
28 28
29#define XTAL_CNTR_CLKS 2700 /* 100usec at 27KHz XTAL */ 29#define XTAL_CNTR_CLKS 27000 /* 1000usec at 27KHz XTAL */
30#define XTAL_CNTR_DELAY 110 /* leave 10 extra usec */ 30#define XTAL_CNTR_DELAY 1000 /* we need acuracy up to the ms */
31#define XTAL_SCALE_TO_KHZ 10 31#define XTAL_SCALE_TO_KHZ 1
32 32
33 33
34 34
@@ -47,6 +47,7 @@ struct namemap_cfg {
47 /* Todo */ 47 /* Todo */
48 } pll; 48 } pll;
49 }; 49 };
50 u32 scale;
50 char name[24]; 51 char name[24];
51}; 52};
52 53