Linux Tegra architecture development
 help / color / mirror / Atom feed
From: Mikko Perttunen <mperttunen@nvidia.com>
To: Krzysztof Kozlowski <krzk@kernel.org>,
	Rob Herring <robh@kernel.org>, Conor Dooley <conor+dt@kernel.org>,
	Thierry Reding <treding@nvidia.com>,
	Thierry Reding <thierry.reding@gmail.com>,
	Jonathan Hunter <jonathanh@nvidia.com>,
	Prashant Gaikwad <pgaikwad@nvidia.com>,
	Michael Turquette <mturquette@baylibre.com>,
	Stephen Boyd <sboyd@kernel.org>,
	Dmitry Osipenko <digetx@gmail.com>,
	MyungJoo Ham <myungjoo.ham@samsung.com>,
	Kyungmin Park <kyungmin.park@samsung.com>,
	Chanwoo Choi <cw00.choi@samsung.com>,
	Svyatoslav Ryhel <clamor95@gmail.com>,
	Svyatoslav Ryhel <clamor95@gmail.com>
Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
	linux-tegra@vger.kernel.org, linux-clk@vger.kernel.org,
	linux-pm@vger.kernel.org
Subject: Re: [PATCH v4 01/12] devfreq: tegra30-devfreq: add support for Tegra114
Date: Tue, 20 Jan 2026 15:56:30 +0900	[thread overview]
Message-ID: <2830254.usQuhbGJ8B@senjougahara> (raw)
In-Reply-To: <20251125120559.158860-2-clamor95@gmail.com>

On Tuesday, November 25, 2025 9:05 PM Svyatoslav Ryhel wrote:
> Lets add Tegra114 support to activity monitor device as a preparation to
> upcoming EMC controller support.
> 
> Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
> ---
>  drivers/devfreq/tegra30-devfreq.c | 17 ++++++++++++-----
>  1 file changed, 12 insertions(+), 5 deletions(-)
> 
> diff --git a/drivers/devfreq/tegra30-devfreq.c b/drivers/devfreq/tegra30-devfreq.c
> index 8ea5b482bfb3..fa83480a923f 100644
> --- a/drivers/devfreq/tegra30-devfreq.c
> +++ b/drivers/devfreq/tegra30-devfreq.c
> @@ -963,16 +963,22 @@ static int tegra_devfreq_probe(struct platform_device *pdev)
>  	return 0;
>  }
>  
> +/*
> + * The activity counter is incremented every 256 memory transactions. However,
> + * the number of clock cycles required for each transaction varies across
> + * different SoC generations. For instance, a single transaction takes 2 EMC
> + * clocks on Tegra30, 1 EMC clock on Tegra114, and 4 EMC clocks on Tegra124.
> + */
>  static const struct tegra_devfreq_soc_data tegra124_soc = {
>  	.configs = tegra124_device_configs,
> -
> -	/*
> -	 * Activity counter is incremented every 256 memory transactions,
> -	 * and each transaction takes 4 EMC clocks.
> -	 */
>  	.count_weight = 4 * 256,
>  };
>  
> +static const struct tegra_devfreq_soc_data tegra114_soc = {
> +	.configs = tegra124_device_configs,
> +	.count_weight = 256,
> +};
> +
>  static const struct tegra_devfreq_soc_data tegra30_soc = {
>  	.configs = tegra30_device_configs,
>  	.count_weight = 2 * 256,
> @@ -980,6 +986,7 @@ static const struct tegra_devfreq_soc_data tegra30_soc = {
>  
>  static const struct of_device_id tegra_devfreq_of_match[] = {
>  	{ .compatible = "nvidia,tegra30-actmon",  .data = &tegra30_soc, },
> +	{ .compatible = "nvidia,tegra114-actmon", .data = &tegra114_soc, },
>  	{ .compatible = "nvidia,tegra124-actmon", .data = &tegra124_soc, },
>  	{ },
>  };
> 

Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com>




  reply	other threads:[~2026-01-20  6:56 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-25 12:05 [PATCH v4 00/12] Tegra114: implement EMC support Svyatoslav Ryhel
2025-11-25 12:05 ` [PATCH v4 01/12] devfreq: tegra30-devfreq: add support for Tegra114 Svyatoslav Ryhel
2026-01-20  6:56   ` Mikko Perttunen [this message]
2025-11-25 12:05 ` [PATCH v4 02/12] ARM: tegra: Add ACTMON node to Tegra114 device tree Svyatoslav Ryhel
2025-11-25 12:05 ` [PATCH v4 03/12] dt-bindings: memory: Document Tegra114 Memory Controller Svyatoslav Ryhel
2025-12-04 18:11   ` Rob Herring (Arm)
2025-11-25 12:05 ` [PATCH v4 04/12] memory: tegra: implement EMEM regs and ICC ops for Tegra114 Svyatoslav Ryhel
2025-11-25 12:05 ` [PATCH v4 05/12] dt-bindings: memory: Add Tegra114 memory client IDs Svyatoslav Ryhel
2025-11-25 12:05 ` [PATCH v4 06/12] clk: tegra: set up proper EMC clock implementation for Tegra114 Svyatoslav Ryhel
2026-01-20  7:01   ` Mikko Perttunen
2025-11-25 12:05 ` [PATCH v4 07/12] dt-bindings: memory: Document Tegra114 External Memory Controller Svyatoslav Ryhel
2025-12-04 18:12   ` Rob Herring (Arm)
2025-11-25 12:05 ` [PATCH v4 08/12] soc: tegra: common: add Tegra114 support to devm_tegra_core_dev_init_opp_table Svyatoslav Ryhel
2026-01-20  7:05   ` Mikko Perttunen
2025-11-25 12:05 ` [PATCH v4 09/12] memory: tegra: Add Tegra114 EMC driver Svyatoslav Ryhel
2026-01-20  7:07   ` Mikko Perttunen
2025-11-25 12:05 ` [PATCH v4 10/12] ARM: tegra: Add External Memory Controller node on Tegra114 Svyatoslav Ryhel
2026-01-20  7:15   ` Mikko Perttunen
2025-11-25 12:05 ` [PATCH v4 11/12] ARM: tegra: Add EMC OPP and ICC properties to Tegra114 EMC and ACTMON device-tree nodes Svyatoslav Ryhel
2026-01-21  7:55   ` Mikko Perttunen
2026-01-21 16:57     ` Svyatoslav Ryhel
2026-01-22  5:45       ` Mikko Perttunen
2026-01-22  8:13         ` Svyatoslav Ryhel
2025-11-25 12:05 ` [PATCH v4 12/12] ARM: tegra: add DC interconnections for Tegra114 Svyatoslav Ryhel
2026-01-21  7:58   ` Mikko Perttunen
2025-11-26  8:47 ` [PATCH v4 00/12] Tegra114: implement EMC support Krzysztof Kozlowski
2025-12-01  6:12   ` Svyatoslav Ryhel
2025-12-01  7:18     ` Krzysztof Kozlowski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2830254.usQuhbGJ8B@senjougahara \
    --to=mperttunen@nvidia.com \
    --cc=clamor95@gmail.com \
    --cc=conor+dt@kernel.org \
    --cc=cw00.choi@samsung.com \
    --cc=devicetree@vger.kernel.org \
    --cc=digetx@gmail.com \
    --cc=jonathanh@nvidia.com \
    --cc=krzk@kernel.org \
    --cc=kyungmin.park@samsung.com \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=linux-tegra@vger.kernel.org \
    --cc=mturquette@baylibre.com \
    --cc=myungjoo.ham@samsung.com \
    --cc=pgaikwad@nvidia.com \
    --cc=robh@kernel.org \
    --cc=sboyd@kernel.org \
    --cc=thierry.reding@gmail.com \
    --cc=treding@nvidia.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox