mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-23 01:31:30 +03:00
tegra: nvadsp: Include adsp usage functionality
Adds functionality to calculate adsp cpu usage Inits, loads, starts and resume adsp_lpthread app Bug 1727014 Change-Id: Icaf7a1ba9e91bff19d7fbc894bfdd0f884971d6c Signed-off-by: Hariharan Sivaraman <hariharans@nvidia.com> Reviewed-on: http://git-master/r/1134173 (cherry picked from commit 256bd7180cefa523a9e480be315fbf47b9c8de4f) Signed-off-by: Hariharan Sivaraman <hariharans@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1564162 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Ajay Nandakumar M <anandakumarm@nvidia.com> Reviewed-by: Nitin Pai <npai@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Laxman Dewangan
parent
12dc199ff3
commit
b3a66c2476
@@ -76,7 +76,6 @@ enum adsp_unit_fpga_reset {
|
||||
ADSP_UNIT_FPGA_RESET_END,
|
||||
};
|
||||
|
||||
|
||||
#define AMISC_REGS 0x2000
|
||||
|
||||
#define AMISC_ADSP_L2_REGFILEBASE 0x10
|
||||
@@ -201,6 +200,10 @@ struct nvadsp_drv_data {
|
||||
bool adspff_init;
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_TEGRA_ADSP_LPTHREAD
|
||||
bool lpthread_initialized;
|
||||
#endif
|
||||
|
||||
wait_queue_head_t adsp_health_waitq;
|
||||
bool adsp_crashed;
|
||||
|
||||
@@ -271,4 +274,16 @@ static inline int __init nvadsp_reset_init(struct platform_device *pdev)
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_TEGRA_ADSP_LPTHREAD
|
||||
int adsp_lpthread_init(bool is_adsp_suspended);
|
||||
int adsp_lpthread_resume(void);
|
||||
int adsp_lpthread_pause(void);
|
||||
int adsp_lpthread_exit(void);
|
||||
|
||||
int adsp_lpthread_debugfs_init(struct platform_device *pdev);
|
||||
int adsp_lpthread_debugfs_exit(struct platform_device *pdev);
|
||||
int adsp_lpthread_debugfs_set_suspend(bool is_suspended);
|
||||
int adsp_lpthread_debugfs_callback(void);
|
||||
#endif
|
||||
|
||||
#endif /* __TEGRA_NVADSP_DEV_H */
|
||||
|
||||
Reference in New Issue
Block a user