PCI: tegra194: Add interconnect support in Tegra234
authorSumit Gupta <sumitg@nvidia.com>
Thu, 11 May 2023 17:32:10 +0000 (23:02 +0530)
committerThierry Reding <treding@nvidia.com>
Tue, 16 May 2023 10:11:36 +0000 (12:11 +0200)
commit9365bf006f53d04b69d560ef7e2bf4be4c4d693a
treebb03f9ba8379fb7f5d72ac2707ac43e1eb378e0b
parent205b3d02d57ce6dce96f6d2b9c230f56a9bf9817
PCI: tegra194: Add interconnect support in Tegra234

Add support to request DRAM bandwidth (BW) with Memory Interconnect
in Tegra234 SoC. The DRAM BW required for different modes depends on
the link speed (Gen-1/2/3/4) and width/lanes (x1/x2/x4/x8).
Currently, the DRAM frequency is always set to the maximum available
but that results in the highest power consumption.
The Memory Interconnect is a software feature which uses Interconnect
framework (ICC). It adds the capability for Memory Controller (MC)
clients to request bandwidth and therefore scale DRAM frequency
dynamically depending on the required link speed so that the DRAM
energy consumption can be optimized.

Suggested-by: Manikanta Maddireddy <mmaddireddy@nvidia.com>
Signed-off-by: Sumit Gupta <sumitg@nvidia.com>
Acked-by: Lorenzo Pieralisi <lpieralisi@kernel.org>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/pci/controller/dwc/pcie-tegra194.c