[PATCH v3 0/3] drm/connector: Provide generic support for underscan

Boris Brezillon boris.brezillon at bootlin.com
Thu Nov 22 11:23:28 UTC 2018


This is an attempt at providing generic support for underscan connector
props. We already have 3 drivers defining the same underscan, underscan
vborder and underscan hborder properties (amd, radeon and nouveau) and
I am about to add a new one, hence my proposal to put the prop parsing
code in the core and add ->underscan fields to drm_connector_state.

This v3 was based on the "VC4 cursor scaling" changes, and thus address
Ville's concern about cursor plane not being rescaled with the other

Note that I dropped the nouveau conversion. I'll post a new version
once/if the generic stuff are accepted.



Boris Brezillon (3):
  drm/connector: Add generic underscan properties
  drm/vc4: Take underscan setup into account when updating planes
  drm/vc4: Attach underscan props to the HDMI connector

 drivers/gpu/drm/drm_atomic_uapi.c |  12 +++
 drivers/gpu/drm/drm_connector.c   | 127 ++++++++++++++++++++++++++++++
 drivers/gpu/drm/vc4/vc4_crtc.c    |  47 +++++++++++
 drivers/gpu/drm/vc4/vc4_drv.h     |   3 +
 drivers/gpu/drm/vc4/vc4_hdmi.c    |  25 ++++++
 drivers/gpu/drm/vc4/vc4_plane.c   |  50 ++++++++++++
 include/drm/drm_connector.h       |  80 +++++++++++++++++++
 7 files changed, 344 insertions(+)


More information about the amd-gfx mailing list