mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 09:57:08 +03:00
Following functions are moved from gr_gk20a.c to common gr_falcon.c gr_gk20a_disable_ctxsw -> nvgpu_gr_falcon_disable_ctxsw gr_gk20a_enable_ctxsw -> nvgpu_gr_falcon_enable_ctxsw gr_gk20a_halt_pipe -> nvgpu_gr_falcon_halt_pipe Added new gr falcon hal to control ctxsw: int gm20b_gr_falcon_ctrl_ctxsw(struct gk20a *g, u32 fecs_method, u32 data, u32 *ret_val) Parameters: fecs_method: will be specified by a generic define provided in gr_falcon.h header. data: input data parameter (if any), set it to zero, if method did not require any data input. ret_val: pointer to expected output. Added following ops for gr falcon: int (*halt_pipe)(struct gk20a *g); -> this is moved from gr int (*disable_ctxsw)(struct gk20a *g); int (*enable_ctxsw)(struct gk20a *g); JIRA NVGPU-1881 Change-Id: Idb3b7355b5a0bd3b9bb01f9f424c5d607616f540 Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2081308 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
14 KiB
14 KiB