summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c
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/vgpu/gp10b/vgpu_hal_gp10b.c
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/vgpu/gp10b/vgpu_hal_gp10b.c')
-rw-r--r--drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c b/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c
index 45b907ac..a8aa023b 100644
--- a/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c
+++ b/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c
@@ -466,6 +466,7 @@ static const struct gpu_ops vgpu_gp10b_ops = {
466 .is_engine_in_reset = gk20a_pmu_is_engine_in_reset, 466 .is_engine_in_reset = gk20a_pmu_is_engine_in_reset,
467 }, 467 },
468 .regops = { 468 .regops = {
469 .exec_regops = vgpu_exec_regops,
469 .get_global_whitelist_ranges = 470 .get_global_whitelist_ranges =
470 gp10b_get_global_whitelist_ranges, 471 gp10b_get_global_whitelist_ranges,
471 .get_global_whitelist_ranges_count = 472 .get_global_whitelist_ranges_count =
@@ -514,7 +515,6 @@ static const struct gpu_ops vgpu_gp10b_ops = {
514 .post_events = gk20a_dbg_gpu_post_events, 515 .post_events = gk20a_dbg_gpu_post_events,
515 }, 516 },
516 .dbg_session_ops = { 517 .dbg_session_ops = {
517 .exec_reg_ops = vgpu_exec_regops,
518 .dbg_set_powergate = vgpu_dbg_set_powergate, 518 .dbg_set_powergate = vgpu_dbg_set_powergate,
519 .check_and_set_global_reservation = 519 .check_and_set_global_reservation =
520 vgpu_check_and_set_global_reservation, 520 vgpu_check_and_set_global_reservation,