mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/9] cpufreq: tegra194: add Tegra264 support
@ 2026-11-17 15:49 Sumit Gupta
  2026-11-17 15:49 ` [PATCH v2 1/9] cpufreq: tegra194: move MPIDR read to CPU hotplug callback Sumit Gupta
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Sumit Gupta @ 2026-11-17 15:49 UTC (permalink / raw)
  To: rafael, viresh.kumar, robh, krzk+dt, zhongqiu.han, conor+dt,
	treding, jonathanh, linux-pm, linux-tegra, linux-kernel,
	devicetree
  Cc: bbasu, sumitg

This series adds cpufreq support for Tegra264, which joins the SoCs
already supported by the tegra194-cpufreq driver.

Tegra264 keeps the existing model, where BPMP provides the NDIV limits.
The driver derives the current frequency from the core clock and
reference counters.

The main differences are:
 - Frequency read: through system registers, as on Tegra194, but from
   the 64-bit architected AMU counters. The reference counter ticks at
   the system counter rate (CNTFRQ).

 - Frequency request: through MMIO, as on Tegra234. The driver writes
   NDIV to a core_freq_req register in the CCPLEX register space. Each
   register controls a clock shared by two single-CPU clusters, so both
   CPUs form one cpufreq policy.

The patches fall into four groups:
 - Fix (patch 1): read each CPU's MPIDR from a CPU hotplug callback
   instead of at probe. A CPU that is offline at probe then also gets
   valid cluster and core IDs.

 - Preparation (patches 2 to 5): cleanups, mostly of the counter code,
   to make room for a 64-bit counter and for an MMIO mapping without
   ACTMON counters.

 - Improvement (patches 6 and 7): group CPUs by the generic
   "performance-domains" property, which cluster-based grouping cannot
   express on Tegra264. Device trees without it keep the existing
   grouping.

 - Tegra264 support (patches 8 and 9): the driver support, followed by
   the device tree changes it relies on.

Patch 9 depends on:
 [1] "arm64: tegra: Fix address translation on Tegra264"
 Thierry has applied it to the Tegra tree. Without it, the
 ccplex@30000000 node does not translate to the CCPLEX registers.

Changes in v2:
 - Patch 1: drop the cpu argument of get_cpu_cluster_id() (Zhongqiu).
            Check for a bad MPIDR in tegra194_get_speed() (Sashiko).
 - Patch 7: check the BPMP table in tegra194_get_speed() (Sashiko).
 - Patch 8: fail probe if AMU is not available (Zhongqiu).

Sumit Gupta (9):
  cpufreq: tegra194: move MPIDR read to CPU hotplug callback
  cpufreq: tegra194: remove duplicate counter sampling loops
  cpufreq: tegra194: add tegra_counter_delta helper
  cpufreq: tegra194: add per-SoC counter mask
  cpufreq: tegra194: split MMIO mapping from ACTMON offset
  dt-bindings: arm: nvidia: Document the Tegra264 CCPLEX cluster
  cpufreq: tegra194: derive frequency domain from device tree
  cpufreq: tegra194: Add support for Tegra264
  arm64: tegra: Add CCPLEX cluster node for Tegra264

 .../tegra/nvidia,tegra-ccplex-cluster.yaml    |  27 +-
 arch/arm64/boot/dts/nvidia/tegra264.dtsi      |  21 +
 drivers/cpufreq/Kconfig.arm                   |   4 +-
 drivers/cpufreq/tegra194-cpufreq.c            | 451 +++++++++++++-----
 4 files changed, 382 insertions(+), 121 deletions(-)

[1] https://lore.kernel.org/linux-tegra/20261030141101.845044-1-thierry.reding@kernel.org/
v1: https://lore.kernel.org/lkml/20261104181521.3003578-1-sumitg@nvidia.com/

base-commit: 749a4de370409464cf8501ec5b2451df45c84eb4
prerequisite-message-id: <20261030141101.845044-1-thierry.reding@kernel.org>
prerequisite-patch-id: ba5cb48e4083d98b7c88166e68fe25f3dcb80650
-- 
2.34.1


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2026-11-17 15:51 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-17 15:49 [PATCH v2 0/9] cpufreq: tegra194: add Tegra264 support Sumit Gupta
2026-11-17 15:49 ` [PATCH v2 1/9] cpufreq: tegra194: move MPIDR read to CPU hotplug callback Sumit Gupta
2026-11-17 15:49 ` [PATCH v2 2/9] cpufreq: tegra194: remove duplicate counter sampling loops Sumit Gupta
2026-11-17 15:49 ` [PATCH v2 3/9] cpufreq: tegra194: add tegra_counter_delta helper Sumit Gupta
2026-11-17 15:49 ` [PATCH v2 4/9] cpufreq: tegra194: add per-SoC counter mask Sumit Gupta
2026-11-17 15:49 ` [PATCH v2 5/9] cpufreq: tegra194: split MMIO mapping from ACTMON offset Sumit Gupta
2026-11-17 15:49 ` [PATCH v2 6/9] dt-bindings: arm: nvidia: Document the Tegra264 CCPLEX cluster Sumit Gupta
2026-11-17 15:49 ` [PATCH v2 7/9] cpufreq: tegra194: derive frequency domain from device tree Sumit Gupta
2026-11-17 15:49 ` [PATCH v2 8/9] cpufreq: tegra194: Add support for Tegra264 Sumit Gupta
2026-11-17 15:49 ` [PATCH v2 9/9] arm64: tegra: Add CCPLEX cluster node " Sumit Gupta

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®