mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 01:50:07 +03:00
Add a new unit common.gr.obj_ctx which allocates and initializes GR context. This unit also takes care of creating global golden image used to initialize every context. Add private header obj_ctx_priv.h that defines struct nvgpu_gr_obj_ctx_golden_image Add public header obj_ctx.h that exposes functions supported by new unit This unit now exposes below API to allocate and initialize context nvgpu_gr_obj_ctx_alloc() Remove below functions from gk20a/gr_gk20a.c and move them to new unit with below renames gr_gk20a_fecs_ctx_bind_channel() -> nvgpu_gr_obj_ctx_bind_channel() gr_gk20a_fecs_ctx_image_save() -> nvgpu_gr_obj_ctx_image_save() gk20a_init_sw_bundle() -> nvgpu_gr_obj_ctx_alloc_sw_bundle() gr_gk20a_alloc_gr_ctx() -> nvgpu_gr_obj_ctx_gr_ctx_alloc() gr_gk20a_init_golden_ctx_image() -> nvgpu_gr_obj_ctx_alloc_golden_ctx_image() Use new APIs in gk20a_alloc_obj_ctx() to allocate context For now this unit includes <nvgpu/gr/gr.h> and some h/w headers. But they will be removed in follow up patches Jira NVGPU-1887 Change-Id: Ib95ec1c19c5b74810f85c2feed8fdd63889d3d22 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2087662 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: Alex Waterman <alexw@nvidia.com> Reviewed-by: Vinod Gopalakrishnakurup <vinodg@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
30 KiB
30 KiB