summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.h
diff options
context:
space:
mode:
authorNitin Kumbhar <nkumbhar@nvidia.com>2018-08-12 02:09:24 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-09-05 07:51:36 -0400
commitf16cc93d0a7c818327f08ece1d7fcbefcdbb055b (patch)
tree592a06f7c031d16b45e716758890b95f73ee8509 /drivers/gpu/nvgpu/gk20a/gk20a.h
parent43851d41b187c92f5ea9c2f503a882277f661d7e (diff)
gpu: nvgpu: move gp106 clk debugfs to linux
Move linux dependencies and CONFIG_DEBUG_FS to linux specific code from common driver for gp106 clk debugfs. There is no code change in functions moved from gp106/clk_gp106.c. It uses nvgpu_os_linux_ops to add gp106 specific clk debugfs ops. The linux specific part of nvgpu driver uses this op to initialize gp106 clk debugfs. As gv100 also uses gp106 clk debugfs ops, set up os ops for gv100. JIRA NVGPU-603 Change-Id: Ib55ef051b13366e5907e1d05376bb18bf42c8653 Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1797904 Reviewed-by: svc-misra-checker <svc-misra-checker@nvidia.com> Reviewed-by: Deepak Nibade <dnibade@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>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h
index f0b0bebe..be00f708 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.h
@@ -1089,6 +1089,7 @@ struct gpu_ops {
1089 u32 clkapidomain, u32 *pfpointscount, 1089 u32 clkapidomain, u32 *pfpointscount,
1090 u16 *pfreqpointsinmhz); 1090 u16 *pfreqpointsinmhz);
1091 unsigned long (*measure_freq)(struct gk20a *g, u32 api_domain); 1091 unsigned long (*measure_freq)(struct gk20a *g, u32 api_domain);
1092 u32 (*get_rate_cntr)(struct gk20a *g, struct namemap_cfg *c);
1092 unsigned long (*get_rate)(struct gk20a *g, u32 api_domain); 1093 unsigned long (*get_rate)(struct gk20a *g, u32 api_domain);
1093 int (*set_rate)(struct gk20a *g, u32 api_domain, unsigned long rate); 1094 int (*set_rate)(struct gk20a *g, u32 api_domain, unsigned long rate);
1094 unsigned long (*get_fmax_at_vmin_safe)(struct gk20a *g); 1095 unsigned long (*get_fmax_at_vmin_safe)(struct gk20a *g);