msm: thermal: Ignore thermal bite for secure device

KTM triggers a secure watchdog bite, when temperature reaches very high
threshold. In the secure device this call is not supported.

Avoid triggering the watchdog bite, on a secure device. This bite is
triggered in KTM for debug purpose to save the software state.
In the latest hardware, the tsens controller is capable of initiating a
hardware reset after saving the software state. So this feature is used
only to print the tsens ID which crossed the very high threshold.

Change-Id: Iacef4b64e16f9c2d9789d8faba474429dfcecd4e
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
This commit is contained in:
Ram Chandrasekar 2017-02-10 15:14:50 -07:00
parent 4a86c2f3cc
commit 24499b633f

View file

@ -2857,6 +2857,9 @@ static void msm_thermal_bite(int zone_id, int temp)
pr_err("Tsens:%d reached temperature:%d. System reset\n",
tsens_id, temp);
}
/* If it is a secure device ignore triggering the thermal bite. */
if (scm_is_secure_device())
return;
if (!is_scm_armv8()) {
scm_call_atomic1(SCM_SVC_BOOT, THERM_SECURE_BITE_CMD, 0);
} else {