From 5f010177de985c901c33c914efe70a8498a5974f Mon Sep 17 00:00:00 2001 From: Sunny He Date: Tue, 1 Aug 2017 17:10:42 -0700 Subject: gpu: nvgpu: Reorg pmu HAL initialization Reorganize HAL initialization to remove inheritance and construct the gpu_ops struct at compile time. This patch only covers the pmu sub-module of the gpu_ops struct. Perform HAL function assignments in hal_gxxxx.c through the population of a chip-specific copy of gpu_ops. Jira NVGPU-74 Change-Id: I8839ac99e87153637005e23b3013237f57275c54 Signed-off-by: Sunny He Reviewed-on: https://git-master.nvidia.com/r/1530982 Reviewed-by: svccoveritychecker Reviewed-by: svc-mobile-coverity Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/gp106/acr_gp106.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'drivers/gpu/nvgpu/gp106/acr_gp106.h') diff --git a/drivers/gpu/nvgpu/gp106/acr_gp106.h b/drivers/gpu/nvgpu/gp106/acr_gp106.h index fe8fbdb1..85448a81 100644 --- a/drivers/gpu/nvgpu/gp106/acr_gp106.h +++ b/drivers/gpu/nvgpu/gp106/acr_gp106.h @@ -19,7 +19,14 @@ #define GP104_FECS_UCODE_SIG "gp104/fecs_sig.bin" #define GP104_GPCCS_UCODE_SIG "gp104/gpccs_sig.bin" -void gp106_init_secure_pmu(struct gpu_ops *gops); + +int gp106_bootstrap_hs_flcn(struct gk20a *g); +int gp106_prepare_ucode_blob(struct gk20a *g); +int gp106_alloc_blob_space(struct gk20a *g, + size_t size, struct nvgpu_mem *mem); + +void gp106_wpr_info(struct gk20a *g, struct wpr_carveout_info *inf); + void lsfm_free_ucode_img_res(struct gk20a *g, struct flcn_ucode_img_v1 *p_img); void lsfm_free_nonpmu_ucode_img_res(struct gk20a *g, -- cgit v1.2.2