summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.h
diff options
context:
space:
mode:
authorDeepak Nibade <dnibade@nvidia.com>2018-08-08 05:23:08 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-08-10 11:15:46 -0400
commit84c0ab81ab28b349c5477b0512b8bbfdb24edc3d (patch)
tree5dff4816e5be641d7293e1c4dff1bb5d39653059 /drivers/gpu/nvgpu/gk20a/gk20a.h
parent542e6a0ab4fe3839633a3a86c80b394fd046ac79 (diff)
gpu: nvgpu: move exec_reg_ops() to regops HAL
We right now define HAL exec_reg_ops() under gops.dbg_session_ops operations But we have separate gops.regops operations for all the regops and this would be logically correct place for exec_reg_ops() Move exec_reg_ops() from gops.dbg_session_ops to gops.regops Also rename it to exec_regops() Jira NVGPU-620 Change-Id: If4f70639ffbc892c605f7540a83bce12ed821b52 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1794999 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.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h
index ffa5e318..e8815b53 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.h
@@ -1100,6 +1100,9 @@ struct gpu_ops {
1100 int (*handle_pmu_perf_event)(struct gk20a *g, void *pmu_msg); 1100 int (*handle_pmu_perf_event)(struct gk20a *g, void *pmu_msg);
1101 } perf; 1101 } perf;
1102 struct { 1102 struct {
1103 int (*exec_regops)(struct dbg_session_gk20a *dbg_s,
1104 struct nvgpu_dbg_reg_op *ops,
1105 u64 num_ops);
1103 const struct regop_offset_range* ( 1106 const struct regop_offset_range* (
1104 *get_global_whitelist_ranges)(void); 1107 *get_global_whitelist_ranges)(void);
1105 int (*get_global_whitelist_ranges_count)(void); 1108 int (*get_global_whitelist_ranges_count)(void);
@@ -1147,9 +1150,6 @@ struct gpu_ops {
1147 struct gk20a_debug_output *o); 1150 struct gk20a_debug_output *o);
1148 } debug; 1151 } debug;
1149 struct { 1152 struct {
1150 int (*exec_reg_ops)(struct dbg_session_gk20a *dbg_s,
1151 struct nvgpu_dbg_reg_op *ops,
1152 u64 num_ops);
1153 int (*dbg_set_powergate)(struct dbg_session_gk20a *dbg_s, 1153 int (*dbg_set_powergate)(struct dbg_session_gk20a *dbg_s,
1154 bool disable_powergate); 1154 bool disable_powergate);
1155 bool (*check_and_set_global_reservation)( 1155 bool (*check_and_set_global_reservation)(