public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Add support for Tegra Activity Monitor
@ 2014-11-24 12:28 Tomeu Vizoso
  2014-11-24 12:28 ` [PATCH v2 1/3] of: Add binding for NVIDIA Tegra ACTMON node Tomeu Vizoso
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Tomeu Vizoso @ 2014-11-24 12:28 UTC (permalink / raw)
  To: linux-pm
  Cc: Javier Martinez Canillas, Tomeu Vizoso, devicetree,
	linux-arm-kernel, linux-kernel, linux-tegra

Hello,

in this v2 I have made the driver use devfreq. It works just as fine as the
previous revision, but it's almost 200 lines more of code for not that much
gain.

Though I don't see much point in using devfreq, I think it's probably better
than an ad-hoc driver because in the future I hope that devfreq will gain
functionality that will be of use (PM_QOS_MEMORY_BANDWIDTH support, for
example).

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.drivers.devicetree/99304
* CPUFreq driver: http://thread.gmane.org/gmane.linux.kernel/1812962

I have pushed a branch here for testing:

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

Regards,

Tomeu

Tomeu Vizoso (3):
  of: Add binding for NVIDIA Tegra ACTMON node
  PM / devfreq: tegra: add devfreq driver for Tegra Activity Monitor
  ARM: tegra: Add Tegra124 ACTMON support

 .../devicetree/bindings/arm/tegra/actmon.txt       |  38 ++
 arch/arm/boot/dts/tegra124.dtsi                    |  23 +
 drivers/devfreq/Kconfig                            |  10 +
 drivers/devfreq/Makefile                           |   1 +
 drivers/devfreq/tegra-devfreq.c                    | 718 +++++++++++++++++++++
 5 files changed, 790 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/arm/tegra/actmon.txt
 create mode 100644 drivers/devfreq/tegra-devfreq.c

-- 
1.9.3


^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: [PATCH v2 2/3] PM / devfreq: tegra: add devfreq driver for Tegra Activity Monitor
@ 2014-11-25  7:07 MyungJoo Ham
  2014-11-25  8:56 ` Tomeu Vizoso
  0 siblings, 1 reply; 10+ messages in thread
From: MyungJoo Ham @ 2014-11-25  7:07 UTC (permalink / raw)
  To: Tomeu Vizoso, linux-pm@vger.kernel.org
  Cc: Javier Martinez Canillas, 박경민,
	Stephen Warren, Thierry Reding, Alexandre Courbot, Grant Likely,
	Rob Herring, linux-kernel@vger.kernel.org,
	linux-tegra@vger.kernel.org, devicetree@vger.kernel.org

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=utf-8, Size: 1066 bytes --]

> The ACTMON block can monitor several counters, providing averaging and firing
> interrupts based on watermarking configuration. This implementation monitors
> the MCALL and MCCPU counters to choose an appropriate frequency for the
> external memory clock.
> 
> This patch is based on work by Alex Frid <afrid@nvidia.com> and Mikko
> Perttunen <mikko.perttunen@kapsi.fi>.
> 
> Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>

How are you going to integrate other two patches?
May I just go ahead with this patch only?


Cheers,
MyungJoo.

> 
> ---
> 
> v2:	* Use devfreq
> ---
>  drivers/devfreq/Kconfig         |  10 +
>  drivers/devfreq/Makefile        |   1 +
>  drivers/devfreq/tegra-devfreq.c | 718 ++++++++++++++++++++++++++++++++++++++++
>  3 files changed, 729 insertions(+)
>  create mode 100644 drivers/devfreq/tegra-devfreq.c
> 
ÿôèº{.nÇ+‰·Ÿ®‰­†+%ŠËÿ±éݶ\x17¥Šwÿº{.nÇ+‰·¥Š{±þG«éÿŠ{ayº\x1dʇڙë,j\a­¢f£¢·hšïêÿ‘êçz_è®\x03(­éšŽŠÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?™¨è­Ú&£ø§~á¶iO•æ¬z·švØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?–I¥

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

end of thread, other threads:[~2014-12-03 15:09 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-24 12:28 [PATCH v2 0/3] Add support for Tegra Activity Monitor Tomeu Vizoso
2014-11-24 12:28 ` [PATCH v2 1/3] of: Add binding for NVIDIA Tegra ACTMON node Tomeu Vizoso
2014-11-24 12:28 ` [PATCH v2 2/3] PM / devfreq: tegra: add devfreq driver for Tegra Activity Monitor Tomeu Vizoso
2014-11-26 10:02   ` Alexandre Courbot
2014-12-02 14:49     ` Tomeu Vizoso
2014-12-02 11:15   ` Thierry Reding
2014-12-03 15:09     ` Tomeu Vizoso
2014-11-24 12:28 ` [PATCH v2 3/3] ARM: tegra: Add Tegra124 ACTMON support Tomeu Vizoso
  -- strict thread matches above, loose matches on Subject: below --
2014-11-25  7:07 [PATCH v2 2/3] PM / devfreq: tegra: add devfreq driver for Tegra Activity Monitor MyungJoo Ham
2014-11-25  8:56 ` Tomeu Vizoso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox