All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/6] Allow drm_writeback_connector to accept pointer to drm_encoder
@ 2022-03-11  1:49 Abhinav Kumar
  2022-03-11  1:49 ` [PATCH 1/6] drm: allow real encoder to be passed for drm_writeback_connector Abhinav Kumar
                   ` (5 more replies)
  0 siblings, 6 replies; 17+ messages in thread
From: Abhinav Kumar @ 2022-03-11  1:49 UTC (permalink / raw)
  To: dri-devel
  Cc: hamohammed.sa, suraj.kandpal, emma, rodrigosiqueiramelo,
	jani.nikula, liviu.dudau, Abhinav Kumar, swboyd, melissa.srw,
	nganji, seanpaul, laurent.pinchart, dmitry.baryshkov,
	james.qian.wang, quic_aravindh, mihail.atanassov, freedreno

There are some vendor drivers for which the writeback encoder shares
hardware resources such as clocks and interrupts with the rest of the
display pipeline. In addition, there can be use-cases where the
writeback encoder could be a shared encoder between the physical display
path and the writeback path.

To accommodate for such cases, change the drm_writeback_connector to
accept a pointer to drm_encoder.

For existing users of drm_writeback_connector there will not be any
change in functionality due to this change.

This approach was first posted by Suraj Kandpal here [1] for both
encoder and connector. But after discussions [2], the consensus was
reached to split this change for the drm_encoder first and the
drm_connector part can be reworked in a subsequent change later.

Validation of this change was done using igt_writeback tests on
MSM based RB5 board using the changes posted here [3].

For all other chipsets, these changes were compile-tested.

[1] https://patchwork.kernel.org/project/dri-devel/patch/20220202081702.22119-1-suraj.kandpal@intel.com/
[2] https://patchwork.kernel.org/project/dri-devel/patch/20220202085429.22261-6-suraj.kandpal@intel.com/
[3] https://patchwork.freedesktop.org/series/99724/

Abhinav Kumar (6):
  drm: allow real encoder to be passed for drm_writeback_connector
  drm/komeda: use drm_encoder pointer for drm_writeback_connector
  drm/vkms: use drm_encoder pointer for drm_writeback_connector
  drm/vc4: use drm_encoder pointer for drm_writeback_connector
  drm/rcar_du: use drm_encoder pointer for drm_writeback_connector
  drm/malidp: use drm_encoder pointer for drm_writeback_connector

 drivers/gpu/drm/arm/display/komeda/komeda_wb_connector.c |  4 +++-
 drivers/gpu/drm/arm/malidp_mw.c                          |  3 ++-
 drivers/gpu/drm/drm_writeback.c                          |  8 ++++----
 drivers/gpu/drm/rcar-du/rcar_du_writeback.c              |  3 ++-
 drivers/gpu/drm/vc4/vc4_txp.c                            | 14 ++++++++++----
 drivers/gpu/drm/vkms/vkms_writeback.c                    |  4 +++-
 include/drm/drm_writeback.h                              | 13 +++++++++++--
 7 files changed, 35 insertions(+), 14 deletions(-)

-- 
2.7.4


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

end of thread, other threads:[~2022-03-17 17:36 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-11  1:49 [PATCH 0/6] Allow drm_writeback_connector to accept pointer to drm_encoder Abhinav Kumar
2022-03-11  1:49 ` [PATCH 1/6] drm: allow real encoder to be passed for drm_writeback_connector Abhinav Kumar
2022-03-11  7:46   ` Dmitry Baryshkov
2022-03-11  8:05     ` Laurent Pinchart
2022-03-11 17:09       ` Abhinav Kumar
2022-03-11 18:11         ` Dmitry Baryshkov
2022-03-17 10:01       ` Daniel Vetter
2022-03-17 17:36         ` Abhinav Kumar
2022-03-11  1:49 ` [PATCH 2/6] drm/komeda: use drm_encoder pointer " Abhinav Kumar
2022-03-11  1:49 ` [PATCH 3/6] drm/vkms: " Abhinav Kumar
2022-03-11  1:49 ` [PATCH 4/6] drm/vc4: " Abhinav Kumar
2022-03-11  1:49 ` [PATCH 5/6] drm/rcar_du: " Abhinav Kumar
2022-03-11  7:28   ` Laurent Pinchart
2022-03-11 17:47     ` Abhinav Kumar
2022-03-13 14:50       ` Laurent Pinchart
2022-03-15 23:13         ` Abhinav Kumar
2022-03-11  1:50 ` [PATCH 6/6] drm/malidp: " Abhinav Kumar

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.