Re: [PATCH 1/2] drm/framebuffer: Format modifier for Intel Gen-12 render compression

2019-09-07 Thread Dhinakaran Pandiyan
On Sat, 2019-09-07 at 00:21 -0700, Dhinakaran Pandiyan wrote: > Gen-12 has a new compression format, add a new modifier to indicate that. > > Cc: Ville Syrjälä > Cc: Matt Roper > Cc: Nanley G Chery > Cc: Jason Ekstrand Cc: dri-devel@lists.freedesktop.org > Signed-off-by

Re: [Intel-gfx] [PATCH] drm/connector: Allow max possible encoders to attach to a connector

2019-06-26 Thread Dhinakaran Pandiyan
On Wed, 2019-06-26 at 16:31 +0200, Daniel Vetter wrote: > On Wed, Jun 26, 2019 at 04:43:28PM +0300, Ville Syrjälä wrote: > > On Tue, Jun 25, 2019 at 04:40:45PM -0700, Dhinakaran Pandiyan wrote: > > > Currently we restrict the number of encoders that can be linked to >

[PATCH] drm/connector: Allow max possible encoders to attach to a connector

2019-06-25 Thread Dhinakaran Pandiyan
track of the encoder IDs. Cc: José Roberto de Souza Cc: Ville Syrjälä Cc: dri-devel@lists.freedesktop.org Signed-off-by: Dhinakaran Pandiyan --- include/drm/drm_connector.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/drm/drm_connector.h b/include/drm

Re: [PATCH v2 3/3] drm/i915: DDI: call intel_psr_ and _edp_drrs_enable() on pipe updates (v2)

2018-12-21 Thread Dhinakaran Pandiyan
On Thu, 2018-12-20 at 15:13 -0800, Dhinakaran Pandiyan wrote: > On Thu, 2018-12-20 at 09:10 -0800, Rodrigo Vivi wrote: > > On Thu, Dec 20, 2018 at 02:21:20PM +0100, Hans de Goede wrote: > > > Call intel_psr_enable() and intel_edp_drrs_enable() on pipe > > > updates >

Re: [PATCH] drm/i915/psr: simplify enable_psr handling

2018-12-21 Thread Dhinakaran Pandiyan
t enable_psr is handled > and > update the module parameter string to match the actual functionality. > > Cc: Dhinakaran Pandiyan > Cc: Rodrigo Vivi > Signed-off-by: Ross Zwisler > --- > drivers/gpu/drm/i915/i915_drv.h| 1 - > drivers/gpu/drm/i915/i915_params.c |

Re: [PATCH v2 3/3] drm/i915: DDI: call intel_psr_ and _edp_drrs_enable() on pipe updates (v2)

2018-12-20 Thread Dhinakaran Pandiyan
to do this on every encoder->update_pipe > > callback. > > > > Changes in v2: > > -Merge the patches adding the intel_psr_enable() and > > intel_edp_drrs_enable() > > calls into a single patch > > > > Reviewed-by: Maarten Lankhorst > > Signed

Re: [Intel-gfx] [PATCH 2/4] drm/i915: Use drm_hdmi_avi_infoframe_quant_range() for SDVO HDMI as well

2018-12-17 Thread Dhinakaran Pandiyan
On Thu, 2018-12-13 at 15:09 -0800, Dhinakaran Pandiyan wrote: > On Thu, 2018-12-13 at 07:18 +0200, Ville Syrjälä wrote: > > On Wed, Dec 12, 2018 at 04:32:02PM -0800, Dhinakaran Pandiyan > > wrote: > > > On Tue, 2018-11-20 at 18:13 +0200, Ville Syrjala wrote: >

Re: [Intel-gfx] [PATCH 2/4] drm/i915: Use drm_hdmi_avi_infoframe_quant_range() for SDVO HDMI as well

2018-12-13 Thread Dhinakaran Pandiyan
On Thu, 2018-12-13 at 07:18 +0200, Ville Syrjälä wrote: > On Wed, Dec 12, 2018 at 04:32:02PM -0800, Dhinakaran Pandiyan wrote: > > On Tue, 2018-11-20 at 18:13 +0200, Ville Syrjala wrote: > > > From: Ville Syrjälä > > > > > > Fill out the AVI inf

Re: [Intel-gfx] [PATCH 2/4] drm/i915: Use drm_hdmi_avi_infoframe_quant_range() for SDVO HDMI as well

2018-12-12 Thread Dhinakaran Pandiyan
On Tue, 2018-11-20 at 18:13 +0200, Ville Syrjala wrote: > From: Ville Syrjälä > > Fill out the AVI infoframe quantization range bits using > drm_hdmi_avi_infoframe_quant_range() for SDVO HDMI encoder as well. > > Signed-off-by: Ville Syrjälä > --- > drivers/gpu/drm/i915/intel_sdvo.c | 19 +

Re: [Intel-gfx] [PATCH 3/5] drm/dp: Implement I2C_M_STOP for i2c-over-aux

2018-12-10 Thread Dhinakaran Pandiyan
introduced here does make sense. Reviewed-by: Dhinakaran Pandiyan > Signed-off-by: Ville Syrjälä > --- > drivers/gpu/drm/drm_dp_helper.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/drm_dp_helper.c > b/drivers/gpu/drm/drm_dp_he

Re: [PATCH] drm/dp: Set the MOT bit for Write_Status_Update_Request transactions

2018-12-10 Thread Dhinakaran Pandiyan
On Mon, 2018-12-10 at 23:29 +0200, Ville Syrjälä wrote: > On Mon, Dec 10, 2018 at 01:07:49PM -0800, Dhinakaran Pandiyan wrote: > > The Write_Status_Update_Request I2C transaction requires the MOT > > bit to > > be set, Change the logical AND to OR to fix what looks like a

[PATCH] drm/dp: Set the MOT bit for Write_Status_Update_Request transactions

2018-12-10 Thread Dhinakaran Pandiyan
WRITE requests") Signed-off-by: Dhinakaran Pandiyan --- drivers/gpu/drm/drm_dp_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_dp_helper.c b/drivers/gpu/drm/drm_dp_helper.c index 2d6c491a0542..d98805b517f0 100644 --- a/drivers/gpu/drm/drm_d

Re: [Intel-gfx] [PATCH 1/5] drm/dp/mst: Configure no_stop_bit correctly for remote i2c xfers

2018-12-10 Thread Dhinakaran Pandiyan
On Mon, 2018-12-10 at 18:39 +0200, Ville Syrjälä wrote: > On Fri, Dec 07, 2018 at 12:45:25PM -0800, Dhinakaran Pandiyan wrote: > > On Fri, 2018-09-28 at 21:03 +0300, Ville Syrjala wrote: > > > From: Ville Syrjälä > > > > > > We aren't supposed to

Re: [Intel-gfx] [PATCH 5/5] drm/dp/mst: Provide better debugs for NAK replies

2018-12-07 Thread Dhinakaran Pandiyan
On Fri, 2018-12-07 at 16:57 -0800, Dhinakaran Pandiyan wrote: > On Fri, 2018-09-28 at 21:04 +0300, Ville Syrjala wrote: > > From: Ville Syrjälä > > > > Decode the NAK reply fields to make it easier to parse the logs. > > A lot better than seeing the error code

Re: [Intel-gfx] [PATCH 5/5] drm/dp/mst: Provide better debugs for NAK replies

2018-12-07 Thread Dhinakaran Pandiyan
essed, Reviewed-by: Dhinakaran Pandiyan > > Signed-off-by: Ville Syrjälä > --- > drivers/gpu/drm/drm_dp_mst_topology.c | 65 > ++- > include/drm/drm_dp_helper.h | 1 + > 2 files changed, 65 insertions(+), 1 deletion(-) > > diff --g

Re: [Intel-gfx] [PATCH 4/5] drm/dp/mst: Provide defines for ACK vs. NAK reply type

2018-12-07 Thread Dhinakaran Pandiyan
{ > ret = -EREMOTEIO; > goto out; > } > diff --git a/include/drm/drm_dp_helper.h > b/include/drm/drm_dp_helper.h > index 2a3843f248cf..2a0fd9d7066e 100644 > --- a/include/drm/drm_dp_helper.h > +++ b/include/

Re: [Intel-gfx] [PATCH 2/5] drm/dp/mst: Validate REMOTE_I2C_READ harder

2018-12-07 Thread Dhinakaran Pandiyan
g > messages are all writes. Also check that the length of each > message isn't too long. Right, the syntax for i2c_remote_read allows only 8 bits for length. Reviewed-by: Dhinakaran Pandiyan > > Signed-off-by: Ville Syrjälä > --- > drivers/gpu/drm/drm_dp_mst_topology

Re: [Intel-gfx] [PATCH 1/5] drm/dp/mst: Configure no_stop_bit correctly for remote i2c xfers

2018-12-07 Thread Dhinakaran Pandiyan
On Fri, 2018-12-07 at 12:45 -0800, Dhinakaran Pandiyan wrote: > On Fri, 2018-09-28 at 21:03 +0300, Ville Syrjala wrote: > > From: Ville Syrjälä > > > > We aren't supposed to force a stop+start between every i2c msg > > when performing multi message transfers. T

Re: [Intel-gfx] [PATCH 1/5] drm/dp/mst: Configure no_stop_bit correctly for remote i2c xfers

2018-12-07 Thread Dhinakaran Pandiyan
On Fri, 2018-09-28 at 21:03 +0300, Ville Syrjala wrote: > From: Ville Syrjälä > > We aren't supposed to force a stop+start between every i2c msg > when performing multi message transfers. This should eg. cause > the DDC segment address to be reset back to 0 between writing > the segment address a

Re: [PATCH] drm: Fix documentation generation for DP_DPCD_QUIRK_NO_PSR

2018-12-05 Thread Dhinakaran Pandiyan
CD_QUIRK_NO_PSR > Cc: dri-devel@lists.freedesktop.org Reviewed-by: Dhinakaran Pandiyan > Fixes: 7c5c641a930e (drm/i915: Disable PSR in Apple panels) > Cc: Dhinakaran Pandiyan > Signed-off-by: José Roberto de Souza > --- > include/drm/drm_dp_helper.h | 2 +- > 1 file

Re: [PATCH v2 10/11] drm/i915: Improve PSR2 CTL macros

2018-12-03 Thread Dhinakaran Pandiyan
SR2_IDLE_FRAME_MAX > > In the next patch the new macros will be used. > > Cc: Dhinakaran Pandiyan > Cc: Rodrigo Vivi > Signed-off-by: José Roberto de Souza > --- > drivers/gpu/drm/i915/i915_reg.h | 7 --- > 1 file changed, 4 insertions(+), 3 deletions(-) > &g

Re: [PATCH v2 01/11] drm/i915: Disable PSR in Apple panels

2018-12-03 Thread Dhinakaran Pandiyan
On Mon, 2018-12-03 at 12:14 -0800, Souza, Jose wrote: > On Fri, 2018-11-30 at 15:35 -0800, Dhinakaran Pandiyan wrote: > > On Thu, 2018-11-29 at 18:25 -0800, José Roberto de Souza wrote: > > > i915 yet don't support PSR in Apple panels, so lets keep it > > > disa

Re: [PATCH v2 08/11] drm/i915/psr: Check if source supports sink specific SU granularity

2018-12-03 Thread Dhinakaran Pandiyan
On Thu, 2018-11-29 at 18:25 -0800, José Roberto de Souza wrote: > According to eDP spec, sink can required specific selective update > granularity that source must comply. > Here caching the value if required and checking if source supports > it. > > Cc: Rodrigo Vivi > Cc

Re: [PATCH v2 01/11] drm/i915: Disable PSR in Apple panels

2018-12-03 Thread Dhinakaran Pandiyan
On Fri, 2018-11-30 at 15:35 -0800, Dhinakaran Pandiyan wrote: > On Thu, 2018-11-29 at 18:25 -0800, José Roberto de Souza wrote: > > i915 yet don't support PSR in Apple panels, so lets keep it > > disabled > > while we work on that. > > > > v2: Renamed DP_DPC

Re: [PATCH v2 07/11] drm/i915/psr: Check if resolution is supported by default SU granularity

2018-11-30 Thread Dhinakaran Pandiyan
ng* > > Cc: Dhinakaran Pandiyan > Cc: Rodrigo Vivi > Signed-off-by: José Roberto de Souza > --- > drivers/gpu/drm/i915/intel_psr.c | 12 > 1 file changed, 12 insertions(+) > > diff --git a/drivers/gpu/drm/i915/intel_psr.c > b/drivers/gpu/drm/i915/intel_psr.c

Re: [PATCH v2 06/11] drm: Add the PSR SU granularity registers offsets

2018-11-30 Thread Dhinakaran Pandiyan
On Thu, 2018-11-29 at 18:25 -0800, José Roberto de Souza wrote: > Source is required to comply to sink SU granularity when > DP_PSR2_SU_GRANULARITY_REQUIRED is set in DP_PSR_CAPS, > so adding the registers offsets. > > v2: Also adding DP_PSR2_SU_Y_GRANULARITY(Rodrigo) > > Cc

Re: [PATCH v2 04/11] drm/i915/psr: Enable sink to trigger a interruption on PSR2 CRC mismatch

2018-11-30 Thread Dhinakaran Pandiyan
short pulse handling implemented, I think we are ready for this. Reviewed-by: Dhinakaran Pandiyan > > Cc: Dhinakaran Pandiyan > Reviewed-by: Rodrigo Vivi > Signed-off-by: José Roberto de Souza > --- > drivers/gpu/drm/i915/intel_psr.c | 2 +- > 1 file changed, 1 insertion(+)

Re: [PATCH v2 03/11] drm/i915/psr: Set PSR CRC verification bit in sink inside PSR1 block

2018-11-30 Thread Dhinakaran Pandiyan
On Thu, 2018-11-29 at 18:25 -0800, José Roberto de Souza wrote: > As we have a else block for the 'if (dev_priv->psr.psr2_enabled) {' > and this bit is only set for PSR1 move it to that block to make it > more easy to read. > > Cc: Dhinakaran Pandiyan > Cc: Rodr

Re: [PATCH v2 02/11] drm/i915/psr: Don't tell sink that main link will be active while is active PSR2

2018-11-30 Thread Dhinakaran Pandiyan
On Thu, 2018-11-29 at 18:25 -0800, José Roberto de Souza wrote: > For PSR2 there is no register to tell HW to keep main link enabled Right, there is no bit in PSR2_CTL Reviewed-by: Dhinakaran Pandiyan > while PSR2 is active, so don't configure sink DPCD with a > misleading

Re: [PATCH v2 01/11] drm/i915: Disable PSR in Apple panels

2018-11-30 Thread Dhinakaran Pandiyan
598c6cfe0690 (drm/i915/psr: Enable PSR1 on gen-9+ HW) > Cc: Ville Syrjälä > Cc: Rodrigo Vivi > Cc: Dhinakaran Pandiyan > Signed-off-by: José Roberto de Souza > --- > drivers/gpu/drm/drm_dp_helper.c | 2 ++ > drivers/gpu/drm/i915/intel_psr.c | 6 ++ > include/drm/drm_dp_he

Re: [Intel-gfx] [PATCH 1/9] drm/i915: Disable PSR in Apple panels

2018-11-29 Thread Dhinakaran Pandiyan
ot;Apple" with specific model name? > > > disabled > > > while we work on that. > > > > > > Fixes: 598c6cfe0690 (drm/i915/psr: Enable PSR1 on gen-9+ HW) Bugzilla please. Also Cc the bug reporter? > > > Cc: Rodrigo Vivi > > > Cc: Dhin

Re: [PATCH 3/9] drm/i915/psr: Enable sink to trigger a interruption on PSR2 CRC mismatch

2018-11-29 Thread Dhinakaran Pandiyan
TION is for PSR only and > > DP_PSR_IRQ_HPD_WITH_CRC_ERRORS is for PSR2 only. > > > > Cc: Dhinakaran Pandiyan > > Cc: Rodrigo Vivi > > Signed-off-by: José Roberto de Souza > > --- > > drivers/gpu/drm/i915/intel_psr.c | 2 +- > > 1 file changed,

Re: [PATCH 9/9] drm/i915: Remove old PSR2 FIXME about frontbuffer tracking

2018-11-29 Thread Dhinakaran Pandiyan
cessary so this FIXME is not valid anymore. > > > > Cc: Dhinakaran Pandiyan > > Cc: Rodrigo Vivi > > Signed-off-by: José Roberto de Souza > > Reviewed-by: Rodrigo Vivi Acked-by: Dhinakaran Pandiyan > > > --- > > drivers/gpu/drm/i915/intel_ps

Re: [PATCH 7/9] drm/i915/psr: Rename PSR2 macros to better match meaning

2018-11-29 Thread Dhinakaran Pandiyan
are shorter > - they follow the exact name we have on spec +1 for the above reason. > > > > > Also taking the oportunity to improve those macros. > > > > Cc: Rodrigo Vivi > > Cc: Dhinakaran Pandiyan > > Signed-off-by: José Roberto de Souza > &

Re: [PATCH] drm/framebuffer: Expose only modifiers that support at least a format

2018-11-06 Thread Dhinakaran Pandiyan
On Tue, 2018-11-06 at 22:21 +0200, Ville Syrjälä wrote: > On Tue, Nov 06, 2018 at 11:54:45AM -0800, Dhinakaran Pandiyan wrote: > > On Tue, 2018-11-06 at 16:13 +0200, Ville Syrjälä wrote: > > > On Mon, Nov 05, 2018 at 06:44:34PM -0800, Dhinakaran Pandiyan > > > wrote: >

Re: [PATCH] drm/framebuffer: Expose only modifiers that support at least a format

2018-11-06 Thread Dhinakaran Pandiyan
On Tue, 2018-11-06 at 16:13 +0200, Ville Syrjälä wrote: > On Mon, Nov 05, 2018 at 06:44:34PM -0800, Dhinakaran Pandiyan wrote: > > Allows drivers to pass a larger modifier array, thereby avoiding > > declarations of static modifier arrays that are only slight > > differe

[PATCH] drm/framebuffer: Expose only modifiers that support at least a format

2018-11-05 Thread Dhinakaran Pandiyan
Allows drivers to pass a larger modifier array, thereby avoiding declarations of static modifier arrays that are only slight different for each plane. Cc: dri-devel@lists.freedesktop.org Cc: Ville Syrjälä Suggested-by: Ville Syrjälä Signed-off-by: Dhinakaran Pandiyan --- drivers/gpu/drm

Re: [PATCH v4 2/2] drm/i915: Eliminate the horrendous format check code

2018-10-29 Thread Dhinakaran Pandiyan
rm > checks for different formats. The new code requires zero maintenance. > > v2: Nuke the modifier checks as well since the core does that too now > v3: Call drm_any_plane_has_format() from the driver code > v4: Rebase > > Cc: Dhinakaran Pandiyan Reviewed-by: Dhinakaran Pa

Re: [Intel-gfx] [PATCH v3 2/4] drm/i915: Eliminate the horrendous format check code

2018-10-26 Thread Dhinakaran Pandiyan
On Fri, 2018-03-09 at 17:14 +0200, Ville Syrjala wrote: > From: Ville Syrjälä > > Replace the messy framebuffer format/modifier validation code > with a single call to drm_any_plane_has_format(). The code was > extremely annoying to maintain as you had to have a lot of platform > checks for diffe

Re: [Intel-gfx] [PATCH v3 1/4] drm: Add drm_any_plane_has_format()

2018-10-26 Thread Dhinakaran Pandiyan
the > modifier yet, instead export the function and let drivers > call it themselves > > Cc: Eric Anholt > Signed-off-by: Ville Syrjälä I ended up writing a similar patch for i915. Having this in the core seems better and patch still applies cleanly. Reviewed-by: Dhinaka

[PATCH 1/2] drm/plane: Export drm_plane_check_pixel_format()

2018-10-25 Thread Dhinakaran Pandiyan
i915 will make use of this to fail early during framebuffer creation. Suggested-by: Ville Syrjälä Cc: dri-devel@lists.freedesktop.org Cc: Ville Syrjälä Signed-off-by: Dhinakaran Pandiyan --- drivers/gpu/drm/drm_plane.c | 1 + include/drm/drm_plane.h | 11 +++ 2 files changed, 12

Re: [PATCH 3/3] drm: add LG eDP panel to quirk database

2018-09-11 Thread Dhinakaran Pandiyan
gt; Cc: Jani Nikula > > Cc: Cooper Chiou > > Cc: Matt Atwood > > Cc: Maarten Lankhorst > > Cc: Dhinakaran Pandiyan > > Cc: Clint Taylor > > Signed-off-by: Lee, Shawn C > > No access to the panel or its details, so instead of review, > > A

Re: [PATCH v2 1/3] drm: Add support for device_id based detection.

2018-09-11 Thread Dhinakaran Pandiyan
ement some changes for branch/sink device > that really need additional WA. > > Cc: Jani Nikula > Cc: Cooper Chiou > Cc: Matt Atwood > Cc: Maarten Lankhorst > Cc: Dhinakaran Pandiyan > Cc: Clint Taylor > Signed-off-by: Lee, Shawn C > --- > drivers/gpu/drm/drm

Re: [Intel-gfx] [PATCH v7 2/2] drm/i915: Adding YUV444 packed format(DRM_FORMAT_XYUV) support.

2018-08-30 Thread Dhinakaran Pandiyan
On Thu, 2018-08-30 at 13:57 +0100, Lisovskiy, Stanislav wrote: > On Wed, 2018-08-29 at 12:16 -0700, Dhinakaran Pandiyan wrote: > > > > On Wed, 2018-08-29 at 21:10 +0300, Ville Syrjälä wrote: > > > On Wed, Aug 29, 2018 at 02:28:47PM +0300, Stanisl

Re: [Intel-gfx] [PATCH v7 2/2] drm/i915: Adding YUV444 packed format(DRM_FORMAT_XYUV) support.

2018-08-29 Thread Dhinakaran Pandiyan
On Wed, 2018-08-29 at 21:10 +0300, Ville Syrjälä wrote: > On Wed, Aug 29, 2018 at 02:28:47PM +0300, Stanislav Lisovskiy wrote: > > PLANE_CTL_FORMAT_AYUV is already supported, according to hardware > > specification. > > > > v2: Edited commit message, removed redundant whitespaces. > > > > v3: F

Re: [Intel-gfx] [PATCH 2/2] drm/i915: implement EXTENDED_RECEIVER_CAPABILITY_FIELD_PRESENT

2018-07-17 Thread Dhinakaran Pandiyan
On Tue, 2018-07-17 at 15:34 -0700, Dhinakaran Pandiyan wrote: > On Tue, 2018-07-17 at 14:49 -0700, matthew.s.atw...@intel.com wrote: > > > > From: Matt Atwood > > > > According to DP spec (2.9.3.1 of DP 1.4) if > > EXTENDED_RECEIVER_CAPABILITY_FIELD_PRESENT

Re: [Intel-gfx] [PATCH 2/2] drm/i915: implement EXTENDED_RECEIVER_CAPABILITY_FIELD_PRESENT

2018-07-17 Thread Dhinakaran Pandiyan
On Tue, 2018-07-17 at 14:49 -0700, matthew.s.atw...@intel.com wrote: > From: Matt Atwood > > According to DP spec (2.9.3.1 of DP 1.4) if > EXTENDED_RECEIVER_CAPABILITY_FIELD_PRESENT is set the addresses in > DPCD > 02200h through 0220Fh shall contain the DPRX's true capability. These > values wil

Re: [Intel-gfx] [PATCH 10/14] drm/i915: Populate possible_crtcs correctly

2018-06-25 Thread Dhinakaran Pandiyan
On Mon, 2018-06-25 at 14:10 +0300, Ville Syrjälä wrote: > On Thu, Jun 21, 2018 at 06:26:04PM -0700, Dhinakaran Pandiyan wrote: > > > > On Fri, 2018-06-15 at 19:49 +0300, Ville Syrjala wrote: > > > > > > From: Ville Syrjälä > > > > > >

Re: [Intel-gfx] [PATCH 10/14] drm/i915: Populate possible_crtcs correctly

2018-06-21 Thread Dhinakaran Pandiyan
On Fri, 2018-06-15 at 19:49 +0300, Ville Syrjala wrote: > From: Ville Syrjälä > > Don't advertize non-exisiting crtcs in the encoder possible_crtcs > bitmask. > How do we end up advertising non-existing CRTCs? encoder->crtc_mask seems to be populated in the encoder init functions based on possib

Re: [Intel-gfx] [PATCH 11/14] drm/i915: Fix DP-MST crtc_mask

2018-06-21 Thread Dhinakaran Pandiyan
On Fri, 2018-06-15 at 21:43 +0300, Ville Syrjälä wrote: > On Fri, Jun 15, 2018 at 11:33:01AM -0700, Dhinakaran Pandiyan wrote: > > > > On Fri, 2018-06-15 at 19:49 +0300, Ville Syrjala wrote: > > > > > > From: Ville Syrjälä > > > > > > Each f

Re: [Intel-gfx] [PATCH 11/14] drm/i915: Fix DP-MST crtc_mask

2018-06-15 Thread Dhinakaran Pandiyan
On Fri, 2018-06-15 at 19:49 +0300, Ville Syrjala wrote: > From: Ville Syrjälä > > Each fake MST encoder is tied to a specific pipe. Fix the encoder's > crtc_mask to reflect that fact. > > Signed-off-by: Ville Syrjälä > --- >  drivers/gpu/drm/i915/intel_dp_mst.c | 2 +- >  1 file changed, 1 inser

[PATCH 3/6] drm/psr: Fix missed entry in PSR setup time table.

2018-05-11 Thread Dhinakaran Pandiyan
1.4a. Fixes: 6608804b3d7f ("drm/dp: Add drm_dp_psr_setup_time()") Cc: sta...@vger.kernel.org Cc: Ville Syrjälä Cc: Jose Roberto de Souza Cc: dri-devel@lists.freedesktop.org Signed-off-by: Dhinakaran Pandiyan --- drivers/gpu/drm/drm_dp_helper.c | 1 + 1 file changed, 1 insertion(+) di

Re: [PATCH] drm/psr: Fix missed entry in PSR setup time table.

2018-05-11 Thread Dhinakaran Pandiyan
On Fri, 2018-05-11 at 18:03 +, Souza, Jose wrote: > On Thu, 2018-05-10 at 17:54 -0700, Dhinakaran Pandiyan wrote: > > > > Entry corresponding to 220 us setup time was missing. I am not > > aware > > of > > any specific bug this fixes, but this could potential

Re: [Intel-gfx] [PATCH v7 02/10] drm/i915: Move DP modeset retry work into intel_dp

2018-04-24 Thread Dhinakaran Pandiyan
On Wed, 2018-04-11 at 18:54 -0400, Lyude Paul wrote: > While having the modeset_retry_work in intel_connector makes sense with > SST, this paradigm doesn't make a whole ton of sense when it comes to > MST since we have to deal with multiple connectors. In most cases, it's > more useful to just u

Re: [Intel-gfx] [PATCH v8 01/10] drm/atomic: Print debug message on atomic check failure

2018-04-24 Thread Dhinakaran Pandiyan
"atomic driver check for %p failed: %d\n", > + state, ret); > return ret; > + } > nit: Would have slightly looked better if the 'ret' check was moved inside the branch for funcs->atomic_check. Reviewed-by: Dhinakara

Re: [PATCH v4] drm/i915/dp: Send DPCD ON for MST before phy_up

2018-04-06 Thread Dhinakaran Pandiyan
; > Since DPMS is what lets us actually bring the hub up into a state where > sideband communications become functional again, we just need to make > sure to enable DPMS on the display before attempting to perform sideband > communications. > Matches my understanding of the p

Re: [Intel-gfx] [PATCH v3] drm/i915/dp: Send DPCD ON for MST before phy_up

2018-04-05 Thread Dhinakaran Pandiyan
, and only send > DPMS on when we're enabling the first sink - dhnkrn > > Signed-off-by: Lyude Paul > Cc: Dhinakaran Pandiyan > Cc: Ville Syrjälä > Cc: Laura Abbott > Cc: sta...@vger.kernel.org > Fixes: ad260ab32a4d9 ("drm/i915/dp: Write to SET_POWER dpcd

Re: [Intel-gfx] [PATCH] drm/i915/dp: Send DPCD ON for MST before phy_up

2018-04-05 Thread Dhinakaran Pandiyan
hub is ready > > to accept sideband messages. > > > > Signed-off-by: Lyude Paul > > Cc: Dhinakaran Pandiyan > > Cc: Ville Syrjälä > > Cc: Laura Abbott > > Cc: sta...@vger.kernel.org > > Fixes: ad260ab32a4d9 ("drm/i915/dp: Write to SET_POWER dpc

[PATCH] drm/doc: Fix documentation for _vblank_restore().

2018-02-21 Thread Dhinakaran Pandiyan
No code changes, fixes doc build warnings and polish some doc text. Reported-by: Daniel Vetter Cc: Rodrigo Vivi Cc: Daniel Vetter Signed-off-by: Dhinakaran Pandiyan --- drivers/gpu/drm/drm_vblank.c | 22 ++ 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a

[PATCH 07/10] drm/atomic: Handle 64-bit return from drm_crtc_vblank_count()

2018-02-02 Thread Dhinakaran Pandiyan
eturn from drm_crtc_vblank_count() explicitly to add clarity. __drm_crtcs_state.last_vblank_count however only ever stores the value from drm_crtc_vblank_count() and can be upgraded to u64. Cc: Keith Packard Cc: Rodrigo Vivi Signed-off-by: Dhinakaran Pandiyan --- drivers/gpu/drm/drm_plane.c | 2 +- i

[PATCH 08/10] drm/vblank: Do not update vblank count if interrupts are already disabled.

2018-02-02 Thread Dhinakaran Pandiyan
means the registers should be read before disabling vblank interrupts. v2: Don't check vblank->enabled outside it's lock (Chris) Cc: Chris Wilson Cc: Daniel Vetter Cc: Michel Dänzer Signed-off-by: Dhinakaran Pandiyan Reviewed-by: Rodrigo Vivi Acked-by: Daniel Vetter --- drivers/gp

[PATCH 06/10] drm/tegra: Handle 64-bit return from drm_crtc_vblank_count()

2018-02-02 Thread Dhinakaran Pandiyan
u32 either fixes a potential problem or serves to add clarity in case the implicit typecasting was already correct. Cc: Keith Packard Cc: Thierry Reding Signed-off-by: Dhinakaran Pandiyan --- drivers/gpu/drm/tegra/dc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu

[PATCH 09/10] drm/vblank: Restoring vblank counts after device PM events.

2018-02-02 Thread Dhinakaran Pandiyan
xpected to be called from the driver _enable_vblank() vfunc. v2: drm_crtc_vblank_restore should take crtc as arg. (Chris) Add docs and sprinkle some asserts. Cc: Daniel Vetter Cc: Chris Wilson Cc: Michel Dänzer Signed-off-by: Dhinakaran Pandiyan Reviewed-by: Rodrigo Vivi Acked-by:

[PATCH 02/10] drm/i915/vblank: Make the vblank counter u64 -> u32 typecast explicit

2018-02-02 Thread Dhinakaran Pandiyan
Core returns a u64 vblank count and intel_crtc_get_vblank_counter() expects a 32-bit value. Make the typecast explicit to add clarity. Cc: Keith Packard Cc: Rodrigo Vivi Signed-off-by: Dhinakaran Pandiyan --- drivers/gpu/drm/i915/intel_display.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 10/10] drm/i915: Estimate and update missed vblanks.

2018-02-02 Thread Dhinakaran Pandiyan
the counter running. This change is not applicable to CHV, as enabling interrupts does not prevent the hardware from activating PSR. v2: Added comments(Rodrigo) and rewrote commit message. Cc: Ville Syrjälä Cc: Rodrigo Vivi Signed-off-by: Dhinakaran Pandiyan Reviewed-by: Rodrigo Vivi Ack

[PATCH 04/10] drm/amdgpu: Handle 64-bit return from drm_crtc_vblank_count()

2018-02-02 Thread Dhinakaran Pandiyan
u32 either fixes a potential problem or serves to add clarity in case the typecasting was implicitly done. Cc: Keith Packard Cc: Alex Deucher Cc: Harry Wentland Signed-off-by: Dhinakaran Pandiyan --- drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 2 +- drivers/gpu/drm/amd/display/amdgpu_dm/a

[PATCH 05/10] drm/radeon: Handle 64-bit return from drm_crtc_vblank_count()

2018-02-02 Thread Dhinakaran Pandiyan
u32 either fixes a potential problem or serves to add clarity in case the implicit typecasting was already correct. Cc: Keith Packard Cc: Alex Deucher Cc: Harry Wentland Signed-off-by: Dhinakaran Pandiyan --- drivers/gpu/drm/radeon/radeon_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletio

[PATCH 01/10] drm/vblank: Data type fixes for 64-bit vblank sequences.

2018-02-02 Thread Dhinakaran Pandiyan
en vblank count to 64-bits [v3]") Cc: Keith Packard Cc: Michel Dänzer Cc: Daniel Vetter Cc: Rodrigo Vivi Signed-off-by: Dhinakaran Pandiyan Acked-by: Daniel Vetter --- drivers/gpu/drm/drm_vblank.c | 8 include/drm/drm_vblank.h | 2 +- 2 files changed, 5 insertions(+), 5

[PATCH 03/10] drm/i915: Handle 64-bit return from drm_crtc_vblank_count()

2018-02-02 Thread Dhinakaran Pandiyan
570e86963a51 ("drm: Widen vblank count to 64-bits [v3]") changed the return type for drm_crtc_vblank_count() to u64, store all the bits without truncating. There is no need to type cast this value down to 32-bits. Cc: Keith Packard Cc: Paulo Zanoni Cc: Rodrigo Vivi Signed-off-by:

[PATCH 8/9] drm/dp: Export AUX_RETRY_INTERVAL

2018-01-26 Thread Dhinakaran Pandiyan
Drivers can use this in their retry loops too. Cc: dri-devel@lists.freedesktop.org Signed-off-by: Dhinakaran Pandiyan --- drivers/gpu/drm/drm_dp_helper.c | 12 +--- include/drm/drm_dp_helper.h | 2 ++ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm

[PATCH 1/5] drm/vblank: Fix return type for drm_vblank_count()

2018-01-12 Thread Dhinakaran Pandiyan
bit value and gets queued like that. However, the code that checks if the requested sequence has passed compares this against the 64-bit vblank count. Cc: Keith Packard Cc: Michel Dänzer Cc: Daniel Vetter Signed-off-by: Dhinakaran Pandiyan --- drivers/gpu/drm/drm_vblank.c | 2 +- 1 file changed

[PATCH 5/5] drm/i915: Estimate and update missed vblanks.

2018-01-12 Thread Dhinakaran Pandiyan
hereby stalling the counter. Cc: Rodrigo Vivi Signed-off-by: Dhinakaran Pandiyan --- drivers/gpu/drm/i915/i915_irq.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c index 3517c6548e2c..db3466ec6faa 100644 --- a/drive

[PATCH 3/5] drm/vblank: Do not update vblank count if interrupts are already disabled.

2018-01-12 Thread Dhinakaran Pandiyan
disabling vblank interrupts. v2: Don't check vblank->enabled outside it's lock (Chris) Cc: Chris Wilson Cc: Daniel Vetter Cc: Michel Dänzer Signed-off-by: Dhinakaran Pandiyan --- drivers/gpu/drm/drm_vblank.c | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-)

[PATCH 4/5] drm/vblank: Restoring vblank counts after device PM events.

2018-01-12 Thread Dhinakaran Pandiyan
ver _enable_vblank() vfunc. v2: drm_crtc_vblank_restore should take crtc as arg. (Chris) Add docs and sprinkle some asserts. Cc: Daniel Vetter Cc: Chris Wilson Cc: Michel Dänzer Signed-off-by: Dhinakaran Pandiyan --- drivers/gpu/drm/drm_vblank.c | 59 incl

[PATCH 2/5] drm/vblank: Fix data type width for drm_crtc_arm_vblank_event()

2018-01-12 Thread Dhinakaran Pandiyan
ter Signed-off-by: Dhinakaran Pandiyan --- drivers/gpu/drm/drm_vblank.c | 4 ++-- include/drm/drm_vblank.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/drm_vblank.c b/drivers/gpu/drm/drm_vblank.c index 768a8e44d99b..f2bf1f5dbaa5 100644 --- a/drivers/gpu/

[PATCH] drm/dp: Power cycle display if LINK_ADDRESS fails.

2017-12-20 Thread Dhinakaran Pandiyan
ssage fixes the issue. I am not entirely sure if this is specific to my setup. However, as the power state is toggled conditionally on LINK_ADDRESS timeouts, this should not affect the working cases. Cc: Lyude Cc: Dave Airlie Cc: Jani Nikula Signed-off-by: Dhinakaran Pandiyan --- drivers/gp

[PATCH v2 7/8] drm/i915: Introduce a non-blocking power domain for vblank interrupts

2017-12-18 Thread Dhinakaran Pandiyan
get_if_enabled. Modify power_domain_verify_state to check power well use count and enabled status atomically. Rewrite of intel_power_well_{get,put} Cc: Daniel Vetter Cc: Ville Syrjälä Cc: Rodrigo Vivi Signed-off-by: Dhinakaran Pandiyan --- drivers/gpu/drm/i915/i915_drv.h | 18

[PATCH v2 3/8] drm/i915/psr: Avoid initializing PSR if there is no sink support.

2017-12-18 Thread Dhinakaran Pandiyan
DPCD read for the eDP is complete by the time intel_psr_init() is called, which means we can avoid initializing PSR structures and state if there is no sink support. Cc: Rodrigo Vivi Cc: Ville Syrjälä Signed-off-by: Dhinakaran Pandiyan --- drivers/gpu/drm/i915/i915_debugfs.c | 7

[PATCH v2 6/8] drm/i915: Use an atomic_t array to track power domain use count.

2017-12-18 Thread Dhinakaran Pandiyan
Convert the power_domains->domain_use_count array that tracks per-domain use count to atomic_t type. This is needed to be able to read/write the use counts outside of the power domain mutex. Cc: Daniel Vetter Cc: Ville Syrjälä Cc: Rodrigo Vivi Signed-off-by: Dhinakaran Pandiyan --- driv

[PATCH v2 8/8] drm/i915: Use the vblank power domain disallow or disable DC states.

2017-12-18 Thread Dhinakaran Pandiyan
Signed-off-by: Dhinakaran Pandiyan --- drivers/gpu/drm/i915/i915_irq.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c index 3517c6548e2c..88b4ceac55d0 100644 --- a/drivers/gpu/drm/i915/i915_irq.c +++ b/drivers/gpu/drm/i915

[PATCH v2 4/8] drm/vblank: Do not update vblank counts if vblanks are already disabled.

2017-12-18 Thread Dhinakaran Pandiyan
that's for the future. Also, disable vblanks after reading the HW counter in the case where _crtc_vblank_off() is disabling vblanks. Cc: Daniel Vetter Cc: Ville Syrjälä Cc: Rodrigo Vivi Signed-off-by: Dhinakaran Pandiyan --- drivers/gpu/drm/drm_vblank.c | 23 +-- 1

[PATCH v2 1/8] drm/i915/psr: Kill psr.source_ok flag.

2017-12-18 Thread Dhinakaran Pandiyan
This flag has become redundant since commit 4d90f2d507ab ("drm/i915: Start tracking PSR state in crtc state") It is set at the same place as psr.enabled, which is also exposed via debugfs. Cc: Rodrigo Vivi Cc: Ville Syrjälä Signed-off-by: Dhinakaran Pandiyan --- drivers/gp

[PATCH v2 0/8] Fix PSR-vblank-DMC interaction

2017-12-18 Thread Dhinakaran Pandiyan
. Dhinakaran Pandiyan (8): drm/i915/psr: Kill psr.source_ok flag. drm/i915/psr: CAN_PSR() macro to check for PSR source and sink support. drm/i915/psr: Avoid initializing PSR if there is no sink support. drm/vblank: Do not update vblank counts if vblanks are already disabled. drm/vblank

[PATCH v2 5/8] drm/vblank: Restoring vblank counts after device runtime PM events.

2017-12-18 Thread Dhinakaran Pandiyan
blank interrupts because this function is expected to be called from the driver _enable_vblank() vfunc. Cc: Daniel Vetter Cc: Ville Syrjälä Cc: Rodrigo Vivi Signed-off-by: Dhinakaran Pandiyan --- drivers/gpu/drm/drm_vblank.c | 33 + include/drm/drm_vblank.h | 1

[PATCH v2 2/8] drm/i915/psr: CAN_PSR() macro to check for PSR source and sink support.

2017-12-18 Thread Dhinakaran Pandiyan
ivi Signed-off-by: Dhinakaran Pandiyan --- drivers/gpu/drm/i915/intel_drv.h | 1 + drivers/gpu/drm/i915/intel_psr.c | 19 --- 2 files changed, 5 insertions(+), 15 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_drv.h b/drivers/gpu/drm/i915/intel_drv.h index 30f791f89

[PATCH 2/5] drm/vblank: Restoring vblank counts after device runtime PM events.

2017-12-06 Thread Dhinakaran Pandiyan
blank interrupts because this function is expected to be called from the driver _enable_vblank() vfunc. Signed-off-by: Dhinakaran Pandiyan --- drivers/gpu/drm/drm_vblank.c | 30 ++ include/drm/drm_vblank.h | 1 + 2 files changed, 31 insertions(+) diff --git a/driver

[PATCH 5/5] drm/i915: Use the vblank power domain disallow or disable DC states.

2017-12-06 Thread Dhinakaran Pandiyan
Disable DC states before enabling vblank interrupts and conversely enable DC states after disabling. Since the frame counter may have got reset between disabling and enabling, use drm_crtc_vblank_restore() to compute the missed vblanks. Signed-off-by: Dhinakaran Pandiyan --- drivers/gpu/drm

[PATCH 1/5] drm/vblank: Do not update vblank counts if vblanks are already disabled.

2017-12-06 Thread Dhinakaran Pandiyan
that's for the future. Also, disable vblanks after reading the HW counter in the case where _crtc_vblank_off() is disabling vblanks. Signed-off-by: Dhinakaran Pandiyan --- drivers/gpu/drm/drm_vblank.c | 23 +-- 1 file changed, 9 insertions(+), 14 deletions(-) diff --

[PATCH 3/5] drm/i915: Use an atomic_t array to track power domain use count.

2017-12-06 Thread Dhinakaran Pandiyan
Convert the power_domains->domain_use_count array that tracks per-domain use count to atomic_t type. This is needed to be able to read/write the use counts outside of the power domain mutex. Signed-off-by: Dhinakaran Pandiyan --- drivers/gpu/drm/i915/i915_debugfs.c | 2 +- drivers/gpu/

[PATCH 4/5] drm/i915: Introduce a non-blocking power domain for vblank interrupts

2017-12-06 Thread Dhinakaran Pandiyan
already enabled, introduce a new power domain. Since this power domain reference needs to be acquired and released in atomic context, the corresponding _get() and _put() methods skip the power_domain mutex. Signed-off-by: Dhinakaran Pandiyan --- drivers/gpu/drm/i915/i915_drv.h | 5

[RFC PATCH] drm/vblanks: Deal with HW vblank counter resets.

2017-11-06 Thread Dhinakaran Pandiyan
fall back approach is sane and if it should be implemented in the core. Cc: Daniel Vetter Cc: Rodrigo Vivi Cc: Ville Syrjälä Signed-off-by: Dhinakaran Pandiyan --- drivers/gpu/drm/drm_vblank.c | 26 -- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/drive

[PATCH] drm/dp: Update SET_POWER_MASK to include the D3 Aux-On state too.

2017-10-30 Thread Dhinakaran Pandiyan
: Dhinakaran Pandiyan --- include/drm/drm_dp_helper.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/drm/drm_dp_helper.h b/include/drm/drm_dp_helper.h index 9049ef133d69..aea10f85dd4c 100644 --- a/include/drm/drm_dp_helper.h +++ b/include/drm/drm_dp_helper.h @@ -617,8 +617,8

[PATCH v2] drm/dp: DPCD register defines for link status within ESI field

2017-09-13 Thread Dhinakaran Pandiyan
within 80 cols. Cc: Jani Nikula Reviewed-by: Jani Nikula Signed-off-by: Dhinakaran Pandiyan --- include/drm/drm_dp_helper.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/drm/drm_dp_helper.h b/include/drm/drm_dp_helper.h index 2c412a15cfa1..11c39f15f1b3 100644 --- a/i

[PATCH] drm/dp: DPCD register defines for link status within ESI field

2017-09-13 Thread Dhinakaran Pandiyan
Link status is available in the ESI field on devices with DPCD r1.2 or higher. DP spec also says "An MST upstream device shall use this field instead of the Link/Sink Device Status field registers, starting from DPCD Address 00200h." Cc: Jani Nikula Signed-off-by: Dhinakara

[PATCH v2] drm/dp/mst: Sideband message transaction to power up/down nodes

2017-09-06 Thread Dhinakaran Pandiyan
. Secondly, since the request-reply protocol waits for an ACK, we can be sure that a downstream sink has enough time to respond to a power up/down request. v2: Fix memory leak (Lyude) Cc: Lyude Cc: Ville Syrjälä Cc: Harry Wentland Signed-off-by: Dhinakaran Pandiyan --- drivers/gpu/drm

[PATCH 2/2] drm/i915/mst: Use MST sideband message transaction for dpms

2017-09-05 Thread Dhinakaran Pandiyan
-2-2-1 --off $ xrandr --display :0 --output DP-2-2-8 --auto #Black screen $ xrandr --display :0 --output DP-2-2-1 --auto Cc: Ville Syrjälä Cc: Lyude Signed-off-by: Dhinakaran Pandiyan --- drivers/gpu/drm/i915/intel_ddi.c| 6 -- drivers/gpu/drm/i915/intel_dp_mst.c | 8 2 files

[PATCH 1/2] drm/dp/mst: Sideband message transaction to power up/down nodes

2017-09-05 Thread Dhinakaran Pandiyan
. Secondly, since the request-reply protocol waits for an ACK, we can be sure that a downstream sink has enough time to respond to a power up/down request. Cc: Lyude Cc: Ville Syrjälä Cc: Harry Wentland Signed-off-by: Dhinakaran Pandiyan --- drivers/gpu/drm/drm_dp_mst_topology.c | 73

[PATCH v2 1/2] drm/dp: Bit definition for D3 power state that keeps AUX fully powered

2017-08-12 Thread Dhinakaran Pandiyan
MST monitor configuration that doesn't wake up from D3 state. v2: Use spaces instead of tabs (Jani) Signed-off-by: Dhinakaran Pandiyan --- include/drm/drm_dp_helper.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/drm/drm_dp_helper.h b/include/drm/drm_dp_helper.h index b17476a

[PATCH 1/2] drm/dp: Bit definition for D3 power state that keeps AUX fully powered

2017-08-12 Thread Dhinakaran Pandiyan
MST monitor configuration that doesn't wake up from D3 state. Signed-off-by: Dhinakaran Pandiyan --- include/drm/drm_dp_helper.h | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/include/drm/drm_dp_helper.h b/include/drm/drm_dp_helper.h index b17476a..d77e0f5 100

[RESEND FOR CI PATCH v8 0/4] Adding driver-private objects to atomic state

2017-05-01 Thread Dhinakaran Pandiyan
Resending for CI. Pandiyan, Dhinakaran (4): drm: Add driver-private objects to atomic state drm/dp: Introduce MST topology state to track available link bandwidth drm/dp: Add DP MST helpers to atomically find and release vcpi slots drm/dp: Track MST link bandwidth drivers/gpu/drm/drm_ato

  1   2   >