gpu: nvgpu: gsp NVRISCV load and bootstrap

Changes:
- This change will only init gsp software
  state, nvgpu_gsp_bootstrap need to be called.
- CONFIG_NVGPU_GSP_SCHEDULER flag is created to
  compile out the gsp scheduler code when needed.
- Created GSP engine reset which is needed when
  ACR completed execution and need to load gsp fw.

NVGPU-6783

Signed-off-by: Ramesh Mylavarapu <rmylavarapu@nvidia.com>
Change-Id: I2ce43e512b01df59443559eab621ed39868ad158
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2554267
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Ramesh Mylavarapu
2021-07-05 21:29:37 +05:30
committed by mobile promotions
parent 1782bb435b
commit d328bff79e
18 changed files with 531 additions and 3 deletions

View File

@@ -83,6 +83,10 @@
#include "debug_pmgr.h"
#include "dmabuf_priv.h"
#ifdef CONFIG_NVGPU_GSP_SCHEDULER
#include "nvgpu/gsp.h"
#endif
#ifdef CONFIG_NVGPU_SUPPORT_CDE
#include "cde.h"
#endif
@@ -945,6 +949,10 @@ void gk20a_remove_support(struct gk20a *g)
nvgpu_free_cyclestats_snapshot_data(g);
#endif
#ifdef CONFIG_NVGPU_GSP_SCHEDULER
nvgpu_gsp_sw_deinit(g);
#endif
nvgpu_fbp_remove_support(g);
nvgpu_remove_usermode_support(g);