All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v24 0/7] soc: mediatek: SVS: introduce MTK SVS
@ 2022-04-20 10:20 ` Roger Lu
  0 siblings, 0 replies; 58+ messages in thread
From: Roger Lu @ 2022-04-20 10:20 UTC (permalink / raw)
  To: Matthias Brugger, Enric Balletbo Serra, Kevin Hilman,
	Rob Herring, Nicolas Boichat, Stephen Boyd, Philipp Zabel
  Cc: Fan Chen, HenryC Chen, Xiaoqing Liu, Charles Yang, Angus Lin,
	Mark Rutland, Nishanth Menon, Roger Lu, devicetree,
	linux-arm-kernel, linux-mediatek, linux-kernel, linux-pm,
	Project_Global_Chrome_Upstream_Group, Guenter Roeck,
	Jia-wei Chang

The Smart Voltage Scaling(SVS) engine is a piece of hardware
which calculates suitable SVS bank voltages to OPP voltage table.
Then, DVFS driver could apply those SVS bank voltages to PMIC/Buck
when receiving OPP_EVENT_ADJUST_VOLTAGE.

1. SVS driver uses OPP adjust event in [1] to update OPP table voltage part.
2. SVS driver gets thermal/GPU device by node [2][3] and CPU device by get_cpu_device().
After retrieving subsys device, SVS driver calls device_link_add() to make sure probe/suspend callback priority.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/vireshk/pm.git/commit/?h=opp/linux-next&id=25cb20a212a1f989385dfe23230817e69c62bee5
[2] https://git.kernel.org/pub/scm/linux/kernel/git/vireshk/pm.git/commit/?h=opp/linux-next&id=b325ce39785b1408040d90365a6ab1aa36e94f87
[3] https://git.kernel.org/pub/scm/linux/kernel/git/matthias.bgg/linux.git/commit/?h=v5.16-next/dts64&id=a8168cebf1bca1b5269e8a7eb2626fb76814d6e2

Change since v23:
- Change wording from "Mediatek" to "MediaTek" (uppercase T) in mtk-svs.yaml.
- Use cpuidle_pause_and_lock() to prevent system from entering cpuidle instead of applying pm_qos APIs.
- Add kfree() at the end of svs_probe() when encountering probe fail.
- Change MODULE_LICENSE from "GPL v2" to "GPL".
- Add nvmem_cell_put() in error handling when nvmem_cell_read() encounters fail.

Roger Lu (7):
  [v24,1/7] dt-bindings: soc: mediatek: add mtk svs dt-bindings
  [v24,2/7] arm64: dts: mt8183: add svs device information
  [v24,3/7] soc: mediatek: SVS: introduce MTK SVS engine
  [v24,4/7] soc: mediatek: SVS: add monitor mode
  [v24,5/7] soc: mediatek: SVS: add debug commands
  [v24,6/7] dt-bindings: soc: mediatek: add mt8192 svs dt-bindings
  [v24,7/7] soc: mediatek: SVS: add mt8192 SVS GPU driver

 .../bindings/soc/mediatek/mtk-svs.yaml        |   91 +
 arch/arm64/boot/dts/mediatek/mt8183.dtsi      |   16 +
 drivers/soc/mediatek/Kconfig                  |   10 +
 drivers/soc/mediatek/Makefile                 |    1 +
 drivers/soc/mediatek/mtk-svs.c                | 2403 +++++++++++++++++
 5 files changed, 2521 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/soc/mediatek/mtk-svs.yaml
 create mode 100644 drivers/soc/mediatek/mtk-svs.c



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

end of thread, other threads:[~2022-05-06  8:41 UTC | newest]

Thread overview: 58+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-20 10:20 [PATCH v24 0/7] soc: mediatek: SVS: introduce MTK SVS Roger Lu
2022-04-20 10:20 ` Roger Lu
2022-04-20 10:20 ` Roger Lu
2022-04-20 10:20 ` [PATCH v24 1/7] dt-bindings: soc: mediatek: add mtk svs dt-bindings Roger Lu
2022-04-20 10:20   ` Roger Lu
2022-04-20 10:20   ` Roger Lu
2022-04-20 10:20 ` [PATCH v24 2/7] arm64: dts: mt8183: add svs device information Roger Lu
2022-04-20 10:20   ` Roger Lu
2022-04-20 10:20   ` Roger Lu
2022-04-20 10:20 ` [PATCH v24 3/7] soc: mediatek: SVS: introduce MTK SVS engine Roger Lu
2022-04-20 10:20   ` Roger Lu
2022-04-20 10:20   ` Roger Lu
2022-04-21  0:06   ` Kevin Hilman
2022-04-21  0:06     ` Kevin Hilman
2022-04-21  0:06     ` Kevin Hilman
2022-04-21  9:11     ` Roger Lu
2022-04-21  9:11       ` Roger Lu
2022-04-21  9:11       ` Roger Lu
2022-04-20 10:20 ` [PATCH v24 4/7] soc: mediatek: SVS: add monitor mode Roger Lu
2022-04-20 10:20   ` Roger Lu
2022-04-20 10:20   ` Roger Lu
2022-04-20 10:20 ` [PATCH v24 5/7] soc: mediatek: SVS: add debug commands Roger Lu
2022-04-20 10:20   ` Roger Lu
2022-04-20 10:20   ` Roger Lu
2022-04-20 10:20 ` [PATCH v24 6/7] dt-bindings: soc: mediatek: add mt8192 svs dt-bindings Roger Lu
2022-04-20 10:20   ` Roger Lu
2022-04-20 10:20   ` Roger Lu
2022-04-20 10:20 ` [PATCH v24 7/7] soc: mediatek: SVS: add mt8192 SVS GPU driver Roger Lu
2022-04-20 10:20   ` Roger Lu
2022-04-20 10:20   ` Roger Lu
2022-04-20 23:22 ` [PATCH v24 0/7] soc: mediatek: SVS: introduce MTK SVS Kevin Hilman
2022-04-20 23:22   ` Kevin Hilman
2022-04-20 23:22   ` Kevin Hilman
2022-04-21  9:28   ` Roger Lu
2022-04-21  9:28     ` Roger Lu
2022-04-21  9:28     ` Roger Lu
2022-04-21 19:41     ` Kevin Hilman
2022-04-21 19:41       ` Kevin Hilman
2022-04-21 19:41       ` Kevin Hilman
2022-04-22  2:24       ` Roger Lu
2022-04-22  2:24         ` Roger Lu
2022-04-22  2:24         ` Roger Lu
2022-04-22 15:38         ` Matthias Brugger
2022-04-22 15:38           ` Matthias Brugger
2022-04-22 15:38           ` Matthias Brugger
2022-04-26  7:15           ` Chen-Yu Tsai
2022-04-26  7:15             ` Chen-Yu Tsai
2022-04-26  7:15             ` Chen-Yu Tsai
2022-05-02 22:07             ` Kevin Hilman
2022-05-02 22:07               ` Kevin Hilman
2022-05-02 22:07               ` Kevin Hilman
2022-05-03  6:13               ` Chen-Yu Tsai
2022-05-03  6:13                 ` Chen-Yu Tsai
2022-05-03  6:13                 ` Chen-Yu Tsai
2022-05-04 19:25                 ` Kevin Hilman
2022-05-04 19:25                   ` Kevin Hilman
2022-05-06  8:40                   ` Chen-Yu Tsai
2022-05-06  8:40                     ` Chen-Yu Tsai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.