public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/2] drm/msm/dp: refactor the msm dp driver resources
@ 2023-02-23 13:56 Sankeerth Billakanti
  2023-02-23 13:56 ` [RFC PATCH 1/2] drm/msm/dp: enumerate edp panel during driver probe Sankeerth Billakanti
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Sankeerth Billakanti @ 2023-02-23 13:56 UTC (permalink / raw)
  To: dri-devel, linux-arm-msm, freedreno, linux-kernel
  Cc: Sankeerth Billakanti, robdclark, seanpaul, swboyd, quic_kalyant,
	quic_abhinavk, dianders, quic_khsieh, quic_bjorande, sean,
	airlied, daniel, dmitry.baryshkov, quic_vproddut

The DP driver resources are currently enabled and disabled directly based on code flow.
As mentioned in bug 230631602, we want to do the following:

1) Refactor the dp/edp parsing code to move it to probe (it is currently done in bind).

2) Then bind all the power resources needed for AUX in pm_runtime_ops.

3) Handle EPROBE_DEFER cases of the panel-eDP aux device.

4) Verify DP functionality is unaffected.

These code changes will parse the resources and get the edp panel during probe.
All the necessary resources required for the aux transactions are moved to pm_runtime ops.
They are enabled or disabled via get/put sync functions.

This is a RFC to verify with the community if the approach we are taking is correct.

https://partnerissuetracker.corp.google.com/issues/230631602

Sankeerth Billakanti (2):
  drm/msm/dp: enumerate edp panel during driver probe
  drm/msm/dp: enable pm_runtime support for dp driver

 drivers/gpu/drm/msm/dp/dp_aux.c     | 155 +++++++++++++++++++++--
 drivers/gpu/drm/msm/dp/dp_catalog.c |  12 ++
 drivers/gpu/drm/msm/dp/dp_catalog.h |   1 +
 drivers/gpu/drm/msm/dp/dp_display.c | 185 ++++++++++++++--------------
 drivers/gpu/drm/msm/dp/dp_power.c   |   7 --
 5 files changed, 250 insertions(+), 110 deletions(-)

-- 
2.39.0


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

end of thread, other threads:[~2023-03-14 11:34 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-23 13:56 [RFC PATCH 0/2] drm/msm/dp: refactor the msm dp driver resources Sankeerth Billakanti
2023-02-23 13:56 ` [RFC PATCH 1/2] drm/msm/dp: enumerate edp panel during driver probe Sankeerth Billakanti
2023-02-23 14:59   ` Dmitry Baryshkov
2023-03-01  8:13     ` Sankeerth Billakanti (QUIC)
2023-03-01 10:37       ` Dmitry Baryshkov
2023-03-14 10:23         ` Sankeerth Billakanti (QUIC)
2023-03-14 11:34           ` Dmitry Baryshkov
2023-02-23 13:56 ` [RFC PATCH 2/2] drm/msm/dp: enable pm_runtime support for dp driver Sankeerth Billakanti
2023-02-27 23:36   ` Bjorn Andersson
2023-03-01  8:19     ` Sankeerth Billakanti (QUIC)
2023-02-23 15:18 ` [RFC PATCH 0/2] drm/msm/dp: refactor the msm dp driver resources Dmitry Baryshkov
2023-03-01  8:17   ` Sankeerth Billakanti (QUIC)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox