[Intel-gfx] [PATCH] drm/i915: Remove unnecessary scaler output max size check

2017-08-01 Thread Nabendu Maiti
There is no upper limit of maximum size of scaler output. Check is removed. Signed-off-by: Nabendu Maiti <nabendu.bikash.ma...@intel.com> --- drivers/gpu/drm/i915/intel_display.c | 4 +--- drivers/gpu/drm/i915/intel_drv.h | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) diff

[Intel-gfx] [PATCH v3] drm/i915: Move number of scalers initialization to runtime init

2016-11-28 Thread Nabendu Maiti
as on depending upon numbers of scalers we initialize scalers or return without doing anything in skl_init_scalers. v3: Changed skl_init_scaler to intel_crtc_init_scalers v2: Added Chris's comments. Signed-off-by: Nabendu Maiti <nabendu.bikash.ma...@intel.com> --- drivers/gpu/drm/i915/i915

[Intel-gfx] [PATCH] drm/i915: Move number of scalers initialization to runtime init

2016-11-25 Thread Nabendu Maiti
as on depending upon numbers of scalers we initialize scalers or return without doing anything in skl_init_scalers. v2: Added Chris's commenents. Signed-off-by: Nabendu Maiti <nabendu.bikash.ma...@intel.com> --- drivers/gpu/drm/i915/i915_drv.h | 1 + drivers/gpu/drm/i915/intel_device_

[Intel-gfx] [PATCH] drm/i915: Move number of scalers initialization to runtime init

2016-11-23 Thread Nabendu Maiti
as depending on numbers of scalers we initialize scalers or return without doing anything in skl_init_scalers. Signed-off-by: Nabendu Maiti <nabendu.bikash.ma...@intel.com> --- drivers/gpu/drm/i915/i915_debugfs.c | 2 +- drivers/gpu/drm/i915/i915_drv.h | 1 + drivers/gpu/dr

[Intel-gfx] [PATCH] drm/i915: Moving no of scalers initialization to runtime init

2016-11-22 Thread Nabendu Maiti
Number of scalers initialization is moved to runtime init from intel_crtc_init for platform specific initialization. Signed-off-by: Nabendu Maiti <nabendu.bikash.ma...@intel.com> --- drivers/gpu/drm/i915/i915_debugfs.c | 2 +- drivers/gpu/drm/i915/i915_drv.h | 1 + drive

[Intel-gfx] [PATCH] drm/i915: Moving scaler numbers to runtime init

2016-11-22 Thread Nabendu Maiti
Numbers of scalers initialization is moved to runtime init for platform specific initialization. Signed-off-by: Nabendu Maiti <nabendu.bikash.ma...@intel.com> --- drivers/gpu/drm/i915/i915_debugfs.c | 2 +- drivers/gpu/drm/i915/i915_drv.h | 1 + drivers/gpu/dr

Re: [Intel-gfx] [PATCH 0/7] drm/i915: Add pipe scaler for Gen9 in atomic path

2016-10-28 Thread Nabendu Maiti
t 11:16:39AM +0100, Maarten Lankhorst wrote: > > > > Hey, > > > > > > > > Op 23-12-15 om 12:05 schreef Nabendu Maiti: > > > > > This patch is adding pipesource size as property as intel > > > > > property.User application

Re: [Intel-gfx] [PATCH 0/7] drm/i915: Add pipe scaler for Gen9 in atomic path

2016-10-28 Thread Nabendu Maiti
t 11:16:39AM +0100, Maarten Lankhorst wrote: > > > > Hey, > > > > > > > > Op 23-12-15 om 12:05 schreef Nabendu Maiti: > > > > > This patch is adding pipesource size as property as intel > > > > > property.User application

[Intel-gfx] [PATCH 7/7] drm/i915: Pipescaler destination size limit check on Gen9

2016-08-29 Thread Nabendu Maiti
Pipe scaler on gen9 destination size may go out of adjusted modeset size.This patch add limit check on user custom crtc destination size and clamp it within modeset size. Signed-off-by: Nabendu Maiti <nabendu.bikash.ma...@intel.com> --- drivers/gpu/drm/i915/intel_display.c | 11

[Intel-gfx] [PATCH 5/7] drm/i915: Add pipe scaler co-ordinate and size property for Gen9

2016-08-29 Thread Nabendu Maiti
Adding pipe destination co-ordinate and size property as crtc atomic drm property to dynamically change pipe destination attributes on GEN9. Signed-off-by: Nabendu Maiti <nabendu.bikash.ma...@intel.com> --- drivers/gpu/drm/drm_atomic.c | 20 +++ drivers/gpu/drm/drm_

[Intel-gfx] [PATCH 6/7] drm/i915: Update pipe-scaler according to destination size

2016-08-29 Thread Nabendu Maiti
Pipe scaler is scaler registers are updated according to provided destination size from user. Signed-off-by: Nabendu Maiti <nabendu.bikash.ma...@intel.com> --- drivers/gpu/drm/i915/intel_display.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/drivers/g

[Intel-gfx] [PATCH 3/7] drm/i915: Panel fitting calculation for GEN9

2016-08-29 Thread Nabendu Maiti
No boundary condition was checked while calculating pipe scaler size in pch_panel_fitting(), which might result in blank out or corruptions for invalid values. This patch fixes this by adding appropriate checks and calculation for each fitting mode. Signed-off-by: Nabendu Maiti <nabendu.bikash

[Intel-gfx] [PATCH 0/7] drm/i915: Add pipe scaler for Gen9 in atomic path

2016-08-29 Thread Nabendu Maiti
. Nabendu Maiti (7): drm/i915: Add pipe scaler pipe source drm property drm/i915: Add pipe_src size property calculations in atomic path. drm/i915: Panel fitting calculation for GEN9 drm/i915: Adding atomic fitting mode property for GEN9 drm/i915: Add pipe scaler co-ordinate and size

[Intel-gfx] [PATCH 4/7] drm/i915: Adding atomic fitting mode property for GEN9

2016-08-29 Thread Nabendu Maiti
Pipe scaler Fitting mode property is added as crtc atomic property. Signed-off-by: Nabendu Maiti <nabendu.bikash.ma...@intel.com> --- drivers/gpu/drm/drm_atomic.c | 5 drivers/gpu/drm/drm_crtc.c | 8 ++ drivers/gpu/drm/i915/intel_display.

[Intel-gfx] [PATCH 2/7] drm/i915: Add pipe_src size property calculations in atomic path.

2016-08-29 Thread Nabendu Maiti
Adding pipe source size property calculations on atomic path to dynamically change pipe source size. Write desired values to change the size. Write 0 to disable pipe scaler and restore the original mode adjusted values. Signed-off-by: Nabendu Maiti <nabendu.bikash.ma...@intel.com> --- d

[Intel-gfx] [PATCH 1/7] drm/i915: Add pipe scaler pipe source drm property

2016-08-29 Thread Nabendu Maiti
Initialization of pipe source size property as intel drm property to drm level to dynamically change pipe source size. Signed-off-by: Nabendu Maiti <nabendu.bikash.ma...@intel.com> --- drivers/gpu/drm/drm_atomic.c | 10 ++ drivers/gpu/drm/drm_crtc.c | 16 inclu

[Intel-gfx] [PATCH] drm/i915/bxt: Adding bxt scaler ratio limit properties

2016-04-25 Thread Nabendu Maiti
.devtools.intel.com/browse/OAM-14270 Signed-off-by: Nabendu Maiti <nabendu.bikash.ma...@intel.com> Reviewed-on: https://android.intel.com:443/454423 --- drivers/gpu/drm/i915/i915_drv.h | 7 drivers/gpu/drm/i915/intel_atomic_plane.c | 49 +- drivers/gpu/drm/i915/intel_dis

[Intel-gfx] [RFC] drm/i915/bxt: Add pipe_src size property

2015-12-23 Thread Nabendu Maiti
or move to drm level. Signed-off-by: Nabendu Maiti <nabendu.bikash.ma...@intel.com> --- drivers/gpu/drm/i915/i915_drv.h | 1 + drivers/gpu/drm/i915/intel_atomic.c | 66 drivers/gpu/drm/i915/intel_display.c | 46 +++-- drivers/gpu/dr

[Intel-gfx] [PATCH] drm/i915/bxt: Fix wm calculation for pixel format change

2015-12-22 Thread Nabendu Maiti
Recalculate watermark when there is a change in pixel format. Signed-off-by: Nabendu Maiti <nabendu.bikash.ma...@intel.com> --- drivers/gpu/drm/i915/intel_display.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_dis

Re: [Intel-gfx] [PATCH] drm/i915/bxt: Fix uninitialized variables in intel_check_sprite_plane

2015-12-07 Thread Nabendu Maiti
On 11/26/2015 11:33 PM, Nabendu Maiti wrote: On 11/18/2015 10:56 PM, Ville Syrjälä wrote: On Wed, Nov 18, 2015 at 10:33:55PM +0530, Maiti, Nabendu Bikash wrote: On 11/18/2015 7:00 PM, Ville Syrjälä wrote: On Wed, Nov 18, 2015 at 06:48:37PM +0530, Maiti, Nabendu Bikash wrote: On 11/18

Re: [Intel-gfx] [PATCH] drm/i915: Correcting proper src & dst height - width comparision for 90/270 rotation.

2015-12-07 Thread Nabendu Maiti
On 11/27/2015 12:10 AM, Nabendu Maiti wrote: On 11/18/2015 05:44 PM, Ville Syrjälä wrote: On Wed, Nov 18, 2015 at 05:19:26PM +0530, Nabendu Maiti wrote: On 90/270 rotation case source width and height was not compared properly with destination height and width check plane.Which added

Re: [Intel-gfx] [PATCH] drm/i915: Add BXT Sprite plane fractional scalings

2015-12-07 Thread Nabendu Maiti
On 11/27/2015 01:00 AM, Ville Syrjälä wrote: On Thu, Nov 26, 2015 at 08:33:42PM +0200, Ville Syrjälä wrote: On Thu, Nov 26, 2015 at 11:49:43PM +0530, Nabendu Maiti wrote: On 11/18/2015 06:49 PM, Ville Syrjälä wrote: On Wed, Nov 18, 2015 at 06:37:17PM +0530, Maiti, Nabendu Bikash wrote

Re: [Intel-gfx] [PATCH] drm/i915/bxt: Fix uninitialized variables in intel_check_sprite_plane

2015-11-26 Thread Nabendu Maiti
18, 2015 at 12:19:06PM +, Chris Wilson wrote: On Wed, Nov 18, 2015 at 05:43:52PM +0530, Nabendu Maiti wrote: Uninitialized variables (width, Height) in intel_check_sprite_plane leads to compilererror in O1 level. Initialize all declared variables to fix this issue. Signed-off-by: Nabendu Maiti

Re: [Intel-gfx] [PATCH] drm/i915: Add BXT Sprite plane fractional scalings

2015-11-26 Thread Nabendu Maiti
On 11/18/2015 06:49 PM, Ville Syrjälä wrote: On Wed, Nov 18, 2015 at 06:37:17PM +0530, Maiti, Nabendu Bikash wrote: On 11/18/2015 5:41 PM, Ville Syrjälä wrote: On Wed, Nov 18, 2015 at 05:13:01PM +0530, Nabendu Maiti wrote: On older platforms scalers/cliping used to provide destination size

Re: [Intel-gfx] [PATCH] drm/i915: Correcting proper src & dst height - width comparision for 90/270 rotation.

2015-11-26 Thread Nabendu Maiti
On 11/18/2015 05:44 PM, Ville Syrjälä wrote: On Wed, Nov 18, 2015 at 05:19:26PM +0530, Nabendu Maiti wrote: On 90/270 rotation case source width and height was not compared properly with destination height and width check plane.Which added erroneous check while doing scaling or normal 90/270

[Intel-gfx] [PATCH] drm/i915/bxt: Fix uninitialized variables in intel_check_sprite_plane

2015-11-18 Thread Nabendu Maiti
Uninitialized variables (width, Height) in intel_check_sprite_plane leads to compilererror in O1 level. Initialize all declared variables to fix this issue. Signed-off-by: Nabendu Maiti <nabendu.bikash.ma...@intel.com> --- drivers/gpu/drm/i915/intel_sprite.c | 2 +- 1 file changed, 1 ins

[Intel-gfx] [PATCH] drm/i915: Add BXT Sprite plane fractional scalings

2015-11-18 Thread Nabendu Maiti
On older platforms scalers/cliping used to provide destination size an exact multiple of src size. Gen-9 and above support fractional ratio of dst/src so that source is not manipulated to meet the exact multiple factor. Signed-off-by: Nabendu Maiti <nabendu.bikash.ma...@intel.com> --- d

[Intel-gfx] [PATCH] drm/i915: Correcting proper src & dst height - width comparision for 90/270 rotation.

2015-11-18 Thread Nabendu Maiti
On 90/270 rotation case source width and height was not compared properly with destination height and width check plane.Which added erroneous check while doing scaling or normal 90/270 rotation. Signed-off-by: Nabendu Maiti <nabendu.bikash.ma...@intel.com> --- drivers/gpu/dr

[Intel-gfx] [PATCH i-g-t v2 0/2] Overlay Plane support for broxton and plane scaling ehancement

2015-07-20 Thread Nabendu Maiti
1) Added more overlay planes support for BXT. 2) Added and enhanced scaler test cases for additional planes. v2: Splited to two patches and taken care of the review comments (Thomas) Nabendu Maiti (2): lib/igt_fb : Add more overlay plane ssupport for bxt igt/kms_plane_scaling : plane scaling

[Intel-gfx] [PATCH i-g-t v2 2/2] igt/kms_plane_scaling : plane scaling enhancement for bxt

2015-07-20 Thread Nabendu Maiti
Added and enhanced scaler test cases for additional planes. Signed-off-by: Nabendu Maiti nabendu.bikash.ma...@intel.com --- lib/igt_fb.c | 40 lib/igt_fb.h | 1 + tests/kms_plane_scaling.c | 78

[Intel-gfx] [PATCH i-g-t v2 1/2] lib/igt_fb : Add more overlay plane support for bxt

2015-07-20 Thread Nabendu Maiti
Added more overlay plane support for BXT. Signed-off-by: Nabendu Maiti nabendu.bikash.ma...@intel.com --- lib/igt_kms.c | 1 + lib/igt_kms.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/igt_kms.c b/lib/igt_kms.c index 0bb16b4..781ffa5 100644 --- a/lib/igt_kms.c

[Intel-gfx] [PATCH] igt/kms_plane_scaling : plane scaling enhancement and plane support for bxt

2015-07-17 Thread Nabendu Maiti
1) Added more overlay plane support for BXT. 2) Added and enhanced scaler test cases for additional planes. Signed-off-by: Nabendu Maiti nabendu.bikash.ma...@intel.com --- lib/igt_fb.c | 40 lib/igt_fb.h | 1 + lib/igt_kms.c | 1