linux-renesas-soc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] drm: rcar-du: Rework clock configuration
@ 2018-08-20 15:26 Jacopo Mondi
  2018-08-20 15:26 ` [PATCH v2 1/2] drm: rcar-du: Rework clock configuration based on hardware limits Jacopo Mondi
  2018-08-20 15:26 ` [PATCH v2 2/2] drm: rcar-du: Improve non-DPLL clock selection Jacopo Mondi
  0 siblings, 2 replies; 11+ messages in thread
From: Jacopo Mondi @ 2018-08-20 15:26 UTC (permalink / raw)
  To: Laurent Pinchart, David Airlie
  Cc: Jacopo Mondi, ulrich.hecht+renesas, kieran.bingham,
	open list:DRM DRIVERS FOR RENESAS,
	open list:DRM DRIVERS FOR RENESAS

Hello,
  second round for improved input dot clock selection procedure for R-Car DU
peripheral.

Please refer to the v1 cover letter for the background:
https://lkml.org/lkml/2018/7/30/702

compared to v1 I have squashed the small patch I initially separated from
Laurent's one, and have closed a comment on alignment from Kieran there.

The second patch has been greatly simplified, not taking into account
non-rounded clock rates provided by the external clock source. In this way the
only rates to compared are the CPG generated one and the one provided by the
external clock source.

Tested on M3-W Salvator-X board with VGA output in 1920x1080 mode.

With this patch applied:
 rcar-du feb00000.display: mode clock 148500000 ext rate 148500000
 rcar-du feb00000.display: rcar_du_crtc_set_display_timing: ESCR 0x0000000

The requested pixel clock is opportunely provided by the external clock source.

Without this patch:
 rcar-du feb00000.display: mode clock 148500000 extrate 108000000 rate 133333328 ESCR 0x00100002

The requested pixel clock is approximated by the CPG generated clock to 133,3
MHz, which for some monitor is not enough to correctly display any output.

Thanks
  j

Jacopo Mondi (1):
  drm: rcar-du: Improve non-DPLL clock selection

Laurent Pinchart (1):
  drm: rcar-du: Rework clock configuration based on hardware limits

v1 -> v2:
- Squash v1' [1/3] and [2/3]
- Simplify [3/3] only taking into account rounded rates provided by the external
  clock source.

 drivers/gpu/drm/rcar-du/rcar_du_crtc.c | 143 +++++++++++++++++++--------------
 1 file changed, 83 insertions(+), 60 deletions(-)

--
2.7.4

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

end of thread, other threads:[~2018-08-21 19:13 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-20 15:26 [PATCH v2 0/2] drm: rcar-du: Rework clock configuration Jacopo Mondi
2018-08-20 15:26 ` [PATCH v2 1/2] drm: rcar-du: Rework clock configuration based on hardware limits Jacopo Mondi
2018-08-20 15:26 ` [PATCH v2 2/2] drm: rcar-du: Improve non-DPLL clock selection Jacopo Mondi
2018-08-20 20:03   ` Laurent Pinchart
2018-08-20 21:49     ` [PATCH] " Laurent Pinchart
2018-08-20 22:12       ` Laurent Pinchart
2018-08-21  7:33         ` jacopo mondi
2018-08-21  8:08           ` Laurent Pinchart
2018-08-21 15:52             ` Kieran Bingham
2018-08-21 10:35         ` jacopo mondi
2018-08-21 13:22           ` jacopo mondi

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).