gpu: nvgpu: move fecs_trace operations under gr

Move g->ops.fecs_trace.*() HAL operations under gr operations as
g->ops.gr.fecs_trace.*()

Also rename gk20a_ctxsw_*() functions used in common code to the
format nvgpu_gr_fecs_trace_*()

Jira NVGPU-1880

Change-Id: Idf2f8fb3d7ba2832bf1837fd97b70b3cee412123
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2070767
GVS: Gerrit_Virtual_Submit
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Deepak Nibade
2019-03-07 17:13:44 +05:30
committed by mobile promotions
parent 1208ad7cef
commit 7fa2189fb3
16 changed files with 242 additions and 264 deletions

View File

@@ -132,7 +132,7 @@ static int gk20a_fecs_trace_debugfs_read(void *arg, u64 *val)
return err;
}
*val = g->ops.fecs_trace.get_read_index(g);
*val = g->ops.gr.fecs_trace.get_read_index(g);
gk20a_idle(g);
return 0;
@@ -148,7 +148,7 @@ static int gk20a_fecs_trace_debugfs_write(void *arg, u64 *val)
return err;
}
*val = g->ops.fecs_trace.get_write_index(g);
*val = g->ops.gr.fecs_trace.get_write_index(g);
gk20a_idle(g);
return 0;