summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/tegra3_actmon.c
AgeCommit message (Collapse)Author
2012-07-13ARM: tegra: clock: Increase boost_up_threshold for AVP clockVandana Salve
Increase the boost_up_threshold to 85 for ULP audio bug 1009849 Change-Id: I4b1b746f445f5c2804befa52ae95c69b6b467083 Signed-off-by: Vandana Salve <vsalve@nvidia.com> Reviewed-on: http://git-master/r/114620 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
2012-04-03ARM: tegra: clock: Set EMC and SCLK rates suspend floorsAlex Frid
- On suspend entry set EMC rate floor high enough to select PLLM as EMC clock source, since PLLM is always turned off in suspend. - On suspend entry set SCLK (AVP) rate floor to speed-up system bus during save/restore procedures. Bug 939942 Bug 938649 Reviewed-on: http://git-master/r/89234 (cherry picked from commit ccfdaef143f9017d682af017e11a25c3e5bcf3a7) Change-Id: I4e1d66521f1f3453502c471999a52637c3d489aa Signed-off-by: Alex Frid <afrid@nvidia.com> Signed-off-by: Tom Cherry <tcherry@nvidia.com> Reviewed-on: http://git-master/r/94124 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2012-03-20ARM: tegra: clock: Fix activity monitor resumeAlex Frid
Properly restore Tegra3 actmon sampling period after suspend. Bug 952739 Signed-off-by: Alex Frid <afrid@nvidia.com> (cherry picked from commit eb6e96a39dbc5d310e8e59046d6e1b787b780e60) Change-Id: I6a61c2aa1d384a8d17d7ef579000cf59ac218435 Reviewed-on: http://git-master/r/90804 Tested-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
2012-01-31mach-tegra: tegra3_actmon: skip useless checkColin Patrick McCabe
Don't check if an unsigned variable < 0. Reviewed-on: http://git-master/r/77466 Change-Id: Ia61781a8f5b8ebcdc39501486ed3f893a91d3430 Signed-off-by: Colin Patrick McCabe <cmccabe@nvidia.com> Signed-off-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-on: http://git-master/r/78015 Reviewed-by: Automatic_Commit_Validation_User
2011-11-30ARM: tegra: clock: Use rounded ActMon maximum rateAlex Frid
Used round rate API to determine maximum frequency of Tegra3 activity monitoring shared users, instead of maximum rate directly. The former takes into account available PLL/dividers and return actually reachable frequency. Bug 860618 Original-Change-Id: I48292c65bfbf58906ab59f86959b0e7155117558 Reviewed-on: http://git-master/r/45711 Tested-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Chandrakanth Gorantla <cgorantla@nvidia.com> Tested-by: Chandrakanth Gorantla <cgorantla@nvidia.com> Reviewed-by: Narendra Damahe <ndamahe@nvidia.com> Reviewed-by: Scott Williams <scwilliams@nvidia.com> Reviewed-by: Krishna Reddy <vdumpa@nvidia.com> Rebase-Id: R2be5b1549b53d2b203ccfe6ea1d1cd2368359d91
2011-11-30ARM: tegra: clock: Fix activity monitor resumeAlex Frid
Move call to clock get rate API (can sleep) outside of activity monitor resume section protected by spin lock. Original-Change-Id: I78d5bb8728f3a728a6ff952b1f3cba19b9dec0a0 Reviewed-on: http://git-master/r/41626 Reviewed-by: Narendra Damahe <ndamahe@nvidia.com> Tested-by: Narendra Damahe <ndamahe@nvidia.com> Reviewed-by: Krishna Reddy <vdumpa@nvidia.com> Reviewed-by: Scott Williams <scwilliams@nvidia.com> Rebase-Id: R1ab0bb59a88f078f85f125b968546c09aab9d176
2011-11-30ARM: tegra: clock: Change default sampling period to 12msTom Cherry
Bug 845349 Original-Change-Id: I0ce1a5da9a80cea6a4e55bc92490e6ae8508e22f Reviewed-on: http://git-master/r/39704 Tested-by: Thomas Cherry <tcherry@nvidia.com> Reviewed-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Rebase-Id: Rfc2bfc89082778e43d15406b0b5e53bdf845f08e
2011-11-30ARM: tegra: clock: Add Tegra3 AVP activity monitor supportAlex Frid
Added AVP clock control using Tegra3 activity monitoring device. The target AVP frequency floor is set based on average load and short term boost. Average AVP load time (time when AVP is not halted by flow controller) is determined by fixed frequency count provided by monitoring h/w featuring 1st order IIR activity filter. The boost frequency is calculated by s/w - exponentially increasing/ decreasing when sampled AVP activity has crossed upper/lower boost watermarks. The implementation is interrupt driven - periodic sampling is hidden by h/w. The tune-able debugfs parameters are: /sys/kernel/debug/tegra_actmon/avp/boost_step - boost rate increase step (% of max AVP frequency) /sys/kernel/debug/tegra_actmon/avp/boost_rate_inc - boost rate increase factor (%) /sys/kernel/debug/tegra_actmon/avp/boost_rate_dec - boost rate decrease factor (%) /sys/kernel/debug/tegra_actmon/avp/boost_threshold_up - upper activity watermark for boost increase (AVP active time in %) /sys/kernel/debug/tegra_actmon/avp/boost_threshold_dn - lower activity watermark for boost decrease (AVP active time in %) Original-Change-Id: Ia82247176531f2fb67acfc277e63b9f16916a488 Reviewed-on: http://git-master/r/37175 Reviewed-by: Niket Sirsi <nsirsi@nvidia.com> Tested-by: Niket Sirsi <nsirsi@nvidia.com> Rebase-Id: R995949fe30f188c16c3fa39e292a2ca56256f2a3
2011-11-30ARM: tegra: clock: Add Tegra3 EMC activity monitor supportAlex Frid
Added EMC clock control using Tegra3 activity monitoring device. The target EMC frequency floor is set based on average activity and short term boost. Average EMC activity is obtained directly from monitoring h/w featuring 1st order IIR activity filter. The boost frequency is calculated by s/w - exponentially increasing/ decreasing when sampled EMC activity has crossed upper/lower boost watermarks. The implementation is interrupt driven - periodic sampling is hidden by h/w. The tune-able debugfs parameters are: /sys/kernel/debug/tegra_actmon/emc/boost_step - boost rate increase step (% of max EMC frequency) /sys/kernel/debug/tegra_actmon/emc/boost_rate_inc - boost rate increase factor (%) /sys/kernel/debug/tegra_actmon/emc/boost_rate_dec - boost rate decrease factor (%) /sys/kernel/debug/tegra_actmon/emc/boost_threshold_up - upper activity watermark for boost increase (% of current EMC frequency) /sys/kernel/debug/tegra_actmon/emc/boost_threshold_dn - lower activity watermark for boost decrease (% of current EMC frequency) Original-Change-Id: I385c6e0a75da42dada792db6b4018b68fea8f23b Reviewed-on: http://git-master/r/36790 Reviewed-by: Niket Sirsi <nsirsi@nvidia.com> Tested-by: Niket Sirsi <nsirsi@nvidia.com> Rebase-Id: R0ac50b162b8e86237986885e115996f755b1e00a