msm: sps: improve debugging feature in SPS driver
1> Remove the dump of TRUST registers since they are protected by TZ;
2> Output IRQ registers only for the EE of apps side;
3> Add the names of registers and some register fields in the dump to
facilitate the analysis;
4> Output the flags of descriptors;
5> Output the BAM physical address when client drivers call SPS debugging
API;
6> Add tags to the beginning and end of each BAM dump in order to
facilitate the post-processing of the dump;
7> Add an option to save all the BAM logs only to an internal memory
enabled by debugfs, which can reduce the system overhead to output the
logs to Linux kernel log;
8> Output the virtual address of a BAM together with the physical address
of a BAM when a BAM HW is enabled, which helps the analysis of dumps
which are based on virtual address of a BAM;
9> Increase the size range of partially dumped descriptor FIFO.
Change-Id: I98f53ddc92c1b7dfc1f9088778f82130dd4e337a
Signed-off-by: Yan He <yanhe@codeaurora.org>
diff --git a/arch/arm/mach-msm/include/mach/sps.h b/arch/arm/mach-msm/include/mach/sps.h
index cf59dd8..c20576a 100644
--- a/arch/arm/mach-msm/include/mach/sps.h
+++ b/arch/arm/mach-msm/include/mach/sps.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 2011-2012, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2011-2013, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@@ -1261,7 +1261,7 @@
*
*/
int sps_get_bam_debug_info(u32 dev, u32 option, u32 para,
- u32 tb_sel, u8 desc_sel);
+ u32 tb_sel, u32 desc_sel);
#else
static inline int sps_register_bam_device(const struct sps_bam_props
@@ -1421,7 +1421,7 @@
}
static inline int sps_get_bam_debug_info(u32 dev, u32 option, u32 para,
- u32 tb_sel, u8 pre_level)
+ u32 tb_sel, u32 desc_sel)
{
return -EPERM;
}