mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: remove redundant GR ops
g->ops.gr.enable_cde_in_fecs and g->ops.gr.update_boosted_ctx are no longer required since we can directly call g->ops.gr.ctxsw_prog.set_cde_enabled and g->ops.gr.ctxsw_prog.set_pmu_options_boost_clock_frequencies respectively remove those functions and the ops Jira NVGPU-1526 Change-Id: Idb0ad5f634e78aac44ec325ba2b7f59c612b29e8 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1972184 GVS: Gerrit_Virtual_Submit Reviewed-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
7aac00ee58
commit
6bbcdb51c6
@@ -1746,8 +1746,8 @@ int gr_gk20a_load_golden_ctx_image(struct gk20a *g,
|
||||
g->ops.gr.ctxsw_prog.init_ctxsw_hdr_data(g, mem);
|
||||
}
|
||||
|
||||
if ((g->ops.gr.enable_cde_in_fecs != NULL) && c->cde) {
|
||||
g->ops.gr.enable_cde_in_fecs(g, mem);
|
||||
if ((g->ops.gr.ctxsw_prog.set_cde_enabled != NULL) && c->cde) {
|
||||
g->ops.gr.ctxsw_prog.set_cde_enabled(g, mem);
|
||||
}
|
||||
|
||||
/* set priv access map */
|
||||
@@ -1763,8 +1763,10 @@ int gr_gk20a_load_golden_ctx_image(struct gk20a *g,
|
||||
g->ops.gr.update_ctxsw_preemption_mode(g, gr_ctx, &c->ctx_header);
|
||||
}
|
||||
|
||||
if (g->ops.gr.update_boosted_ctx != NULL) {
|
||||
g->ops.gr.update_boosted_ctx(g, mem, gr_ctx);
|
||||
if (g->ops.gr.ctxsw_prog.set_pmu_options_boost_clock_frequencies !=
|
||||
NULL) {
|
||||
g->ops.gr.ctxsw_prog.set_pmu_options_boost_clock_frequencies(g,
|
||||
mem, gr_ctx->boosted_ctx);
|
||||
}
|
||||
|
||||
nvgpu_log(g, gpu_dbg_info, "write patch count = %d",
|
||||
|
||||
Reference in New Issue
Block a user