lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAPVz0n1zqo1TyaV=+fc6YzOKH9TqOBEatruZTAVGg9hFEWmXsQ@mail.gmail.com>
Date: Wed, 21 Jan 2026 18:57:29 +0200
From: Svyatoslav Ryhel <clamor95@...il.com>
To: Mikko Perttunen <mperttunen@...dia.com>
Cc: Krzysztof Kozlowski <krzk@...nel.org>, Rob Herring <robh@...nel.org>, Conor Dooley <conor+dt@...nel.org>, 
	Thierry Reding <treding@...dia.com>, Thierry Reding <thierry.reding@...il.com>, 
	Jonathan Hunter <jonathanh@...dia.com>, Prashant Gaikwad <pgaikwad@...dia.com>, 
	Michael Turquette <mturquette@...libre.com>, Stephen Boyd <sboyd@...nel.org>, 
	Dmitry Osipenko <digetx@...il.com>, MyungJoo Ham <myungjoo.ham@...sung.com>, 
	Kyungmin Park <kyungmin.park@...sung.com>, Chanwoo Choi <cw00.choi@...sung.com>, 
	linux-kernel@...r.kernel.org, devicetree@...r.kernel.org, 
	linux-tegra@...r.kernel.org, linux-clk@...r.kernel.org, 
	linux-pm@...r.kernel.org
Subject: Re: [PATCH v4 11/12] ARM: tegra: Add EMC OPP and ICC properties to
 Tegra114 EMC and ACTMON device-tree nodes

ср, 21 січ. 2026 р. о 09:56 Mikko Perttunen <mperttunen@...dia.com> пише:
>
> On Tuesday, November 25, 2025 9:05 PM Svyatoslav Ryhel wrote:
> > Add EMC OPP tables and interconnect paths that will be used for
> > dynamic memory bandwidth scaling based on memory utilization statistics.
> >
> > Signed-off-by: Svyatoslav Ryhel <clamor95@...il.com>
> > ---
> >  .../dts/nvidia/tegra114-peripherals-opp.dtsi  | 151 ++++++++++++++++++
> >  arch/arm/boot/dts/nvidia/tegra114.dtsi        |   9 ++
> >  2 files changed, 160 insertions(+)
> >  create mode 100644 arch/arm/boot/dts/nvidia/tegra114-peripherals-opp.dtsi
> >
> > diff --git a/arch/arm/boot/dts/nvidia/tegra114-peripherals-opp.dtsi b/arch/arm/boot/dts/nvidia/tegra114-peripherals-opp.dtsi
> > new file mode 100644
> > index 000000000000..1a0e68f22039
> > --- /dev/null
> > +++ b/arch/arm/boot/dts/nvidia/tegra114-peripherals-opp.dtsi
> > @@ -0,0 +1,151 @@
> > +// SPDX-License-Identifier: GPL-2.0
> > +
> > +/ {
> > +     emc_icc_dvfs_opp_table: opp-table-emc {
> > +             compatible = "operating-points-v2";
> > +
> > +             opp-12750000-900 {
> > +                     opp-microvolt = <900000 900000 1390000>;
> > +                     opp-hz = /bits/ 64 <12750000>;
> > +                     opp-supported-hw = <0x000F>;
> > +             };
>
> What's the source of the opp data?
>

I have used tf701t (T40X) and tegratab (T40S) kernel sources, to be
more specific board-*-memory.c files. Timing struct for each clock
contains min voltage field which was used to compose these opps.
1390000 is the max core regulator voltage, taken from tegra11_dvfs.c

I have converted an entire core_dvfs_table table from tegra11_dvfs.c
and I am planning to submit those later on too along with
powergates/domains configuration for tegra114, but that is for another
time :)

> Cheers,
> Mikko
>
> > +
> > +             opp-20400000-900 {
> > +                     opp-microvolt = <900000 900000 1390000>;
> > +                     opp-hz = /bits/ 64 <20400000>;
> > +                     opp-supported-hw = <0x000F>;
> > +             };
> > +
> > +             opp-40800000-900 {
> > +                     opp-microvolt = <900000 900000 1390000>;
> > +                     opp-hz = /bits/ 64 <40800000>;
> > +                     opp-supported-hw = <0x000F>;
> > +             };
> > +
> > +             opp-68000000-900 {
> > +                     opp-microvolt = <900000 900000 1390000>;
> > +                     opp-hz = /bits/ 64 <68000000>;
> > +                     opp-supported-hw = <0x000F>;
> > +             };
> > +
> > +             opp-102000000-900 {
> > +                     opp-microvolt = <900000 900000 1390000>;
> > +                     opp-hz = /bits/ 64 <102000000>;
> > +                     opp-supported-hw = <0x000F>;
> > +             };
> > +
> > +             opp-204000000-900 {
> > +                     opp-microvolt = <900000 900000 1390000>;
> > +                     opp-hz = /bits/ 64 <204000000>;
> > +                     opp-supported-hw = <0x000F>;
> > +                     opp-suspend;
> > +             };
> > +
> > +             opp-312000000-1000 {
> > +                     opp-microvolt = <1000000 1000000 1390000>;
> > +                     opp-hz = /bits/ 64 <312000000>;
> > +                     opp-supported-hw = <0x000F>;
> > +             };
> > +
> > +             opp-408000000-1000 {
> > +                     opp-microvolt = <1000000 1000000 1390000>;
> > +                     opp-hz = /bits/ 64 <408000000>;
> > +                     opp-supported-hw = <0x000F>;
> > +             };
> > +
> > +             opp-528000000-1050 {
> > +                     opp-microvolt = <1050000 1050000 1390000>;
> > +                     opp-hz = /bits/ 64 <528000000>;
> > +                     opp-supported-hw = <0x000E>;
> > +             };
> > +
> > +             opp-528000000-1100 {
> > +                     opp-microvolt = <1100000 1100000 1390000>;
> > +                     opp-hz = /bits/ 64 <528000000>;
> > +                     opp-supported-hw = <0x0001>;
> > +             };
> > +
> > +             opp-624000000-1100 {
> > +                     opp-microvolt = <1100000 1100000 1390000>;
> > +                     opp-hz = /bits/ 64 <624000000>;
> > +                     opp-supported-hw = <0x000F>;
> > +             };
> > +
> > +             opp-792000000-1100 {
> > +                     opp-microvolt = <1100000 1100000 1390000>;
> > +                     opp-hz = /bits/ 64 <792000000>;
> > +                     opp-supported-hw = <0x000F>;
> > +             };
> > +     };
> > +
> > +     emc_bw_dfs_opp_table: opp-table-actmon {
> > +             compatible = "operating-points-v2";
> > +
> > +             opp-12750000 {
> > +                     opp-hz = /bits/ 64 <12750000>;
> > +                     opp-supported-hw = <0x000F>;
> > +                     opp-peak-kBps = <204000>;
> > +             };
> > +
> > +             opp-20400000 {
> > +                     opp-hz = /bits/ 64 <20400000>;
> > +                     opp-supported-hw = <0x000F>;
> > +                     opp-peak-kBps = <326400>;
> > +             };
> > +
> > +             opp-40800000 {
> > +                     opp-hz = /bits/ 64 <40800000>;
> > +                     opp-supported-hw = <0x000F>;
> > +                     opp-peak-kBps = <652800>;
> > +             };
> > +
> > +             opp-68000000 {
> > +                     opp-hz = /bits/ 64 <68000000>;
> > +                     opp-supported-hw = <0x000F>;
> > +                     opp-peak-kBps = <1088000>;
> > +             };
> > +
> > +             opp-102000000 {
> > +                     opp-hz = /bits/ 64 <102000000>;
> > +                     opp-supported-hw = <0x000F>;
> > +                     opp-peak-kBps = <1632000>;
> > +             };
> > +
> > +             opp-204000000 {
> > +                     opp-hz = /bits/ 64 <204000000>;
> > +                     opp-supported-hw = <0x000F>;
> > +                     opp-peak-kBps = <3264000>;
> > +                     opp-suspend;
> > +             };
> > +
> > +             opp-312000000 {
> > +                     opp-hz = /bits/ 64 <312000000>;
> > +                     opp-supported-hw = <0x000F>;
> > +                     opp-peak-kBps = <4992000>;
> > +             };
> > +
> > +             opp-408000000 {
> > +                     opp-hz = /bits/ 64 <408000000>;
> > +                     opp-supported-hw = <0x000F>;
> > +                     opp-peak-kBps = <6528000>;
> > +             };
> > +
> > +             opp-528000000 {
> > +                     opp-hz = /bits/ 64 <528000000>;
> > +                     opp-supported-hw = <0x000F>;
> > +                     opp-peak-kBps = <8448000>;
> > +             };
> > +
> > +             opp-624000000 {
> > +                     opp-hz = /bits/ 64 <624000000>;
> > +                     opp-supported-hw = <0x000F>;
> > +                     opp-peak-kBps = <9984000>;
> > +             };
> > +
> > +             opp-792000000 {
> > +                     opp-hz = /bits/ 64 <792000000>;
> > +                     opp-supported-hw = <0x000F>;
> > +                     opp-peak-kBps = <12672000>;
> > +             };
> > +     };
> > +};
> > diff --git a/arch/arm/boot/dts/nvidia/tegra114.dtsi b/arch/arm/boot/dts/nvidia/tegra114.dtsi
> > index a920ad041c14..6221423b81d1 100644
> > --- a/arch/arm/boot/dts/nvidia/tegra114.dtsi
> > +++ b/arch/arm/boot/dts/nvidia/tegra114.dtsi
> > @@ -8,6 +8,8 @@
> >  #include <dt-bindings/soc/tegra-pmc.h>
> >  #include <dt-bindings/thermal/tegra114-soctherm.h>
> >
> > +#include "tegra114-peripherals-opp.dtsi"
> > +
> >  / {
> >       compatible = "nvidia,tegra114";
> >       interrupt-parent = <&lic>;
> > @@ -323,6 +325,9 @@ actmon: actmon@...0c800 {
> >               clock-names = "actmon", "emc";
> >               resets = <&tegra_car TEGRA114_CLK_ACTMON>;
> >               reset-names = "actmon";
> > +             operating-points-v2 = <&emc_bw_dfs_opp_table>;
> > +             interconnects = <&mc TEGRA114_MC_MPCORER &emc>;
> > +             interconnect-names = "cpu-read";
> >               #cooling-cells = <2>;
> >       };
> >
> > @@ -655,6 +660,7 @@ mc: memory-controller@...19000 {
> >
> >               #reset-cells = <1>;
> >               #iommu-cells = <1>;
> > +             #interconnect-cells = <1>;
> >       };
> >
> >       emc: external-memory-controller@...1b000 {
> > @@ -665,6 +671,9 @@ emc: external-memory-controller@...1b000 {
> >               clock-names = "emc";
> >
> >               nvidia,memory-controller = <&mc>;
> > +             operating-points-v2 = <&emc_icc_dvfs_opp_table>;
> > +
> > +             #interconnect-cells = <0>;
> >       };
> >
> >       hda@...30000 {
> >
>
>
>
>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ