summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/include
diff options
context:
space:
mode:
authorVaibhav Kachore <vkachore@nvidia.com>2018-07-25 07:42:38 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-09-26 02:03:55 -0400
commit3f83528d769169fdaf25912f425226eaa07427f0 (patch)
tree16258e86f78234ff05a0722dbe7f366d5e9f788e /drivers/gpu/nvgpu/include
parentb96a6506d0095ef7271b9fadaba2e0dc6ca33484 (diff)
gpu: nvgpu: correct parameters in set_pmm_register
- This patch corrects parameters in set_pmm_registers - As FBP 6 and 7 are floorswept for GV100, GPU_LIT_NUM_FBPS should not be used - halify get_num_hwpm_perfmon and set_pmm_register Bug 2106999 Change-Id: Ib285b25d0c836c93b529dfe4e26c078159a3e6dd Signed-off-by: Vaibhav Kachore <vkachore@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1785620 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/include')
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/gk20a.h4
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/hw/gv100/hw_perf_gv100.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/gk20a.h b/drivers/gpu/nvgpu/include/nvgpu/gk20a.h
index fa31d0e1..a7fe1c2f 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/gk20a.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/gk20a.h
@@ -330,6 +330,10 @@ struct gpu_ops {
330 u64 gpu_va, 330 u64 gpu_va,
331 u32 mode); 331 u32 mode);
332 void (*init_hwpm_pmm_register)(struct gk20a *g); 332 void (*init_hwpm_pmm_register)(struct gk20a *g);
333 void (*get_num_hwpm_perfmon)(struct gk20a *g, u32 *num_sys_perfmon,
334 u32 *num_fbp_perfmon, u32 *num_gpc_perfmon);
335 void (*set_pmm_register)(struct gk20a *g, u32 offset, u32 val,
336 u32 num_chiplets, u32 num_perfmons);
333 int (*dump_gr_regs)(struct gk20a *g, 337 int (*dump_gr_regs)(struct gk20a *g,
334 struct gk20a_debug_output *o); 338 struct gk20a_debug_output *o);
335 int (*update_pc_sampling)(struct channel_gk20a *ch, 339 int (*update_pc_sampling)(struct channel_gk20a *ch,
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gv100/hw_perf_gv100.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gv100/hw_perf_gv100.h
index a7ba460e..40107ee8 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/hw/gv100/hw_perf_gv100.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gv100/hw_perf_gv100.h
@@ -60,6 +60,10 @@ static inline u32 perf_pmmgpc_perdomain_offset_v(void)
60{ 60{
61 return 0x00000200U; 61 return 0x00000200U;
62} 62}
63static inline u32 perf_pmmsys_perdomain_offset_v(void)
64{
65 return 0x00000200U;
66}
63static inline u32 perf_pmmgpc_base_v(void) 67static inline u32 perf_pmmgpc_base_v(void)
64{ 68{
65 return 0x00180000U; 69 return 0x00180000U;