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

2014-10-22 Thread sonika.jin...@intel.com
From: Sonika Jindal 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 +++ include/drm/drm_dp_helper.h |2 ++

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

2014-08-08 Thread sonika.jin...@intel.com
From: Sonika Jindal 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 index 3840a05..9305c71 100644 ---

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

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

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

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

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

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

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

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

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

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

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

2014-08-08 Thread sonika.jin...@intel.com
From: Sonika Jindal 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 where the values are different. D

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

2014-08-08 Thread sonika.jin...@intel.com
From: Sonika Jindal 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 defines in first patch and removing

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

2014-08-06 Thread sonika.jin...@intel.com
From: Sonika Jindal 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 description in the commit message Cc: dr

[PATCH 6/6] drm: Resetting rotation property

2014-08-06 Thread sonika.jin...@intel.com
From: Sonika Jindal 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 changed, 8 insertions(+), 1 deletion(-) diff

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

2014-08-06 Thread sonika.jin...@intel.com
From: Sonika Jindal 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..62f73bd 100644 --- a/include/drm/

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

2014-08-05 Thread sonika.jin...@intel.com
From: Sonika Jindal 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/drivers/gpu/drm/tegra/dpaux.c +++ b/dri

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

2014-08-05 Thread sonika.jin...@intel.com
From: Sonika Jindal 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/gpu/drm/gma500/cdv_intel_dp.c b/driver

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

2014-08-05 Thread sonika.jin...@intel.com
From: Sonika Jindal 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..ef32b16 100644 --- a/drivers/gpu/drm/r

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

2014-08-05 Thread sonika.jin...@intel.com
From: Sonika Jindal 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 31c3de9..e520943 100644 --- a/drivers/

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

2014-08-05 Thread sonika.jin...@intel.com
From: Sonika Jindal 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 insertions(+), 105 deletions(-) dif

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

2014-08-05 Thread sonika.jin...@intel.com
From: Sonika Jindal 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/include/drm/drm_dp_helper.h index a21

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

2014-08-05 Thread sonika.jin...@intel.com
From: Sonika Jindal 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): drm: Renaming DP training vswing/p

[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 Signed-off-by: Ville Syrj?l? Signed

[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? Reviewed-by: Imre Deak --- drivers/gpu/d

[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 buffer offset automagically v3

[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 intel_sprite Cc: dri-devel at lists

[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 intel_sprite Cc: dri-devel at lists

[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 Signed-off-by: Ville Syrj?l? Signed

[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? Reviewed-by: Imre Deak --- drivers/gpu/d

[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 buffer offset automagically v3

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

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

[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 Signed-off-by: Ville Syrj?l? Signed-o

[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? Reviewed-by: Imre Deak --- drivers/gpu/d

[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 buffer offset automagically v3

[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 reflect x and y bits. The hope

[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: Imre Deak --- drivers/gpu/drm/drm

[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 --- drivers/gpu/drm/omapdrm/omap_plane.c | 20 +++- 1

[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 different list of supported bits. v2

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

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

[v2 11/11] drm: Resetting rotation property

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

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

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

[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 Signed-off-by: Ville Syrj?l? Signed-o

[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? Reviewed-by: Imre Deak --- drivers/gpu/d

[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 buffer offset automagically v3

[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 reflect x and y bits. The hope

[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: Imre Deak --- drivers/gpu/drm/drm

[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 --- drivers/gpu/drm/omapdrm/omap_plane.c | 20 +++- 1

[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 insertions(+) diff --git a/drivers/gpu

[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 different list of supported bits. v2

[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 --- include/drm/drm_crtc.h |8

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

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

[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 lists.freedesktop.org Cc: linux-kern