Skip to content

RFC Add Krait Cache Scaling support

Ansuel Smith linux-devicetree linux-pm lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 RFC Latest2 patches 7 repliesIn review
  2. v2 RFC2 patches 4 repliesSuperseded
  3. v1 RFC2 patches 1 replySuperseded

Changes in v3 from the cover letter

* Use opp infrastructure
* Update documentation

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2cpufreq: qcom: Add Krait Cache Scaling supportdrivers/cpufreq/Kconfig.arm drivers/cpufreq/Makefile drivers/cpufreq/krait-cache.c+242 -00 replies
2/2dt-bindings: cpufreq: Document Krait CPU Cache scalingDocumentation/devicetree/bindings/cpufreq/krait-cache-scale.yaml+79 -01 reply

Reviews trailers per patch

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

Read the v3 thread

Cover letter [RFC PATCH v3 0/2] Add Krait Cache Scaling support

This adds Krait Cache scaling support using the cpufreq notifier.
I have some doubt about where this should be actually placed (clk or cpufreq)? Also the original idea was to create a dedicated cpufreq driver (like it's done in the codeaurora qcom repo) by copying the cpufreq-dt driver and adding the cache scaling logic but i still don't know what is better. Have a very similar driver or add a dedicated driver only for the cache using the cpufreq notifier and do the scale on every freq transition.
Thanks to everyone who will review or answer these questions.

v3:
* Use opp infrastructure
* Update documentation

v2:
* Fix Documentation error reported by bot
* Rework code to fail probe on missing required params
* Optimize notifier callback to reduce CPU cycle

Ansuel Smith (2):
cpufreq: qcom: Add Krait Cache Scaling support
dt-bindings: cpufreq: Document Krait CPU Cache scaling

 .../bindings/cpufreq/krait-cache-scale.yaml   |  79 ++++++
 drivers/cpufreq/Kconfig.arm                   |   9 +
 drivers/cpufreq/Makefile                      |   1 +
 drivers/cpufreq/krait-cache.c                 | 232 ++++++++++++++++++
 4 files changed, 321 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/cpufreq/krait-cache-scale.yaml
 create mode 100644 drivers/cpufreq/krait-cache.c
Signature · 1 line
2.27.0