diff options
author | Sunny He <suhe@nvidia.com> | 2017-08-01 20:12:03 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-08-21 16:06:07 -0400 |
commit | cce0a55d2106865be14b3b39c083a0f55881f2a5 (patch) | |
tree | dadeb0bfae70b105a749d4a3378485ceaf2b0f8d /drivers/gpu/nvgpu/gv11b/pmu_gv11b.h | |
parent | 6ff92bfb6e1ed68e29cef279f3275ac75ceaa4db (diff) |
gpu: nvgpu: gv11b: Reorg pmu HAL init
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: I3f8a763a7bebf201c2242eecde7ff998aad07d0a
Signed-off-by: Sunny He <suhe@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1530983
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/pmu_gv11b.h')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/pmu_gv11b.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/pmu_gv11b.h b/drivers/gpu/nvgpu/gv11b/pmu_gv11b.h index ce10c4cb..03fec2a3 100644 --- a/drivers/gpu/nvgpu/gv11b/pmu_gv11b.h +++ b/drivers/gpu/nvgpu/gv11b/pmu_gv11b.h | |||
@@ -18,6 +18,9 @@ | |||
18 | 18 | ||
19 | struct gk20a; | 19 | struct gk20a; |
20 | 20 | ||
21 | void gv11b_init_pmu_ops(struct gk20a *g); | 21 | bool gv11b_is_pmu_supported(struct gk20a *g); |
22 | int gv11b_pmu_bootstrap(struct nvgpu_pmu *pmu); | ||
23 | int gv11b_pg_gr_init(struct gk20a *g, u32 pg_engine_id); | ||
24 | int gv11b_pg_set_subfeature_mask(struct gk20a *g, u32 pg_engine_id); | ||
22 | 25 | ||
23 | #endif /*__PMU_GV11B_H_*/ | 26 | #endif /*__PMU_GV11B_H_*/ |