Skip to contentSkip to conversation

devfreq: tegra30-devfreq: add support for Tegra114

PATCH Applied Svyatoslav Ryhel 4 participants 6 messages Jan 26 – Mar 21

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

cover devfreq: tegra30-devfreq: add support for Tegra114

Lets add Tegra114 support to activity monitor device as a preparation to upcoming EMC controller support.

Part of previous patchset: https://lore.kernel.org/lkml/[email protected]/

Svyatoslav Ryhel (1):
devfreq: tegra30-devfreq: add support for Tegra114

 drivers/devfreq/tegra30-devfreq.c | 17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)
Signature · 1 line
2.51.0
#1 lore raw

PATCH 1/1 devfreq: tegra30-devfreq: add support for Tegra114

Lets add Tegra114 support to activity monitor device as a preparation to upcoming EMC controller support.

---
 drivers/devfreq/tegra30-devfreq.c | 17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)
drivers/devfreq/tegra30-devfreq.c +12 -5
index 8ea5b482bfb3..fa83480a923f 100644
@@ -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, },
 	{ },
 };
Signature · 1 line
2.51.0
maintainer Acked-by on v1 1/1
#2 lore raw

26.01.2026 21:54, Svyatoslav Ryhel пишет:

Quoted 42 lines

Lets add Tegra114 support to activity monitor device as a preparation to upcoming EMC controller support.

---
 drivers/devfreq/tegra30-devfreq.c | 17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)
drivers/devfreq/tegra30-devfreq.c +11 -5
index 8ea5b482bfb3..fa83480a923f 100644
@@ -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,

drivers/devfreq/tegra30-devfreq.c static const struct tegra_devfreq_soc_data tegra30_soc = { · line 992

Quoted 7 lines
drivers/devfreq/tegra30-devfreq.c +1 -0
@@ -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, },
 	{ },
 };
maintainer Acked-by
#3 lore raw

2026년 3월 3일 (화) AM 8:24, Dmitry Osipenko <[email protected]>님이 작성:

Quoted 45 lines

26.01.2026 21:54, Svyatoslav Ryhel пишет:

Quoted 43 lines

Lets add Tegra114 support to activity monitor device as a preparation to upcoming EMC controller support.

---
 drivers/devfreq/tegra30-devfreq.c | 17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)
drivers/devfreq/tegra30-devfreq.c +11 -5
index 8ea5b482bfb3..fa83480a923f 100644
@@ -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 = {
 
Quoted 8 lines

drivers/devfreq/tegra30-devfreq.c static const struct tegra_devfreq_soc_data tegra30_soc = { · line 992

Quoted 6 lines
drivers/devfreq/tegra30-devfreq.c +1 -0
 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, },
      { },
 };
Signature · 2 lines
MyungJoo Ham, Ph.D.
Samsung Electronics
Applied
#4 lore raw

Hi,

I'm sorry for late reply.

Applied it. Thanks.

Quoted 62 lines · MyungJoo Ham

2026년 3월 3일 (화) AM 8:24, Dmitry Osipenko <[email protected]>님이 작성:

Quoted 45 lines

26.01.2026 21:54, Svyatoslav Ryhel пишет:

Quoted 43 lines

Lets add Tegra114 support to activity monitor device as a preparation to upcoming EMC controller support.

---
 drivers/devfreq/tegra30-devfreq.c | 17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)
drivers/devfreq/tegra30-devfreq.c +11 -5
index 8ea5b482bfb3..fa83480a923f 100644
@@ -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 = {
 
Quoted 8 lines

drivers/devfreq/tegra30-devfreq.c static const struct tegra_devfreq_soc_data tegra30_soc = { · line 992

Quoted 6 lines
drivers/devfreq/tegra30-devfreq.c +1 -0
 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, },
      { },
 };

--
MyungJoo Ham, Ph.D.
Samsung Electronics

Signature · 3 lines
Best Regards,
Chanwoo Choi
Samsung Electronics
#5 lore raw
In reply to Svyatoslav Ryhel

пн, 26 січ. 2026 р. о 20:54 Svyatoslav Ryhel <[email protected]> пише:

Quoted 4 lines

Lets add Tegra114 support to activity monitor device as a preparation to upcoming EMC controller support.

Quoted 8 lines

Part of previous patchset: https://lore.kernel.org/lkml/[email protected]/

Svyatoslav Ryhel (1):
devfreq: tegra30-devfreq: add support for Tegra114

 drivers/devfreq/tegra30-devfreq.c | 17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)

Hello there!

May this patch be picked if everyone is fine with it?

Best regards,
Svyatoslav R.

Quoted 3 lines

--
2.51.0