Skip to content

Tegra EMC clock scaling API

Lucas Stach linux-tegra 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ARM: tegra: add EMC clock scaling APIarch/arm/mach-tegra/tegra2_emc.c include/memory/tegra_emc_performance.h+160 -312 replies
2/3ARM: tegra: use new EMC clock scaling API in CPUfreq driverarch/arm/mach-tegra/cpu-tegra.c+8 -70 replies
3/3ARM: tegra: drm: use new EMC clock scaling API to reserve DC bandwidthdrivers/gpu/drm/tegra/dc.c+11 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] Tegra EMC clock scaling API

This series is more of a RFC, but is working pretty well already.

It adds a new API to control EMC performance. There are two new functions added, to provide memory clients with a way to communicate their memory performance demands to the EMC. Documentation can be found inline.

I've tested this on my Colibri T20 with a memory config with the following DDR clock rates: 88.25MHz, 133.2MHz, 166.5MHz, 333MHz.

I've verified that CPU clock changes toggle EMC clock changes, just like before the change. Also with a 1080p display attached DDR clock rate stays at 133,2MHz to satisfy the bandwidth demand of the scanout.

With the series applied I no longer see display corruption caused by FIFO underflow, while keeping the ability to demand scale the EMC clockrate.

Lucas Stach (3):
ARM: tegra: add EMC clock scaling API
ARM: tegra: use new EMC clock scaling API in CPUfreq driver
ARM: tegra: drm: use new EMC clock scaling API to reserve DC
bandwidth

 arch/arm/mach-tegra/cpu-tegra.c        | 15 +++---
 arch/arm/mach-tegra/tegra2_emc.c       | 84 ++++++++++++++++++++++++++++++++--
 drivers/gpu/drm/tegra/dc.c             | 11 +++++
 include/memory/tegra_emc_performance.h | 79 ++++++++++++++++++++++++++++++++
 4 Dateien geändert, 179 Zeilen hinzugefügt(+), 10 Zeilen entfernt(-)
 create mode 100644 include/memory/tegra_emc_performance.h
Signature · 1 line
1.7.11.7