mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
We currently load and create new graphics context image in gr_gk20a_load_golden_ctx_image() This API will first load local golden image in new context image and then initialize context appropriately by calling g->ops.gr.ctxsw_prog() HALs Move this sequence to gr/ctx unit and rename the API as nvgpu_gr_ctx_load_golden_ctx_image() Note that call to g->ops.gr.update_ctxsw_preemption_mode() is moved out of this API and called directly from gk20a_alloc_obj_ctx() Jira NVGPU-1527 Change-Id: Id5a5b2cd2c0704fbefe536d581a37a60ec185ea9 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1989157 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>