diff options
author | Sunny He <suhe@nvidia.com> | 2017-08-01 20:10:42 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-08-21 16:06:07 -0400 |
commit | 5f010177de985c901c33c914efe70a8498a5974f (patch) | |
tree | 1b1a2ac1ab71608a0754a7eb64222f5d198e793c /drivers/gpu/nvgpu/gp106/acr_gp106.h | |
parent | b50b379c192714d0d08c3f2d33e90c95cf795253 (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.h | 9 |
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 | ||
22 | void gp106_init_secure_pmu(struct gpu_ops *gops); | 22 | |
23 | int gp106_bootstrap_hs_flcn(struct gk20a *g); | ||
24 | int gp106_prepare_ucode_blob(struct gk20a *g); | ||
25 | int gp106_alloc_blob_space(struct gk20a *g, | ||
26 | size_t size, struct nvgpu_mem *mem); | ||
27 | |||
28 | void gp106_wpr_info(struct gk20a *g, struct wpr_carveout_info *inf); | ||
29 | |||
23 | void lsfm_free_ucode_img_res(struct gk20a *g, | 30 | void lsfm_free_ucode_img_res(struct gk20a *g, |
24 | struct flcn_ucode_img_v1 *p_img); | 31 | struct flcn_ucode_img_v1 *p_img); |
25 | void lsfm_free_nonpmu_ucode_img_res(struct gk20a *g, | 32 | void lsfm_free_nonpmu_ucode_img_res(struct gk20a *g, |