summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp106/acr_gp106.h
diff options
context:
space:
mode:
authorSunny He <suhe@nvidia.com>2017-08-01 20:10:42 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-08-21 16:06:07 -0400
commit5f010177de985c901c33c914efe70a8498a5974f (patch)
tree1b1a2ac1ab71608a0754a7eb64222f5d198e793c /drivers/gpu/nvgpu/gp106/acr_gp106.h
parentb50b379c192714d0d08c3f2d33e90c95cf795253 (diff)
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 <suhe@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1530982 Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp106/acr_gp106.h')
-rw-r--r--drivers/gpu/nvgpu/gp106/acr_gp106.h9
1 files changed, 8 insertions, 1 deletions
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 @@
19#define GP104_FECS_UCODE_SIG "gp104/fecs_sig.bin" 19#define GP104_FECS_UCODE_SIG "gp104/fecs_sig.bin"
20#define GP104_GPCCS_UCODE_SIG "gp104/gpccs_sig.bin" 20#define GP104_GPCCS_UCODE_SIG "gp104/gpccs_sig.bin"
21 21
22void gp106_init_secure_pmu(struct gpu_ops *gops); 22
23int gp106_bootstrap_hs_flcn(struct gk20a *g);
24int gp106_prepare_ucode_blob(struct gk20a *g);
25int gp106_alloc_blob_space(struct gk20a *g,
26 size_t size, struct nvgpu_mem *mem);
27
28void gp106_wpr_info(struct gk20a *g, struct wpr_carveout_info *inf);
29
23void lsfm_free_ucode_img_res(struct gk20a *g, 30void lsfm_free_ucode_img_res(struct gk20a *g,
24 struct flcn_ucode_img_v1 *p_img); 31 struct flcn_ucode_img_v1 *p_img);
25void lsfm_free_nonpmu_ucode_img_res(struct gk20a *g, 32void lsfm_free_nonpmu_ucode_img_res(struct gk20a *g,