[Intel-gfx] [PATCH v1 0/3] Adding support for plane constant alpha drm property.

2014-05-05 Thread sagar . a . kamble
From: Sagar Kamble This patch series introduces drm property for plane level alpha. These patches are based on following patches which are already under review/reviewed: Documentation: drm: describing drm properties exposed by various drivers Propagate the error from intel_update_plane() up thr

[Intel-gfx] [PATCH v1 1/3] drm/i915: Add set_property function for planes

2014-05-05 Thread sagar . a . kamble
From: Sagar Kamble Cc: daniel.vet...@ffwll.ch Cc: jani.nik...@linux.intel.com Cc: ville.syrj...@linux.intel.com Cc: indranil.mukher...@intel.com Cc: shashidhar.hirem...@intel.com Cc: vandita.kulka...@intel.com Cc: vijay.a.purushotha...@intel.com Cc: ankitprasad.r.sha...@intel.com Signed-off-by: S

[Intel-gfx] [PATCH v1 2/3] drm/i915: Enabling constant alpha drm property

2014-05-05 Thread sagar . a . kamble
From: Sagar Kamble Testcase: kms_plane_props Cc: daniel.vet...@ffwll.ch Cc: jani.nik...@linux.intel.com Cc: ville.syrj...@linux.intel.com Cc: indranil.mukher...@intel.com Cc: shashidhar.hirem...@intel.com Cc: vandita.kulka...@intel.com Cc: vijay.a.purushotha...@intel.com Cc: ankitprasad.r.sha...@

[Intel-gfx] [PATCH v1 3/3] Documentation: drm: describing plane constant alpha property

2014-05-05 Thread sagar . a . kamble
From: Sagar Kamble Cc: rdun...@infradead.org Cc: alexander.deuc...@amd.com Cc: airl...@redhat.com Cc: laurent.pinch...@ideasonboard.com Cc: dh.herrm...@gmail.com Cc: daniel.vet...@ffwll.ch Cc: jani.nik...@linux.intel.com Cc: ville.syrj...@linux.intel.com Cc: indranil.mukher...@intel.com Cc: shash

[Intel-gfx] [PATCH v1 1/1] kms_plane_props: Test to verify drm properties for planes

2014-05-05 Thread sagar . a . kamble
From: Sagar Kamble This test will set various values for drm properties exposed by planes and check for functional accuracy in some cases using CRC check. Currently this test is enabled for "const-alpha" drm property. Cc: daniel.vet...@ffwll.ch Cc: jani.nik...@linux.intel.com Cc: ville.syrj...@l

[Intel-gfx] [PATCH 1/2] drm/i915: do runtime_get/put during display well power gate/ungate

2014-06-09 Thread sagar . a . kamble
From: Sagar Kamble Display power island is on during boot, we have one count for it once this power gates, we do a put making sure runtime_suspend is called Cc: Daniel Vetter (supporter:INTEL DRM DRIVERS...) Cc: Jani Nikula (supporter:INTEL DRM DRIVERS...) Signed-off-by: Sagar Kamble --- dri

[Intel-gfx] [PATCH 2/2] drm/i915/vlv: Set D3_hot for vlv during runtime_suspend

2014-06-09 Thread sagar . a . kamble
From: Sagar Kamble To do a platform wide S0i3 transition, Gfx is required to go to D3_hot state. pci_save_state and pci_restore_state needed to avoid ring hangs across D3_hot transitions. Cc: Daniel Vetter (supporter:INTEL DRM DRIVERS...) Cc: Jani Nikula (supporter:INTEL DRM DRIVERS...) Signed

[Intel-gfx] [PATCH 0/2] Enabling D0i3 transition for Valleyview

2014-06-09 Thread sagar . a . kamble
From: Sagar Kamble With these patches runtime_suspend is triggered by updating runtime pm usage count when display well is power gated and pci state is set to D3 hot in runtime_suspend and set to D0 in runtime_resume. Sagar Kamble (2): drm/i915: do runtime_get/put during display well power gat

[Intel-gfx] [PATCH v4 11/11] drm/i915: Calling rotate and inverse rotate transformations after clipping

2014-02-07 Thread sagar . a . kamble
From: Sagar Kamble With clipped sprites these transformations are not working. these functions transform complete sprite irrespective of clipping present. This leads to invisible portion of sprite show up when rotate 180 if it was out of visible area before. v4: Moved rotate transform for source

[Intel-gfx] [PATCH v5 00/11] Enabling 180 degree rotation for sprite and crtc planes

2014-02-09 Thread sagar . a . kamble
From: Sagar Kamble These patches will enable 180 degree rotation for CRTC and Sprite planes. Changelog: 1. drm: Add support_bits parameter to drm_property_create_bitmask() Fixed caller of this function in omapdrm for bisectability of this patch. 2. drm/omap: Switch omapdrm over to drm_mode_create

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

2014-02-09 Thread sagar . a . kamble
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-de...@lists.freedesktop.org Cc: linux-ker...@

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

2014-02-09 Thread sagar . a . kamble
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. v5

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

2014-02-09 Thread sagar . a . kamble
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-de...@lists.freedesktop.org Cc: linux-ker...@vger.kernel.org Signed-off-by: Ville Syrjälä

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

2014-02-09 Thread sagar . a . kamble
From: Ville Syrjälä Add a function to create a standards compliant rotation property. v4: For creating rotation bitmask property send number of values as only number of set rotations Cc: David Airlie Cc: dri-de...@lists.freedesktop.org Cc: linux-ker...@vger.kernel.org Signed-off-by: Ville Syrj

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

2014-02-09 Thread sagar . a . kamble
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-de...@lists.freedesktop.org Cc: linux-ker...@vger.kernel.o

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

2014-02-09 Thread sagar . a . kamble
From: Sagar Kamble 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 issueing

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

2014-02-09 Thread sagar . a . kamble
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 Cc

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

2014-02-09 Thread sagar . a . kamble
From: Ville Syrjälä Use the new drm_mode_create_rotation_property() in omapdrm. v5: Fixed conflict due to change in the prior patch in call to drm_property_create_bitmask() Cc: David Airlie Cc: Rob Clark Cc: Sagar Kamble Cc: "Ville Syrjälä" Cc: Tomi Valkeinen Cc: Greg Kroah-Hartman Cc: dr

[Intel-gfx] [PATCH v5 11/11] drm/i915: Calling rotate and inverse rotate transformations after clipping

2014-02-09 Thread sagar . a . kamble
From: Sagar Kamble With clipped sprites these transformations are not working. these functions transform complete sprite irrespective of clipping present. This leads to invisible portion of sprite show up when rotate 180 if it was out of visible area before. v4: Moved rotate transform for source

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

2014-02-09 Thread sagar . a . kamble
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-de...@lists.freedesktop.org Cc: linux-ker...@vger

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

2014-02-09 Thread sagar . a . kamble
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 v5 07/11] drm/i915: Add 180 degree sprite rotation support

2014-02-09 Thread sagar . a . kamble
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 Cc

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

2014-02-11 Thread sagar . a . kamble
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 v5 1/1] drm/i915: Add 180 degree primary plane rotation support

2014-02-11 Thread sagar . a . kamble
From: Sagar Kamble 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 issueing

[Intel-gfx] [PATCH v3 1/1] tests/kms_plane_rotation_crc: Test to verify rotation of planes through CRC

2014-02-11 Thread sagar . a . kamble
From: Sagar Kamble This test will verify 180 degree rotation of CRTC and sprite planes by grabbing CRC for already rotated image and comparing with CRC calculated after triggering rotation through DRM property. v2: Using cairo_rotate to created reference rotated version of CRTC and Sprite Image.

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

2014-02-11 Thread sagar . a . kamble
From: Sagar Kamble 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 issueing

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

2014-02-11 Thread sagar . a . kamble
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 v7 1/1] drm/i915: Add 180 degree primary plane rotation support

2014-02-12 Thread sagar . a . kamble
From: Sagar Kamble 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 issueing

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

2014-02-12 Thread sagar . a . kamble
From: Sagar Kamble 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 issueing

[Intel-gfx] [PATCH 1/1] drm/i915: Enabling 128x128 and 256x256 ARGB Cursor Support

2014-02-18 Thread sagar . a . kamble
From: Sagar Kamble With this patch we allow larger cursor planes of sizes 128x128 and 256x256. Planning to extend kms_cursor_crc test for verifying these larger planes. Cc: Daniel Vetter Cc: Jani Nikula Cc: David Airlie Cc: dri-de...@lists.freedesktop.org Cc: linux-ker...@vger.kernel.org Sign

[Intel-gfx] [RFC 1/1] drm/i915: Added support for setting plane alpha through drm property

2014-02-19 Thread sagar . a . kamble
From: Sagar Kamble With this patch two properties are added. One for CRTC+Sprite planes and another for Cursor planes. Through these client will be able to change the pixel format of the planes w.r.t Alpha channel. Number of drm properties are limited so should we restrain from adding this as drm

[Intel-gfx] [PATCH v2 1/1] drm/i915: Enabling 128x128 and 256x256 ARGB Cursor Support

2014-02-24 Thread sagar . a . kamble
From: Sagar Kamble With this patch we allow larger cursor planes of sizes 128x128 and 256x256. v2: Added more precise check on size while setting cursor plane. Testcase: igt/kms_cursor_crc Cc: Daniel Vetter Cc: Jani Nikula Cc: David Airlie Cc: dri-de...@lists.freedesktop.org Cc: linux-ker...

[Intel-gfx] [PATCH 1/1] kms_cursor_crc/Enabling this test for variable cursor width and heights

2014-02-24 Thread sagar . a . kamble
From: Sagar Kamble Signed-off-by: Sagar Kamble --- tests/kms_cursor_crc.c | 51 ++ 1 file changed, 31 insertions(+), 20 deletions(-) diff --git a/tests/kms_cursor_crc.c b/tests/kms_cursor_crc.c index 38aa1ab..4458248 100644 --- a/tests/kms_cursor

[Intel-gfx] [PATCH 1/1] Documentation: drm: describing drm properties exposed by various drivers

2014-03-05 Thread sagar . a . kamble
From: Sagar Kamble Started documenting drm properties for drm drivers. This patch provides information about properties in drm, i915, psb and cdv/gma-500. Information about other properties can be added on top of these. Cc: Rob Landley Cc: Dave Airlie Cc: Daniel Vetter Cc: Laurent Pinchart C

[Intel-gfx] [PATCH v2 1/1] Documentation: drm: describing drm properties exposed by various drivers

2014-03-05 Thread sagar . a . kamble
From: Sagar Kamble Started documenting drm properties for drm drivers. This patch provides information about properties in drm, i915, psb and cdv/gma-500. Information about other properties can be added on top of these. v2: Added description of drm properties in armada, exynos, i2c/ch7006, novea

[Intel-gfx] [PATCH v3 1/1] Documentation: drm: describing drm properties exposed by various drivers

2014-03-06 Thread sagar . a . kamble
From: Sagar Kamble Started documenting drm properties for drm drivers. This patch provides information about properties in drm, i915, psb and cdv/gma-500. Information about other properties can be added on top of these. v2: Added description of drm properties in armada, exynos, i2c/ch7006, novea

[Intel-gfx] [PATCH v3 1/1] Documentation: drm: describing drm properties exposed by various drivers

2014-03-06 Thread sagar . a . kamble
From: Sagar Kamble Started documenting drm properties for drm drivers. This patch provides information about properties in drm, i915, psb and cdv/gma-500. Information about other properties can be added on top of these. v2: Added description of drm properties in armada, exynos, i2c/ch7006, novea

[Intel-gfx] [PATCH v4 1/1] Documentation: drm: describing drm properties exposed by various drivers

2014-03-07 Thread sagar . a . kamble
From: Sagar Kamble Started documenting drm properties for drm drivers. This patch provides information about properties in drm, i915, psb and cdv/gma-500. Information about other properties can be added on top of these. v2: Added description of drm properties in armada, exynos, i2c/ch7006, novea

[Intel-gfx] [PATCH v5 1/1] Documentation: drm: describing drm properties exposed by various drivers

2014-03-07 Thread sagar . a . kamble
From: Sagar Kamble Started documenting drm properties for drm drivers. This patch provides information about properties in drm, i915, psb and cdv/gma-500. Information about other properties can be added on top of these. v2: Added description of drm properties in armada, exynos, i2c/ch7006, novea

[Intel-gfx] [PATCH 1/4] drm: Added plane alpha and color blending property

2014-03-08 Thread sagar . a . kamble
From: Sagar Kamble This patch creates a generic blending enum property. Drivers may support subset of these values. Cc: airl...@linux.ie Cc: dri-de...@lists.freedesktop.org Cc: linux-ker...@vger.kernel.org Signed-off-by: Sagar Kamble --- drivers/gpu/drm/drm_crtc.c | 33

[Intel-gfx] [PATCH 2/4] drm/i915: Enabling constant alpha drm property

2014-03-08 Thread sagar . a . kamble
From: Sagar Kamble This patch enables constant alpha property for Sprite planes. Client has to set BIT(DRM_BLEND_CONSTANT_ALPHA) | (8 bit alpha value) for applying constant alpha on a plane. To disable constant alpha, client has to set BIT(DRM_BLEND_NONE) Cc: Daniel Vetter Cc: Jani Nikula Cc:

[Intel-gfx] [PATCH 0/4] Adding support for plane alpha/color blending through drm property

2014-03-08 Thread sagar . a . kamble
From: Sagar Kamble This patch series introduces drm property modelled after glBlendFuc function. For i915 constant alpha is exposed through this property to start with. Additional new property value for controlling pre-multiplied alpha is added. i-g-t test case is to be added. These patches ar

[Intel-gfx] [PATCH 3/4] drm/i915: Enabling pre-multiplied alpha drm property

2014-03-08 Thread sagar . a . kamble
From: Sagar Kamble This patch enables property for changin the pixel format of plane to enable/disable pre-multiplied alpha format. Client has to set BIT(DRM_BLEND_PREMULTIPLIED_ALPHA) | 0x0/0x1 to disable/enable pre-multiplied alpha format. Cc: Daniel Vetter Cc: Jani Nikula Cc: David Airlie

[Intel-gfx] [PATCH 4/4] Documentation: drm: describing plane alpha and color blending property

2014-03-08 Thread sagar . a . kamble
From: Sagar Kamble Cc: Rob Landley Cc: Dave Airlie Cc: Daniel Vetter Cc: Laurent Pinchart Cc: David Herrmann Cc: Alex Deucher Cc: "Ville Syrjälä" Cc: Sagar Kamble Cc: "Purushothaman, Vijay A" Cc: linux-...@vger.kernel.org Cc: dri-de...@lists.freedesktop.org Signed-off-by: Sagar Kamble -

[Intel-gfx] [PATCH v3 1/1] drm/i915: Enabling 128x128 and 256x256 ARGB Cursor Support

2014-03-08 Thread sagar . a . kamble
From: Sagar Kamble With this patch we allow larger cursor planes of sizes 128x128 and 256x256. v2: Added more precise check on size while setting cursor plane. v3: Changes related to restructuring cursor size restrictions and DRM_DEBUG usage. Testcase: igt/kms_cursor_crc Cc: Daniel Vetter Cc:

[Intel-gfx] [PATCH v2 1/1] kms_cursor_crc: Enabling this test for 128x128 and 256x256 cursors

2014-03-08 Thread sagar . a . kamble
From: Sagar Kamble v1: Added 128x128 and 256x256 cursor size support. v2: Refined the test to use igt_subtest_f and automate enumeration. Signed-off-by: Sagar Kamble --- lib/igt_kms.c | 13 ++- tests/kms_cursor_crc.c | 219 +++-- 2 files c

[Intel-gfx] [PATCH v4 1/1] drm/i915: Enabling 128x128 and 256x256 ARGB Cursor Support

2014-03-10 Thread sagar . a . kamble
From: Sagar Kamble With this patch we allow larger cursor planes of sizes 128x128 and 256x256. v2: Added more precise check on size while setting cursor plane. v3: Changes related to restructuring cursor size restrictions and DRM_DEBUG usage. v4: Indentation related changes for setting cursor

[Intel-gfx] [PATCH v6 1/1] Documentation: drm: describing drm properties exposed by various drivers

2014-03-11 Thread sagar . a . kamble
From: Sagar Kamble Started documenting drm properties for drm drivers. This patch provides information about properties in drm, i915, psb and cdv/gma-500. Information about other properties can be added on top of these. v2: Added description of drm properties in armada, exynos, i2c/ch7006, novea

[Intel-gfx] [PATCH v7 1/1] Documentation: drm: describing drm properties exposed by various drivers

2014-03-11 Thread sagar . a . kamble
From: Sagar Kamble Started documenting drm properties for drm drivers. This patch provides information about properties in drm, i915, psb and cdv/gma-500. Information about other properties can be added on top of these. v2: Added description of drm properties in armada, exynos, i2c/ch7006, novea

[Intel-gfx] [PATCH v3 1/1] kms_cursor_crc: Enabling this test for all cursor sizes

2014-03-18 Thread sagar . a . kamble
From: Sagar Kamble v1: Added 128x128 and 256x256 cursor size support. v2: Refined the test to use igt_subtest_f and automate enumeration. v3: Restructuring test enumeration using drmGetCap. [Daniel's review comments] Signed-off-by: Sagar Kamble --- tests/kms_cursor_crc.c | 131 ++

[Intel-gfx] [PATCH 1/1] drm/i915: Fixing cursor size parameters for wm calculation

2014-03-25 Thread sagar . a . kamble
From: Sagar Kamble Cursor size is changed now take care of larger cursor sizes. wm calculation was hardcoded to 64 before so changing it. Cc: Daniel Vetter Cc: Jani Nikula Cc: Damien Lespiau Signed-off-by: Sagar Kamble --- drivers/gpu/drm/i915/intel_pm.c | 2 +- 1 file changed, 1 insertion(

[Intel-gfx] [PATCH 1/1] kms_blend: tests blending of sprite planes using drm_property "blend".

2014-03-25 Thread sagar . a . kamble
From: arsharma v1: This test currently tests constant alpha setting of sprite planes. It verifies alpha setting of 0 and 255 with CRC. Signed-off-by: Sharma, Ankitprasad R Signed-off-by: Sagar Kamble --- tests/Makefile.sources | 1 + tests/kms_blend.c | 560

[Intel-gfx] [PATCH v2 3/4] drm/i915: Enabling constant alpha drm property

2014-03-25 Thread sagar . a . kamble
From: Sagar Kamble This patch enables constant alpha property for Sprite planes. Client has to set BIT(DRM_BLEND_CONSTANT_ALPHA) | ((alpha value) << 32) for applying constant alpha on a plane. To disable constant alpha, client has to set BIT(DRM_BLEND_SRC_COLOR) v2: Fixing property value compari

[Intel-gfx] [PATCH v2 2/4] drm: Added plane alpha and color blending property

2014-03-25 Thread sagar . a . kamble
From: Sagar Kamble This patch creates a generic blending bitmask property modeled after glBlendFunc. Drivers may support subset of these values. v2: Removing blend properties that are not applicable [Damien's Review Comments]. Adding DRM_MODE_PROP_32BIT_PAIR flag to blend property. Cc:

[Intel-gfx] [PATCH v2 1/4] drm: Adding new flag to restrict bitmask drm properties as 32 bit type and 32 bit value pair

2014-03-25 Thread sagar . a . kamble
From: Sagar Kamble With this patch new flag DRM_MODE_PROP_32BIT_PAIR is added that will help make use of 64 bit value of bitmask property as two 32 bit values. Cc: airl...@linux.ie Cc: dri-de...@lists.freedesktop.org Cc: linux-ker...@vger.kernel.org Signed-off-by: Sagar Kamble --- drivers/gpu

[Intel-gfx] [PATCH v2 4/4] Documentation: drm: describing plane alpha and color blending property

2014-03-25 Thread sagar . a . kamble
From: Sagar Kamble v2: Added description for "src-color" and "constant-alpha" property. Cc: Rob Landley Cc: Dave Airlie Cc: Daniel Vetter Cc: Laurent Pinchart Cc: David Herrmann Cc: Alex Deucher Cc: "Ville Syrjälä" Cc: Sagar Kamble Cc: "Purushothaman, Vijay A" Cc: linux-doc at vger.kern

[Intel-gfx] [PATCH v3 1/1] Documentation: drm: describing plane alpha and color blending property

2014-03-27 Thread sagar . a . kamble
From: Sagar Kamble v2: Added description for "src-color" and "constant-alpha" property. [Review by Laurent Pinchart] v3: Fixed typos. [Review by David Hermann] Cc: Rob Landley Cc: Dave Airlie Cc: Daniel Vetter Cc: Laurent Pinchart Cc: David Herrmann Cc: Alex Deucher Cc: "Ville Syrjälä

[Intel-gfx] [PATCH v3 1/1] Documentation: drm: describing plane alpha and color blending property

2014-03-27 Thread sagar . a . kamble
From: Sagar Kamble v2: Added description for "src-color" and "constant-alpha" property. [Review by Laurent Pinchart] v3: Fixed typos. [Review by David Herrmann] Cc: Rob Landley Cc: Dave Airlie Cc: Daniel Vetter Cc: Laurent Pinchart Cc: David Herrmann Cc: Alex Deucher Cc: "Ville Syrjäl

[Intel-gfx] [PATCH v4 1/1] Documentation: drm: describing plane alpha and color blending property

2014-03-27 Thread sagar . a . kamble
From: Sagar Kamble v2: Added description for "src-color" and "constant-alpha" property. [Review by Laurent Pinchart] v3: Fixed typos. [Review by David Herrmann] v4: Additional formatting and modified description. [Review by David Herrmann] Cc: r...@landley.net Cc: airl...@redhat.com Cc: da

[Intel-gfx] [PATCH 1/1] drm/i915: Enabling plane rotation control through sysfs

2014-01-24 Thread sagar . a . kamble
From: Sagar Kamble This patch enables 180 degree rotation for primary and sprite planes through sysfs interface. Signed-off-by: Uma Shankar Signed-off-by: Sagar Kamble --- drivers/gpu/drm/i915/i915_reg.h | 1 + drivers/gpu/drm/i915/i915_sysfs.c| 124

[Intel-gfx] [PATCH 11/11] drm: Set property to return invalid for unsupported arguments for bitmask property

2014-01-31 Thread sagar . a . kamble
From: Sagar Kamble DRM will not propagate the set_property call for bitmask drm properties if they are not supported by underlying driver. Signed-off-by: Sagar Kamble Tested-by: Sagar Kamble --- drivers/gpu/drm/drm_crtc.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a

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

2014-01-31 Thread sagar . a . kamble
From: Sagar Kamble Use the new drm_mode_create_rotation_property() in omapdrm. Signed-off-by: Ville Syrjala --- drivers/gpu/drm/omapdrm/omap_plane.c | 17 +++-- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/omapdrm/omap_plane.c b/drivers/gpu/drm/om

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

2014-01-31 Thread sagar . a . kamble
From: Sagar Kamble 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. Signed-off-by: Ville Syrjala Tested-by: Sagar Kamble --- drivers/gpu/drm/i915/intel_drv.h| 2 +- drivers

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

2014-01-31 Thread sagar . a . kamble
From: Sagar Kamble Primary planes support 180 degree rotation. Expose the feature through rotation drm property. Signed-off-by: Uma Shankar Signed-off-by: Sagar Kamble Tested-by: Sagar Kamble --- drivers/gpu/drm/i915/i915_reg.h | 1 + drivers/gpu/drm/i915/intel_display.c | 54 +

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

2014-01-31 Thread sagar . a . kamble
From: Sagar Kamble 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 i

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

2014-01-31 Thread sagar . a . kamble
From: Sagar Kamble 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. Signed-off-by: Ville Syrjala Tested-by: Sagar Kamble --- d

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

2014-01-31 Thread sagar . a . kamble
From: Sagar Kamble 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 Syrjala --- drivers/gpu/drm/omapdrm/omap_drv.h | 7 --- include/drm/drm_crtc.h | 8 2 files changed, 8 insertions(

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

2014-01-31 Thread sagar . a . kamble
From: Sagar Kamble Add some helper functions to move drm_rects between different rotated coordinate spaces. One function does the forward transform and another does the inverse. Signed-off-by: Ville Syrjala --- drivers/gpu/drm/drm_rect.c | 140 + inc

[Intel-gfx] [PATCH 1/1] demos: Add intel_plane_rotate test to verify rotation of planes and crtc

2014-01-31 Thread sagar . a . kamble
From: Sagar Kamble This test will verify the 180 degree rotation of sprite and crtc planes. It will allow user to control rotation separately for crtc and sprite planes. Signed-off-by: Sagar Kamble --- demos/Makefile.am | 1 + demos/intel_plane_rotate.c | 929 +++

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

2014-01-31 Thread sagar . a . kamble
From: Sagar Kamble 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. Sig

[Intel-gfx] [PATCH 00/11] Enabling 180 degree rotation for sprite and crtc planes

2014-01-31 Thread sagar . a . kamble
From: Sagar Kamble With these patches 180 degree rotation for crtc and sprite planes will be exposed through drm rotation properties implemented by Ville few days back. I have added CRTC rotation support on top of Ville's 9 patches that includes sprite rotation. Omapdrm changes, rotation_simplify

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

2014-01-31 Thread sagar . a . kamble
From: Sagar Kamble Add a function to create a standards compliant rotation property. Signed-off-by: Ville Syrjala Tested-by: Sagar Kamble --- drivers/gpu/drm/drm_crtc.c | 18 ++ include/drm/drm_crtc.h | 2 ++ 2 files changed, 20 insertions(+) diff --git a/drivers/gpu/drm

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

2014-01-31 Thread sagar . a . kamble
From: Sagar Kamble 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. Signed-off-by: Ville Syrjala Tested-by: Sagar Kamble --- drivers/gpu/drm/i915/i915_drv.h | 1 + drivers/gpu/drm/i

[Intel-gfx] [PATCH v3 00/12] Enabling 180 degree rotation for sprite and crtc planes

2014-02-06 Thread sagar . a . kamble
From: Sagar Kamble These patches will enable 180 degree rotation for CRTC and Sprite planes. This version has following changes: 1. Addressed review comments for CRTC rotation from FBC, page flip, CRTC active/ inactive perspective. 2. Removed drm_rect_rotate amd drm_rect_rotate_inv functions as t

[Intel-gfx] [PATCH 1/1] tests/kms_rotate_crc: Test to verify rotation of planes through CRC

2014-02-06 Thread sagar . a . kamble
From: Sagar Kamble This test will verify 180 degree rotation of CRTC and sprite planes by grabbing CRC for already rotated image and comparing with CRC calculated after triggering rotation through DRM property. Signed-off-by: Sagar Kamble Tested-by: Sagar Kamble --- tests/Makefile.sources |

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

2014-02-06 Thread sagar . a . kamble
From: Sagar Kamble 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 issueing

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

2014-02-06 Thread sagar . a . kamble
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. Signed-off-by: Ville Syrjälä Tested-by: Sagar Kamble --- drivers/gpu/drm/i915/intel_drv.h| 2 +- driver

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

2014-02-06 Thread sagar . a . kamble
From: Ville Syrjälä Use the new drm_mode_create_rotation_property() in omapdrm. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/omapdrm/omap_plane.c | 17 +++-- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/omapdrm/omap_plane.c b/drivers/gpu/drm/o

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

2014-02-06 Thread sagar . a . kamble
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. Si

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

2014-02-06 Thread sagar . a . kamble
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ä Tested-by: Sagar Kamble --- drivers/gpu/drm/omapdrm/omap_drv.h | 7 --- include/drm/drm_crtc.h | 8 2 fi

[Intel-gfx] [PATCH v3 12/12] drm/i915: Removing rotate and inverse rotate calls from update_plane

2014-02-06 Thread sagar . a . kamble
From: Sagar Kamble With clipped sprites these transformations are not working. these functions transform complete sprite irrespective of clipping present. This leads to invisible portion of sprite show up when rotate 180 if it was out of visible area before. Signed-off-by: Sagar Kamble Tested-b

[Intel-gfx] [PATCH v3 11/12] drm: Set property to return invalid for unsupported arguments for bitmask property

2014-02-06 Thread sagar . a . kamble
From: Sagar Kamble DRM will not propagate the set_property call for bitmask drm properties if they are not supported by underlying driver. Signed-off-by: Sagar Kamble Tested-by: Sagar Kamble --- drivers/gpu/drm/drm_crtc.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a

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

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

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

2014-02-06 Thread sagar . a . kamble
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. Signed-off-by: Ville Syrjälä Tested-by: Sagar Kamble --- drivers/gpu/drm/drm_rect.c | 140

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

2014-02-06 Thread sagar . a . kamble
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. Signed-off-by: Ville Syrjälä Tested-by: Sagar Kamble --- drivers/gpu/drm/i915/i915_drv.h | 1 + drivers/gpu/drm/

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

2014-02-06 Thread sagar . a . kamble
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 v3 07/12] drm/i915: Add 180 degree sprite rotation support

2014-02-06 Thread sagar . a . kamble
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 Si

[Intel-gfx] [PATCH v4 00/11] Enabling 180 degree rotation for sprite and crtc planes

2014-02-07 Thread sagar . a . kamble
From: Sagar Kamble These patches will enable 180 degree rotation for CRTC and Sprite planes. Changelog: 1. drm/i915: Add 180 degree primary plane rotation support Addressed review comments for CRTC rotation from FBC, page flip, CRTC active/ inactive perspective. 2. drm/i915: Calling rotate and in

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

2014-02-07 Thread sagar . a . kamble
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. Si

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

2014-02-07 Thread sagar . a . kamble
From: Ville Syrjälä Add a function to create a standards compliant rotation property. v4: For creating rotation bitmask property send number of values as only number of set rotations Signed-off-by: Ville Syrjälä Signed-off-by: Sagar Kamble Tested-by: Sagar Kamble --- drivers/gpu/drm/drm_crt

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

2014-02-07 Thread sagar . a . kamble
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ä Tested-by: Sagar Kamble --- drivers/gpu/drm/omapdrm/omap_drv.h | 7 --- include/drm/drm_crtc.h | 8 2 fi

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

2014-02-07 Thread sagar . a . kamble
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. Signed-off-by: Ville Syrjälä Tested-by: Sagar Kamble --- drivers/gpu/drm/drm_rect.c | 140

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

2014-02-07 Thread sagar . a . kamble
From: Ville Syrjälä Use the new drm_mode_create_rotation_property() in omapdrm. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/omapdrm/omap_plane.c | 17 +++-- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/omapdrm/omap_plane.c b/drivers/gpu/drm/o

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

2014-02-07 Thread sagar . a . kamble
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 v4 10/11] drm/i915: Add 180 degree primary plane rotation support

2014-02-07 Thread sagar . a . kamble
From: Sagar Kamble 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 issueing

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

2014-02-07 Thread sagar . a . kamble
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 Si

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

2014-02-07 Thread sagar . a . kamble
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. Signed-off-by: Ville Syrjälä Tested-by: Sagar Kamble --- drivers/gpu/drm/i915/i915_drv.h | 1 + drivers/gpu/drm/

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

2014-02-07 Thread sagar . a . kamble
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. Signed-off-by: Ville Syrjälä Tested-by: Sagar Kamble --- drivers/gpu/drm/i915/intel_drv.h| 2 +- driver

[Intel-gfx] [PATCH v2 1/1] tests/kms_rotate_crc: Test to verify rotation of planes through CRC

2014-02-07 Thread sagar . a . kamble
From: Sagar Kamble This test will verify 180 degree rotation of CRTC and sprite planes by grabbing CRC for already rotated image and comparing with CRC calculated after triggering rotation through DRM property. v2: Using cairo_rotate to created reference rotated version of CRTC and Sprite Image.

[Intel-gfx] [PATCH 33/49] drm/i915/bxt: Add DC9 Trigger sequence

2015-03-30 Thread sagar . a . kamble
+static int bxt_suspend_complete(struct drm_i915_private *dev_priv) +{ + struct drm_device *dev = dev_priv->dev; + + /* TODO: when DC5 support is added disable DC5 here. */ + + bxt_uninit_cdclk(dev); + bxt_enable_dc9(dev_priv); + + return 0; +} + static int hsw_suspen

  1   2   >