[Intel-gfx] [PATCH 1/2] drm/i915: Call encoder hotplug for init and resume cases

2015-12-09 Thread Sonika Jindal
hot_plug Signed-off-by: Sonika Jindal --- drivers/gpu/drm/i915/i915_drv.h | 1 + drivers/gpu/drm/i915/intel_hotplug.c | 26 ++ drivers/gpu/drm/i915/intel_sdvo.c| 1 - 3 files changed, 27 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_drv.h b

[Intel-gfx] [PATCH 2/2] drm/i915: Add hot_plug hook for hdmi encoder

2015-12-09 Thread Sonika Jindal
gned-off-by: Shashank Sharma Signed-off-by: Sonika Jindal --- drivers/gpu/drm/i915/intel_hdmi.c | 58 ++- 1 file changed, 45 insertions(+), 13 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_hdmi.c b/drivers/gpu/drm/i915/intel_hdmi.c index bdd462e..16dd2a7

[Intel-gfx] [PATCH] drm/i915: Add hot_plug hook for hdmi encoder

2015-12-09 Thread Sonika Jindal
atch(Daniel) v6: Rebased and maintaining authorship. Signed-off-by: Shashank Sharma Signed-off-by: Sonika Jindal --- drivers/gpu/drm/i915/intel_hdmi.c | 58 ++- 1 file changed, 45 insertions(+), 13 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_hdmi.c b/drive

[Intel-gfx] [PATCH 1/2] drm/i915: Call encoder hotplug for init and resume cases

2015-12-16 Thread Sonika Jindal
run a detect cycle. Cc: Shashank Sharma Signed-off-by: Sonika Jindal --- drivers/gpu/drm/i915/i915_drv.h | 1 + drivers/gpu/drm/i915/intel_hotplug.c | 26 ++ drivers/gpu/drm/i915/intel_sdvo.c| 1 - 3 files changed, 27 insertions(+), 1 deletion(-) diff --gi

[Intel-gfx] [PATCH 2/2] drm/i915: Add hot_plug hook for hdmi encoder

2015-12-16 Thread Sonika Jindal
atch(Daniel) v6: Rebased and maintaining authorship. Signed-off-by: Shashank Sharma Signed-off-by: Sonika Jindal --- drivers/gpu/drm/i915/intel_hdmi.c | 58 ++- 1 file changed, 45 insertions(+), 13 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_hdmi.c b/drive

[Intel-gfx] [PATCH] drm/i915/bxt: Update Uninit sequence for DDI PHYs

2015-10-27 Thread Sonika Jindal
Un-initialize DDI PHYs as per the bspec update Cc: Sivakumar Thulasimani Signed-off-by: Sonika Jindal --- drivers/gpu/drm/i915/intel_ddi.c |7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/drivers/gpu/drm/i915/intel_ddi.c index

[Intel-gfx] [PATCH] drm/i915/skl: Add support for edp 1.4 intermediate frequencies

2015-03-04 Thread Sonika Jindal
: Remove redundant setting of DP_LINK_BW_SET to 0 (Ville) Reviewed-by: Ville Syrjälä Signed-off-by: Sonika Jindal --- drivers/gpu/drm/i915/intel_ddi.c |9 drivers/gpu/drm/i915/intel_dp.c | 109 +++--- drivers/gpu/drm/i915/intel_drv.h |1 + 3 files

[Intel-gfx] [PATCH] drm/i915/skl: Read sink supported rates from edp panel

2015-03-04 Thread Sonika Jindal
e) v6: Correctly using DP_MAX_SUPPORTED_RATES and removing DP_SUPPORTED_LINK_RATES (Ville) v7: Incorrectly removed DP_SUPPORTED_LINK_RATES in v6, re-adding it v8: Checking return value of intel_dp_dpcd_read_wake() (Ville) Reviewed-by: Ville Syrjälä Signed-off-by: Sonika Jindal --- drivers/gpu/drm

[Intel-gfx] [PATCH 3/3] drm/i915/skl: Support for 90/270 rotation

2015-03-05 Thread Sonika Jindal
src_* params instead of crtc_* for offset and size programming (Ville) v5: Rebased on -nightly and Tvrtko's series for gtt remapping. Signed-off-by: Sonika Jindal --- Please note that this is on top of Tvrtko's patches for rotated gtt remapping titled: [PATCH v2 0/8] Skylake 90/2

[Intel-gfx] [PATCH 2/3] drm/i915: Using plane state parameters instead of pipe's

2015-03-05 Thread Sonika Jindal
For primary plane, we can use the plane's state for src width and height like sprite plane. Signed-off-by: Sonika Jindal --- drivers/gpu/drm/i915/intel_display.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_display.c b/driver

[Intel-gfx] [PATCH 1/3] drm/i915/skl: Allow universal planes to position

2015-03-05 Thread Sonika Jindal
Signed-off-by: Sonika Jindal --- drivers/gpu/drm/i915/intel_display.c |7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 437a679..e1b0c4d 100644 --- a/drivers/gpu/drm/i915/intel_display.c

[Intel-gfx] [PATCH] kms_rotation_crc: Adding test for 90/270 rotation

2015-03-08 Thread Sonika Jindal
Adding 90/270 rotation testcase for primary and sprite planes. Signed-off-by: Sonika Jindal --- tests/kms_rotation_crc.c | 153 ++ 1 file changed, 128 insertions(+), 25 deletions(-) diff --git a/tests/kms_rotation_crc.c b/tests/kms_rotation_crc.c

[Intel-gfx] [PATCH] drm/i915/skl: Enabling PSR2 SU with frame sync

2015-03-19 Thread Sonika Jindal
We make use of HW tracking for Selective update region and enable frame sync on sink. We use hardware's hardcoded data values for frame sync and GTC. Signed-off-by: Sonika Jindal --- drivers/gpu/drm/i915/i915_reg.h | 14 ++ drivers/gpu/drm/i915/intel_dp.c |

[Intel-gfx] [PATCH] drm/i915/skl: Enabling PSR2 SU with frame sync

2015-03-26 Thread Sonika Jindal
frame sync, rename the TP2 TIME macro for 2500us (Rodrigo, Siva) Signed-off-by: Sonika Jindal --- drivers/gpu/drm/i915/i915_drv.h |2 ++ drivers/gpu/drm/i915/i915_reg.h | 14 ++ drivers/gpu/drm/i915/intel_dp.c | 15 +++ drivers/gpu/drm/i915/intel_psr.c |

[Intel-gfx] [PATCH 1/2] drm/i915/skl: Allow universal planes to position

2015-03-30 Thread Sonika Jindal
Signed-off-by: Sonika Jindal --- drivers/gpu/drm/i915/intel_display.c |7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index ceb2e61..f0bbc22 100644 --- a/drivers/gpu/drm/i915/intel_display.c

[Intel-gfx] [PATCH 2/2] drm/i915/skl: Support for 90/270 rotation

2015-03-30 Thread Sonika Jindal
src_* params instead of crtc_* for offset and size programming (Ville) v5: Rebased on -nightly and Tvrtko's series for gtt remapping. v6: Rebased on -nightly (Tvrtko's series merged) Signed-off-by: Sonika Jindal --- drivers/gpu/drm/i915/i915_reg.h |2 + drivers/gp

[Intel-gfx] [PATCH] kms_rotation_crc: Adding test for 90/270 rotation

2015-03-30 Thread Sonika Jindal
Adding 90/270 rotation testcase for primary and sprite planes. v2: Added position test for sprite. Checking for gen > 9 for 90/270. Some cleanup and rebase. Signed-off-by: Sonika Jindal --- tests/kms_rotation_crc.c | 175 +- 1 file changed,

[Intel-gfx] [PATCH] drm/i915/skl: Enabling PSR2 SU with frame sync

2015-03-30 Thread Sonika Jindal
frame sync, rename the TP2 TIME macro for 2500us (Rodrigo, Siva) v3: Moving the resolution restriction to intel_psr_enable so that we check it only once(Durga) Cc: Durgadoss R Cc: Rodrigo Vivi Signed-off-by: Sonika Jindal --- drivers/gpu/drm/i915/i915_drv.h |2 ++ drivers/gpu/drm/i915/i915_

[Intel-gfx] [PATCH] drm/i915/skl: Enabling PSR2 SU with frame sync

2015-04-01 Thread Sonika Jindal
frame sync, rename the TP2 TIME macro for 2500us (Rodrigo, Siva) v3: Moving the resolution restriction to intel_psr_enable so that we check it only once(Durga) Cc: Durgadoss R Cc: Rodrigo Vivi Signed-off-by: Sonika Jindal Reviewed-by: Durgadoss R --- Hi Daniel, It applies cleanly for me. St

[Intel-gfx] [PATCH] drm/i915/skl: Support for 90/270 rotation

2015-04-07 Thread Sonika Jindal
src_* params instead of crtc_* for offset and size programming (Ville) v5: Rebased on -nightly and Tvrtko's series for gtt remapping. v6: Rebased on -nightly (Tvrtko's series merged) v7: Moving pixel_format check to intel_atomic_plane_check (Matt) Signed-off-by: Sonika Jindal --- drive

[Intel-gfx] [PATCH 1/2] lib/igt_kms: Let set_property return the result

2015-04-07 Thread Sonika Jindal
Return the return value of the set_property ioctl and add check for the failure. Signed-off-by: Sonika Jindal --- lib/igt_kms.c |7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/igt_kms.c b/lib/igt_kms.c index 6cb1f08..14abae8 100644 --- a/lib/igt_kms.c +++ b/lib

[Intel-gfx] [PATCH 2/2] kms_rotation_crc: Adding test for 90/270 rotation

2015-04-07 Thread Sonika Jindal
Adding 90/270 rotation testcase for primary and sprite planes. v2: Added position test for sprite. Checking for gen > 9 for 90/270. Some cleanup and rebase. v3: Added test for unsupported tiling and unsupported pixel format for 90/270 Signed-off-by: Sonika Jindal --- tests/kms_rotation_cr

[Intel-gfx] [PATCH] drm/i915/skl: Add back HDMI translation table

2015-04-14 Thread Sonika Jindal
The HDMI translation table is added back to bspec, so adding it, and defaulting the 800mV+0dB entry. Cc: Damien Lespiau Signed-off-by: Sonika Jindal --- drivers/gpu/drm/i915/intel_ddi.c | 22 -- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/drivers/gpu

[Intel-gfx] [PATCH] drm/i915/skl: Correctly updating sprite wm parameter

2014-12-08 Thread sonika . jindal
From: Sonika Jindal The pipe wm parameters is not correctly updated with sprite parameters because it copies them for each plane from plane_list to the sprite offset in pipe wm parameters. Since plane_list also contains primary and cursor planes, we end up updating wrong params for sprites

[Intel-gfx] [PATCH] drm/i915/skl: Correcting the flushing of pipe

2014-12-11 Thread sonika . jindal
From: Sonika Jindal We were incorreectly bypassing the flush everytime which led to fifo underrun when more than one plane is enabled. Signed-off-by: Sonika Jindal --- drivers/gpu/drm/i915/intel_pm.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915

[Intel-gfx] [PATCH 00/11] Support for 180 degree HW rotation

2014-06-18 Thread sonika . jindal
From: Sonika Jindal Enables 180 degree rotation for sprite and primary planes. Updated the primary plane rotation support as per the new universal plane design. Most of these patches were already reviewed in intel-gfx in February 2014 thats why there is version history in few of them. Testcase

[Intel-gfx] [PATCH 01/11] drm: Move DRM_ROTATE bits out of omapdrm into drm_crtc.h

2014-06-18 Thread sonika . jindal
From: Ville Syrjälä The rotation property stuff should be standardized among all drivers. Move the bits to drm_crtc.h from omap_drv.h. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/omapdrm/omap_drv.h |7 --- include/drm/drm_crtc.h |8 2 files changed, 8 inse

[Intel-gfx] [PATCH 04/11] drm/omap: Switch omapdrm over to drm_mode_create_rotation_property()

2014-06-18 Thread sonika . jindal
From: Ville Syrjälä Use the new drm_mode_create_rotation_property() in omapdrm. Cc: David Airlie Cc: Rob Clark Cc: Sagar Kamble Cc: "Ville Syrjälä" Cc: Tomi Valkeinen Cc: Greg Kroah-Hartman Cc: dri-devel at lists.freedesktop.org Cc: linux-kernel at vger.kernel.org Signed-off-by: Ville Syrj

[Intel-gfx] [PATCH 02/11] drm: Add support_bits parameter to drm_property_create_bitmask()

2014-06-18 Thread sonika . jindal
From: Ville Syrjälä Make drm_property_create_bitmask() a bit more generic by allowing the caller to specify which bits are in fact supported. This allows multiple callers to use the same enum list, but still create different versions of the same property with different list of supported bits. v2

[Intel-gfx] [PATCH 06/11] drm: Add drm_rotation_simplify()

2014-06-18 Thread sonika . jindal
From: Ville Syrjälä drm_rotation_simplify() can be used to eliminate unsupported rotation flags. It will check if any unsupported flags are present, and if so it will modify the rotation to an alternate form by adding 180 degrees to rotation angle, and flipping the reflect x and y bits. The hope

[Intel-gfx] [PATCH 10/11] drm/i915: Add 180 degree primary plane rotation support

2014-06-18 Thread sonika . jindal
From: Sonika Jindal Primary planes support 180 degree rotation. Expose the feature through rotation drm property. v2: Calculating linear/tiled offsets based on pipe source width and height. Added 180 degree rotation support in ironlake_update_plane. v3: Checking if CRTC is active before

[Intel-gfx] [PATCH 09/11] drm/i915: Add rotation property for sprites

2014-06-18 Thread sonika . jindal
From: Ville Syrjälä Sprite planes support 180 degree rotation. The lower layers are now in place, so hook in the standard rotation property to expose the feature to the users. Cc: Daniel Vetter Cc: Jani Nikula Cc: David Airlie Cc: dri-devel at lists.freedesktop.org Cc: linux-kernel at vger.ke

[Intel-gfx] [PATCH 03/11] drm: Add drm_mode_create_rotation_property()

2014-06-18 Thread sonika . jindal
From: Ville Syrjälä Add a function to create a standards compliant rotation property. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/drm_crtc.c | 18 ++ include/drm/drm_crtc.h |2 ++ 2 files changed, 20 insertions(+) diff --git a/drivers/gpu/drm/drm_crtc.c b/driver

[Intel-gfx] [PATCH 07/11] drm/i915: Add 180 degree sprite rotation support

2014-06-18 Thread sonika . jindal
From: Ville Syrjälä The sprite planes (in fact all display planes starting from gen4) support 180 degree rotation. Add the relevant low level bits to the sprite code to make use of that feature. The upper layers are not yet plugged in. v2: HSW handles the rotated buffer offset automagically v3

[Intel-gfx] [PATCH 05/11] drm: Add drm_rect rotation functions

2014-06-18 Thread sonika . jindal
From: Ville Syrjälä Add some helper functions to move drm_rects between different rotated coordinate spaces. One function does the forward transform and another does the inverse. Cc: David Airlie Cc: dri-devel at lists.freedesktop.org Cc: linux-kernel at vger.kernel.org Signed-off-by: Ville Syr

[Intel-gfx] [PATCH 08/11] drm/i915: Make intel_plane_restore() return an error

2014-06-18 Thread sonika . jindal
From: Ville Syrjälä Propagate the error from intel_update_plane() up through intel_plane_restore() to the caller. This will be used for rollback purposes when setting properties fails. Cc: Daniel Vetter Cc: Jani Nikula Cc: David Airlie Cc: dri-devel at lists.freedesktop.org Cc: linux-kernel a

[Intel-gfx] [PATCH 11/11] tests/kms_rotation_crc: IGT for 180 degree HW rotation

2014-06-18 Thread sonika . jindal
From: Sonika Jindal Testcase for 180 degree HW rotation Cc: sagar.a.kam...@intel.com Signed-off-by: Sonika Jindal --- tests/Makefile.sources |1 + tests/kms_rotation_crc.c | 427 ++ 2 files changed, 428 insertions(+) create mode 100644

[Intel-gfx] [PATCH 02/10] drm: Add support_bits parameter to drm_property_create_bitmask()

2014-06-18 Thread sonika . jindal
From: Ville Syrjälä Make drm_property_create_bitmask() a bit more generic by allowing the caller to specify which bits are in fact supported. This allows multiple callers to use the same enum list, but still create different versions of the same property with different list of supported bits. v2

[Intel-gfx] [PATCH 10/10] drm/i915: Add 180 degree primary plane rotation support

2014-06-18 Thread sonika . jindal
From: Sonika Jindal Primary planes support 180 degree rotation. Expose the feature through rotation drm property. v2: Calculating linear/tiled offsets based on pipe source width and height. Added 180 degree rotation support in ironlake_update_plane. v3: Checking if CRTC is active before

[Intel-gfx] [PATCH 07/10] drm/i915: Add 180 degree sprite rotation support

2014-06-18 Thread sonika . jindal
From: Ville Syrjälä The sprite planes (in fact all display planes starting from gen4) support 180 degree rotation. Add the relevant low level bits to the sprite code to make use of that feature. The upper layers are not yet plugged in. v2: HSW handles the rotated buffer offset automagically v3

[Intel-gfx] [PATCH 00/10] Support for 180 degree HW rotation

2014-06-18 Thread sonika . jindal
From: Sonika Jindal Enables 180 degree rotation for sprite and primary planes. Updated the primary plane rotation support as per the new universal plane design. Most of these patches were already reviewed in intel-gfx in February 2014 thats why there is version history in few of them. Testcase

[Intel-gfx] [PATCH 06/10] drm: Add drm_rotation_simplify()

2014-06-18 Thread sonika . jindal
From: Ville Syrjälä drm_rotation_simplify() can be used to eliminate unsupported rotation flags. It will check if any unsupported flags are present, and if so it will modify the rotation to an alternate form by adding 180 degrees to rotation angle, and flipping the reflect x and y bits. The hope

[Intel-gfx] [PATCH 03/10] drm: Add drm_mode_create_rotation_property()

2014-06-18 Thread sonika . jindal
From: Ville Syrjälä Add a function to create a standards compliant rotation property. Signed-off-by: Ville Syrjälä Reviewed-by: Imre Deak --- drivers/gpu/drm/drm_crtc.c | 18 ++ include/drm/drm_crtc.h |2 ++ 2 files changed, 20 insertions(+) diff --git a/drivers/gpu

[Intel-gfx] [PATCH 09/10] drm/i915: Add rotation property for sprites

2014-06-18 Thread sonika . jindal
From: Ville Syrjälä Sprite planes support 180 degree rotation. The lower layers are now in place, so hook in the standard rotation property to expose the feature to the users. Cc: Daniel Vetter Cc: Jani Nikula Cc: dri-devel at lists.freedesktop.org Cc: linux-kernel at vger.kernel.org Signed-of

[Intel-gfx] [PATCH 05/10] drm: Add drm_rect rotation functions

2014-06-18 Thread sonika . jindal
From: Ville Syrjälä Add some helper functions to move drm_rects between different rotated coordinate spaces. One function does the forward transform and another does the inverse. Cc: dri-devel at lists.freedesktop.org Cc: linux-kernel at vger.kernel.org Signed-off-by: Ville Syrjälä Reviewed-by:

[Intel-gfx] [PATCH 08/10] drm/i915: Make intel_plane_restore() return an error

2014-06-18 Thread sonika . jindal
From: Ville Syrjälä Propagate the error from intel_update_plane() up through intel_plane_restore() to the caller. This will be used for rollback purposes when setting properties fails. Cc: Daniel Vetter Cc: Jani Nikula Cc: dri-devel at lists.freedesktop.org Cc: linux-kernel at vger.kernel.org

[Intel-gfx] [PATCH 04/10] drm/omap: Switch omapdrm over to drm_mode_create_rotation_property()

2014-06-18 Thread sonika . jindal
From: Ville Syrjälä Use the new drm_mode_create_rotation_property() in omapdrm. Cc: Rob Clark Cc: Sagar Kamble Cc: "Ville Syrjälä" Cc: Tomi Valkeinen Cc: dri-devel at lists.freedesktop.org Cc: linux-kernel at vger.kernel.org Signed-off-by: Ville Syrjälä Reviewed-by: Rob Clark Reviewed-by:

[Intel-gfx] [PATCH 01/10] drm: Move DRM_ROTATE bits out of omapdrm into drm_crtc.h

2014-06-18 Thread sonika . jindal
From: Ville Syrjälä The rotation property stuff should be standardized among all drivers. Move the bits to drm_crtc.h from omap_drv.h. Signed-off-by: Ville Syrjälä Reviewed-by: Imre Deak --- drivers/gpu/drm/omapdrm/omap_drv.h |7 --- include/drm/drm_crtc.h |8

[Intel-gfx] [PATCH 1/1] Documentation: drm: describing rotation property for i915

2014-06-18 Thread sonika . jindal
From: Sagar Kamble Signed-off-by: Sagar Kamble Cc: Daniel Vetter Cc: "Ville Syrjälä" Cc: linux-...@vger.kernel.org (open list:DOCUMENTATION) Cc: linux-ker...@vger.kernel.org (open list) --- Documentation/DocBook/drm.tmpl | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) dif

[Intel-gfx] [PATCH] drm: Resetting rotation property

2014-06-19 Thread sonika . jindal
From: Sonika Jindal Reset rotation to 0 wherever applicable Cc: dri-de...@lists.freedesktop.org Signed-off-by: Sonika Jindal --- drivers/gpu/drm/drm_fb_helper.c |8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_fb_helper.c b/drivers/gpu/drm

[Intel-gfx] [PATCH 1/3] drm/i915: Add rotation property for sprites

2014-06-22 Thread sonika . jindal
Signed-off-by: Ville Syrjälä Signed-off-by: Sonika Jindal Reviewed-by: Imre Deak --- drivers/gpu/drm/i915/intel_sprite.c | 42 ++- include/drm/drm_crtc.h |1 + 2 files changed, 42 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915

[Intel-gfx] [PATCH 2/3] drm/i915: Add 180 degree primary plane rotation support

2014-06-22 Thread sonika . jindal
From: Sonika Jindal Primary planes support 180 degree rotation. Expose the feature through rotation drm property. v2: Calculating linear/tiled offsets based on pipe source width and height. Added 180 degree rotation support in ironlake_update_plane. v3: Checking if CRTC is active before

[Intel-gfx] [PATCH 0/3] Moving rotation_property to drm_plane

2014-06-22 Thread sonika . jindal
From: Sonika Jindal As suggested by Daniel and Damien, moved rotation_property to drm_plane. Also moved resetting of rotation_property to restore_fbdev_mode which will be used in switching VT use case along with the driver lastclose path. Sonika Jindal (2): drm/i915: Add 180 degree primary

[Intel-gfx] [PATCH 3/3] drm: Resetting rotation property

2014-06-22 Thread sonika . jindal
From: Sonika Jindal Reset rotation property to 0 wherever applicable v2: Also calling set_property of the plane to set the rotation in the plane structure. Removed few unused variables. Cc: damien.lesp...@intel.com Signed-off-by: Sonika Jindal --- drivers/gpu/drm/drm_fb_helper.c | 14

[Intel-gfx] [PATCH 0/3] Moving rotation_property to drm_plane

2014-06-24 Thread sonika . jindal
From: Sonika Jindal As suggested by Daniel and Damien, moved rotation_property to drm_plane. Also moved resetting of rotation_property to restore_fbdev_mode which will be used in switching VT use case along with the driver lastclose path. v2: Removing unused dev_priv from second patch instead

[Intel-gfx] [PATCH 1/3] drm/i915: Add rotation property for sprites

2014-06-24 Thread sonika . jindal
Signed-off-by: Ville Syrjälä Signed-off-by: Sonika Jindal Reviewed-by: Imre Deak --- drivers/gpu/drm/i915/intel_sprite.c | 40 ++- include/drm/drm_crtc.h |1 + 2 files changed, 40 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915

[Intel-gfx] [PATCH 2/3] drm/i915: Add 180 degree primary plane rotation support

2014-06-24 Thread sonika . jindal
From: Sonika Jindal Primary planes support 180 degree rotation. Expose the feature through rotation drm property. v2: Calculating linear/tiled offsets based on pipe source width and height. Added 180 degree rotation support in ironlake_update_plane. v3: Checking if CRTC is active before

[Intel-gfx] [PATCH 3/3] drm: Resetting rotation property

2014-06-24 Thread sonika . jindal
From: Sonika Jindal Reset rotation property to 0 wherever applicable v2: Also calling set_property of the plane to set the rotation in the plane structure. Cc: damien.lesp...@intel.com Signed-off-by: Sonika Jindal --- drivers/gpu/drm/drm_fb_helper.c | 16 +++- 1 file changed

[Intel-gfx] [PATCH 2/2] Documentation: drm: describing rotation property for i915

2014-06-24 Thread sonika . jindal
From: Sagar Kamble Cc: damien.lesp...@intel.com Cc: daniel.vet...@ffwll.ch Cc: ville.syrj...@linux.intel.com Cc: linux-...@vger.kernel.org Cc: linux-ker...@vger.kernel.org Signed-off-by: Sagar Kamble --- Documentation/DocBook/drm.tmpl | 10 +- 1 file changed, 9 insertions(+), 1 deletion

[Intel-gfx] [PATCH 1/2] Documentation: drm: Removing placeholders for generic drm properties description

2014-06-24 Thread sonika . jindal
From: Sagar Kamble These property descriptions were kept as placeholder. Removing them for simplicity. Cc: damien.lesp...@intel.com Cc: daniel.vet...@ffwll.ch Cc: ville.syrj...@linux.intel.com Cc: linux-...@vger.kernel.org Cc: linux-ker...@vger.kernel.org Signed-off-by: Sagar Kamble --- Docum

[Intel-gfx] [PATCH] drm/i915: Add 180 degree primary plane rotation support

2014-06-29 Thread sonika . jindal
From: Sonika Jindal Primary planes support 180 degree rotation. Expose the feature through rotation drm property. v2: Calculating linear/tiled offsets based on pipe source width and height. Added 180 degree rotation support in ironlake_update_plane. v3: Checking if CRTC is active before

[Intel-gfx] [v2 01/11] drm: Move DRM_ROTATE bits out of omapdrm into drm_crtc.h

2014-07-04 Thread sonika . jindal
From: Ville Syrjälä The rotation property stuff should be standardized among all drivers. Move the bits to drm_crtc.h from omap_drv.h. Signed-off-by: Ville Syrjälä Reviewed-by: Imre Deak --- drivers/gpu/drm/omapdrm/omap_drv.h |7 --- include/drm/drm_crtc.h |8

[Intel-gfx] [v2 00/11] Support for 180 degree HW rotation

2014-07-04 Thread sonika . jindal
From: Sonika Jindal Enables 180 degree rotation for sprite and primary planes. Updated the primary plane rotation support as per the new universal plane design. Most of these patches were already reviewed in intel-gfx in February 2014 thats why there is version history in few of them. v2

[Intel-gfx] [v2 03/11] drm: Add drm_mode_create_rotation_property()

2014-07-04 Thread sonika . jindal
From: Ville Syrjälä Add a function to create a standards compliant rotation property. Signed-off-by: Ville Syrjälä Reviewed-by: Imre Deak --- drivers/gpu/drm/drm_crtc.c | 18 ++ include/drm/drm_crtc.h |2 ++ 2 files changed, 20 insertions(+) diff --git a/drivers/gpu

[Intel-gfx] [v2 02/11] drm: Add support_bits parameter to drm_property_create_bitmask()

2014-07-04 Thread sonika . jindal
From: Ville Syrjälä Make drm_property_create_bitmask() a bit more generic by allowing the caller to specify which bits are in fact supported. This allows multiple callers to use the same enum list, but still create different versions of the same property with different list of supported bits. v2

[Intel-gfx] [v2 04/11] drm/omap: Switch omapdrm over to drm_mode_create_rotation_property()

2014-07-04 Thread sonika . jindal
From: Ville Syrjälä Use the new drm_mode_create_rotation_property() in omapdrm. Cc: dri-de...@lists.freedesktop.org Signed-off-by: Ville Syrjälä Reviewed-by: Rob Clark Reviewed-by: Imre Deak Reviewed-by: Sagar Kamble --- drivers/gpu/drm/omapdrm/omap_plane.c | 20 +++- 1 fi

[Intel-gfx] [v2 06/11] drm: Add drm_rotation_simplify()

2014-07-04 Thread sonika . jindal
From: Ville Syrjälä drm_rotation_simplify() can be used to eliminate unsupported rotation flags. It will check if any unsupported flags are present, and if so it will modify the rotation to an alternate form by adding 180 degrees to rotation angle, and flipping the reflect x and y bits. The hope

[Intel-gfx] [v2 05/11] drm: Add drm_rect rotation functions

2014-07-04 Thread sonika . jindal
From: Ville Syrjälä Add some helper functions to move drm_rects between different rotated coordinate spaces. One function does the forward transform and another does the inverse. Cc: dri-de...@lists.freedesktop.org Signed-off-by: Ville Syrjälä Reviewed-by: Imre Deak --- drivers/gpu/drm/drm_re

[Intel-gfx] [v2 09/11] drm/i915: Add rotation property for sprites

2014-07-04 Thread sonika . jindal
-by: Sonika Jindal Reviewed-by: Imre Deak --- drivers/gpu/drm/i915/intel_sprite.c | 40 ++- include/drm/drm_crtc.h |1 + 2 files changed, 40 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_sprite.c b/drivers/gpu/drm/i915

[Intel-gfx] [v2 10/11] drm/i915: Add 180 degree primary plane rotation support

2014-07-04 Thread sonika . jindal
From: Sonika Jindal Primary planes support 180 degree rotation. Expose the feature through rotation drm property. v2: Calculating linear/tiled offsets based on pipe source width and height. Added 180 degree rotation support in ironlake_update_plane. v3: Checking if CRTC is active before

[Intel-gfx] [v2 11/11] drm: Resetting rotation property

2014-07-04 Thread sonika . jindal
From: Sonika Jindal Reset rotation property to 0 wherever applicable v2: Also calling set_property of the plane to set the rotation in the plane structure. Cc: damien.lesp...@intel.com Signed-off-by: Sonika Jindal --- drivers/gpu/drm/drm_fb_helper.c | 16 +++- 1 file changed

[Intel-gfx] [v2 08/11] drm/i915: Make intel_plane_restore() return an error

2014-07-04 Thread sonika . jindal
From: Ville Syrjälä Propagate the error from intel_update_plane() up through intel_plane_restore() to the caller. This will be used for rollback purposes when setting properties fails. Cc: dri-de...@lists.freedesktop.org Signed-off-by: Ville Syrjälä Reviewed-by: Imre Deak --- drivers/gpu/drm/

[Intel-gfx] [v2 07/11] drm/i915: Add 180 degree sprite rotation support

2014-07-04 Thread sonika . jindal
From: Ville Syrjälä The sprite planes (in fact all display planes starting from gen4) support 180 degree rotation. Add the relevant low level bits to the sprite code to make use of that feature. The upper layers are not yet plugged in. v2: HSW handles the rotated buffer offset automagically v3

[Intel-gfx] [PATCH] drm/i915: Add 180 degree primary plane rotation support

2014-07-06 Thread sonika . jindal
From: Sonika Jindal Primary planes support 180 degree rotation. Expose the feature through rotation drm property. v2: Calculating linear/tiled offsets based on pipe source width and height. Added 180 degree rotation support in ironlake_update_plane. v3: Checking if CRTC is active before

[Intel-gfx] [v3 01/13] drm: Move DRM_ROTATE bits out of omapdrm into drm_crtc.h

2014-07-07 Thread sonika . jindal
From: Ville Syrjälä The rotation property stuff should be standardized among all drivers. Move the bits to drm_crtc.h from omap_drv.h. Signed-off-by: Ville Syrjälä Reviewed-by: Imre Deak --- drivers/gpu/drm/omapdrm/omap_drv.h |7 --- include/drm/drm_crtc.h |8

[Intel-gfx] [v3 03/13] drm: Add drm_mode_create_rotation_property()

2014-07-07 Thread sonika . jindal
From: Ville Syrjälä Add a function to create a standards compliant rotation property. Signed-off-by: Ville Syrjälä Reviewed-by: Imre Deak --- drivers/gpu/drm/drm_crtc.c | 18 ++ include/drm/drm_crtc.h |2 ++ 2 files changed, 20 insertions(+) diff --git a/drivers/gpu

[Intel-gfx] [v3 02/13] drm: Add support_bits parameter to drm_property_create_bitmask()

2014-07-07 Thread sonika . jindal
From: Ville Syrjälä Make drm_property_create_bitmask() a bit more generic by allowing the caller to specify which bits are in fact supported. This allows multiple callers to use the same enum list, but still create different versions of the same property with different list of supported bits. v2

[Intel-gfx] [v3 00/13] Support for 180 degree HW rotation

2014-07-07 Thread sonika . jindal
From: Sonika Jindal Enables 180 degree rotation for sprite and primary planes. Updated the primary plane rotation support as per the new universal plane design. Most of these patches were already reviewed in intel-gfx in February 2014 thats why there is version history in few of them. v2: Moved

[Intel-gfx] [v3 04/13] drm/omap: Switch omapdrm over to drm_mode_create_rotation_property()

2014-07-07 Thread sonika . jindal
From: Ville Syrjälä Use the new drm_mode_create_rotation_property() in omapdrm. Cc: dri-de...@lists.freedesktop.org Signed-off-by: Ville Syrjälä Reviewed-by: Rob Clark Reviewed-by: Imre Deak Reviewed-by: Sagar Kamble --- drivers/gpu/drm/omapdrm/omap_plane.c | 20 +++- 1 fi

[Intel-gfx] [v3 08/13] drm/i915: Make intel_plane_restore() return an error

2014-07-07 Thread sonika . jindal
From: Ville Syrjälä Propagate the error from intel_update_plane() up through intel_plane_restore() to the caller. This will be used for rollback purposes when setting properties fails. Cc: dri-de...@lists.freedesktop.org Signed-off-by: Ville Syrjälä Reviewed-by: Imre Deak --- drivers/gpu/drm/

[Intel-gfx] [v3 05/13] drm: Add drm_rect rotation functions

2014-07-07 Thread sonika . jindal
From: Ville Syrjälä Add some helper functions to move drm_rects between different rotated coordinate spaces. One function does the forward transform and another does the inverse. Cc: dri-de...@lists.freedesktop.org Signed-off-by: Ville Syrjälä Reviewed-by: Imre Deak --- drivers/gpu/drm/drm_re

[Intel-gfx] [v3 07/13] drm/i915: Add 180 degree sprite rotation support

2014-07-07 Thread sonika . jindal
From: Ville Syrjälä The sprite planes (in fact all display planes starting from gen4) support 180 degree rotation. Add the relevant low level bits to the sprite code to make use of that feature. The upper layers are not yet plugged in. v2: HSW handles the rotated buffer offset automagically v3

[Intel-gfx] [v3 09/13] drm/i915: Add rotation property for sprites

2014-07-07 Thread sonika . jindal
-by: Sonika Jindal Reviewed-by: Imre Deak --- drivers/gpu/drm/i915/intel_sprite.c | 40 ++- include/drm/drm_crtc.h |1 + 2 files changed, 40 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_sprite.c b/drivers/gpu/drm/i915

[Intel-gfx] [v3 11/13] drm: Resetting rotation property

2014-07-07 Thread sonika . jindal
From: Sonika Jindal Reset rotation property to 0 wherever applicable v2: Also calling set_property of the plane to set the rotation in the plane structure. Cc: damien.lesp...@intel.com Signed-off-by: Sonika Jindal Reviewed-by: Damien Lespiau --- drivers/gpu/drm/drm_fb_helper.c | 16

[Intel-gfx] [v3 10/13] drm/i915: Add 180 degree primary plane rotation support

2014-07-07 Thread sonika . jindal
From: Sonika Jindal Primary planes support 180 degree rotation. Expose the feature through rotation drm property. v2: Calculating linear/tiled offsets based on pipe source width and height. Added 180 degree rotation support in ironlake_update_plane. v3: Checking if CRTC is active before

[Intel-gfx] [v3 06/13] drm: Add drm_rotation_simplify()

2014-07-07 Thread sonika . jindal
From: Ville Syrjälä drm_rotation_simplify() can be used to eliminate unsupported rotation flags. It will check if any unsupported flags are present, and if so it will modify the rotation to an alternate form by adding 180 degrees to rotation angle, and flipping the reflect x and y bits. The hope

[Intel-gfx] [v3 12/13] Documentation: drm: Removing placeholders for generic drm properties description

2014-07-07 Thread sonika . jindal
From: Sagar Kamble These property descriptions were kept as placeholder. Removing them for simplicity. Cc: damien.lesp...@intel.com Cc: daniel.vet...@ffwll.ch Cc: ville.syrj...@linux.intel.com Signed-off-by: Sagar Kamble Reviewed-by: Damien Lespiau --- Documentation/DocBook/drm.tmpl | 64 +

[Intel-gfx] [v3 13/13] Documentation: drm: describing rotation property for i915

2014-07-07 Thread sonika . jindal
From: Sagar Kamble Cc: damien.lesp...@intel.com Cc: daniel.vet...@ffwll.ch Cc: ville.syrj...@linux.intel.com Signed-off-by: Sagar Kamble Reviewed-by: Damien Lespiau --- Documentation/DocBook/drm.tmpl | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Documentation/

[Intel-gfx] [PATCH 0/6] Add 180 degree primary and sprite rotation

2014-07-15 Thread sonika . jindal
From: Sonika Jindal This patchset provides support for 0/180 degree hardare rotaion for primary and sprite planes. The rotation property is now made global and is part of drm_mode_config. It is attached to different planes. Sonika Jindal (3): drm: Add rotation_property to mode_config drm

[Intel-gfx] [PATCH 1/6] drm/i915: Add 180 degree sprite rotation support

2014-07-15 Thread sonika . jindal
From: Ville Syrjälä The sprite planes (in fact all display planes starting from gen4) support 180 degree rotation. Add the relevant low level bits to the sprite code to make use of that feature. The upper layers are not yet plugged in. v2: HSW handles the rotated buffer offset automagically v3

[Intel-gfx] [PATCH 5/6] drm/i915: Add 180 degree primary plane rotation support

2014-07-15 Thread sonika . jindal
From: Sonika Jindal Primary planes support 180 degree rotation. Expose the feature through rotation drm property. v2: Calculating linear/tiled offsets based on pipe source width and height. Added 180 degree rotation support in ironlake_update_plane. v3: Checking if CRTC is active before

[Intel-gfx] [PATCH 2/6] drm/i915: Make intel_plane_restore() return an error

2014-07-15 Thread sonika . jindal
From: Ville Syrjälä Propagate the error from intel_update_plane() up through intel_plane_restore() to the caller. This will be used for rollback purposes when setting properties fails. Cc: dri-de...@lists.freedesktop.org Signed-off-by: Ville Syrjälä Reviewed-by: Imre Deak --- drivers/gpu/drm/

[Intel-gfx] [PATCH 6/6] drm: Resetting rotation property

2014-07-15 Thread sonika . jindal
From: Sonika Jindal Reset rotation property to 0 wherever applicable Signed-off-by: Sonika Jindal --- drivers/gpu/drm/drm_fb_helper.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_fb_helper.c b/drivers/gpu/drm/drm_fb_helper.c index 3144db9

[Intel-gfx] [PATCH 3/6] drm: Add rotation_property to mode_config

2014-07-15 Thread sonika . jindal
From: Sonika Jindal Signed-off-by: Sonika Jindal --- include/drm/drm_crtc.h |1 + 1 file changed, 1 insertion(+) diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index ce6df4a..5545dd3 100644 --- a/include/drm/drm_crtc.h +++ b/include/drm/drm_crtc.h @@ -819,6 +819,7 @@ struct

[Intel-gfx] [PATCH 4/6] drm/i915: Add rotation property for sprites

2014-07-15 Thread sonika . jindal
-off-by: Sonika Jindal --- drivers/gpu/drm/i915/intel_sprite.c | 41 ++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_sprite.c b/drivers/gpu/drm/i915/intel_sprite.c index 9fb7523..94a138d 100644 --- a/drivers/gpu/drm/i915

[Intel-gfx] [PATCH 0/3 v2] Moving creation of rotation_property to drm layer

2014-07-15 Thread sonika . jindal
From: Sonika Jindal Incorporating comments from Daniel regarding movement of creation of rotation_property to drm_mode_create_standard_plane_properties and other minor things. Sonika Jindal (3): drm: Add rotation_property to mode_config and creating it drm/i915: Add 180 degree primary plane

[Intel-gfx] [PATCH 2/4] drm/i915: Add rotation property for sprites

2014-07-15 Thread sonika . jindal
...@lists.freedesktop.org Signed-off-by: Ville Syrjälä Signed-off-by: Sonika Jindal --- drivers/gpu/drm/i915/intel_sprite.c | 35 ++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_sprite.c b/drivers/gpu/drm/i915/intel_sprite.c

[Intel-gfx] [PATCH 3/4] drm/i915: Add 180 degree primary plane rotation support

2014-07-15 Thread sonika . jindal
From: Sonika Jindal Primary planes support 180 degree rotation. Expose the feature through rotation drm property. v2: Calculating linear/tiled offsets based on pipe source width and height. Added 180 degree rotation support in ironlake_update_plane. v3: Checking if CRTC is active before

[Intel-gfx] [PATCH 1/4] drm: Add rotation_property to mode_config and creating it

2014-07-15 Thread sonika . jindal
From: Sonika Jindal Signed-off-by: Sonika Jindal --- drivers/gpu/drm/drm_crtc.c |3 ++- include/drm/drm_crtc.h |1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c index 787631e..49c0747 100644 --- a/drivers/gpu

[Intel-gfx] [PATCH] drm/i915: Add 180 degree primary plane rotation support

2014-07-15 Thread sonika . jindal
From: Sonika Jindal Primary planes support 180 degree rotation. Expose the feature through rotation drm property. v2: Calculating linear/tiled offsets based on pipe source width and height. Added 180 degree rotation support in ironlake_update_plane. v3: Checking if CRTC is active before

  1   2   3   >