gpu: nvgpu: make ctx structs private

Add ctx_priv.h header for structs which are used within
nvgpu_gr_ctx. APIs are added to manage fields of nvgpu_gr_ctx.

JIRA NVGPU-3060

Change-Id: I396fbbb5199e354c62772e901e3bbf61d135f3b1
Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2090398
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Nitin Kumbhar
2019-04-05 09:43:09 +05:30
committed by mobile promotions
parent 9f233a6ab4
commit 8664b3be6c
22 changed files with 403 additions and 161 deletions

View File

@@ -95,8 +95,8 @@ static int gk20a_fifo_sched_debugfs_seq_show(
tsg->timeslice_us,
ch->ctxsw_timeout_max_ms,
tsg->interleave_level,
tsg->gr_ctx->graphics_preempt_mode,
tsg->gr_ctx->compute_preempt_mode);
nvgpu_gr_ctx_get_graphics_preemption_mode(tsg->gr_ctx),
nvgpu_gr_ctx_get_compute_preemption_mode(tsg->gr_ctx));
gk20a_channel_put(ch);
}
return 0;