msm: camera: cpas: Add more debug information in cpas dump
Enhance cpas state dump to get more information about bandwidth and clock status. This additional state dump can be enabled using debugfs. adb shell "echo 1 > /sys/kernel/debug/camera_cpas/full_state_dump" Traverse through all bw tree nodes and print info in each node. Print current clk frequencies of all clocks that cpas enables. Read rpmh bcm status registers to understand mmnoc clk freq. Add cpas monitor to save important info whenever clients notify with an event. This monitor info is printed in cpas state dump. CRs-Fixed: 2754299 Change-Id: Ib9007091f7e34127f1ca92498e2537b2a06887cb Signed-off-by: Pavan Kumar Chilamkurthi <pchilamk@codeaurora.org>
This commit is contained in:
@@ -687,4 +687,16 @@ int cam_soc_util_reg_dump_to_cmd_buf(void *ctx,
|
||||
struct cam_hw_soc_dump_args *soc_dump_args,
|
||||
bool user_triggered_dump);
|
||||
|
||||
/**
|
||||
* cam_soc_util_print_clk_freq()
|
||||
*
|
||||
* @brief: This function gets the clk rates for each clk from clk
|
||||
* driver and prints in log
|
||||
*
|
||||
* @soc_info: Device soc struct to be populated
|
||||
*
|
||||
* @return: success or failure
|
||||
*/
|
||||
int cam_soc_util_print_clk_freq(struct cam_hw_soc_info *soc_info);
|
||||
|
||||
#endif /* _CAM_SOC_UTIL_H_ */
|
||||
|
Reference in New Issue
Block a user