[PATCH v3 0/7] Renesas SH Mobile DRM driver

Laurent Pinchart laurent.pinchart at ideasonboard.com
Wed Aug 8 08:21:01 PDT 2012


Hi everybody,

Here's the third version of the DRM driver for the Renesas SH Mobile display
controller (a.k.a. LCDC). The hardware is pretty simple and consists of a
single CRTC and four (non-scalable) planes that can be alpha-blended (first
two planes only), overlayed or composed using ROP3.

The first three patches are already in mainline, but I've included them here in
case someone woud like to compile the code. The next two are included for
convenience as well, they have been posted separately to the dri-devel mailing
list. The sixth patch just defines two new formats. Last but not least, the last
patch is the SH Mobile LCDC DRM driver.

I've hopefully incorporated all comments received during review.

Changes from v2 to v3:

- Use drm_crtc_cleanup() directly as drm_crtc_funcs destroy handler
- Return connected status instead of unknown for flat panel connection
- Clean-up mode config at unload time
- Remove unused fields in struct shmob_drm_device
- Fix typos in comments
- Free allocate memory in shmob_drm_plane_create() error path
- Add a timeout to lcdc_wait_bit()

Changes from v1 to v2:

- Use he new GEM and FB CMA helpers
- Handle NV24/NV42 formats properly in the DRM core
- Verify and use frame buffer pitches and offsets

Lars-Peter Clausen (1):
  DRM: Add DRM kms/fb cma helper

Laurent Pinchart (5):
  sh_mobile_meram: Rename operations to cache_[alloc|free|update]
  sh_mobile_meram: Use direct function calls for the public API
  sh_mobile_meram: Add direct MERAM allocation API
  drm: Add NV24 and NV42 pixel formats
  drm: Renesas SH Mobile DRM driver

Sascha Hauer (1):
  DRM: add drm gem CMA helper

 drivers/gpu/drm/Kconfig                        |   18 +
 drivers/gpu/drm/Makefile                       |    3 +
 drivers/gpu/drm/drm_crtc.c                     |    6 +
 drivers/gpu/drm/drm_fb_cma_helper.c            |  406 +++++++++++++
 drivers/gpu/drm/drm_gem_cma_helper.c           |  251 ++++++++
 drivers/gpu/drm/shmobile/Kconfig               |   10 +
 drivers/gpu/drm/shmobile/Makefile              |    7 +
 drivers/gpu/drm/shmobile/shmob_drm_backlight.c |   90 +++
 drivers/gpu/drm/shmobile/shmob_drm_backlight.h |   23 +
 drivers/gpu/drm/shmobile/shmob_drm_crtc.c      |  763 ++++++++++++++++++++++++
 drivers/gpu/drm/shmobile/shmob_drm_crtc.h      |   60 ++
 drivers/gpu/drm/shmobile/shmob_drm_drv.c       |  361 +++++++++++
 drivers/gpu/drm/shmobile/shmob_drm_drv.h       |   48 ++
 drivers/gpu/drm/shmobile/shmob_drm_kms.c       |  160 +++++
 drivers/gpu/drm/shmobile/shmob_drm_kms.h       |   34 +
 drivers/gpu/drm/shmobile/shmob_drm_plane.c     |  268 +++++++++
 drivers/gpu/drm/shmobile/shmob_drm_plane.h     |   22 +
 drivers/gpu/drm/shmobile/shmob_drm_regs.h      |  311 ++++++++++
 drivers/video/sh_mobile_lcdcfb.c               |   47 +-
 drivers/video/sh_mobile_lcdcfb.h               |    2 +-
 drivers/video/sh_mobile_meram.c                |  235 ++++----
 include/drm/drm_fb_cma_helper.h                |   27 +
 include/drm/drm_fourcc.h                       |    2 +
 include/drm/drm_gem_cma_helper.h               |   44 ++
 include/drm/shmob_drm.h                        |   99 +++
 include/video/sh_mobile_meram.h                |   71 ++-
 26 files changed, 3216 insertions(+), 152 deletions(-)
 create mode 100644 drivers/gpu/drm/drm_fb_cma_helper.c
 create mode 100644 drivers/gpu/drm/drm_gem_cma_helper.c
 create mode 100644 drivers/gpu/drm/shmobile/Kconfig
 create mode 100644 drivers/gpu/drm/shmobile/Makefile
 create mode 100644 drivers/gpu/drm/shmobile/shmob_drm_backlight.c
 create mode 100644 drivers/gpu/drm/shmobile/shmob_drm_backlight.h
 create mode 100644 drivers/gpu/drm/shmobile/shmob_drm_crtc.c
 create mode 100644 drivers/gpu/drm/shmobile/shmob_drm_crtc.h
 create mode 100644 drivers/gpu/drm/shmobile/shmob_drm_drv.c
 create mode 100644 drivers/gpu/drm/shmobile/shmob_drm_drv.h
 create mode 100644 drivers/gpu/drm/shmobile/shmob_drm_kms.c
 create mode 100644 drivers/gpu/drm/shmobile/shmob_drm_kms.h
 create mode 100644 drivers/gpu/drm/shmobile/shmob_drm_plane.c
 create mode 100644 drivers/gpu/drm/shmobile/shmob_drm_plane.h
 create mode 100644 drivers/gpu/drm/shmobile/shmob_drm_regs.h
 create mode 100644 include/drm/drm_fb_cma_helper.h
 create mode 100644 include/drm/drm_gem_cma_helper.h
 create mode 100644 include/drm/shmob_drm.h

-- 
Regards,

Laurent Pinchart



More information about the dri-devel mailing list