devfreq: tegra30-devfreq: add support for Tegra114
Subsystems (3)
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
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
@@ -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
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.
Signed-off-by Svyatoslav Ryhel <[email protected]>Reviewed-by Mikko Perttunen <[email protected]>--- drivers/devfreq/tegra30-devfreq.c | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-)drivers/devfreq/tegra30-devfreq.c +11
-5@@ -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, }, { }, };
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.
Signed-off-by Svyatoslav Ryhel <[email protected]>Reviewed-by Mikko Perttunen <[email protected]>--- drivers/devfreq/tegra30-devfreq.c | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-)drivers/devfreq/tegra30-devfreq.c +11
-5@@ -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
-0static 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, }, { }, };Acked-by Dmitry Osipenko <[email protected]>
Signature · 2 lines
MyungJoo Ham, Ph.D. Samsung Electronics
Chanwoo Choi
AppliedHi,
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.
Signed-off-by Svyatoslav Ryhel <[email protected]>Reviewed-by Mikko Perttunen <[email protected]>--- drivers/devfreq/tegra30-devfreq.c | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-)drivers/devfreq/tegra30-devfreq.c +11
-5@@ -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
-0static 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, }, { }, };Acked-by Dmitry Osipenko <[email protected]>Acked-by MyungJoo Ham <[email protected]>--
MyungJoo Ham, Ph.D.
Samsung Electronics
Signature · 3 lines
Best Regards, Chanwoo Choi Samsung Electronics
пн, 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 Tegra114drivers/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