From 84c0ab81ab28b349c5477b0512b8bbfdb24edc3d Mon Sep 17 00:00:00 2001 From: Deepak Nibade Date: Wed, 8 Aug 2018 14:53:08 +0530 Subject: 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 Reviewed-on: https://git-master.nvidia.com/r/1794999 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c') 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 = { .is_engine_in_reset = gk20a_pmu_is_engine_in_reset, }, .regops = { + .exec_regops = vgpu_exec_regops, .get_global_whitelist_ranges = gp10b_get_global_whitelist_ranges, .get_global_whitelist_ranges_count = @@ -514,7 +515,6 @@ static const struct gpu_ops vgpu_gp10b_ops = { .post_events = gk20a_dbg_gpu_post_events, }, .dbg_session_ops = { - .exec_reg_ops = vgpu_exec_regops, .dbg_set_powergate = vgpu_dbg_set_powergate, .check_and_set_global_reservation = vgpu_check_and_set_global_reservation, -- cgit v1.2.2