From: Nishanth Menon <nm@ti.com>
To: "Kumar, Udit" <u-kumar1@ti.com>
Cc: Apurva Nandan <a-nandan@ti.com>,
Vignesh Raghavendra <vigneshr@ti.com>,
Tero Kristo <kristo@kernel.org>, Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Conor Dooley <conor+dt@kernel.org>,
Rafael J Wysocki <rafael@kernel.org>,
Daniel Lezcano <daniel.lezcano@linaro.org>,
Amit Kucheria <amitk@kernel.org>, Zhang Rui <rui.zhang@intel.com>,
<linux-arm-kernel@lists.infradead.org>,
<devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<linux-pm@vger.kernel.org>, Keerthy J <j-keerthy@ti.com>
Subject: Re: [PATCH 2/3] arm64: dts: ti: k3-j7200: Add the supported frequencies for A72
Date: Thu, 10 Aug 2023 07:53:27 -0500 [thread overview]
Message-ID: <20230810125327.pq2fxda7dpv2qf7t@seizing> (raw)
In-Reply-To: <ab69c4df-708f-8fff-a58b-a6531e15627b@ti.com>
On 17:23-20230810, Kumar, Udit wrote:
[..]
> > > + opp1-750000000 {
> > > + opp-hz = /bits/ 64 <750000000>;
> > > };
> > > };
> > > --
> > > 2.34.1
> > >
> > Are you sure this is correct to enable all OPPs without efuse bit checks?
> >
> > https://www.ti.com/lit/ds/symlink/dra821u-q1.pdf
> > 7.5 Operating Performance Points
> > DRA821xC operates only upto 750MHz
> > DRA821xE at 1GHz
> > DRA821xL upto 1.5GHz and
> > DRA821xT upto 2GHz
>
> Looks, top SKUs is considered here .
>
> After detecting which SKU we are running (I hope TRM should have this
> information- through efuse or some other register)
>
> I think, we can follow two approaches.
Both of these are wrong approaches.
>
> 1) have OPP table for each SKU and select based SKUs type or
This proliferates cpu dtsi to make it hard to manage
>
> 2) Do run time fixup by u-boot based upon SKU type
This wont work:
a) in u-boot's falcon boot mode and puts unrelated responsibility to
bootloader (u-boot is not the only bootloader in the party here).
b) Further, the reason for doing the opp detection in the kernel is
due to the severity of consequence of attempting to run a lower rated
chip at higher frequency - PoH (Power on Hours) or physical damage can
result.
c) Finally, in a virtualized environment: TISCI will get DM (Device
Manager) to arbitrate between the each of the VM's request, but if
the VM's are'nt self sufficient, we will have DM making wrong choices
resulting in (b) condition again.
This is the reason why drivers/cpufreq/ti-cpufreq.c exists and all SoCs
that have OPPs from TI is handled in the kernel itself.
--
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2023-08-10 12:54 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-09 17:39 [PATCH 0/3] Add support for thermal mitigation for K3 J7200 SoC Apurva Nandan
2023-08-09 17:39 ` [PATCH 1/3] thermal: k3_j72xx_bandgap: Add cooling device support Apurva Nandan
2023-08-16 10:15 ` Daniel Lezcano
2023-08-09 17:39 ` [PATCH 2/3] arm64: dts: ti: k3-j7200: Add the supported frequencies for A72 Apurva Nandan
2023-08-09 19:09 ` Nishanth Menon
2023-08-10 11:53 ` Kumar, Udit
2023-08-10 12:53 ` Nishanth Menon [this message]
2023-08-10 14:19 ` Kumar, Udit
2023-08-09 17:39 ` [PATCH 3/3] arm64: dts: ti: k3-j7200-thermal: Add cooling maps and cpu_alert trip at 75C Apurva Nandan
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=20230810125327.pq2fxda7dpv2qf7t@seizing \
--to=nm@ti.com \
--cc=a-nandan@ti.com \
--cc=amitk@kernel.org \
--cc=conor+dt@kernel.org \
--cc=daniel.lezcano@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=j-keerthy@ti.com \
--cc=kristo@kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=rafael@kernel.org \
--cc=robh+dt@kernel.org \
--cc=rui.zhang@intel.com \
--cc=u-kumar1@ti.com \
--cc=vigneshr@ti.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