Re: [Intel-gfx] [PATCH v2 1/6] drm/i915/psr: Allow PSR2 to be enabled when debugfs asks

2019-01-09 Thread Dhinakaran Pandiyan
going to be enabled needs to take in consideration > the debug field. > > v2: Using the switch/case that intel_psr2_enabled() already had to > handle this(DK) Reviewed-by: Dhinakaran Pandiyan > > Cc: Dhinakaran Pandiyan > Cc: Rodrigo Vivi > Signed-off-by: José Robert

Re: [Intel-gfx] [PATCH v2 2/6] drm/i915: Refactor PSR status debugfs

2019-01-09 Thread Dhinakaran Pandiyan
7;Source PSR ctl' inside of the brackets, PSR mode and Enabled was > squashed into PSR mode, some renames and reorders and we have this > cleaner version. This will also make easy to parse debugfs for IGT > tests. > > v2: Printing sink PSR version with only 2 hex digits as it i

Re: [Intel-gfx] [PATCH v2 4/6] drm/i915/psr: Do not print last attempted entry or exit in PSR debugfs while in PSR2

2019-01-09 Thread Dhinakaran Pandiyan
is not supported, did not work well enough for PSR1 IGTs either. In any case, are these interrupts present on ICL? > v2: Warning and not letting user set PSR_DEBUG_IRQ when PSR2 is > enabled(Dhinakaran) > > Cc: Rodrigo Vivi > Cc: Dhinakaran Pandiyan > Signed-off-by: José Rob

Re: [Intel-gfx] [PATCH v2 6/6] drm/i915/debugfs: Print PSR selective update status register values

2019-01-09 Thread Dhinakaran Pandiyan
; Cc: Rodrigo Vivi > Cc: Dhinakaran Pandiyan > Signed-off-by: José Roberto de Souza > --- > drivers/gpu/drm/i915/i915_debugfs.c | 32 + > > 1 file changed, 28 insertions(+), 4 deletions(-) > > diff --git a/drivers/gpu/drm/i915/i915_debugfs.c

Re: [Intel-gfx] [PATCH v2 5/6] drm/i915: Add PSR2 selective update status registers and bits definitions

2019-01-09 Thread Dhinakaran Pandiyan
t the expected values are set for the current frame and > the > previous ones too. The values correspond to the last 8 frames actually. > > v2: Improved macros(Dhinakaran) Reviewed-by: Dhinakaran Pandiyan > > Cc: Rodrigo Vivi > Cc: Dhinakaran Pandiyan > Signed-off-by: Jos

Re: [Intel-gfx] [PATCH v3 4/4] drm/i915/debugfs: Print PSR selective update status register values

2019-01-16 Thread Dhinakaran Pandiyan
t; > v3: > - reading PSR2_SU_STATUS registers together(Dhinakaran) > - printing SU blocks of frames with 0 updates(Dhinakaran) > > Cc: Rodrigo Vivi > Cc: Dhinakaran Pandiyan > Signed-off-by: José Roberto de Souza > --- > drivers/gpu/drm/i915/i915_debugfs.c | 23

Re: [Intel-gfx] [PATCH v2 3/3] drm/i915/icl: Work around broken VBTs for port F detection

2019-01-16 Thread Dhinakaran Pandiyan
rwell and checking for a timeout? Or at least mark up a non-existent port after the first timeout so that we don't keep probing it. This patch is an improvement over checking the VBT for all ports, so Reviewed-by: Dhinakaran Pandiyan > > v2: > - Fix IS_ICL_WITH_PORT_F, so it

Re: [Intel-gfx] [PATCH 4/4] drm/i915/psr: Add HBR3 support

2019-01-22 Thread Dhinakaran Pandiyan
HBR3 panels. > Sounds like TP3 and TP4 are used only with PSR1, please document that in the commit message. > Cc: Manasi Navare > Cc: Dhinakaran Pandiyan > Signed-off-by: José Roberto de Souza > --- > > Still trying to understand how PSR1 was working on ICL while sending > TP

Re: [Intel-gfx] [PATCH 3/4] drm/i915/vbt: Parse and use the new field with PSR2 TP2/3/4 wakeup time

2019-01-22 Thread Dhinakaran Pandiyan
t; added to VBT, so lets use it when available otherwise it will > fallback to PSR1 wakeup time. > > BSpec: 20131 > > Cc: Dhinakaran Pandiyan > Signed-off-by: José Roberto de Souza > --- > drivers/gpu/drm/i915/i915_drv.h | 8 > driv

Re: [Intel-gfx] [PATCH v2] drm/i915/psr: Execute the default PSR code path when setting i915_edp_psr_debug

2019-01-31 Thread Dhinakaran Pandiyan
also fixes the bug linked bellow were DRRS was > left enabled together with PSR when enabling PSR from debugfs. > > v2: Handling missing case: disabled to PSR1 > > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108341 > Cc: Maarten Lankhorst > Cc: Dhinakaran Pandiyan

Re: [Intel-gfx] [PATCH 4/7] drm/i915/psr: Do not enable PSR in interlaced mode for all GENs

2019-04-04 Thread Dhinakaran Pandiyan
ed by it ever, but better to protect just in case: > > > Reviewed-by: Rodrigo Vivi > > > > > > Cc: Dhinakaran Pandiyan > > Cc: Rodrigo Vivi > > Signed-off-by: José Roberto de Souza > > --- > > drivers/gpu/drm/i915/intel_psr.c | 3 +-- >

Re: [Intel-gfx] [PATCH 6/7] drm/i915/psr: Remove partial PSR support on multiple transcoders

2019-04-04 Thread Dhinakaran Pandiyan
On Thu, 2019-04-04 at 14:41 -0700, Dhinakaran Pandiyan wrote: > On Thu, 2019-04-04 at 14:20 -0700, Rodrigo Vivi wrote: > > On Thu, Apr 04, 2019 at 12:40:34PM -0700, Souza, Jose wrote: > > > On Wed, 2019-04-03 at 17:31 -0700, Rodrigo Vivi wrote: > > > > On Wed, Ap

Re: [Intel-gfx] [PATCH 3/7] drm/i915/psr: Initialize PSR mutex even when sink is not reliable

2019-04-04 Thread Dhinakaran Pandiyan
On Wed, 2019-04-03 at 16:35 -0700, José Roberto de Souza wrote: > Even when driver is reloaded and hits this scenario the PSR mutex > should be initialized, otherwise reading PSR debugfs status will > execute mutex_lock() over a mutex that was not initialized. > > Cc: Dhinakaran

Re: [Intel-gfx] [PATCH 5/7] drm/i915/bdw+: Move misc display IRQ handling to it own function

2019-04-04 Thread Dhinakaran Pandiyan
On Wed, 2019-04-03 at 16:35 -0700, José Roberto de Souza wrote: > Just moving it to reduce the tabs and avoid break code lines. > No behavior changes intended here. > > Signed-off-by: José Roberto de Souza > --- > drivers/gpu/drm/i915/i915_irq.c | 63 +++-- > 1 file c

Re: [Intel-gfx] [PATCH 3/7] drm/i915/psr: Initialize PSR mutex even when sink is not reliable

2019-04-04 Thread Dhinakaran Pandiyan
On Thu, 2019-04-04 at 17:32 -0700, Souza, Jose wrote: > On Thu, 2019-04-04 at 17:22 -0700, Dhinakaran Pandiyan wrote: > > On Wed, 2019-04-03 at 16:35 -0700, José Roberto de Souza wrote: > > > Even when driver is reloaded and hits this scenario the PSR mutex > > > shoul

Re: [Intel-gfx] [PATCH 7/7] drm/i915: Make PSR registers relative to transcoders

2019-04-05 Thread Dhinakaran Pandiyan
that. > > Also removing BDW_EDP_PSR_BASE from GVT because it is not used as > the only PSR register that GVT have is this one(SRD/PSR_CTL). > > Cc: Dhinakaran Pandiyan > Cc: Rodrigo Vivi > Cc: Jani Nikula > Cc: Ville Syrjälä > Signed-off-by: José Roberto de S

Re: [Intel-gfx] [PATCH v2 6/6] drm/i915: Set DP min_bpp to 8*3 for non-RGB output formats

2019-04-09 Thread Dhinakaran Pandiyan
On Tue, 2019-03-26 at 16:25 +0200, Ville Syrjala wrote: > From: Ville Syrjälä > > 6bpc is only legal for RGB and RAW pixel encodings. For the rest > the minimum is 8bpc. Set our lower limit accordingly. Patch doesn't apply anymore, got a conflict in intel_drv.h. > Signed-off-by: Ville Syrjälä

Re: [Intel-gfx] [PATCH v2 6/6] drm/i915: Set DP min_bpp to 8*3 for non-RGB output formats

2019-04-09 Thread Dhinakaran Pandiyan
On Tue, 2019-04-09 at 23:38 +0300, Ville Syrjälä wrote: > On Tue, Apr 09, 2019 at 01:28:18PM -0700, Dhinakaran Pandiyan wrote: > > On Tue, 2019-03-26 at 16:25 +0200, Ville Syrjala wrote: > > > From: Ville Syrjälä > > > > > > 6bpc is only legal for RGB a

Re: [Intel-gfx] [PATCH v4 1/4] drm/i915/bdw+: Move misc display IRQ handling to it own function

2019-04-17 Thread Dhinakaran Pandiyan
ght after reading the iir bits. I had noticed this a while back but never got to changing it. 2) we don't DRM_ERROR() for unexpected PSR interrupts like how other handlers do. Not sure what's the point though, other than getting to know that the hardware is broken. Ville, any i

Re: [Intel-gfx] [PATCH v4 2/4] drm/i915: Add _TRANS2()

2019-04-17 Thread Dhinakaran Pandiyan
NS2(trans, reg) (INTEL_INFO(dev_priv)- _TRANS() and _MMIO_TRANS() name the first argument "tran" Can you please keep the same name "tran"? Reviewed-by: Dhinakaran Pandiyan > > trans_offsets[(trans)] - \ > > +

Re: [Intel-gfx] [PATCH v4 3/4] drm/i915: Make PSR registers relative to transcoders

2019-04-18 Thread Dhinakaran Pandiyan
because it is not used as it > is the only PSR register that GVT have. > > v4: > - Moved definition of _TRANS2_PSR() and _MMIO_TRANS2_PSR() to the > beginning of i915_reg.h (Jani) > > Cc: Dhinakaran Pandiyan > Cc: Rodrigo Vivi > Cc: Jani Nikula > Cc: Ville Syrjä

[Intel-gfx] Prep. for DP audio MST support

2016-08-02 Thread Dhinakaran Pandiyan
Patch 2 will make that easy. Dhinakaran Pandiyan(2) [PATCH 2/3] drm/i915: Move audio_connector to intel_encoder [PATCH 3/3] drm/i915: Fix enc_to_dig_port for MST encoders Libin Yang(1) [PATCH 1/3] drm/i915: start adding dp mst audio ___ Intel-gfx

[Intel-gfx] [PATCH 1/3] drm/i915: start adding dp mst audio

2016-08-02 Thread Dhinakaran Pandiyan
From: Libin Yang (This patch is developed by Dave Airlie originally) This patch adds support for DP MST audio in i915. Enable audio codec when DP MST is enabled if has_audio flag is set. Disable audio codec when DP MST is disabled if has_audio flag is set. Another separated patches to support

[Intel-gfx] [PATCH 2/3] drm/i915: Move audio_connector to intel_encoder

2016-08-02 Thread Dhinakaran Pandiyan
audio_connector from struct intel_digital_port to struct intel_encoder. This also simplifies access to the right audio_connector from codec functions in intel_audio.c that receive intel_encoder. Signed-off-by: Dhinakaran Pandiyan --- drivers/gpu/drm/i915/intel_audio.c | 10 -- drivers/gpu/drm/i915

[Intel-gfx] [PATCH 3/3] drm/i915: Fix enc_to_dig_port for MST encoders

2016-08-02 Thread Dhinakaran Pandiyan
When a MST encoder is passed to enc_to_dig_port(), the container_of() macro does not return the digital port. Handle this by returning the member "primary" in "struct intel_dp_mst_encoder" Signed-off-by: Dhinakaran Pandiyan --- drivers/gpu/drm/i915/intel_drv.h | 16

[Intel-gfx] DP audio API changes for identifying displays connected to a port

2016-08-02 Thread Dhinakaran Pandiyan
P MST). This patch makes the API changes with dummy changes in the audio driver (Thanks Libin). Implementation to fully enable DP MST audio will follow later. Dhinakaran Pandiyan(1): drm/i915/dp: DP audio API changes for MST ___ Intel-gfx mailing list Inte

[Intel-gfx] [PATCH] drm/i915/dp: DP audio API changes for MST

2016-08-02 Thread Dhinakaran Pandiyan
abled, unsigned char *buf, int max_bytes); struct i915_audio_component_audio_ops - void (*pin_eld_notify)(void *audio_ptr, int port); + void (*pin_eld_notify)(void *audio_ptr, int port, int dev_id); This patch makes dummy changes in the audio drivers for build to succeed. Signed-off-by: Dhi

[Intel-gfx] [PATCH 1/4] drm/i915/dp: Add debug messages to print DP link training pattern

2016-08-03 Thread Dhinakaran Pandiyan
Currently we do not print the training pattern used in any of the DP link training stages. Including this piece of information in debug messages will help debugging. Signed-off-by: Dhinakaran Pandiyan --- drivers/gpu/drm/i915/intel_dp.c | 13 +++-- 1 file changed, 7 insertions(+), 6

[Intel-gfx] [PATCH 0/4] Improve logging for DP link training

2016-08-03 Thread Dhinakaran Pandiyan
We do not currently output enough information to help debugging DP link training issues. For e.g., training pattern and link status information. This series aims to correct that by adding debug messages that can help developers. Dhinakaran Pandiyan (4): drm/i915/dp: Add debug messages to print

[Intel-gfx] [PATCH 2/4] drm/i915/dp: Switch to using the DRM function for reading DP link status

2016-08-03 Thread Dhinakaran Pandiyan
Since a DRM function that reads link DP link status is available, let's use that instead of the i915 clone. Signed-off-by: Dhinakaran Pandiyan --- drivers/gpu/drm/i915/intel_dp.c | 15 +++ drivers/gpu/drm/i915/intel_dp_link_training.c | 11 --- drivers/gp

[Intel-gfx] [PATCH 4/4] drm/i915/dp: Dump DP link status when link training stages fails

2016-08-03 Thread Dhinakaran Pandiyan
A full dump of link status can be handy in debugging link training failures. Let's add that to the debug messages when link training fails. Signed-off-by: Dhinakaran Pandiyan --- drivers/gpu/drm/i915/intel_dp_link_training.c | 11 +++ drivers/gpu/drm/i915/intel_drv.h

[Intel-gfx] [PATCH 3/4] drm/dp: Clarify clock recovery and channel equalization failures

2016-08-03 Thread Dhinakaran Pandiyan
avoid that with these debug messages in drm. Signed-off-by: Dhinakaran Pandiyan --- drivers/gpu/drm/drm_dp_helper.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/drm_dp_helper.c b/drivers/gpu/drm/drm_dp_helper.c index 091053e..d763b57 100644

[Intel-gfx] [PATCH v2 2/2] drm/i915/dp: Dump DP link status when link training stages fail

2016-08-04 Thread Dhinakaran Pandiyan
A full dump of link status can be handy in debugging link training failures. Let's add that to the debug messages when link training fails. v2: Removing unrelated clean up (Jani) Signed-off-by: Dhinakaran Pandiyan --- drivers/gpu/drm/i915/intel_dp_link_training.c | 11 +++ 1

[Intel-gfx] [PATCH v2 1/2] drm/i915/dp: Add debug messages to print DP link training pattern

2016-08-04 Thread Dhinakaran Pandiyan
: Downgraded log level from error to debug (Chris) Signed-off-by: Dhinakaran Pandiyan --- drivers/gpu/drm/i915/intel_dp.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c index 53d97f6..9a80628 100644 --- a

[Intel-gfx] [PATCH v2 0/2] Improve logging for DP link training

2016-08-04 Thread Dhinakaran Pandiyan
need more changes. Addressed review comments from Jani and Chris. Dhinakaran Pandiyan (2): drm/i915/dp: Add debug messages to print DP link training pattern drm/i915/dp: Dump DP link status when link training stages fail drivers/gpu/drm/i915/intel_dp.c | 13

[Intel-gfx] [PATCH] drm/i915: Minor clean up related to link training function declarations

2016-08-04 Thread Dhinakaran Pandiyan
No functional change. Organizing the declarations for functions implemented in intel_dp_link_training.c Signed-off-by: Dhinakaran Pandiyan --- drivers/gpu/drm/i915/intel_drv.h | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_drv.h b/drivers

Re: [Intel-gfx] [PATCH v3] drm/i915/psr: Execute the default PSR code path when setting i915_edp_psr_debug

2019-02-05 Thread Dhinakaran Pandiyan
also fixes the bug linked bellow were DRRS was > left enabled together with PSR when enabling PSR from debugfs. > > v2: Handling missing case: disabled to PSR1 > > v3: Not duplicating the whole atomic state(Maarten) > > Bugzilla: https://bugs.freedesktop.org/show_bug.c

Re: [Intel-gfx] [PATCH v4] drm/i915/psr: Execute the default PSR code path when setting i915_edp_psr_debug

2019-02-06 Thread Dhinakaran Pandiyan
also fixes the bug linked bellow were DRRS was > left enabled together with PSR when enabling PSR from debugfs. > > v2: Handling missing case: disabled to PSR1 > > v3: Not duplicating the whole atomic state(Maarten) > > v4: Adding back the missing call to intel_psr_irq

Re: [Intel-gfx] [PATCH 4/6] drm/i915/psr: Remove PSR2 FIXME

2019-02-13 Thread Dhinakaran Pandiyan
viewed-by: Dhinakaran Pandiyan > > Cc: Dhinakaran Pandiyan > Signed-off-by: José Roberto de Souza > --- > drivers/gpu/drm/i915/intel_psr.c | 5 - > 1 file changed, 5 deletions(-) > > diff --git a/drivers/gpu/drm/i915/intel_psr.c > b/drivers/gpu/drm/i915/intel_psr.c >

Re: [Intel-gfx] [PATCH 2/4] drm/i915: Disable PSR2 while getting pipe CRC

2019-02-14 Thread Dhinakaran Pandiyan
e DDI CRCs as well, which should reflect the partial frame that PSR2 sends. To get a better understanding, I'd like to know what the source for mismatching CRCs is? > So here it disables PSR2 and keep it disabled while user is > requesting pipe CRC. > > BSpec: 7536 > > Cc:

Re: [Intel-gfx] [PATCH 3/4] drm/i915: Remove the broken DP CRC support for g4x

2019-02-15 Thread Dhinakaran Pandiyan
On Thu, 2019-02-14 at 21:22 +0200, Ville Syrjala wrote: > From: Ville Syrjälä > > DP CRCs don't really work on g4x. If you want any CRCs on DP you must > select the CRC source before the port is enabled, otherwise the CRC > source select bits simply ignore any writes to them. And once the > port

Re: [Intel-gfx] [PATCH 1/4] drm/i915: Remove the "pf" crc source

2019-02-15 Thread Dhinakaran Pandiyan
On Thu, 2019-02-14 at 17:32 -0800, Dhinakaran Pandiyan wrote: > On Thu, 2019-02-14 at 21:22 +0200, Ville Syrjala wrote: > > From: Ville Syrjälä > > > > The "pipe" and "pf" crc sources are in fact the same thing. > > Remove the "pf" one. &

Re: [Intel-gfx] [PATCH 4/4] drm/i915: Extend skl+ crc sources with more planes

2019-02-15 Thread Dhinakaran Pandiyan
On Thu, 2019-02-14 at 21:22 +0200, Ville Syrjala wrote: > From: Ville Syrjälä > > On skl the crc registers were extended to provide plane crcs > for up to 7 planes. Add the new crc sources. > > The current code uses the ivb+ register definitions for skl+ > which does happen to work as the plane1

Re: [Intel-gfx] [PATCH 1/4] drm/i915: Remove the "pf" crc source

2019-02-15 Thread Dhinakaran Pandiyan
RC_SOURCE_PLANE2: > *val = PIPE_CRC_ENABLE | PIPE_CRC_SOURCE_SPRITE_IVB; > break; > - case INTEL_PIPE_CRC_SOURCE_PF: > + case INTEL_PIPE_CRC_SOURCE_PIPE: Ah, source == "pipe" would have returned a failure here although ivb_crc_source_valid() cons

Re: [Intel-gfx] [PATCH 3/4] drm/i915: Remove the broken DP CRC support for g4x

2019-02-15 Thread Dhinakaran Pandiyan
On Fri, 2019-02-15 at 14:47 +0200, Ville Syrjälä wrote: > On Thu, Feb 14, 2019 at 06:26:29PM -0800, Dhinakaran Pandiyan wrote: > > On Thu, 2019-02-14 at 21:22 +0200, Ville Syrjala wrote: > > > From: Ville Syrjälä > > > > > > DP CRCs don't really wo

Re: [Intel-gfx] [PATCH 3/4] drm/i915: Remove the broken DP CRC support for g4x

2019-02-20 Thread Dhinakaran Pandiyan
On Mon, 2019-02-18 at 19:57 +0200, Ville Syrjälä wrote: > On Fri, Feb 15, 2019 at 09:43:37PM +, Pandiyan, Dhinakaran wrote: > > On Fri, 2019-02-15 at 23:34 +0200, Ville Syrjälä wrote: > > > On Fri, Feb 15, 2019 at 01:06:32PM -0800, Dhinakaran Pandiyan > > > wrote: &g

Re: [Intel-gfx] [PATCH 1/4] drm/i915/psr: Only lookup for enabled CRTCs when forcing a fastset

2019-02-22 Thread Dhinakaran Pandiyan
is enabled by default tests like > kms_pipe_crc_basic@read-crc-pipe-b are failling even with the patch > that disable PSR2 when getting CRC. Thanks! > > > > > > Cc: Maarten Lankhorst > > > Cc: Dhinakaran Pandiyan > > > Signed-off-by: José Roberto de

Re: [Intel-gfx] [PATCH 2/4] drm/i915: Disable PSR2 while getting pipe CRC

2019-02-22 Thread Dhinakaran Pandiyan
nd keep it disabled while user is > requesting pipe CRC. > > BSpec: 7536 > > Cc: Dhinakaran Pandiyan > Cc: Ville Syrjälä > Signed-off-by: José Roberto de Souza > --- > drivers/gpu/drm/i915/i915_drv.h | 1 + > drivers/gpu/drm/i915/intel_drv.h | 1 + >

Re: [Intel-gfx] [PATCH 2/4] drm/i915: Disable PSR2 while getting pipe CRC

2019-02-22 Thread Dhinakaran Pandiyan
On Sat, 2019-02-23 at 02:48 +, Souza, Jose wrote: > On Fri, 2019-02-22 at 18:13 -0800, Dhinakaran Pandiyan wrote: > > On Wed, 2019-02-13 at 18:02 -0800, José Roberto de Souza wrote: > > > As stated in CRC_CTL spec, after PSR entry state CRC will not be > > > calcu

Re: [Intel-gfx] [PATCH v3 4/6] drm/i915/crc: Make IPS workaround generic

2019-02-28 Thread Dhinakaran Pandiyan
gt; > CRC > > > so lets rename ips_force_disable to crc_enabled, drop all this > > > checks > > > for pipe A and HSW and BDW and make it generic and > > > hsw_compute_ips_config() will take care of all the checks removed > > > from here. > > > &g

Re: [Intel-gfx] [PATCH v3 5/6] drm/i915: Disable PSR2 while getting pipe CRC

2019-02-28 Thread Dhinakaran Pandiyan
rtc_crc_prepare() and crc_enabled > > > > > > v2: Changed commit description to describe that PSR2 inhibit CRC > > > calculations. > > > > > > Cc: Dhinakaran Pandiyan > > > Cc: Ville Syrjälä > > > Signed-off-by: José Roberto de Souza > &g

Re: [Intel-gfx] [PATCH v3 5/6] drm/i915: Disable PSR2 while getting pipe CRC

2019-03-01 Thread Dhinakaran Pandiyan
d as true is necessary to atomic checks > functions compute new PSR state, that is why it was added to > intel_crtc_crc_prepare(). > > v3: Reusing intel_crtc_crc_prepare() and crc_enabled > > v2: Changed commit description to describe that PSR2 inhibit CRC > calculations. >

Re: [Intel-gfx] [PATCH v4 8/9] drm/i915/psr: Set idle frames to maximum while getting pipe CRC

2019-03-04 Thread Dhinakaran Pandiyan
inhibits CRC calculations causing CRC timeout errors in IGT > tests. > > Cc: Dhinakaran Pandiyan > Cc: Ville Syrjälä > Signed-off-by: José Roberto de Souza > --- > drivers/gpu/drm/i915/i915_drv.h | 1 + > drivers/gpu/drm/i915/intel_psr.c | 17 +++-- > 2 files

Re: [Intel-gfx] [PATCH v4 7/9] drm/i915: Drop redundant checks to update PSR state

2019-03-04 Thread Dhinakaran Pandiyan
t, explanation here not so sure... > but if this is really right and I am missing something feel > free to use: > > > Reviewed-by: Rodrigo Vivi > > otherwise please change the msg. > > Thanks, > Rodrigo. > > > > > Cc: Dhinakaran Pandiyan

Re: [Intel-gfx] [PATCH v4 8/9] drm/i915/psr: Set idle frames to maximum while getting pipe CRC

2019-03-04 Thread Dhinakaran Pandiyan
On Mon, 2019-03-04 at 10:40 -0800, Souza, Jose wrote: > On Mon, 2019-03-04 at 10:31 -0800, Dhinakaran Pandiyan wrote: > > On Fri, 2019-03-01 at 17:34 -0800, José Roberto de Souza wrote: > > > Increase the idle frames to activate PSR1 to avoid CRC timeouts, > > > a

Re: [Intel-gfx] [PATCH 2/2] drm/i915/cml: Introduce Comet Lake PCH

2019-03-04 Thread Dhinakaran Pandiyan
On Mon, 2019-03-04 at 15:50 -0800, Rodrigo Vivi wrote: > On Mon, Mar 04, 2019 at 03:06:05PM -0800, Anusha wrote: > > From: Anusha Srivatsa > > > > Comet Lake PCH is based off of Cannon Point(CNP). > > Add PCI ID for Comet Lake PCH. > > > > Cc: Rodrigo Vivi > > Cc: Lucas De Marchi > > Signed-of

Re: [Intel-gfx] [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: [Intel-gfx] [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: [Intel-gfx] [PATCH 8/9] drm/i915/psr: Set the right frames values

2018-11-29 Thread Dhinakaran Pandiyan
en > updates. > > About EDP_PSR2_FRAMES_BEFORE_ACTIVATE() it is the number of frames > (not idle frames) that PSR2 hardware will wait to activate PSR2, so > lets keep using the sink sync latency. > > Cc: Rodrigo Vivi > Cc: Dhinakaran Pandiyan > Signed-off-by: José Roberto de So

Re: [Intel-gfx] [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: [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: [Intel-gfx] [PATCH 8/9] drm/i915/psr: Set the right frames values

2018-11-30 Thread Dhinakaran Pandiyan
On Thu, 2018-11-29 at 17:00 -0800, Souza, Jose wrote: > On Thu, 2018-11-29 at 15:33 -0800, Dhinakaran Pandiyan wrote: > > On Mon, 2018-11-26 at 16:37 -0800, José Roberto de Souza wrote: > > > EDP_PSR2_IDLE_FRAMES_TO_DEEP_SLEEP() was being set with the > > > number &g

Re: [Intel-gfx] [PATCH 8/9] drm/i915/psr: Set the right frames values

2018-11-30 Thread Dhinakaran Pandiyan
On Fri, 2018-11-30 at 13:18 -0800, Souza, Jose wrote: > On Fri, 2018-11-30 at 11:35 -0800, Dhinakaran Pandiyan wrote: > > On Thu, 2018-11-29 at 17:00 -0800, Souza, Jose wrote: > > > On Thu, 2018-11-29 at 15:33 -0800, Dhinakaran Pandiyan wrote: > > > > On Mon, 2

Re: [Intel-gfx] [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 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: [Intel-gfx] [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: [Intel-gfx] [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: [Intel-gfx] [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: [Intel-gfx] [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: [Intel-gfx] [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: [Intel-gfx] [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: [Intel-gfx] [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: [Intel-gfx] [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: [Intel-gfx] [PATCH 1/2] drm/i915: Check if PSR is globally enabled before change PSR variables

2018-12-03 Thread Dhinakaran Pandiyan
On Thu, 2018-11-29 at 18:31 -0800, José Roberto de Souza wrote: > There is no issues changing the PSR variables even if PSR will be not > enabled but it avoid having misleading values like have psr2_enabled > set but enabled unset. > > Cc: Maarten Lankhorst > Cc: Dhinaka

Re: [Intel-gfx] [PATCH 2/2] drm/i915/psr: Execute the default PSR code path when setting i915_edp_psr_debug

2018-12-03 Thread Dhinakaran Pandiyan
bugs.freedesktop.org/show_bug.cgi?id=108341 > Cc: Maarten Lankhorst > Cc: Dhinakaran Pandiyan > Cc: Rodrigo Vivi > Signed-off-by: José Roberto de Souza > --- > drivers/gpu/drm/i915/i915_debugfs.c | 14 +--- > drivers/gpu/drm/i915/i915_drv.h | 2 +- > drivers/

Re: [Intel-gfx] [PATCH 2/2] drm/i915/psr: Execute the default PSR code path when setting i915_edp_psr_debug

2018-12-03 Thread Dhinakaran Pandiyan
On Mon, 2018-12-03 at 17:54 -0800, Souza, Jose wrote: > On Mon, 2018-12-03 at 17:33 -0800, Dhinakaran Pandiyan wrote: > > On Thu, 2018-11-29 at 18:31 -0800, José Roberto de Souza wrote: > > > Changing the i915_edp_psr_debug was enabling, disabling or > > > switching &g

Re: [Intel-gfx] [PATCH v4 9/9] drm/i915/psr: Check if source supports sink specific SU granularity

2018-12-04 Thread Dhinakaran Pandiyan
efault granularity in case DPCD read > fails(Dhinakaran) > - Changed DPCD error message level(Dhinakaran) > > v4: > - Setting granularity to defaul when granularity read is equal to > 0(Dhinakaran) > > Cc: Rodrigo Vivi > Cc: Dhinakaran Pandiyan > Signed-off-by: J

Re: [Intel-gfx] [PATCH 2/2] drm/i915/psr: Execute the default PSR code path when setting i915_edp_psr_debug

2018-12-04 Thread Dhinakaran Pandiyan
On Tue, 2018-12-04 at 10:52 -0800, Souza, Jose wrote: > On Mon, 2018-12-03 at 18:58 -0800, Dhinakaran Pandiyan wrote: > > On Mon, 2018-12-03 at 17:54 -0800, Souza, Jose wrote: > > > On Mon, 2018-12-03 at 17:33 -0800, Dhinakaran Pandiyan wrote: > > > > On Thu, 2

Re: [Intel-gfx] [PATCH 7/7] drm/i915/psr: Disable DRRS if enabled when enabling PSR from debugfs

2018-12-04 Thread Dhinakaran Pandiyan
https://bugs.freedesktop.org/show_bug.cgi?id=108341 > > > Cc: Maarten Lankhorst > > > Cc: Dhinakaran Pandiyan > > > Signed-off-by: José Roberto de Souza > > > --- > > > drivers/gpu/drm/i915/intel_psr.c | 5 - > > > 1 file changed, 4 insertion

Re: [Intel-gfx] [PATCH] drm: Fix documentation generation for DP_DPCD_QUIRK_NO_PSR

2018-12-05 Thread Dhinakaran Pandiyan
CD_QUIRK_NO_PSR > Cc: dri-de...@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: [Intel-gfx] [PATCH] drm/i915/fbc/cnl: Add GLK and CNL+ hardware tracking area

2018-12-05 Thread Dhinakaran Pandiyan
max_w = 5120; > + max_h = 4096; Verified against bspec. Reviewed-by: Dhinakaran Pandiyan > + } else if (INTEL_GEN(dev_priv) >= 8 || IS_HASWELL(dev_priv)) { > max_w = 4096; > max_h = 4096; > } else if (IS_G4X(dev_priv

[Intel-gfx] [PATCH] drm/i915/icl: Skip DSI path in DDI vswing programming.

2018-12-06 Thread Dhinakaran Pandiyan
DSI implements it's own pre_enable hook, encoder output type is never DSI. Cc: Manasi Navare Cc: Paulo Zanoni Cc: James Ausmus Fixes: fb5c8e9d4350 ("drm/i915/icl: Implement voltage swing programming sequence for Combo PHY DDI") Signed-off-by: Dhinakaran Pandiyan --- drive

Re: [Intel-gfx] [PATCH] drm/i915/icl: Skip DSI path in DDI vswing programming.

2018-12-07 Thread Dhinakaran Pandiyan
On Fri, 2018-12-07 at 16:07 +0200, Imre Deak wrote: > Hi DK, > > On Thu, Dec 06, 2018 at 03:43:55PM -0800, Dhinakaran Pandiyan wrote: > > DSI implements it's own pre_enable hook, encoder output type is > > never > > DSI. > > > > Cc: Manasi Navare

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: [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 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 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 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 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 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

[Intel-gfx] [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] 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

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: [Intel-gfx] [PATCH 1/5] drm/i915/psr: Allow PSR2 to be enabled when debugfs asks

2018-12-10 Thread Dhinakaran Pandiyan
going to be enabled needs to take in consideration > the debug field. > > Cc: Dhinakaran Pandiyan > Cc: Rodrigo Vivi > Signed-off-by: José Roberto de Souza > --- > drivers/gpu/drm/i915/intel_psr.c | 5 - > 1 file changed, 4 insertions(+), 1 deletion(-) > > dif

Re: [Intel-gfx] [PATCH 2/5] drm/i915: Refactor PSR status debugfs

2018-12-10 Thread Dhinakaran Pandiyan
; of 'Source PSR ctl' inside of the brackets, PSR mode and Enabled was > squashed into Status, some renames and reorders and we have this > cleaner version. This will also make easy to parse debugfs for IGT > tests. > > Cc: Rodrigo Vivi > Cc: Dhinakaran Pandiyan > Su

Re: [Intel-gfx] [PATCH 3/5] drm/i915/psr: Do not print last attempted entry or exit in PSR debugfs while in PSR2

2018-12-10 Thread Dhinakaran Pandiyan
gging for PSR2. Fix that to reject debugfs writes? > > Cc: Rodrigo Vivi > Cc: Dhinakaran Pandiyan > Signed-off-by: José Roberto de Souza > --- > drivers/gpu/drm/i915/i915_debugfs.c | 2 +- > drivers/gpu/drm/i915/intel_psr.c| 1 + > 2 files changed, 2 insertio

Re: [Intel-gfx] [PATCH 4/5] drm/i915: Add PSR2 selective update status registers and bits definitions

2018-12-10 Thread Dhinakaran Pandiyan
rrent frame and > the > previous ones too. > > Cc: Rodrigo Vivi > Cc: Dhinakaran Pandiyan > Signed-off-by: José Roberto de Souza > --- > drivers/gpu/drm/i915/i915_reg.h | 6 ++ > 1 file changed, 6 insertions(+) > > diff --git a/drivers/gpu/drm/i915/i915_r

Re: [Intel-gfx] [PATCH 2/5] drm/i915: Refactor PSR status debugfs

2018-12-11 Thread Dhinakaran Pandiyan
On Tue, 2018-12-11 at 04:44 -0800, Souza, Jose wrote: > On Mon, 2018-12-10 at 22:51 -0800, Dhinakaran Pandiyan wrote: > > On Tue, 2018-12-04 at 15:00 -0800, José Roberto de Souza wrote: > > > The old debugfs fields was not following a naming partern and it > > >

Re: [Intel-gfx] [PATCH 7/7] drm/i915/psr: Disable DRRS if enabled when enabling PSR from debugfs

2018-12-11 Thread Dhinakaran Pandiyan
gfs latter it will keep PSR and DRRS enabled causing possible > > problems as DRRS will lower the refresh rate while PSR enabled. > > > > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108341 > > Cc: Maarten Lankhorst > > Cc: Dhinakaran Pandiyan > > Sig

Re: [Intel-gfx] [PATCH 5/5] drm/i915/debugfs: Print PSR selective update status register values

2018-12-11 Thread Dhinakaran Pandiyan
On Tue, 2018-12-04 at 15:00 -0800, José Roberto de Souza wrote: > The value of this registers will be used to test if PSR2 is doing > selective update and if the number of blocks match with the expected. > > Cc: Rodrigo Vivi > Cc: Dhinakaran Pandiyan > Signed-off-by: Jos

  1   2   3   4   5   6   7   8   9   >