mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-25 11:04:51 +03:00
Many of the functions in common.gr.obj_ctx and common.gr.fs_state units directly dereference struct gr_gk20a to obtain other structures e.g. API nvgpu_gr_obj_ctx_set_ctxsw_preemption_mode() obtains pointer to nvgpu_gr_config struct by direct access g->gr.config Such accesses add dependency of these units on gr.h and hence create circular dependency with common.gr.gr unit Fix this by receiving all required structures in the function parameter list itself Jira NVGPU-1886 Change-Id: Iee973ae33fc7e1707b8f025ad61683f725dedb53 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2094995 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>