tegra-alt: adsp: add adsp recovery mechanism
authorViraj Karandikar <vkarandikar@nvidia.com>
Wed, 20 Apr 2016 11:37:30 +0000 (16:37 +0530)
committermobile promotions <svcmobile_promotions@nvidia.com>
Mon, 23 May 2016 18:48:39 +0000 (11:48 -0700)
commita4ccd12f2654979784d1847f5c2b535ab7ba6488
treec98f094481b67a22463d6071aba1fd42fb9eb1d6
parentdb4b6ab6ad7ca09e71ae1d44a454eaae78111683
tegra-alt: adsp: add adsp recovery mechanism

ADSP recovery mechanism can get triggered by two ways.
First is by ADSP OS driver calling crash handler callback.
This can happen when watchdog timer expires and sends
interrupt to CPU. Second way is when any communication
with ADSP timesout.

In both cases crash handler is called which stops ADSP
and does cleanup work. It then kills parent process
(mediaserver) to trigger reload ADSP OS and apps.

Read only control "ADSP Recovery Count" indicates number
of times the ADSP was recovered.

Bug 200178310

Change-Id: I7db07d0716443aad972f946412bd75d31643e901
Signed-off-by: Viraj Karandikar <vkarandikar@nvidia.com>
Reviewed-on: http://git-master/r/1129606
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
sound/soc/tegra-alt/tegra210_adsp_alt.c