mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v4 0/3] drm/msm: handle for EPROBE_DEFER for of_icc_get
@ 2020-07-13 22:53 Jonathan Marek
  2020-07-13 22:53 ` [PATCH v4 1/3] drm/msm: fix unbalanced pm_runtime_enable in adreno_gpu_{init,cleanup} Jonathan Marek
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Jonathan Marek @ 2020-07-13 22:53 UTC (permalink / raw)
  To: freedreno
  Cc: Bjorn Andersson, Brian Masney, Daniel Vetter, David Airlie,
	open list:DRM DRIVER FOR MSM ADRENO GPU, Fabio Estevam,
	Jordan Crouse, open list:DRM DRIVER FOR MSM ADRENO GPU,
	open list, Rob Clark, Sean Paul, Takashi Iwai

Check for errors instead of silently not using icc if the msm driver
probes before the interconnect driver.

Allow ENODATA for ocmem path, as it is optional and this error
is returned when "gfx-mem" path is provided but not "ocmem".

Because msm_gpu_cleanup assumes msm_gpu_init has been called, the icc path
init needs to be after msm_gpu_init for the error path to work.

v2: changed to not only check for EPROBE_DEFER
v3: move icc path init after msm_gpu_init to avoid deleting a WARN_ON
v4: added two patches to fix issues with probe deferring later in v3

Jonathan Marek (3):
  drm/msm: fix unbalanced pm_runtime_enable in adreno_gpu_{init,cleanup}
  drm/msm: reset devfreq freq_table/max_state before devfreq_add_device
  drm/msm: handle for EPROBE_DEFER for of_icc_get

 drivers/gpu/drm/msm/adreno/adreno_gpu.c | 68 +++++++++++++++----------
 drivers/gpu/drm/msm/msm_gpu.c           |  4 ++
 2 files changed, 45 insertions(+), 27 deletions(-)

-- 
2.26.1


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

end of thread, other threads:[~2020-07-13 23:49 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-13 22:53 [PATCH v4 0/3] drm/msm: handle for EPROBE_DEFER for of_icc_get Jonathan Marek
2020-07-13 22:53 ` [PATCH v4 1/3] drm/msm: fix unbalanced pm_runtime_enable in adreno_gpu_{init,cleanup} Jonathan Marek
2020-07-13 23:45   ` Jordan Crouse
2020-07-13 22:53 ` [PATCH v4 2/3] drm/msm: reset devfreq freq_table/max_state before devfreq_add_device Jonathan Marek
2020-07-13 23:46   ` [Freedreno] " Jordan Crouse
2020-07-13 22:53 ` [PATCH v4 3/3] drm/msm: handle for EPROBE_DEFER for of_icc_get Jonathan Marek
2020-07-13 23:48   ` Jordan Crouse

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®