From 350bb74859eb6eb0d0ba7c8e6792a0b4e48849b4 Mon Sep 17 00:00:00 2001 From: Mahantesh Kumbar Date: Tue, 11 Jul 2017 11:42:01 +0530 Subject: gpu: nvgpu: PMU debug reorg - Moved PMU debug related code to pmu_debug.c Print pmu trace buffer Moved PMU controller/engine status dump debug code Moved ELPG stats dump code - Removed PMU falcon controller status dump code & used nvgpu_flcn_dump_stats() method, - Method to print ELPG stats. - PMU HAL to print PMU engine & ELPG debug info upon error NVGPU JIRA-96 Change-Id: Iaa3d983f1d3b78a1b051beb6c109d3da8f8c90bc Signed-off-by: Mahantesh Kumbar Reviewed-on: https://git-master.nvidia.com/r/1516640 Reviewed-by: svc-mobile-coverity Reviewed-by: svccoveritychecker GVS: Gerrit_Virtual_Submit Reviewed-by: Vijayakumar Subbu --- drivers/gpu/nvgpu/include/nvgpu/pmu.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'drivers/gpu/nvgpu/include') diff --git a/drivers/gpu/nvgpu/include/nvgpu/pmu.h b/drivers/gpu/nvgpu/include/nvgpu/pmu.h index 556d9f39..60ce8b96 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/pmu.h +++ b/drivers/gpu/nvgpu/include/nvgpu/pmu.h @@ -449,4 +449,9 @@ int nvgpu_aelpg_init_and_enable(struct gk20a *g, u8 ctrl_id); int nvgpu_pmu_ap_send_command(struct gk20a *g, union pmu_ap_cmd *p_ap_cmd, bool b_block); +/* PMU debug */ +void nvgpu_pmu_dump_falcon_stats(struct nvgpu_pmu *pmu); +void nvgpu_pmu_dump_elpg_stats(struct nvgpu_pmu *pmu); +bool nvgpu_find_hex_in_string(char *strings, struct gk20a *g, u32 *hex_pos); + #endif /* __NVGPU_PMU_H__ */ -- cgit v1.2.2