[PATCH v3 00/10] drm/fb-helper: Deferred setup support

Thierry Reding thierry.reding at gmail.com
Tue Mar 21 08:13:48 UTC 2017


From: Thierry Reding <treding at nvidia.com>

This set of patches adds support for deferring FB helper setup, which is
useful to obtain a sane configuration even when no outputs are available
during probe.

One example is HDMI, where fbdev will currently fallback to a 1024x786
resolution if no monitor is connected, and will then forever stay that
way. With these patches, the FB helpers will take note that it doesn't
make sense to setup fbdev yet and will defer until a monitor is
connected, at which point the preferred mode will be selected.

Thierry

Changes in v3:
- fix kerneldoc for top-level FB helper lock
- drop some patches that no longer apply
- add Tested-by from John Stultz
- add cleanup patches

Changes in v2:
- now with locking

Thierry Reding (10):
  drm/fb-helper: Cleanup checkpatch warnings
  drm/fb-helper: Reshuffle code for subsequent patches
  drm/fb-helper: Improve code readability
  drm/fb-helper: Push down modeset lock into FB helpers
  drm/fb-helper: Add top-level lock
  drm/fb-helper: Support deferred setup
  drm/exynos: Remove custom FB helper deferred setup
  drm/hisilicon: Remove custom FB helper deferred setup
  drm/atmel-hlcdc: Remove unnecessary NULL check
  drm/rockchip: Remove unnecessary NULL check

 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c    |   3 +-
 drivers/gpu/drm/drm_fb_helper.c                 | 242 ++++++++++++++++++------
 drivers/gpu/drm/exynos/exynos_drm_drv.c         |   6 +-
 drivers/gpu/drm/exynos/exynos_drm_fbdev.c       |   2 -
 drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c |  21 +-
 drivers/gpu/drm/i915/intel_dp_mst.c             |   3 -
 drivers/gpu/drm/radeon/radeon_dp_mst.c          |   7 -
 drivers/gpu/drm/rockchip/rockchip_drm_fb.c      |   4 +-
 include/drm/drm_fb_helper.h                     |  28 +++
 9 files changed, 225 insertions(+), 91 deletions(-)

-- 
2.12.0



More information about the dri-devel mailing list