linux-arm-msm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/5] Improve GPU reset sequence for Adreno GPU
@ 2022-12-21 17:13 Akhil P Oommen
  2022-12-21 17:13 ` [PATCH v4 1/5] PM: domains: Allow a genpd consumer to require a synced power off Akhil P Oommen
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: Akhil P Oommen @ 2022-12-21 17:13 UTC (permalink / raw)
  To: freedreno, dri-devel, linux-arm-msm, Rob Clark, Ulf Hansson,
	Bjorn Andersson, Stephen Boyd, Philipp Zabel
  Cc: Akhil P Oommen, Abhinav Kumar, Andy Gross, Chia-I Wu,
	Daniel Vetter, David Airlie, Dmitry Baryshkov, Douglas Anderson,
	Geert Uytterhoeven, Greg Kroah-Hartman, Guenter Roeck,
	Kevin Hilman, Konrad Dybcio, Konrad Dybcio, Len Brown,
	Michael Turquette, Pavel Machek, Rafael J. Wysocki, Sean Paul,
	linux-clk, linux-kernel, linux-pm


This is a rework of [1] using genpd instead of 'reset' framework.

As per the recommended reset sequence of Adreno gpu, we should ensure that
gpucc-cx-gdsc has collapsed at hardware to reset gpu's internal hardware states.
Because this gdsc is implemented as 'votable', gdsc driver doesn't poll and
wait until its hw status says OFF.

So use the newly introduced genpd api (dev_pm_genpd_synced_poweroff()) to
provide a hint to the gdsc driver to poll for the hw status and use genpd
notifier to wait from adreno gpu driver until gdsc is turned OFF.

This series is rebased on top of linux-next (20221215) since the changes span
multiple drivers.

[1] https://patchwork.freedesktop.org/series/107507/

Changes in v4:
- Update genpd function documentation (Ulf)

Changes in v3:
- Rename the var 'force_sync' to 'wait (Stephen)

Changes in v2:
- Minor formatting fix
- Select PM_GENERIC_DOMAINS from Kconfig

Akhil P Oommen (4):
  clk: qcom: gdsc: Support 'synced_poweroff' genpd flag
  drm/msm/a6xx: Vote for cx gdsc from gpu driver
  drm/msm/a6xx: Remove cx gdsc polling using 'reset'
  drm/msm/a6xx: Use genpd notifier to ensure cx-gdsc collapse

Ulf Hansson (1):
  PM: domains: Allow a genpd consumer to require a synced power off

 drivers/base/power/domain.c           | 26 ++++++++++++++++++++
 drivers/clk/qcom/gdsc.c               | 11 +++++----
 drivers/gpu/drm/msm/Kconfig           |  1 +
 drivers/gpu/drm/msm/adreno/a6xx_gmu.c | 46 ++++++++++++++++++++++++++++++++---
 drivers/gpu/drm/msm/adreno/a6xx_gmu.h |  7 ++++++
 drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 13 +++++++---
 drivers/gpu/drm/msm/msm_gpu.c         |  4 ---
 drivers/gpu/drm/msm/msm_gpu.h         |  4 ---
 include/linux/pm_domain.h             |  5 ++++
 9 files changed, 97 insertions(+), 20 deletions(-)

-- 
2.7.4


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

end of thread, other threads:[~2023-01-02  9:57 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-21 17:13 [PATCH v4 0/5] Improve GPU reset sequence for Adreno GPU Akhil P Oommen
2022-12-21 17:13 ` [PATCH v4 1/5] PM: domains: Allow a genpd consumer to require a synced power off Akhil P Oommen
2022-12-28 18:43   ` Bjorn Andersson
2023-01-02  9:56     ` Akhil P Oommen
2022-12-21 17:14 ` [PATCH v4 2/5] clk: qcom: gdsc: Support 'synced_poweroff' genpd flag Akhil P Oommen
2022-12-22 16:05   ` Ulf Hansson
2022-12-21 17:14 ` [PATCH v4 3/5] drm/msm/a6xx: Vote for cx gdsc from gpu driver Akhil P Oommen
2022-12-22 16:09   ` Ulf Hansson
2022-12-21 17:14 ` [PATCH v4 4/5] drm/msm/a6xx: Remove cx gdsc polling using 'reset' Akhil P Oommen
2022-12-22 16:05   ` Ulf Hansson
2022-12-21 17:14 ` [PATCH v4 5/5] drm/msm/a6xx: Use genpd notifier to ensure cx-gdsc collapse Akhil P Oommen
2022-12-22 16:07   ` Ulf Hansson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).