linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v6 0/8] Add support for Tegra Activity Monitor
@ 2015-03-17  9:36 Tomeu Vizoso
  2015-03-17  9:36 ` [PATCH v6 8/8] ARM: tegra: Add Tegra124 ACTMON support Tomeu Vizoso
  0 siblings, 1 reply; 3+ messages in thread
From: Tomeu Vizoso @ 2015-03-17  9:36 UTC (permalink / raw)
  To: linux-arm-kernel

Hello,

something happened during the last cycle and an old version of the devfreq
driver was merged.

This thread contains patches that bring it up to date to the last submitted
version and also incorporates the feedback that that version received, plus
some other small fixes and improvements that came up during rebase and
testing.

These patches implement support for setting the rate of the EMC clock based on
stats collected from the ACTMON, a piece of hw in the Tegra124 that counts
memory accesses (among others).

It depends on the following in-flight patches:

* EMC driver: http://thread.gmane.org/gmane.linux.kernel/1907035
* CPUFreq driver: http://thread.gmane.org/gmane.linux.kernel/1897078

I have pushed a branch here for testing:

http://cgit.collabora.com/git/user/tomeu/linux.git/log/?h=actmon-v6

Regards,

Tomeu

Tomeu Vizoso (8):
  of: Add binding for NVIDIA Tegra ACTMON node
  PM / devfreq: tegra: Update to v5 of the submitted patches
  clk: tegra: Have EMC clock implement determine_rate()
  PM / devfreq: tegra: Use clock rate constraints
  PM / devfreq: tegra: remove operating-points
  PM / devfreq: tegra: Set drvdata before enabling the irq
  PM / devfreq: tegra: Enable interrupts after resuming the devfreq
    monitor
  ARM: tegra: Add Tegra124 ACTMON support

 .../devicetree/bindings/arm/tegra/actmon.txt       |  28 ++
 arch/arm/boot/dts/tegra124.dtsi                    |  11 +
 drivers/clk/tegra/clk-emc.c                        |  19 +-
 drivers/devfreq/tegra-devfreq.c                    | 480 +++++++++++----------
 4 files changed, 316 insertions(+), 222 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/arm/tegra/actmon.txt

-- 
2.1.0

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH v6 8/8] ARM: tegra: Add Tegra124 ACTMON support
  2015-03-17  9:36 [PATCH v6 0/8] Add support for Tegra Activity Monitor Tomeu Vizoso
@ 2015-03-17  9:36 ` Tomeu Vizoso
  2015-03-24 10:32   ` Thierry Reding
  0 siblings, 1 reply; 3+ messages in thread
From: Tomeu Vizoso @ 2015-03-17  9:36 UTC (permalink / raw)
  To: linux-arm-kernel

Add device node for the ACTMON block to the Tegra124 device tree.

Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>

---

v6:	* Remove operating-points property

v2:	* Add operating-points property
---
 arch/arm/boot/dts/tegra124.dtsi | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/arch/arm/boot/dts/tegra124.dtsi b/arch/arm/boot/dts/tegra124.dtsi
index a49e7da..2158aa9 100644
--- a/arch/arm/boot/dts/tegra124.dtsi
+++ b/arch/arm/boot/dts/tegra124.dtsi
@@ -215,6 +215,17 @@
 		reg = <0x0 0x60007000 0x0 0x1000>;
 	};
 
+	actmon at 0,6000c800 {
+		compatible = "nvidia,tegra124-actmon";
+		reg = <0x0 0x6000c800 0x0 0x400>;
+		interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
+		clocks = <&tegra_car TEGRA124_CLK_ACTMON>,
+			 <&tegra_car TEGRA124_CLK_EMC>;
+		clock-names = "actmon", "emc";
+		resets = <&tegra_car 119>;
+		reset-names = "actmon";
+	};
+
 	gpio: gpio at 0,6000d000 {
 		compatible = "nvidia,tegra124-gpio", "nvidia,tegra30-gpio";
 		reg = <0x0 0x6000d000 0x0 0x1000>;
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH v6 8/8] ARM: tegra: Add Tegra124 ACTMON support
  2015-03-17  9:36 ` [PATCH v6 8/8] ARM: tegra: Add Tegra124 ACTMON support Tomeu Vizoso
@ 2015-03-24 10:32   ` Thierry Reding
  0 siblings, 0 replies; 3+ messages in thread
From: Thierry Reding @ 2015-03-24 10:32 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, Mar 17, 2015 at 10:36:18AM +0100, Tomeu Vizoso wrote:
> Add device node for the ACTMON block to the Tegra124 device tree.
> 
> Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
> Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
> 
> ---
> 
> v6:	* Remove operating-points property
> 
> v2:	* Add operating-points property
> ---
>  arch/arm/boot/dts/tegra124.dtsi | 11 +++++++++++
>  1 file changed, 11 insertions(+)

Applied, thanks.

Thierry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20150324/ab2162bc/attachment.sig>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-03-24 10:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-17  9:36 [PATCH v6 0/8] Add support for Tegra Activity Monitor Tomeu Vizoso
2015-03-17  9:36 ` [PATCH v6 8/8] ARM: tegra: Add Tegra124 ACTMON support Tomeu Vizoso
2015-03-24 10:32   ` Thierry Reding

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).