public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Small improvements to ingenic-drm
@ 2020-09-15 12:38 Paul Cercueil
  2020-09-15 12:38 ` [PATCH 1/3] drm/ingenic: Add support for 30-bit modes Paul Cercueil
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Paul Cercueil @ 2020-09-15 12:38 UTC (permalink / raw)
  To: David Airlie, Daniel Vetter
  Cc: Sam Ravnborg, od, dri-devel, linux-kernel, Paul Cercueil

Hi,

Here are three improvements to the ingenic-drm driver.

Patch 1 adds 30-bit RGB support for the SoCs that support it. Not much
to see here.

Patch 2 is here to allow the pixel clock to be re-set when the SoC's
main PLL changes, which can happen at any time. We get a callback before
and after the PLL clock rate is changed, which allows the ingenic-drm
driver to synchronize the clock rate update with vblank. The
synchronization mechanism is implemented with a mutex. I am not sure it
is the best solution, there may be something better/simpler to do here,
but in practice it works just fine.

Patch 3 adds support for using a reserved memory area as storage space
for GEM buffers. On memory-constrained devices, it is hard to find
contiguous space even for a small 320x240 buffer, and sometimes dumb
buffer allocation from userspace fails with -ENOMEM. Using a reserved
memory area makes sure that there will always be space for our GEM
buffers (provided they fit in the memory area).

Cheers,
-Paul

Paul Cercueil (3):
  drm/ingenic: Add support for 30-bit modes
  drm/ingenic: Reset pixclock rate when parent clock rate changes
  drm/ingenic: Add support for reserved memory

 drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 109 +++++++++++++++++++---
 drivers/gpu/drm/ingenic/ingenic-drm.h     |   1 +
 2 files changed, 99 insertions(+), 11 deletions(-)

-- 
2.28.0


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

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

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-15 12:38 [PATCH 0/3] Small improvements to ingenic-drm Paul Cercueil
2020-09-15 12:38 ` [PATCH 1/3] drm/ingenic: Add support for 30-bit modes Paul Cercueil
2020-09-24 20:14   ` Sam Ravnborg
2020-09-15 12:38 ` [PATCH 2/3] drm/ingenic: Reset pixclock rate when parent clock rate changes Paul Cercueil
2020-09-24 20:22   ` Sam Ravnborg
2020-09-25 12:29     ` Paul Cercueil
2020-10-13 23:17       ` Stephen Boyd
2020-09-15 12:38 ` [PATCH 3/3] drm/ingenic: Add support for reserved memory Paul Cercueil
2020-09-24 20:29   ` Sam Ravnborg

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