gpu: nvgpu: Initialize clk counters for dGPU clocks

Initialize the clock counters for GPCCLK, XBARCLK, SYSCLK.
This INIT was done in PMU before, but now disabled from TU10A profile.
Hence the initialization is moved into nvgpu.

This patch does the following.
1. Move clock files from GV100 to TU104.
2. Add the Counter HW Registers.
3. Initialize the counter registers for gpc, xbar and sysclk.
4. Change the debug fs node from gv100 to tu104.
5. Update in yaml file with new file names.

Bug 200536091

Change-Id: I436019a18f5c4c73979977666d0c04ce4c569047
Signed-off-by: Abdul Salam <absalam@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2155298
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com>
Reviewed-by: Mahantesh Kumbar <mkumbar@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Abdul Salam
2019-07-25 11:53:01 +05:30
committed by mobile promotions
parent 1551e7ea3d
commit e58e00b0fb
12 changed files with 179 additions and 51 deletions

View File

@@ -16,13 +16,13 @@
#include "os_linux.h"
#include "debug_clk_gv100.h"
#include "debug_clk_tu104.h"
#include "debug_therm_tu104.h"
#include "debug_fecs_trace.h"
static struct nvgpu_os_linux_ops gv100_os_linux_ops = {
.clk = {
.init_debugfs = gv100_clk_init_debugfs,
.init_debugfs = tu104_clk_init_debugfs,
},
.therm = {
.init_debugfs = tu104_therm_init_debugfs,