Message ID | 1394542461-22198-1-git-send-email-akash.goel@intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
From: Akash Goel <akash.goel@intel.com>
Added 2 new drm crtc properties. One property
provides control to vary the PIPESRC value. With this the
size of Pipe's output or Panel fitter input can be varied.
The other property provides control to vary the size of
horizontal & vertical borders. With this the size of the
Panel fitter output or display window could be controlled.
v2: Added new checks and disabled the fb pitch mismatch check
for VLV & HSW
Akash Goel (3):
drm/i915: Initialized 'set_property' fn pointer field of
intel_crtc_funcs structure
drm/i915: New drm crtc property for varying the Pipe Src size
drm/i915: New drm crtc property for varying the size of borders
drivers/gpu/drm/i915/i915_drv.h | 13 +++
drivers/gpu/drm/i915/intel_display.c | 93 +++++++++++++++++++-
drivers/gpu/drm/i915/intel_drv.h | 4 +
drivers/gpu/drm/i915/intel_panel.c | 159 +++++++++++++++++++++++++++++++++++
4 files changed, 267 insertions(+), 2 deletions(-)
Hi Ville, Please could you review this patch & provide a feedback. This is as per your suggestions & our earlier discussions. Regards, Sourab -----Original Message----- From: Goel, Akash Sent: Tuesday, March 11, 2014 6:24 PM To: intel-gfx@lists.freedesktop.org Cc: Purushothaman, Vijay A; G, Pallavi; Goel, Akash Subject: [PATCH v2 0/3] Two new drm crtc properties From: Akash Goel <akash.goel@intel.com> Added 2 new drm crtc properties. One property provides control to vary the PIPESRC value. With this the size of Pipe's output or Panel fitter input can be varied. The other property provides control to vary the size of horizontal & vertical borders. With this the size of the Panel fitter output or display window could be controlled. v2: Added new checks and disabled the fb pitch mismatch check for VLV & HSW Akash Goel (3): drm/i915: Initialized 'set_property' fn pointer field of intel_crtc_funcs structure drm/i915: New drm crtc property for varying the Pipe Src size drm/i915: New drm crtc property for varying the size of borders drivers/gpu/drm/i915/i915_drv.h | 13 +++ drivers/gpu/drm/i915/intel_display.c | 93 +++++++++++++++++++- drivers/gpu/drm/i915/intel_drv.h | 4 + drivers/gpu/drm/i915/intel_panel.c | 159 +++++++++++++++++++++++++++++++++++ 4 files changed, 267 insertions(+), 2 deletions(-) -- 1.8.5.2
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 8494194..5dfe156 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c @@ -10431,6 +10431,14 @@ out_config: return ret; } +static int intel_crtc_set_property(struct drm_crtc *crtc, + struct drm_property *property, uint64_t val) +{ + int ret = -ENOENT; + + return ret; +} + static const struct drm_crtc_funcs intel_crtc_funcs = { .cursor_set = intel_crtc_cursor_set, .cursor_move = intel_crtc_cursor_move, @@ -10438,6 +10446,7 @@ static const struct drm_crtc_funcs intel_crtc_funcs = { .set_config = intel_crtc_set_config, .destroy = intel_crtc_destroy, .page_flip = intel_crtc_page_flip, + .set_property = intel_crtc_set_property, }; static void intel_cpu_pll_init(struct drm_device *dev)