Re: [Intel-gfx] [PATCH 07/12] drm/i915: Limit fb x offset due to fences

2016-05-05 Thread Sivakumar Thulasimani
Reviewed-by: Sivakumar Thulasimani On Tuesday 03 May 2016 09:09 PM, ville.syrj...@linux.intel.com wrote: From: Ville Syrjälä If there's a fence on the object it will be aligned to the start of the object, and hence CPU rendering to any fb that straddles the fence edge will come out wron

Re: [Intel-gfx] [PATCH 09/12] drm/i915: Make intel_adjust_tile_offset() work for linear buffers

2016-05-09 Thread Sivakumar Thulasimani
Reviewed-by: Sivakumar Thulasimani On Tuesday 03 May 2016 09:09 PM, ville.syrj...@linux.intel.com wrote: From: Ville Syrjälä To make life less surprising we can make intel_adjust_tile_offset() deal with linear buffers as well. Currently it doesn't seem like there's a real need for

Re: [Intel-gfx] [PATCH 10/12] drm/i915: Compute display surface offset in the plane check hook for SKL+

2016-05-09 Thread Sivakumar Thulasimani
Reviewed-by: Sivakumar Thulasimani On Tuesday 03 May 2016 09:09 PM, ville.syrj...@linux.intel.com wrote: From: Ville Syrjälä SKL has nasty limitations with the display surface offsets: * source x offset + width must be less than the stride for X tiled surfaces or the display engine falls

Re: [Intel-gfx] [PATCH] drm/i915/skl: Enabling PSR2 SU with frame sync

2015-03-23 Thread Sivakumar Thulasimani
On 3/20/2015 11:27 AM, Sonika Jindal wrote: +#define EDP_MAX_SU_DISABLE_TIME_MASK (0x1f<<20) +#define EDP_PSR2_TP2_TIME_500(0<<8) +#define EDP_PSR2_TP2_TIME_100(1<<8) +#define EDP_PSR2_TP2_TIME_250(2<<8) Better to make all values inline, 5

Re: [Intel-gfx] [PATCH 03/49] drm/i915/bxt: Add IS_BROXTON macro

2015-03-23 Thread Sivakumar Thulasimani
Reviewed-by: Sivakumar Thulasimani On 3/17/2015 3:09 PM, Imre Deak wrote: From: Satheeshakrishna M Adding IS_BROXTON macro for broxton specific implementation. Signed-off-by: Satheeshakrishna M Signed-off-by: Damien Lespiau --- drivers/gpu/drm/i915/i915_drv.h | 1 + 1 file changed, 1

Re: [Intel-gfx] [PATCH 46/49] drm/i915: Iterate through the initialized DDIs to prepare their buffers

2015-03-23 Thread Sivakumar Thulasimani
ue; + + intel_prepare_ddi_buffers(dev, intel_dig_port); + visited[intel_dig_port->port] = true; + } } static void intel_wait_ddi_buf_idle(struct drm_i915_private *dev_priv, is visited[] for handling MST scenarios ?if s

Re: [Intel-gfx] [PATCH 47/49] drm/i915: Don't write the HDMI buffer translation entry when not needed

2015-03-23 Thread Sivakumar Thulasimani
Reviewed-by: Sivakumar Thulasimani On 3/17/2015 3:10 PM, Imre Deak wrote: From: Damien Lespiau We don't actually need to write the HDMI entry on DDIs that have no chance to be used as HDMI ports. While this patch shouldn't change the current behaviour, it makes further enabling w

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Removing the drrs capability enum initialization

2015-03-23 Thread Sivakumar Thulasimani
Reviewed-by: Sivakumar Thulasimani On 3/23/2015 11:12 PM, Ramalingam C wrote: As part of allocation of the drm_i915_private variable, drrs capability enum is initialized to DRRS_NOT_SUPPORTED. Hence need not initialize at each connector init. Moreover initializing this enum at connector init

Re: [Intel-gfx] [PATCH 2/2] drm/i915: eDP DRRS limited to only one panel at a time

2015-03-23 Thread Sivakumar Thulasimani
since drrs struct is used primarily in intel_dp.c file alone can it be moved to intel_dp ? On 3/23/2015 11:12 PM, Ramalingam C wrote: In case of multiple eDP panels, only one can have the DRRS enabled on it. In future eDP DRRS will be extended for multiple panels. Signed-off-by: Ramalingam C

Re: [Intel-gfx] [PATCH 48/49] drm/i915/bxt: VSwing programming sequence

2015-03-24 Thread Sivakumar Thulasimani
ith the changes. Reviewed-by: Sivakumar Thulasimani ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH 49/49] drm/i915/bxt: Update max level of vswing

2015-03-24 Thread Sivakumar Thulasimani
Reviewed-by: Sivakumar Thulasimani On 3/17/2015 3:10 PM, Imre Deak wrote: From: Vandana Kannan Broxton supports 3 voltage swing levels on all DP ports. Max level of pre-emphasis will be taken care with the existing code. v2: Patch rebased v3: (imre) - keep existing behavior for other

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Add psr_enabled on pipe_config

2015-03-25 Thread Sivakumar Thulasimani
_crtc_state *pipe_config) { @@ -5812,6 +5844,8 @@ static int intel_crtc_compute_config(struct intel_crtc *crtc, pipe_config->pipe_bpp = 8*3; } + intel_compute_psr_config(crtc, pipe_config); + if (HAS_IPS(dev)) hsw_compute_ips_config(crtc, pi

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Add psr_ready on pipe_config

2015-03-26 Thread Sivakumar Thulasimani
to a propper place as pointed out by Sivakumar. Use a better name as pointed out by Ram. Cc: Sivakumar Thulasimani Cc: Ramalingam C Signed-off-by: Rodrigo Vivi --- drivers/gpu/drm/i915/intel_display.c | 1 + drivers/gpu/drm/i915/intel_dp.c | 2 ++ drivers/gpu/drm/i915/intel_

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Add psr_ready on pipe_config

2015-03-27 Thread Sivakumar Thulasimani
On 3/27/2015 2:02 PM, Daniel Vetter wrote: On Fri, Mar 27, 2015 at 11:37:09AM +0530, Sivakumar Thulasimani wrote: On 3/27/2015 12:50 AM, Rodrigo Vivi wrote: Let's know beforehand if PSR is ready and will be enabled so we can prevent DRRS to get enabled. v2: Removing is_edp_psr func th

Re: [Intel-gfx] [PATCH 15/19] drm/i915: HSW cdclk support

2015-04-06 Thread Sivakumar Thulasimani
On 3/31/2015 4:44 PM, Mika Kahola wrote: Implement support for changing the cdclk frequency during runtime on HSW. VLV/CHV already have support for this, so we can follow their example for the most part. Only the actual hardware programming differs, the rest is pretty much the same. The pipe p

Re: [Intel-gfx] [PATCH 15/19] drm/i915: HSW cdclk support

2015-04-07 Thread Sivakumar Thulasimani
sorry if i am missing something, HSW and BDW requires display audio controller to be updated with new values once CD clock is modified. how is this accomplished here ? regards, Sivakumar On 4/7/2015 11:57 AM, Sivakumar Thulasimani wrote: On 3/31/2015 4:44 PM, Mika Kahola wrote: Implement

Re: [Intel-gfx] [PATCH 15/19] drm/i915: HSW cdclk support

2015-04-07 Thread Sivakumar Thulasimani
+0530, Sivakumar Thulasimani wrote: sorry if i am missing something, HSW and BDW requires display audio controller to be updated with new values once CD clock is modified. how is this accomplished here ? I'm hoping the audio driver will query the cdclk frequency after eve

Re: [Intel-gfx] [PATCH 15/19] drm/i915: HSW cdclk support

2015-04-13 Thread Sivakumar Thulasimani
audio in place. With this setup in my HSW machine I can hear the pink noise played back with DP-HDMI cable attatched. speaker-test -c 2 -r 48000 -F S16_LE -t pink --device=plughw:0,7 Cheers, Mika On Tue, 2015-04-07 at 14:06 +0530, Sivakumar Thulasimani wrote: where can i check this (audio

Re: [Intel-gfx] [PATCH 15/19] drm/i915: HSW cdclk support

2015-04-14 Thread Sivakumar Thulasimani
Thanks for the confirmation, Mika :). then this change is fine not sure if it is still relevant but you can add rb if possible Reviewed-by: Sivakumar Thulasimani On 4/14/2015 12:36 PM, Mika Kahola wrote: With pink noise you can't tell if the audio is played faster or slower. I tested th

[Intel-gfx] [PATCH] drm/i915/hotplug: Fixing storm handling for digital ports

2015-06-29 Thread Sivakumar Thulasimani
From: "Thulasimani, Sivakumar" HPD storm is detected in intel_hpd_irq_handler and disabled for respective port immediately but polling is enabled only in i915_hotplug_work_func and not in i915_digport_work_func. This will result in disabled hpd never enabled back again. This is fixed by calling t

Re: [Intel-gfx] [PATCH 1/9] drm/i915: Keep GMCH DPLL VGA mode always disabled

2015-06-29 Thread Sivakumar Thulasimani
DPLL_REFA_CLK_ENABLE_VLV | DPLL_INTEGRATED_CRI_CLK_VLV); } udelay(1); /* >10ns for cmnreset, >0ns for sidereset */ since we keep DPLL_VGA_MODE_DIS always set, even during disable is this needed explicitly again here ? other than this i am fine with this. Reviewed-by: Sivakumar

Re: [Intel-gfx] [PATCH 2/9] drm/i915: Apply OCD to VLV/CHV DPLL defines

2015-06-29 Thread Sivakumar Thulasimani
Reviewed-by: Sivakumar Thulasimani On 6/29/2015 5:55 PM, ville.syrj...@linux.intel.com wrote: From: Ville Syrjälä Drop the spurious 'A' from the VLV/CHV ref clock enable define, and add the "REF" to the VLV ref clock selection bit. Also s/CLOCK/CLK/ for extra consist

Re: [Intel-gfx] [PATCH] drm/i915/hotplug: Fixing storm handling for digital ports

2015-06-29 Thread Sivakumar Thulasimani
On 6/29/2015 10:07 PM, Daniel Vetter wrote: On Mon, Jun 29, 2015 at 04:30:40PM +0530, Sivakumar Thulasimani wrote: From: "Thulasimani, Sivakumar" HPD storm is detected in intel_hpd_irq_handler and disabled for respective port immediately but polling is enabled only in i915_hotplug

Re: [Intel-gfx] [PATCH v2] drm/i915/bxt: BUNs related to port PLL

2015-07-01 Thread Sivakumar Thulasimani
On 7/1/2015 11:04 AM, Vandana Kannan wrote: This patch contains changes based on 2 updates to the spec: Port PLL VCO restriction raised up to 6700. Port PLL now needs DCO amp override enable for all VCO frequencies. v2: Sonika's review comment addressed - dcoampovr_en_h variable not re

Re: [Intel-gfx] [PATCH v3] drm/i915/bxt: BUNs related to port PLL

2015-07-01 Thread Sivakumar Thulasimani
thanks for the changes. Reviewed-by: Sivakumar Thulasimani On 7/1/2015 5:02 PM, Vandana Kannan wrote: This patch contains changes based on 2 updates to the spec: Port PLL VCO restriction raised up to 6700. Port PLL now needs DCO amp override enable for all VCO frequencies. v2: Sonika&#

Re: [Intel-gfx] [PATCH] drm/i915/hotplug: Fixing storm handling for digital ports

2015-07-01 Thread Sivakumar Thulasimani
, Daniel Vetter wrote: On Tue, Jun 30, 2015 at 08:45:48AM +0530, Sivakumar Thulasimani wrote: On 6/29/2015 10:07 PM, Daniel Vetter wrote: On Mon, Jun 29, 2015 at 04:30:40PM +0530, Sivakumar Thulasimani wrote: From: "Thulasimani, Sivakumar" HPD storm is detected in intel_hpd_irq_h

Re: [Intel-gfx] [PATCH 1/9] drm/i915: Check pixel clock when setting mode for DP

2015-07-05 Thread Sivakumar Thulasimani
On 7/3/2015 6:27 PM, Ville Syrjälä wrote: On Fri, Jul 03, 2015 at 02:35:49PM +0300, Mika Kahola wrote: It is possible the we request to have a mode that has higher pixel clock than our HW can support. This patch checks if requested pixel clock is lower than the one supported by the HW. The req

Re: [Intel-gfx] [PATCH 2/2] drm/i915/hotplug: document the hotplug handling in the driver

2015-07-05 Thread Sivakumar Thulasimani
On 7/2/2015 6:35 PM, Jani Nikula wrote: Add an overview of the drm/i915 hotplug handling. Signed-off-by: Jani Nikula --- Documentation/DocBook/drm.tmpl | 5 + drivers/gpu/drm/i915/intel_hotplug.c | 39 2 files changed, 44 insertions(+) diff

Re: [Intel-gfx] [PATCH 2/7] drm/i915: Don't use link_bw for PLL setup

2015-07-07 Thread Sivakumar Thulasimani
Reviewed-by: Sivakumar Thulasimani On 7/6/2015 5:40 PM, ville.syrj...@linux.intel.com wrote: From: Ville Syrjälä Use port_clock instead of link_bw when picking the PLL parameters for DP. link_bw may be zero with an eDP 1.4 sink that supports DP_LINK_RATE_SET so we shouln't use i

Re: [Intel-gfx] [PATCH 3/7] drm/i915: Don't pass clock to DDI PLL select functions

2015-07-07 Thread Sivakumar Thulasimani
Reviewed-by: Sivakumar Thulasimani On 7/6/2015 5:40 PM, ville.syrj...@linux.intel.com wrote: From: Ville Syrjälä All the *_ddi_pll_select() functions get passed the port_clock and pipe config as parameters. We only need to pass the pipe config, and the functions can dig up the port_clock

Re: [Intel-gfx] [PATCH 4/7] drm/i915: Avoid confusion between DP and TRANS_DP_CTL in DP .get_config()

2015-07-07 Thread Sivakumar Thulasimani
Reviewed-by: Sivakumar Thulasimani On 7/6/2015 5:40 PM, ville.syrj...@linux.intel.com wrote: From: Ville Syrjälä Use a separate variable for the TRANS_DP_CTL value instead of reusing 'tmp' that otherwise contains the DP port register value. Signed-off-by: Ville Syrjälä --- d

Re: [Intel-gfx] [PATCH 6/7] drm/i915: Don't use link_bw to select between TP1 and TP3

2015-07-07 Thread Sivakumar Thulasimani
Reviewed-by: Sivakumar Thulasimani On 7/6/2015 5:40 PM, ville.syrj...@linux.intel.com wrote: From: Ville Syrjälä intel_dp->link_bw is going away, so consul the port_clock instead when choosing between TP1 and TP3. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/intel_dp.c

Re: [Intel-gfx] [PATCH 7/7] drm/i915: Kill intel_dp->{link_bw, rate_select}

2015-07-07 Thread Sivakumar Thulasimani
Reviewed-by: Sivakumar Thulasimani On 7/6/2015 5:40 PM, ville.syrj...@linux.intel.com wrote: From: Ville Syrjälä We only need the link_bw/rate_select parameters when starting link training, and they should be computed based on the currently active config, so throw them out from intel_dp

Re: [Intel-gfx] [PATCH] drm/i915: Improve DP downstream HPD handling

2015-07-07 Thread Sivakumar Thulasimani
On 7/6/2015 5:42 PM, ville.syrj...@linux.intel.com wrote: From: Ville Syrjälä DP dongles may signal downstream HPD via short HPD pulses. If we know the device has a HPD capable downstream port, make sure we kick off the full hotplug processing even for short HPDs. Additonally setting the sin

[Intel-gfx] [PATCH] drm/i915: storm detection documentation update

2015-07-07 Thread Sivakumar Thulasimani
From: "Thulasimani,Sivakumar" Update the hotplug documentation to explain that hotplug storm is not expected for Display port panels and hence is not handled in current code. Signed-off-by: Sivakumar Thulasimani --- drivers/gpu/drm/i915/intel_hotplug.c |4 1 file

Re: [Intel-gfx] [PATCH] drm/i915: Improve DP downstream HPD handling

2015-07-07 Thread Sivakumar Thulasimani
On 7/7/2015 4:40 PM, Ville Syrjälä wrote: On Tue, Jul 07, 2015 at 03:26:36PM +0530, Sivakumar Thulasimani wrote: On 7/6/2015 5:42 PM, ville.syrj...@linux.intel.com wrote: From: Ville Syrjälä DP dongles may signal downstream HPD via short HPD pulses. If we know the device has a HPD capable

Re: [Intel-gfx] [PATCH] drm/i915: Improve DP downstream HPD handling

2015-07-07 Thread Sivakumar Thulasimani
On 7/7/2015 5:24 PM, Ville Syrjälä wrote: On Tue, Jul 07, 2015 at 02:37:46PM +0300, Ville Syrjälä wrote: On Tue, Jul 07, 2015 at 04:45:11PM +0530, Sivakumar Thulasimani wrote: On 7/7/2015 4:40 PM, Ville Syrjälä wrote: On Tue, Jul 07, 2015 at 03:26:36PM +0530, Sivakumar Thulasimani wrote

Re: [Intel-gfx] [PATCH] drm/i915: Improve DP downstream HPD handling

2015-07-08 Thread Sivakumar Thulasimani
On 7/7/2015 5:50 PM, Sivakumar Thulasimani wrote: On 7/7/2015 5:24 PM, Ville Syrjälä wrote: On Tue, Jul 07, 2015 at 02:37:46PM +0300, Ville Syrjälä wrote: On Tue, Jul 07, 2015 at 04:45:11PM +0530, Sivakumar Thulasimani wrote: On 7/7/2015 4:40 PM, Ville Syrjälä wrote: On Tue, Jul 07, 2015

Re: [Intel-gfx] [PATCH] drm/i915: storm detection documentation update

2015-07-08 Thread Sivakumar Thulasimani
On 7/7/2015 5:01 PM, Daniel Vetter wrote: On Tue, Jul 07, 2015 at 04:10:49PM +0530, Sivakumar Thulasimani wrote: From: "Thulasimani,Sivakumar" Update the hotplug documentation to explain that hotplug storm is not expected for Display port panels and hence is not handled in cu

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Read sink_count dpcd always for short hpd

2015-08-19 Thread Sivakumar Thulasimani
dropping this patch as i understood more about SINK_COUNT dpcd and DOWNSTREAM_PORT_PRESENT dpcd. will upload a new series with proper fix. On 8/17/2015 6:21 PM, Sivakumar Thulasimani wrote: From: "Thulasimani,Sivakumar" Compliance test 4.2.2.8 requires driver to read the sink_count

[Intel-gfx] [PATCH 0/3] Detect DP displays based on sink count change

2015-08-25 Thread Sivakumar Thulasimani
From: "Thulasimani,Sivakumar" These patches together help detect DP displays on short pulse HPD and pass the respective compliance test case (4.2.2.8) v2: modifed first patch so we will read sink_count independent of downstream ports availablility. Thulasimani,Sivakumar (3): drm/i915: read s

[Intel-gfx] [PATCH 1/3] drm/i915: read sink_count dpcd always

2015-08-25 Thread Sivakumar Thulasimani
ned-off-by: Sivakumar Thulasimani --- drivers/gpu/drm/i915/intel_dp.c | 33 ++--- 1 file changed, 14 insertions(+), 19 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c index 8a66a44..9e4e27d 100644 --- a/drivers/gpu/drm/i915/intel_

[Intel-gfx] [PATCH 2/3] drm/i915: Save sink_count for tracking changes to it

2015-08-25 Thread Sivakumar Thulasimani
From: "Thulasimani,Sivakumar" Sink count can change between short pulse hpd hence this patch adds a member variable to intel_dp so we can track any changes between short pulse interrupts. Signed-off-by: Sivakumar Thulasimani --- drivers/gpu/drm/i915/intel_dp.c |5 ++--- drive

[Intel-gfx] [PATCH 3/3] drm/i915: force full detect on sink count change

2015-08-25 Thread Sivakumar Thulasimani
unplug of panels through dongles that give only short pulse for such events. Signed-off-by: Sivakumar Thulasimani --- drivers/gpu/drm/i915/intel_dp.c | 20 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/

Re: [Intel-gfx] [PATCH 1/3] drm/i915: read sink_count dpcd always

2015-08-26 Thread Sivakumar Thulasimani
On 8/26/2015 3:17 PM, Jani Nikula wrote: On Tue, 25 Aug 2015, Sivakumar Thulasimani wrote: From: "Thulasimani,Sivakumar" This patch reads sink_count dpcd always and removes its read operation based on values in downstream port dpcd. Also we should read it irrespective of current

Re: [Intel-gfx] [PATCH 3/3] drm/i915: force full detect on sink count change

2015-08-26 Thread Sivakumar Thulasimani
On 8/26/2015 3:32 PM, Jani Nikula wrote: On Tue, 25 Aug 2015, Sivakumar Thulasimani wrote: From: "Thulasimani,Sivakumar" This patch checks for changes in sink count between short pulse hpds and forces full detect when there is a change. This will result in compliance test ca

Re: [Intel-gfx] [PATCH 3/3] drm/i915: force full detect on sink count change

2015-08-26 Thread Sivakumar Thulasimani
On 8/26/2015 3:32 PM, Jani Nikula wrote: On Tue, 25 Aug 2015, Sivakumar Thulasimani wrote: From: "Thulasimani,Sivakumar" This patch checks for changes in sink count between short pulse hpds and forces full detect when there is a change. This will result in compliance test ca

Re: [Intel-gfx] [PATCH 1/3] drm/i915: read sink_count dpcd always

2015-08-26 Thread Sivakumar Thulasimani
On 8/26/2015 5:21 PM, Ville Syrjälä wrote: On Tue, Aug 25, 2015 at 05:20:36PM +0530, Sivakumar Thulasimani wrote: From: "Thulasimani,Sivakumar" This patch reads sink_count dpcd always and removes its read operation based on values in downstream port dpcd. Also we should read it ir

Re: [Intel-gfx] [PATCH 3/3] drm/i915: Support DDI lane reversal for DP

2015-08-26 Thread Sivakumar Thulasimani
On 8/18/2015 1:36 AM, Benjamin Tissoires wrote: On Aug 14 2015 or thereabouts, Stéphane Marchesin wrote: On Wed, Aug 5, 2015 at 12:34 PM, Benjamin Tissoires wrote: On Jul 30 2015 or thereabouts, Sivakumar Thulasimani wrote: On 7/29/2015 8:52 PM, Benjamin Tissoires wrote: On Jul 29 2015

Re: [Intel-gfx] [PATCH v2 4/7] drm/i915: add common intel_digital_port_connected function

2015-08-26 Thread Sivakumar Thulasimani
On 8/20/2015 1:17 PM, Jani Nikula wrote: Add a common intel_digital_port_connected() that splits out to functions for different platforms. No functional changes. v2: make the function return a boolean Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/intel_dp.c | 41 +

Re: [Intel-gfx] [PATCH 3/3] drm/i915: Support DDI lane reversal for DP

2015-08-26 Thread Sivakumar Thulasimani
On 8/26/2015 7:59 PM, Benjamin Tissoires wrote: On Aug 26 2015 or thereabouts, Sivakumar Thulasimani wrote: On 8/18/2015 1:36 AM, Benjamin Tissoires wrote: On Aug 14 2015 or thereabouts, Stéphane Marchesin wrote: On Wed, Aug 5, 2015 at 12:34 PM, Benjamin Tissoires wrote: On Jul 30 2015

Re: [Intel-gfx] [PATCH v2 4/7] drm/i915: add common intel_digital_port_connected function

2015-08-27 Thread Sivakumar Thulasimani
On 8/27/2015 12:30 PM, Jani Nikula wrote: On Wed, 26 Aug 2015, Sivakumar Thulasimani wrote: On 8/20/2015 1:17 PM, Jani Nikula wrote: Add a common intel_digital_port_connected() that splits out to functions for different platforms. No functional changes. v2: make the function return a

Re: [Intel-gfx] [PATCH v2 4/7] drm/i915: add common intel_digital_port_connected function

2015-08-27 Thread Sivakumar Thulasimani
On 8/27/2015 1:38 PM, Jani Nikula wrote: On Thu, 27 Aug 2015, Sivakumar Thulasimani wrote: On 8/27/2015 12:30 PM, Jani Nikula wrote: On Wed, 26 Aug 2015, Sivakumar Thulasimani wrote: On 8/20/2015 1:17 PM, Jani Nikula wrote: Add a common intel_digital_port_connected() that splits out to

[Intel-gfx] [PATCH 0/4] Detect DP displays based on sink count change

2015-08-27 Thread Sivakumar Thulasimani
From: "Thulasimani,Sivakumar" These patches together help detect DP displays on short pulse HPD and pass the respective compliance test case (4.2.2.8) v2: modifed first patch so we will read sink_count independent of downstream ports availablility. v3: split first patch so crtc enabled check is

[Intel-gfx] [PATCH 4/4] drm/i915: force full detect on sink count change

2015-08-27 Thread Sivakumar Thulasimani
iable type from u8 to bool (Jani) return immediately if perform_full_detect is set(Siva) Signed-off-by: Sivakumar Thulasimani --- drivers/gpu/drm/i915/intel_dp.c | 27 ++- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_dp.c

[Intel-gfx] [PATCH 2/4] drm/i915: read sink_count dpcd always

2015-08-27 Thread Sivakumar Thulasimani
0 no display is attached 0 1 dongle is connected without display 1 0 display connected directly 1 1 display connected through dongle v2: moved out crtc enabled checks to prior patch(Jani) Signed-off-by:

[Intel-gfx] [PATCH 3/4] drm/i915: Save sink_count for tracking changes to it

2015-08-27 Thread Sivakumar Thulasimani
From: "Thulasimani,Sivakumar" sink count can change between short pulse hpd hence this patch adds a member variable to intel_dp so we can track any changes between short pulse interrupts. Signed-off-by: Sivakumar Thulasimani --- drivers/gpu/drm/i915/intel_dp.c |5 ++--- drive

[Intel-gfx] [PATCH 1/4] drm/i915: read dpcd 0 - 12 & link_status always

2015-08-27 Thread Sivakumar Thulasimani
2. Signed-off-by: Sivakumar Thulasimani --- drivers/gpu/drm/i915/intel_dp.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c index 8a66a44..76561e0 100644 --- a/drivers/gpu/drm/i915/intel_dp.c +++

Re: [Intel-gfx] [PATCH 4/4] drm/i915: force full detect on sink count change

2015-09-01 Thread Sivakumar Thulasimani
On 9/1/2015 4:12 PM, Jani Nikula wrote: On Thu, 27 Aug 2015, Sivakumar Thulasimani wrote: From: "Thulasimani,Sivakumar" This patch checks for changes in sink count between short pulse hpds and forces full detect when there is a change. This will allow both detection of hotplug

Re: [Intel-gfx] [PATCH 2/4] drm/i915: read sink_count dpcd always

2015-09-01 Thread Sivakumar Thulasimani
On 9/1/2015 3:59 PM, Jani Nikula wrote: On Thu, 27 Aug 2015, Sivakumar Thulasimani wrote: From: "Thulasimani,Sivakumar" This patch reads sink_count dpcd always and removes its read operation based on values in downstream port dpcd. SINK_COUNT dpcd is not de

Re: [Intel-gfx] [PATCH 2/4] drm/i915: read sink_count dpcd always

2015-09-01 Thread Sivakumar Thulasimani
On 9/1/2015 6:45 PM, Jani Nikula wrote: On Tue, 01 Sep 2015, Sivakumar Thulasimani wrote: On 9/1/2015 3:59 PM, Jani Nikula wrote: On Thu, 27 Aug 2015, Sivakumar Thulasimani wrote: From: "Thulasimani,Sivakumar" This patch reads sink_count dpcd always and removes its read

Re: [Intel-gfx] [PATCH] drm/i915: Check DP link status on long hpd too

2015-09-01 Thread Sivakumar Thulasimani
On 8/20/2015 10:07 PM, ville.syrj...@linux.intel.com wrote: From: Ville Syrjälä We are no longer checkling the DP link status on long hpd. We used to do that from the .hot_plug() handler, but it was removed when MST got introduced. If there's no userspace we now fail to retrain the link if t

Re: [Intel-gfx] [PATCH 4/4] drm/i915: force full detect on sink count change

2015-09-03 Thread Sivakumar Thulasimani
On 9/2/2015 2:43 PM, Daniel Vetter wrote: On Thu, Aug 27, 2015 at 02:18:32PM +0530, Sivakumar Thulasimani wrote: From: "Thulasimani,Sivakumar" This patch checks for changes in sink count between short pulse hpds and forces full detect when there is a change. This will allow both

[Intel-gfx] [PATCH] Revert "drm/i915: Add eDP intermediate frequencies for CHV"

2015-09-13 Thread Sivakumar Thulasimani
g Reviewed-by: Ville Syrjälä Signed-off-by: Sivakumar Thulasimani Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/intel_dp.c |6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c index b1fe32b..3e277c4 100644 --- a/drive

Re: [Intel-gfx] [PATCH 1/2] drm/i915/bxt: Set oscaledcompmethod to enable scale value

2015-09-21 Thread Sivakumar Thulasimani
Reviewed-by: Sivakumar Thulasimani On 9/18/2015 2:11 PM, Sonika Jindal wrote: Bspec update tells that we have to enable oscaledcompmethod instead of ouniqetrangenmethod for enabling scale value during swing programming. Also, scale value is 'don't care' for other levels except

Re: [Intel-gfx] [PATCH 2/2] drm/i915/bxt: eDP low vswing support

2015-09-21 Thread Sivakumar Thulasimani
Reviewed-by: Sivakumar Thulasimani On 9/18/2015 2:11 PM, Sonika Jindal wrote: Adding voltage swing table for edp to support low vswings. Signed-off-by: Sonika Jindal --- drivers/gpu/drm/i915/intel_ddi.c | 23 +++ 1 file changed, 19 insertions(+), 4 deletions(-) diff

Re: [Intel-gfx] [PATCH 1/2] drm/i915/bxt: Set oscaledcompmethod to enable scale value

2015-09-22 Thread Sivakumar Thulasimani
On 9/22/2015 6:32 PM, Imre Deak wrote: On ma, 2015-09-21 at 23:00 +0530, Sivakumar Thulasimani wrote: Reviewed-by: Sivakumar Thulasimani On 9/18/2015 2:11 PM, Sonika Jindal wrote: Bspec update tells that we have to enable oscaledcompmethod instead of ouniqetrangenmethod for enabling scale

Re: [Intel-gfx] [PATCH v3] drm/i915: Add debugfs to read/write any DPCD register

2015-04-20 Thread Sivakumar Thulasimani
Reviewed-by: Sivakumar Thulasimani On 4/20/2015 5:08 PM, Durgadoss R wrote: This patch creates a connector specific debugfs interface to read any particular DPCD register. The DPCD register address (hex format) is written to 'i915_dpcd_addr' interface and the corresponding value c

Re: [Intel-gfx] [PATCH] drm/i915/skl: Select DDIA lane capability based upon vbt

2015-04-23 Thread Sivakumar Thulasimani
we still don't have code to enumerate DDI E or DDI D. but this will handle them when this bit is missed by GOP/VBIOS during boot up. Reviewed-by: Sivakumar Thulasimani On 4/23/2015 5:58 PM, Sonika Jindal wrote: Currently, if bios fails to drive an edp panel due to any reason, the ddi b

Re: [Intel-gfx] [PATCH v3 2/2] drm/i915: DP link training optimization

2015-04-28 Thread Sivakumar Thulasimani
On 4/28/2015 12:13 PM, Mika Kahola wrote: This patch adds DP link training optimization by reusing the previously trained values. v2: - rebase V3: - rebase Signed-off-by: Mika Kahola --- drivers/gpu/drm/i915/intel_dp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/d

Re: [Intel-gfx] [PATCH v3 2/2] drm/i915: DP link training optimization

2015-04-28 Thread Sivakumar Thulasimani
On 4/28/2015 1:44 PM, Mika Kahola wrote: On Tue, 2015-04-28 at 13:19 +0530, Sivakumar Thulasimani wrote: On 4/28/2015 12:13 PM, Mika Kahola wrote: This patch adds DP link training optimization by reusing the previously trained values. v2: - rebase V3: - rebase Signed-off-by: Mika Kahola

Re: [Intel-gfx] [PATCH v3 2/2] drm/i915: DP link training optimization

2015-04-28 Thread Sivakumar Thulasimani
On 4/28/2015 3:12 PM, Mika Kahola wrote: On Tue, 2015-04-28 at 13:51 +0530, Sivakumar Thulasimani wrote: On 4/28/2015 1:44 PM, Mika Kahola wrote: On Tue, 2015-04-28 at 13:19 +0530, Sivakumar Thulasimani wrote: On 4/28/2015 12:13 PM, Mika Kahola wrote: This patch adds DP link training

Re: [Intel-gfx] [PATCH v4 1/2] drm/i915: DP link training optimization

2015-04-28 Thread Sivakumar Thulasimani
Reviewed-by: Sivakumar Thulasimani On 4/29/2015 11:47 AM, Mika Kahola wrote: This is a first of series patches that optimize DP link training. The first patch is for eDP only where we reuse the previously trained link training values from cache i.e. voltage swing and pre-emphasis levels. In

Re: [Intel-gfx] [PATCH v4 2/2] drm/i915: DP link training optimization

2015-04-28 Thread Sivakumar Thulasimani
Reviewed-by: Sivakumar Thulasimani On 4/29/2015 11:47 AM, Mika Kahola wrote: This patch adds DP link training optimization by reusing the previously trained values. v2: - rebase V3: - rebase V4: - when HPD long pulse is received, the flag is cleared that indicates if DP link training is

Re: [Intel-gfx] [PATCH] drm/i915/bxt: Port PLL programming BUN

2015-05-04 Thread Sivakumar Thulasimani
Reviewed-by: Sivakumar Thulasimani On 5/4/2015 8:50 PM, Vandana Kannan wrote: BUN 1: prop_coeff, int_coeff, tdctargetcnt programming updated and tied to VCO frequencies. Program i_lockthresh in PORT_PLL_9. VCO calculated based on the formula: Desired Output = Port bit rate in MHz (DisplayPort

Re: [Intel-gfx] [PATCH 1/2] drm/i915/dp: there is no audio on port A on non-DDI platforms

2015-05-04 Thread Sivakumar Thulasimani
On 5/4/2015 7:50 PM, Jani Nikula wrote: The eDP port A register on PCH split platforms has a slightly different register layout from the other ports, with bit 6 being either alternate scrambler reset or reserved, depending on the generation. Our misinterpretation of the bit as audio has lead to

Re: [Intel-gfx] [PATCH 2/2] drm/i915/audio: do not mess with audio registers if port is invalid

2015-05-04 Thread Sivakumar Thulasimani
Reviewed-by: Sivakumar Thulasimani On 5/4/2015 7:50 PM, Jani Nikula wrote: We should no longer enter the codec enable/disable functions in question with port A anyway, but to err on the safe side, keep the warnings. Just bail out early without messing with the registers. Signed-off-by: Jani

Re: [Intel-gfx] [PATCH 1/2] drm/i915/dp: there is no audio on port A on non-DDI platforms

2015-05-05 Thread Sivakumar Thulasimani
Nikula wrote: On Tue, 05 May 2015, Sivakumar Thulasimani wrote: On 5/4/2015 7:50 PM, Jani Nikula wrote: The eDP port A register on PCH split platforms has a slightly different register layout from the other ports, with bit 6 being either alternate scrambler reset or reserved, depending on the

Re: [Intel-gfx] [PATCH 1/2] drm/i915/dp: there is no audio on port A on non-DDI platforms

2015-05-05 Thread Sivakumar Thulasimani
sure, you can check for port A alone then. DDI A will have edp in all SKUs so checking for eDP should ideally be the same as DDIA. On 5/5/2015 7:02 PM, Jani Nikula wrote: On Tue, 05 May 2015, Sivakumar Thulasimani wrote: two points 1) The eDP spec says Audio is optional so it is allowed to

Re: [Intel-gfx] [PATCH 1/2] drm/i915/dp: there is no audio on port A on non-DDI platforms

2015-05-05 Thread Sivakumar Thulasimani
missed the changes attached. so adding rb tag Reviewed-by: Sivakumar Thulasimani On 5/5/2015 7:02 PM, Jani Nikula wrote: On Tue, 05 May 2015, Sivakumar Thulasimani wrote: two points 1) The eDP spec says Audio is optional so it is allowed to have audio, but i am yet to come across any eDP

Re: [Intel-gfx] [PATCH] drm/i915: DP link training optimization

2015-02-27 Thread Sivakumar Thulasimani
On 2/27/2015 1:14 PM, Jani Nikula wrote: On Fri, 27 Feb 2015, Todd Previte wrote: Hi Mika, On 2/26/2015 2:26 AM, Mika Kahola wrote: In a case when DP link has been once trained we can reuse the existing link training parameters i.e. voltage swing and pre-emphasis levels from cache when there

Re: [Intel-gfx] [PATCH] drm/i915: storm detection documentation update

2015-07-09 Thread Sivakumar Thulasimani
On 7/8/2015 8:50 PM, Daniel Vetter wrote: On Wed, Jul 08, 2015 at 06:54:06PM +0530, Sivakumar Thulasimani wrote: On 7/7/2015 5:01 PM, Daniel Vetter wrote: On Tue, Jul 07, 2015 at 04:10:49PM +0530, Sivakumar Thulasimani wrote: From: "Thulasimani,Sivakumar" Update the hotplug doc

[Intel-gfx] [PATCH] drm/i915: storm detection documentation update

2015-07-09 Thread Sivakumar Thulasimani
From: "Thulasimani,Sivakumar" Update the hotplug documentation to explain that hotplug storm is not expected for Display port panels and hence is not handled in current code. v2: update the statements as recommended by Daniel Signed-off-by: Sivakumar Thulasimani --- drivers/gp

Re: [Intel-gfx] [PATCH 3/9] drm/i915: Simplify CHV pipe A power well code

2015-07-10 Thread Sivakumar Thulasimani
Reviewed-by: Sivakumar Thulasimani On 6/29/2015 5:55 PM, ville.syrj...@linux.intel.com wrote: From: Ville Syrjälä The pipe A power well is the "disp2d" well on CHV and pipe B and C wells don't even exist. Thereforce we can remove the checks for pipe A vs. others and just ass

Re: [Intel-gfx] [PATCH 4/9] drm/i915: Refactor VLV display power well init/deinit

2015-07-10 Thread Sivakumar Thulasimani
Reviewed-by: Sivakumar Thulasimani On 6/29/2015 5:55 PM, ville.syrj...@linux.intel.com wrote: From: Ville Syrjälä We do the exact same steps around the disp2d/pipe A power well enable/disable on VLV and CHV. Refactor the shared code into some helpers. Note that this means we now call

Re: [Intel-gfx] [PATCH 5/9] drm/i915: Clear out DPLL state from pipe config in DSI get config

2015-07-10 Thread Sivakumar Thulasimani
Reviewed-by: Sivakumar Thulasimani On 6/29/2015 5:55 PM, ville.syrj...@linux.intel.com wrote: From: Ville Syrjälä VLV/CHV don't use the DPLL with DSI, so just clear out the DPLL state from the pipe_config in intel_dsi_get_config(). This avoids spurious state checker warnings. We al

Re: [Intel-gfx] [PATCH 5/9] drm/i915: Clear out DPLL state from pipe config in DSI get config

2015-07-10 Thread Sivakumar Thulasimani
On 7/1/2015 6:12 PM, Daniel Vetter wrote: On Tue, Jun 30, 2015 at 02:50:33PM +0300, Ville Syrjälä wrote: On Tue, Jun 30, 2015 at 12:13:37PM +0200, Daniel Vetter wrote: On Mon, Jun 29, 2015 at 08:08:27PM +0300, Ville Syrjälä wrote: On Mon, Jun 29, 2015 at 07:56:05PM +0300, Ville Syrjälä wrote

Re: [Intel-gfx] [PATCH 6/9] drm/i915: Move DPLL ref/cri/VGA mode frobbing to the disp2d well enable

2015-07-10 Thread Sivakumar Thulasimani
Reviewed-by: Sivakumar Thulasimani On 6/29/2015 5:55 PM, ville.syrj...@linux.intel.com wrote: From: Ville Syrjälä Bunch of stuff needs the DPLL ref/cri clocks on both VLV and CHV, and having VGA mode enabled causes some problems for CHV. So let's just pull the code to configure those

Re: [Intel-gfx] [PATCH 8/9] drm/i915: Implement WaPixelRepeatModeFixForC0:chv

2015-07-12 Thread Sivakumar Thulasimani
On 6/29/2015 5:55 PM, ville.syrj...@linux.intel.com wrote: From: Ville Syrjälä DPLL_MD(PIPE_C) is AWOL on CHV. Instead of fixing it someone added chicken bits to propagate the pixel multiplier from DPLL_MD(PIPE_B) to either pipe B or C. So do that to make pixel repeat work on pipes B and C. P

Re: [Intel-gfx] [PATCH 9/9] drm/i915: Disable DSI PLL before reconfiguring it

2015-07-12 Thread Sivakumar Thulasimani
Reviewed-by: Sivakumar Thulasimani On 6/29/2015 5:55 PM, ville.syrj...@linux.intel.com wrote: From: Ville Syrjälä The BIOS maybe leave the DSI PLL enabled even if the port is disabled. The PLL doesn't seem to like being reconfigured while it's enabled so make sure it's

Re: [Intel-gfx] [PATCH] drm/i915/bxt: WA for swapped HPD pins in A stepping

2015-07-12 Thread Sivakumar Thulasimani
On 7/13/2015 9:47 AM, Sonika Jindal wrote: As per bspec, on BXT A0/A1, sw needs to activate DDIA HPD logic and interrupts to check the external panel connection. And remove the redundant comment. v2: Remove redundant IS_BROXTON check, Add comment about port C not connected, and rephrase the co

Re: [Intel-gfx] [PATCH 5/9] drm/i915: Clear out DPLL state from pipe config in DSI get config

2015-07-13 Thread Sivakumar Thulasimani
On 7/13/2015 2:21 PM, Daniel Vetter wrote: On Fri, Jul 10, 2015 at 05:37:07PM +0530, Sivakumar Thulasimani wrote: On 7/1/2015 6:12 PM, Daniel Vetter wrote: On Tue, Jun 30, 2015 at 02:50:33PM +0300, Ville Syrjälä wrote: On Tue, Jun 30, 2015 at 12:13:37PM +0200, Daniel Vetter wrote: On Mon

Re: [Intel-gfx] [PATCH] drm/i915/bxt: WA for swapped HPD pins in A stepping

2015-07-13 Thread Sivakumar Thulasimani
On 7/13/2015 3:10 PM, Daniel Vetter wrote: On Mon, Jul 13, 2015 at 02:10:09PM +0530, Sonika Jindal wrote: As per bspec, on BXT A0/A1, sw needs to activate DDIA HPD logic and interrupts to check the external panel connection. And remove the redundant comment. v2: Remove redundant IS_BROXTON ch

Re: [Intel-gfx] [PATCH 1/3] drm/i915: combine i9xx_get_hpd_pins and pch_get_hpd_pins

2015-07-21 Thread Sivakumar Thulasimani
On 7/21/2015 3:13 AM, Imre Deak wrote: These functions are quite similar, so combine them with the use of a new argument for a function that detects long pulses. This will be also needed by an upcoming patch adding support for BXT long pulse detection. No functional change. Signed-off-by: Imr

Re: [Intel-gfx] [PATCH 2/3] drm/i915: don't use HPD_PORT_A as an alias for HPD_NONE

2015-07-21 Thread Sivakumar Thulasimani
his change looks good. Reviewed-by: Sivakumar Thulasimani diff --git a/drivers/gpu/drm/i915/intel_hotplug.c b/drivers/gpu/drm/i915/intel_hotplug.c index 3c53aac..8cda7b9 100644 --- a/drivers/gpu/drm/i915/intel_hotplug.c +++ b/drivers/gpu/drm/i915/intel_hotplug.c @@ -29,17 +29,23 @@

Re: [Intel-gfx] [PATCH 1/3] drm/i915: combine i9xx_get_hpd_pins and pch_get_hpd_pins

2015-07-22 Thread Sivakumar Thulasimani
On 7/21/2015 11:28 PM, Imre Deak wrote: On Tue, 2015-07-21 at 13:50 +0530, Sivakumar Thulasimani wrote: On 7/21/2015 3:13 AM, Imre Deak wrote: These functions are quite similar, so combine them with the use of a new argument for a function that detects long pulses. This will be also needed

Re: [Intel-gfx] [PATCH v2 1/3] drm/i915: combine i9xx_get_hpd_pins and pch_get_hpd_pins

2015-07-22 Thread Sivakumar Thulasimani
5_WRITE(BXT_HOTPLUG_CTL, hp_control); - pch_get_hpd_pins(&pin_mask, &long_mask, hp_trigger, hp_control, hpd_bxt); + intel_get_hpd_pins(&pin_mask, &long_mask, hp_trigger, hp_control, + hpd_bxt, pch_port_hotplug_long_detect); intel_h

Re: [Intel-gfx] [PATCH v2 2/3] drm/i915: don't use HPD_PORT_A as an alias for HPD_NONE

2015-07-22 Thread Sivakumar Thulasimani
. No functional change. v2: - rebase on top of -nightly (Daniel) - make the check for intel_hpd_pin_to_port() return value more readable (Sivakumar) Signed-off-by: Imre Deak Reviewed-by: Sonika Jindal Reviewed-by: Sivakumar Thulasimani --- drivers/gpu/drm/i915/i915_drv.h | 4 ++-- drivers/gp

Re: [Intel-gfx] [PATCH 3/3] drm/i915/bxt: add support for HPD long/short pulse detection on HPD_PORT_A pin

2015-07-22 Thread Sivakumar Thulasimani
DURATION_2ms(0) #define PORTD_PULSE_DURATION_4_5ms (1 << 18) Reviewed-by: Sivakumar Thulasimani -- regards, Sivakumar ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx

[Intel-gfx] [PATCH] drm/i915: fix checksum write for automated test reply

2015-07-22 Thread Sivakumar Thulasimani
From: "Thulasimani,Sivakumar" DP spec requires the checksum of the last block read to be written when replying to TEST_EDID_READ. This patch fixes the current code to do the same. Signed-off-by: Sivakumar Thulasimani --- drivers/gpu/drm/i915/intel_dp.c | 11 ++- 1 file c

  1   2   >