[RFC] drm: Add utility function to check for edp1.4

2014-10-22 Thread sonika.jin...@intel.com
From: Sonika Jindal <sonika.jin...@intel.com> v2: Reading DP_EDP_REV, only when DISPLAY_CONTROL_CAPABLE field is set (Satheesh) v3: Moving the utility function to drm_dp_helper (Daniel) Signed-off-by: Sonika Jindal --- drivers/gpu/drm/drm_dp_helper.c | 15 +++ inclu

[PATCH 7/7] drm: Remove old defines for vswing and pre-emph values

2014-08-08 Thread sonika.jin...@intel.com
From: Sonika Jindal <sonika.jin...@intel.com> This is the last patch in the series, so remove old defines Signed-off-by: Sonika Jindal --- include/drm/drm_dp_helper.h |8 1 file changed, 8 deletions(-) diff --git a/include/drm/drm_dp_helper.h b/include/drm/drm_dp_helper.h

[PATCH 6/7] drm/tegra: Renaming DP training vswing pre emph defines

2014-08-08 Thread sonika.jin...@intel.com
From: Sonika Jindal <sonika.jin...@intel.com> Rename the defines to have levels instead of values for vswing and pre-emph levels as the values may differ in other scenarios like low vswing of eDP1.4 where the values are different. Done using following cocci patch for each

[PATCH 5/7] drm/radeon: Renaming DP training vswing pre emph defines

2014-08-08 Thread sonika.jin...@intel.com
From: Sonika Jindal <sonika.jin...@intel.com> Rename the defines to have levels instead of values for vswing and pre-emph levels as the values may differ in other scenarios like low vswing of eDP1.4 where the values are different. Done using following cocci patch for each

[PATCH 4/7] drm/gma500: Renaming DP training vswing pre emph defines

2014-08-08 Thread sonika.jin...@intel.com
From: Sonika Jindal <sonika.jin...@intel.com> Rename the defines to have levels instead of values for vswing and pre-emph levels as the values may differ in other scenarios like low vswing of eDP1.4 where the values are different. Done using following cocci patch for each

[PATCH 3/7] drm/exynos: Renaming DP training vswing pre emph defines

2014-08-08 Thread sonika.jin...@intel.com
From: Sonika Jindal <sonika.jin...@intel.com> Rename the defines to have levels instead of values for vswing and pre-emph levels as the values may differ in other scenarios like low vswing of eDP1.4 where the values are different. Done using following cocci patch for each

[PATCH 2/7] drm/i915: Renaming DP training vswing pre emph defines

2014-08-08 Thread sonika.jin...@intel.com
From: Sonika Jindal <sonika.jin...@intel.com> Rename the defines to have levels instead of values for vswing and pre-emph levels as the values may differ in other scenarios like low vswing of eDP1.4 where the values are different. Done using following cocci patch for each

[PATCH 1/7] drm: Renaming DP training vswing pre emph defines

2014-08-08 Thread sonika.jin...@intel.com
From: Sonika Jindal <sonika.jin...@intel.com> Adding new defines, older one will be removed in the last patch in the series. This is to rename the defines to have levels instead of values for vswing and pre-emph levels as the values may differ in other scenarios like low vswing of eDP1.4

[PATCH v2 0/7] Rename DP training vswing/pre-emph defines

2014-08-08 Thread sonika.jin...@intel.com
From: Sonika Jindal <sonika.jin...@intel.com> Rename the defines to have levels instead of values for vswing and pre-emph levels as the values may differ in other scenarios like low vswing of eDP 1.4 where the values are different. Updated in all the drivers as well v2: Keeping the old d

[PATCH] drm: Renaming DP training vswing/pre-emph defines

2014-08-06 Thread sonika.jin...@intel.com
From: Sonika Jindal <sonika.jin...@intel.com> Rename the defines to have levels instead of values for vswing and pre-emph levels as the values may differ in other scenarios like low vswing of eDP 1.4 where the values are different. v2: Keeping old and new defines (Danvet), adding descr

[PATCH 6/6] drm: Resetting rotation property

2014-08-06 Thread sonika.jin...@intel.com
From: Sonika Jindal <sonika.jin...@intel.com> Reset rotation property to 0. v2: Resetting after disabling the plane Cc: dri-devel at lists.freedesktop.org Signed-off-by: Sonika Jindal Reviewed-by: Ville Syrj?l? --- drivers/gpu/drm/drm_fb_helper.c |9 - 1 file chan

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

2014-08-06 Thread sonika.jin...@intel.com
From: Sonika Jindal <sonika.jin...@intel.com> Cc: dri-devel at lists.freedesktop.org Signed-off-by: Sonika Jindal Reviewed-by: Ville Syrj?l? --- 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 f1105d0..6

[PATCH 6/6] drm/tegra: Renaming DP training vswing/pre-emph defines

2014-08-05 Thread sonika.jin...@intel.com
From: Sonika Jindal <sonika.jin...@intel.com> Signed-off-by: Sonika Jindal --- drivers/gpu/drm/tegra/dpaux.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/tegra/dpaux.c b/drivers/gpu/drm/tegra/dpaux.c index 3f132e3..34f3c1d 100644 --- a/drive

[PATCH 5/6] drm/gma500: Renaming DP training vswing/pre-emph defines

2014-08-05 Thread sonika.jin...@intel.com
From: Sonika Jindal <sonika.jin...@intel.com> Signed-off-by: Sonika Jindal --- drivers/gpu/drm/gma500/cdv_intel_dp.c | 20 ++-- drivers/gpu/drm/gma500/intel_bios.c | 16 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/drivers/g

[PATCH 4/6] drm/radeon: Renaming DP training vswing/pre-emph defines

2014-08-05 Thread sonika.jin...@intel.com
From: Sonika Jindal <sonika.jin...@intel.com> Signed-off-by: Sonika Jindal --- drivers/gpu/drm/radeon/atombios_dp.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/atombios_dp.c b/drivers/gpu/drm/radeon/atombios_dp.c index b1e11f8..e

[PATCH 3/6] drm/exynos: Renaming DP training vswing/pre-emph defines

2014-08-05 Thread sonika.jin...@intel.com
From: Sonika Jindal <sonika.jin...@intel.com> Signed-off-by: Sonika Jindal --- drivers/gpu/drm/exynos/exynos_dp_core.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_dp_core.c b/drivers/gpu/drm/exynos/exynos_dp_core.c index 3

[PATCH 2/6] drm/i915: Renaming DP training vswing/pre-emph defines

2014-08-05 Thread sonika.jin...@intel.com
From: Sonika Jindal <sonika.jin...@intel.com> Changing the DP training vswing/pre-emph defines in i915. Signed-off-by: Sonika Jindal --- drivers/gpu/drm/i915/intel_bios.c | 16 +-- drivers/gpu/drm/i915/intel_dp.c | 194 ++--- 2 files changed, 105 inse

[PATCH 1/6] drm: Renaming DP training vswing/pre-emph defines

2014-08-05 Thread sonika.jin...@intel.com
From: Sonika Jindal <sonika.jin...@intel.com> Renaming defines to have levels instead of nominal values. Signed-off-by: Sonika Jindal --- include/drm/drm_dp_helper.h | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/include/drm/drm_dp_helper.h b/inclu

[PATCH 0/6] Rename DP training vswing/pre-emph defines

2014-08-05 Thread sonika.jin...@intel.com
From: Sonika Jindal <sonika.jin...@intel.com> Rename the defines to have levels instead of values for vswing and pre-emph levels as the values may differ in other scenarios like low vswing of eDP 1.4 where the values are different. Updated in all the drivers as well Sonika Jindal (6):

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

2014-08-05 Thread sonika.jin...@intel.com
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. v2: Moving rotation_property to mode_config Cc: dri-devel at lists.freedesktop.org

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

2014-08-05 Thread sonika.jin...@intel.com
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-devel at lists.freedesktop.org Signed-off-by: Ville Syrj?l?

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

2014-08-05 Thread sonika.jin...@intel.com
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

[PATCH] drm/i915: Add rotation property for sprites

2014-07-15 Thread sonika.jin...@intel.com
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. v2: Moving rotation_property to mode_config v3: Moving creation of property out of

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

2014-07-15 Thread sonika.jin...@intel.com
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. v2: Moving rotation_property to mode_config v3: Moving creation of property out of

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

2014-07-15 Thread sonika.jin...@intel.com
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. v2: Moving rotation_property to mode_config Cc: dri-devel at lists.freedesktop.org

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

2014-07-15 Thread sonika.jin...@intel.com
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-devel at lists.freedesktop.org Signed-off-by: Ville Syrj?l?

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

2014-07-15 Thread sonika.jin...@intel.com
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

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

2014-07-08 Thread sonika.jin...@intel.com
From: Sonika Jindal <sonika.jin...@intel.com> 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: Ch

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

2014-07-08 Thread sonika.jin...@intel.com
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. v2: Moving rotation_property to drm_plane Cc: dri-devel at lists.freedesktop.org

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

2014-07-08 Thread sonika.jin...@intel.com
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-devel at lists.freedesktop.org Signed-off-by: Ville Syrj?l?

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

2014-07-08 Thread sonika.jin...@intel.com
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

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

2014-07-08 Thread sonika.jin...@intel.com
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

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

2014-07-08 Thread sonika.jin...@intel.com
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 Signed-off-by: Ville Syrj?l? Reviewed-by:

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

2014-07-08 Thread sonika.jin...@intel.com
From: Ville Syrj?l? Use the new drm_mode_create_rotation_property() in omapdrm. Cc: dri-devel at lists.freedesktop.org Signed-off-by: Ville Syrj?l? Reviewed-by: Rob Clark Reviewed-by: Imre Deak Reviewed-by: Sagar Kamble ---

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

2014-07-08 Thread sonika.jin...@intel.com
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

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

2014-07-07 Thread sonika.jin...@intel.com
From: Sonika Jindal <sonika.jin...@intel.com> 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: Ch

[v2 11/11] drm: Resetting rotation property

2014-07-04 Thread sonika.jin...@intel.com
From: Sonika Jindal <sonika.jin...@intel.com> 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.lespiau at intel.com Signed-off-by: Sonika Jindal --- drivers/gpu/drm/drm_fb_helper.c

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

2014-07-04 Thread sonika.jin...@intel.com
From: Sonika Jindal <sonika.jin...@intel.com> 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: Ch

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

2014-07-04 Thread sonika.jin...@intel.com
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. v2: Moving rotation_property to drm_plane Cc: dri-devel at lists.freedesktop.org

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

2014-07-04 Thread sonika.jin...@intel.com
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-devel at lists.freedesktop.org Signed-off-by: Ville Syrj?l?

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

2014-07-04 Thread sonika.jin...@intel.com
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

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

2014-07-04 Thread sonika.jin...@intel.com
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

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

2014-07-04 Thread sonika.jin...@intel.com
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 Signed-off-by: Ville Syrj?l? Reviewed-by:

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

2014-07-04 Thread sonika.jin...@intel.com
From: Ville Syrj?l? Use the new drm_mode_create_rotation_property() in omapdrm. Cc: dri-devel at lists.freedesktop.org Signed-off-by: Ville Syrj?l? Reviewed-by: Rob Clark Reviewed-by: Imre Deak Reviewed-by: Sagar Kamble ---

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

2014-07-04 Thread sonika.jin...@intel.com
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

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

2014-07-04 Thread sonika.jin...@intel.com
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

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

2014-07-04 Thread sonika.jin...@intel.com
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 ---

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

2014-07-04 Thread sonika.jin...@intel.com
From: Sonika Jindal <sonika.jin...@intel.com> 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 h

[PATCH 01/12] drm: Move DRM_ROTATE bits out of omapdrm into drm_crtc.h

2014-05-09 Thread sonika.jin...@intel.com
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. Cc: David Airlie Cc: Tomi Valkeinen Cc: Dave Airlie Cc: Rob Clark Cc: Daniel Vetter Cc: Archit Taneja Cc: dri-devel at