Enable hung task detection for Lahaina platform to detect the
tasks that are stuck in uninterruptible "D" state indefinitely.
Change-Id: Ieb18c8452b3643c57d11ba697a359d5beb7d7255
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
khungtask by default monitors all tasks for long unterruptible sleep.
This change introduces a sysctl option, /proc/sys/kernel/
hung_task_selective_monitoring, to enable monitoring selected tasks.
If this sysctl option is enabled then only the tasks with
/proc/$PID/hang_detection_enabled set are to be monitored,
otherwise all tasks are monitored as default case.
Some tasks may intentionally moves to uninterruptable sleep state,
which shouldn't leads to khungtask panics, as those are recoverable
hungs. So to avoid false hung reports, add an option to select tasks
to be monitored and report/panic them only.
By default, enable the feature always to monitor selected tasks.
Change-Id: I48cd8cfe73dbe2b577541fe9607190eac5556bb2
Signed-off-by: Imran Khan <kimran@codeaurora.org>
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
[sramana: Resolved minor merge conflict]
Signed-off-by: Srinivas Ramana <sramana@codeaurora.org>
[rananta: Resolved compilation errors]
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
The load bit value used for RBBM_PERFCTR_RBBM_0 is incorrect.
Correct the load bit so that the saved value is loaded into the
desired counter.
Change-Id: Id0c8cb65061ce061ae342f62576ea020553e0f80
Signed-off-by: Puranam V G Tejaswi <pvgtejas@codeaurora.org>
IPA driver moved to techpack. Remove IPA and GSI folders
from kernel. IPA framework layer replaces IPA driver in the
kernel.
Change-Id: I7a46345db4e2bc6e68f7633dfb4ff8fec5d62668
Signed-off-by: Amir Levy <alevy@codeaurora.org>
wait_for_completion_interruptible() returns ERESTARTSYS when
the device goes to low power mode.
The SPU subsystem is shutdown on deep low power mode,
so the interrupted operation is not recoverable.
return EINTR to user space to propagate the error to the user app.
Change-Id: I3b47b971d4411f977a0f68c1ce838fd92198c75d
Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
the print format has "%s" but is missing the "name" parameter.
Change-Id: Ib2fcbcf2d477552c8d2fbf16487854ac13c1b3ca
Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
Current SW limit is not matching the HW limit, update
limit to align with the available HW limit.
Change-Id: I6e221136142785a98e3cd378915b2139904f1551
Signed-off-by: Santosh Mardi <gsantosh@codeaurora.org>
The sample_ms should never be larger than the devfreq polling
interval. If userspace tries to configure this invalid
configuration, return an error.
Devfreq polling interval should be always greater then the
sample_ms add check in the governor interval event to update
the polling interval accordingly.
Change-Id: I2d07c95668a7fc8e3b2f16e49448ad2e3da8785c
Signed-off-by: Santosh Mardi <gsantosh@codeaurora.org>
[avajid@codeaurora.org: Replaced snprintf with scnprintf]
Signed-off-by: Amir Vajid <avajid@codeaurora.org>