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/gk20a/pmu_gk20a.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/gk20a/pmu_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/pmu_gk20a.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/pmu_gk20a.h b/drivers/gpu/nvgpu/gk20a/pmu_gk20a.h index 997a88d2..f4e8c601 100644 --- a/drivers/gpu/nvgpu/gk20a/pmu_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/pmu_gk20a.h | |||
@@ -54,7 +54,9 @@ void gk20a_pmu_msgq_tail(struct nvgpu_pmu *pmu, u32 *tail, bool set); | |||
54 | u32 gk20a_pmu_read_idle_counter(struct gk20a *g, u32 counter_id); | 54 | u32 gk20a_pmu_read_idle_counter(struct gk20a *g, u32 counter_id); |
55 | void gk20a_pmu_reset_idle_counter(struct gk20a *g, u32 counter_id); | 55 | void gk20a_pmu_reset_idle_counter(struct gk20a *g, u32 counter_id); |
56 | 56 | ||
57 | void gk20a_init_pmu_ops(struct gpu_ops *gops); | 57 | int gk20a_init_pmu_setup_hw1(struct gk20a *g); |
58 | void gk20a_write_dmatrfbase(struct gk20a *g, u32 addr); | ||
59 | bool gk20a_is_pmu_supported(struct gk20a *g); | ||
58 | 60 | ||
59 | void pmu_copy_to_dmem(struct nvgpu_pmu *pmu, | 61 | void pmu_copy_to_dmem(struct nvgpu_pmu *pmu, |
60 | u32 dst, u8 *src, u32 size, u8 port); | 62 | u32 dst, u8 *src, u32 size, u8 port); |