summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/pmu_gk20a.h
diff options
context:
space:
mode:
authorMahantesh Kumbar <mkumbar@nvidia.com>2017-05-12 01:54:31 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-06-13 05:40:15 -0400
commit8c66aef3bdbfbbeb1d3c3ef3bd6b1bee3ac05411 (patch)
tree80b8135576c2419887dc18d588c2efd493600ab2 /drivers/gpu/nvgpu/gk20a/pmu_gk20a.h
parent69dee6a648ad434b75e1a9c64b022ee45d3ff87b (diff)
gpu: nvgpu: reorganize PMU FB alloc/free
Moved PMU FB access related code from pmu_gk20a.c to "drivers/gpu/nvgpu/common/pmu/pmu.c" file - Prepended with nvgpu_ for global functions & replaced wherever used. JIRA NVGPU-56 JIRA NVGPU-94 Change-Id: I42bfd9d216e6b35672a9738f01302d954b32b69e Signed-off-by: Mahantesh Kumbar <mkumbar@nvidia.com> Reviewed-on: http://git-master/r/1480551 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/pmu_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/pmu_gk20a.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/pmu_gk20a.h b/drivers/gpu/nvgpu/gk20a/pmu_gk20a.h
index 1c29b380..1d2e20e6 100644
--- a/drivers/gpu/nvgpu/gk20a/pmu_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/pmu_gk20a.h
@@ -57,12 +57,6 @@ struct nvgpu_firmware;
57#define PMU_PGENG_GR_BUFFER_IDX_ZBC (1) 57#define PMU_PGENG_GR_BUFFER_IDX_ZBC (1)
58#define PMU_PGENG_GR_BUFFER_IDX_FECS (2) 58#define PMU_PGENG_GR_BUFFER_IDX_FECS (2)
59 59
60struct pmu_surface {
61 struct nvgpu_mem vidmem_desc;
62 struct nvgpu_mem sysmem_desc;
63 struct flcn_mem_desc_v0 params;
64};
65
66#define PMU_PG_IDLE_THRESHOLD_SIM 1000 60#define PMU_PG_IDLE_THRESHOLD_SIM 1000
67#define PMU_PG_POST_POWERUP_IDLE_THRESHOLD_SIM 4000000 61#define PMU_PG_POST_POWERUP_IDLE_THRESHOLD_SIM 4000000
68/* TBD: QT or else ? */ 62/* TBD: QT or else ? */
@@ -154,13 +148,6 @@ int gk20a_pmu_reset(struct gk20a *g);
154int pmu_idle(struct nvgpu_pmu *pmu); 148int pmu_idle(struct nvgpu_pmu *pmu);
155int pmu_enable_hw(struct nvgpu_pmu *pmu, bool enable); 149int pmu_enable_hw(struct nvgpu_pmu *pmu, bool enable);
156 150
157void gk20a_pmu_surface_free(struct gk20a *g, struct nvgpu_mem *mem);
158void gk20a_pmu_surface_describe(struct gk20a *g, struct nvgpu_mem *mem,
159 struct flcn_mem_desc_v0 *fb);
160int gk20a_pmu_vidmem_surface_alloc(struct gk20a *g, struct nvgpu_mem *mem,
161 u32 size);
162int gk20a_pmu_sysmem_surface_alloc(struct gk20a *g, struct nvgpu_mem *mem,
163 u32 size);
164bool nvgpu_find_hex_in_string(char *strings, struct gk20a *g, u32 *hex_pos); 151bool nvgpu_find_hex_in_string(char *strings, struct gk20a *g, u32 *hex_pos);
165 152
166int nvgpu_pmu_perfmon_start_sampling(struct nvgpu_pmu *pmu); 153int nvgpu_pmu_perfmon_start_sampling(struct nvgpu_pmu *pmu);