Skip to content

RFC drm/i915: Add support for XRandR Border property

Vivek Kasireddy intel-gfx 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3drm/i915: Rename skl_pfit_enable() to skl_program_crtc_scaler()drivers/gpu/drm/i915/display/intel_display.c drivers/gpu/drm/i915/display/skl_scaler.c drivers/gpu/drm/i915/display/skl_scaler.h+14 -100 replies
2/3drm/i915: Attach the Border property to DP and HDMI connectorsdrivers/gpu/drm/i915/display/intel_atomic.c drivers/gpu/drm/i915/display/intel_connector.c drivers/gpu/drm/i915/display/intel_connector.h +4 more+55 -10 replies
3/3drm/i915: Apply border adjustments and enable scaler on the crtcdrivers/gpu/drm/i915/display/intel_connector.c drivers/gpu/drm/i915/display/intel_connector.h drivers/gpu/drm/i915/display/intel_display.c +4 more+83 -80 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC v1 0/3] drm/i915: Add support for XRandR Border property

Some customers and users have expressed interest in adding borders (or margins) to certain displays in their multi-display configurations. To address this need, this patchset implements the XRandR Border property as defined here:
https://cgit.freedesktop.org/xorg/proto/randrproto/tree/randrproto.txt#n2032

---

Patchset overview:

Patch 1: Create skl_program_crtc_scaler() to program scaler for crtc Patch 2: Create and attach the Border property to DP and HDMI Patch 3: Implement Border property by enabling crtc scalar

This series is tested using following method:
- Run the following xrandr command with different parameters:
xrandr --output HDMI-3 --pos 1920x0 --mode 1280x1024 --fb 3840x2160 --scale 2.11x2.11 --set "Border" 150,0,150,0

The following patch was also added to the modesetting driver to implement the Border property:
https://gitlab.freedesktop.org/Vivek/xserver/-/commit/62abfc438f0d17fe7f88bf2826c9784c2b36443b

Cc Ville Syrjälä <[email protected]>
Cc Matt Roper <[email protected]>
Cc Dongwon Kim <[email protected]>

Vivek Kasireddy (3):
drm/i915: Rename skl_pfit_enable() to skl_program_crtc_scaler() drm/i915: Attach the Border property to DP and HDMI connectors drm/i915: Apply border adjustments and enable scaler on the crtc

 drivers/gpu/drm/i915/display/intel_atomic.c   | 29 ++++++++++-
 .../gpu/drm/i915/display/intel_connector.c    | 49 +++++++++++++++++++
 .../gpu/drm/i915/display/intel_connector.h    |  3 ++
 drivers/gpu/drm/i915/display/intel_display.c  | 25 ++++++++--
 .../gpu/drm/i915/display/intel_display_core.h |  1 +
 .../drm/i915/display/intel_display_types.h    |  6 +++
 drivers/gpu/drm/i915/display/intel_dp.c       | 11 +++++
 drivers/gpu/drm/i915/display/intel_hdmi.c     | 11 +++++
 drivers/gpu/drm/i915/display/skl_scaler.c     | 27 ++++++----
 drivers/gpu/drm/i915/display/skl_scaler.h     |  3 +-
 10 files changed, 149 insertions(+), 16 deletions(-)
Signature · 1 line
2.43.0