[Intel-gfx] [PATCH] drm/edid: Fix DDC probe for passive DP dongles

2015-05-22 Thread Todd Previte
On 5/21/2015 1:28 AM, Jani Nikula wrote: > On Thu, 21 May 2015, Todd Previte wrote: >> Passive DP->DVI/HDMI dongles show up to the system as HDMI devices, as they >> do not have a sink device in them to respond to any AUX traffic. When >> probing these dongles over the

[PATCH] drm/edid: Fix DDC probe for passive DP dongles

2015-05-20 Thread Todd Previte
nce and still continue operations. A second NAK will result in breaking the loop as it would have before and stopping the DDC probe. Signed-off-by: Todd Previte Cc: intel-gfx at lists.freedesktop.org --- drivers/gpu/drm/drm_edid.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --gi

[PATCH 2/5] drm: Add edid_corrupt flag for Displayport Link CTS 4.2.2.6

2015-04-21 Thread Todd Previte
: - Updated for versioning and patch swizzle - Revised the title to more accurately reflect the nature and contents of the patch - Fixed formatting/whitespace problems - Added set flag when computed checksum is invalid Signed-off-by: Todd Previte Cc: dri-devel at lists.freedesktop.org --- drivers/gpu

[PATCH 4/5] drm: Fix for DP CTS test 4.2.2.5 - I2C DEFER handling

2015-04-18 Thread Todd Previte
count. - Combined the increment of the defer count into the if-statement V4: - Removed i915 tag from subject as the patch is not i915-specific V5: - Updated the for-loop to add the number of i2c defers to the retry counter such that the correct number of retry attempts will be made Signed-off-by:

[PATCH 2/5] drm: Add edid_corrupt flag for Displayport Link CTS 4.2.2.6

2015-04-18 Thread Todd Previte
- Revised the title to more accurately reflect the nature and contents of the patch Signed-off-by: Todd Previte Cc: dri-devel at lists.freedesktop.org --- drivers/gpu/drm/drm_edid.c | 30 -- drivers/gpu/drm/drm_edid_load.c | 7 +-- include/drm/drm_crtc.h

[PATCH 4/5] drm: Fix for DP CTS test 4.2.2.5 - I2C DEFER handling

2015-04-17 Thread Todd Previte
count. - Combined the increment of the defer count into the if-statement V4: - Removed i915 tag from subject as the patch is not i915-specific V5: - Updated the for-loop to add the number of i2c defers to the retry counter such that the correct number of retry attempts will be made Signed-off-by:

[PATCH 2/5] drm: Add edid_corrupt flag for Displayport Link CTS 4.2.2.6

2015-04-17 Thread Todd Previte
- Revised the title to more accurately reflect the nature and contents of the patch Signed-off-by: Todd Previte Cc: dri-devel at lists.freedesktop.org --- drivers/gpu/drm/drm_edid.c | 30 -- drivers/gpu/drm/drm_edid_load.c | 7 +-- include/drm/drm_crtc.h

[PATCH 05/12] drm: Add supporting structure for Displayport Link CTS test 4.2.2.6

2015-04-16 Thread Todd Previte
header_corrupt flag from the test handler in intel_dp.c - Added clearing of header_corrupt flag in the drm_edid_block_valid function V9: - Renamed header_corrupt flag to edid_corrupt to more accurately reflect its value and purpose - Updated commit message Signed-off-by: Todd Previte Cc: dri-devel at

[PATCH 05/12] drm: Add supporting structure for Displayport Link CTS test 4.2.2.6

2015-04-16 Thread Todd Previte
On 4/16/2015 6:34 AM, Paulo Zanoni wrote: > 2015-04-15 19:03 GMT-03:00 Todd Previte : >> Displayport compliance test 4.2.2.6 requires that a source device be capable >> of >> detecting a corrupt EDID. The test specification states that the sink device >> sets

[PATCH 05/12] drm: Add supporting structure for Displayport Link CTS test 4.2.2.6

2015-04-15 Thread Todd Previte
handler in intel_dp.c - Added clearing of header_corrupt flag in the drm_edid_block_valid function Signed-off-by: Todd Previte Cc: dri-devel at lists.freedesktop.org --- drivers/gpu/drm/drm_edid.c | 35 +-- drivers/gpu/drm/drm_edid_load.c | 7 +-- drivers/gpu

[Intel-gfx] [PATCH 05/12] drm: Add supporting structure for Displayport Link CTS test 4.2.2.6

2015-04-15 Thread Todd Previte
On 4/15/2015 1:25 PM, Paulo Zanoni wrote: > 2015-04-15 14:15 GMT-03:00 Todd Previte : >> Displayport compliance test 4.2.2.6 requires that a source device be capable >> of >> detecting a corrupt EDID. The test specification states that the sink device >> sets

[PATCH 05/12] drm: Add supporting structure for Displayport Link CTS test 4.2.2.6

2015-04-15 Thread Todd Previte
flag to the end of the test handler in intel_dp.c - Changed the usage of the new function prototype in several places to use NULL where it is not needed by compliance testing V7: - Updated to account for long_pulse flag propagation Signed-off-by: Todd Previte Cc: dri-devel at

[PATCH 10/10] drm: Fix the 'native defer' message in drm_dp_i2c_do_msg()

2015-04-15 Thread Todd Previte
The debug message is missing a newline at the end and it makes the logs hard to read when a device defers a lot. Simple 2-character fix adds the newline at the end. Signed-off-by: Todd Previte Cc: dri-devel at lists.freedesktop.org Reviewed-by: Paulo Zanoni Reviewed-by: Alex Deucher

[PATCH 08/10] drm: Fix for DP CTS test 4.2.2.5 - I2C DEFER handling

2015-04-15 Thread Todd Previte
count. - Combined the increment of the defer count into the if-statement V4: - Removed i915 tag from subject as the patch is not i915-specific V5: - Updated the for-loop to add the number of i2c defers to the retry counter such that the correct number of retry attempts will be made Signed-off-by:

[PATCH 05/10] drm: Add supporting structure for Displayport Link CTS test 4.2.2.6

2015-04-15 Thread Todd Previte
flag to the end of the test handler in intel_dp.c - Changed the usage of the new function prototype in several places to use NULL where it is not needed by compliance testing Signed-off-by: Todd Previte Cc: dri-devel at lists.freedesktop.org --- drivers/gpu/drm/drm_edid.c | 30

[PATCH 06/13] drm: Add supporting structure for Displayport Link CTS test 4.2.2.6

2015-04-14 Thread Todd Previte
On 4/13/15 3:18 PM, Paulo Zanoni wrote: > 2015-04-13 11:53 GMT-03:00 Todd Previte : >> Displayport compliance test 4.2.2.6 requires that a source device be capable >> of >> detecting a corrupt EDID. The test specification states that the sink device >> sets up the ED

[PATCH 06/13] drm: Add supporting structure for Displayport Link CTS test 4.2.2.6

2015-04-13 Thread Todd Previte
variable is actually declared Signed-off-by: Todd Previte Cc: dri-devel at lists.freedesktop.org --- drivers/gpu/drm/drm_edid.c| 31 ++- drivers/gpu/drm/drm_edid_load.c | 7 +-- drivers/gpu/drm/i2c/tda998x_drv.c | 4 ++-- drivers/gpu/drm/i915

[PATCH 09/13] drm: Fix for DP CTS test 4.2.2.5 - I2C DEFER handling

2015-04-10 Thread Todd Previte
d the increment of the defer count into the if-statement V4: - Removed i915 tag from subject as the patch is not i915-specific Signed-off-by: Todd Previte Cc: dri-devel at lists.freedesktop.org --- drivers/gpu/drm/drm_dp_helper.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dr

[PATCH 06/13] drm: Add supporting structure for Displayport Link CTS test 4.2.2.6

2015-04-10 Thread Todd Previte
compliance variable and check_link_status update; those have been moved to a later patch - Removed variable assignment from the bottom of the test handler V4: - Removed i915 tag from subject line as the patch is not i915-specific Signed-off-by: Todd Previte Cc: dri-devel at lists.freedesktop.org

[PATCH 06/11] drm/i915: Add supporting structure for Displayport Link CTS test 4.2.2.6

2015-04-10 Thread Todd Previte
Easy enough to do. Tag removed and updated patch posted. Thanks Emil! On 4/10/2015 10:45 AM, Emil Velikov wrote: > Hi Todd > > On 10/04/15 16:12, Todd Previte wrote: >> Displayport compliance test 4.2.2.6 requires that a source device be capable >> of >> detecti

[PATCH 11/11] drm: Fix the 'native defer' message in drm_dp_i2c_do_msg()

2015-04-10 Thread Todd Previte
The debug message is missing a newline at the end and it makes the logs hard to read when a device defers a lot. Simple 2-character fix adds the newline at the end. Signed-off-by: Todd Previte Cc: dri-devel at lists.freedesktop.org --- drivers/gpu/drm/drm_dp_helper.c | 2 +- 1 file changed, 1

[PATCH 09/11] drm/i915: Fix for DP CTS test 4.2.2.5 - I2C DEFER handling

2015-04-10 Thread Todd Previte
d the increment of the defer count into the if-statement Signed-off-by: Todd Previte Cc: dri-devel at lists.freedesktop.org --- drivers/gpu/drm/drm_dp_helper.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_dp_helper.c b/drivers/gpu/drm/drm_dp_helper.c

[PATCH 06/11] drm/i915: Add supporting structure for Displayport Link CTS test 4.2.2.6

2015-04-10 Thread Todd Previte
compliance variable and check_link_status update; those have been moved to a later patch - Removed variable assignment from the bottom of the test handler Signed-off-by: Todd Previte Cc: dri-devel at lists.freedesktop.org --- drivers/gpu/drm/drm_edid.c| 31

[Intel-gfx] [PATCH 4/9] drm/i915: Add check for corrupt raw EDID header for Displayport compliance testing

2015-04-10 Thread Todd Previte
On 4/8/2015 3:37 PM, Paulo Zanoni wrote: > 2015-04-08 18:43 GMT-03:00 Todd Previte: >> On 4/8/2015 9:51 AM, Paulo Zanoni wrote: >>> 2015-03-31 14:15 GMT-03:00 Todd Previte: >>>> Displayport compliance test 4.2.2.6 requires that a source device be >>>> ca

[Intel-gfx] [PATCH 4/9] drm/i915: Add check for corrupt raw EDID header for Displayport compliance testing

2015-04-08 Thread Todd Previte
On 4/8/2015 9:51 AM, Paulo Zanoni wrote: > 2015-03-31 14:15 GMT-03:00 Todd Previte : >> Displayport compliance test 4.2.2.6 requires that a source device be capable >> of detecting >> a corrupt EDID. To do this, the test sets up an invalid EDID header to be >> r

[PATCH 07/11] drm/i915: Fix for DP CTS test 4.2.2.5 - I2C DEFER handling

2015-04-07 Thread Todd Previte
On 4/7/15 7:29 AM, Paulo Zanoni wrote: > 2015-04-06 23:11 GMT-03:00 Todd Previte : >> For test 4.2.2.5 to pass per the Link CTS Core 1.2 rev1.1 spec, the source >> device must attempt at least 7 times to read the EDID when it receives an >> I2C defer. The normal DRM code

[PATCH 07/11] drm/i915: Fix for DP CTS test 4.2.2.5 - I2C DEFER handling

2015-04-06 Thread Todd Previte
umber of I2C Defers to limit the number of times that the retries variable will be decremented. This is to address review feedback regarding possible infinite loops from misbehaving sink devices. Signed-off-by: Todd Previte Cc: dri-devel at lists.freedesktop.org --- drivers/gp

[PATCH 7/9] drm/i915: Fix for DP CTS test 4.2.2.5 - I2C DEFER handling

2015-04-06 Thread Todd Previte
On 4/6/15 5:05 PM, Paulo Zanoni wrote: > 2015-03-31 14:15 GMT-03:00 Todd Previte : >> For test 4.2.2.5 to pass per the Link CTS Core 1.2 rev1.1 spec, the source >> device must attempt at least 7 times to read the EDID when it receives an >> I2C defer. The normal DRM code

[PATCH 1/5] drm/i915: Fix for DP CTS test 4.2.2.5 - I2C DEFER handling

2015-04-01 Thread Todd Previte
, however, as a worse case real-world scenario, it would result in 13 attempts ( 6 native defers, 7 I2C defers) for a single transaction to complete. The net result is a slightly slower response to an EDID read that shouldn't significantly impact overall performance. Signed-off-by: Todd Previt

[PATCH 9/9] drm: Fix the 'native defer' message in drm_dp_i2c_do_msg()

2015-03-31 Thread Todd Previte
The debug message is missing a newline at the end and it makes the logs hard to read when a device defers a lot. Simple 2-character fix adds the newline at the end. Signed-off-by: Todd Previte Cc: dri-devel at lists.freedesktop.org --- drivers/gpu/drm/drm_dp_helper.c | 2 +- 1 file changed, 1

[PATCH 7/9] drm/i915: Fix for DP CTS test 4.2.2.5 - I2C DEFER handling

2015-03-31 Thread Todd Previte
, however, as a worse case real-world scenario, it would result in 13 attempts ( 6 native defers, 7 I2C defers) for a single transaction to complete. The net result is a slightly slower response to an EDID read that shouldn't significantly impact overall performance. Signed-off-by: Todd Previt

[PATCH 4/9] drm/i915: Add check for corrupt raw EDID header for Displayport compliance testing

2015-03-31 Thread Todd Previte
ce testing code to acknowledge that fact and react appropriately. The flag is automatically cleared on read. This code is designed to expressly work for compliance testing without disrupting normal operations for EDID reading and parsing. Signed-off-by: Todd Previte Cc: dri-devel at lists.freed

[PATCH 9/9] drm: Fix the 'native defer' message in drm_dp_i2c_do_msg()

2015-03-31 Thread Todd Previte
The debug message is missing a newline at the end and it makes the logs hard to read when a device defers a lot. Simple 2-character fix adds the newline at the end. Signed-off-by: Todd Previte Cc: dri-devel at lists.freedesktop.org --- drivers/gpu/drm/drm_dp_helper.c | 2 +- 1 file changed, 1

[PATCH 7/9] drm/i915: Fix for DP CTS test 4.2.2.5 - I2C DEFER handling

2015-03-31 Thread Todd Previte
, however, as a worse case real-world scenario, it would result in 13 attempts ( 6 native defers, 7 I2C defers) for a single transaction to complete. The net result is a slightly slower response to an EDID read that shouldn't significantly impact overall performance. Signed-off-by: Todd Previt

[PATCH 4/9] drm/i915: Add check for corrupt raw EDID header for Displayport compliance testing

2015-03-31 Thread Todd Previte
ce testing code to acknowledge that fact and react appropriately. The flag is automatically cleared on read. This code is designed to expressly work for compliance testing without disrupting normal operations for EDID reading and parsing. Signed-off-by: Todd Previte Cc: dri-devel at lists.freed

[PATCH 02/10] drm/i915: Add counters in the drm_dp_aux struct for I2C NACKs and DEFERs

2014-11-04 Thread Todd Previte
review feedback - Updated commit message - Changed from uint8_t to uint32_t Cc: dri-devel at lists.freedesktop.org Signed-off-by: Todd Previte --- drivers/gpu/drm/drm_dp_helper.c | 2 ++ include/drm/drm_dp_helper.h | 1 + 2 files changed, 3 insertions(+) diff --git a/drivers/gpu/drm

[Intel-gfx] [PATCH 02/10] drm/i915: Add counters in the drm_dp_aux struct for I2C NACKs and DEFERs

2014-11-04 Thread Todd Previte
tly. -T On 10/21/2014 10:10 AM, Paulo Zanoni wrote: > 2014-10-09 12:38 GMT-03:00 Todd Previte : >> These counters are used for Displayort complinace testing to detect error >> conditions >> when executing certain compliance tests. Currently these are used in the >&

[PATCH 02/10] drm/i915: Add counters in the drm_dp_aux struct for I2C NACKs and DEFERs

2014-10-09 Thread Todd Previte
lists.freedesktop.org Signed-off-by: Todd Previte --- drivers/gpu/drm/drm_dp_helper.c | 2 ++ include/drm/drm_dp_helper.h | 1 + 2 files changed, 3 insertions(+) diff --git a/drivers/gpu/drm/drm_dp_helper.c b/drivers/gpu/drm/drm_dp_helper.c index 08e33b8..8353051 100644 --- a/drivers/gpu/drm/drm_dp_helper.c

[PATCH 02/10] drm/i915: Add counters in the drm_dp_aux struct for I2C NACKs and DEFERs

2014-10-09 Thread Todd Previte
Sorry for the spam - Ignore the duplicates. There will be one more coming when I post this series to intel-gfx. -T -Original Message- From: Todd Previte [mailto:tprev...@gmail.com] Sent: Thursday, October 09, 2014 8:33 AM To: tprevite at gmail.com Cc: dri-devel at lists.freedesktop.org

[PATCH 02/10] drm/i915: Add counters in the drm_dp_aux struct for I2C NACKs and DEFERs

2014-10-09 Thread Todd Previte
lists.freedesktop.org Signed-off-by: Todd Previte --- drivers/gpu/drm/drm_dp_helper.c | 2 ++ include/drm/drm_dp_helper.h | 1 + 2 files changed, 3 insertions(+) diff --git a/drivers/gpu/drm/drm_dp_helper.c b/drivers/gpu/drm/drm_dp_helper.c index 08e33b8..8353051 100644 --- a/drivers/gpu/drm/drm_dp_helper.c

[PATCH 02/10] drm/i915: Add counters in the drm_dp_aux struct for I2C NACKs and DEFERs

2014-10-09 Thread Todd Previte
lists.freedesktop.org Signed-off-by: Todd Previte --- drivers/gpu/drm/drm_dp_helper.c | 2 ++ include/drm/drm_dp_helper.h | 1 + 2 files changed, 3 insertions(+) diff --git a/drivers/gpu/drm/drm_dp_helper.c b/drivers/gpu/drm/drm_dp_helper.c index 08e33b8..8353051 100644 --- a/drivers/gpu/drm/drm_dp_helper.c

[PATCH] drm/i915: Fix Sink CRC

2014-09-29 Thread Todd Previte
Hi Rodrigo, This patch looks good. Reviewed-by: Todd Previte -T -Original Message- From: Rodrigo Vivi [mailto:rodrigo.v...@gmail.com] Sent: Tuesday, September 16, 2014 4:18 PM To: intel-gfx at lists.freedesktop.org Cc: dri-devel at lists.freedesktop.org; Rodrigo Vivi; Todd Previte

[Intel-gfx] [PATCH 2/2] drm/i915: rework digital port IRQ handling (v2)

2014-06-24 Thread Todd Previte
This looks like it's good to go. As an aside, I don't *think* any of the compliance testing stuff I'm working on cares whether it's short of long pulse (1.1a compliance), but it will be interesting to see if/when/where it might have an effect. Reviewed-by: Todd Pre

[PATCH 1/2] drm/i915: Add #defines for short/long pulse on gmch platforms

2014-06-24 Thread Todd Previte
These look like they're already integrated into -nightly? But for the record... Reviewed-by: Todd Previte -T > Dave Airlie <mailto:airlied at gmail.com> > Tuesday, June 17, 2014 6:29 PM > From: Daniel Vetter > > For no reason at all the public docs lack them, and

[Intel-gfx] [PATCH 09/11] drm/i915: check connector->encoder before using it.

2014-06-17 Thread Todd Previte
Looks good. Reviewed-by: Todd Previte > Dave Airlie <mailto:airlied at gmail.com> > Tuesday, May 20, 2014 7:55 PM > From: Dave Airlie > > DP MST will need connectors that aren't connected to specific > encoders, add some checks in advance to avoid oopses. &

[PATCH 08/11] i915: split some DP modesetting code into a separate function

2014-06-17 Thread Todd Previte
Looks good to me. Reviewed-by: Todd Previte > Dave Airlie <mailto:airlied at gmail.com> > Tuesday, May 20, 2014 7:55 PM > From: Dave Airlie > > this is just prep work for mst support. > > Signed-off-by: Dave Airlie > --- > drivers/gpu/drm/i915/intel_ddi.c |

[Intel-gfx] [PATCH 07/11] drm/helper: add Displayport multi-stream helper (v0.5)

2014-06-17 Thread Todd Previte
This patch is a monster, but that's to be expected with MST, I suppose. :) It has some formatting issues (lines over 80 characters in length) but that can be cleaned up later (as far as I'm concerned). Otherwise I don't see anything glaring here, so... Reviewed-by: Todd P

[Intel-gfx] [PATCH 06/11] drm: add a path blob property

2014-06-17 Thread Todd Previte
This one looks fine to me. Reviewed-by: Todd Previte > Dave Airlie <mailto:airlied at gmail.com> > Tuesday, May 20, 2014 7:54 PM > From: Dave Airlie > > This property will be used by the MST code to provide userspace > with a path to parse so it can recognise co

[Intel-gfx] [PATCH 05/11] drm/fb_helper: allow adding/removing connectors later

2014-06-17 Thread Todd Previte
Minor formatting issues - there's a number of lines that exceed 80 characters in length. One other comment inline below. Reviewed-by: Todd Previte > Dave Airlie <mailto:airlied at gmail.com> > Tuesday, May 20, 2014 7:54 PM > From: Dave Airlie > > This is required to

[PATCH 04/11] drm/crtc: add interface to reinitialise the legacy mode group

2014-05-22 Thread Todd Previte
vice *dev); > extern bool drm_probe_ddc(struct i2c_adapter *adapter); > extern struct edid *drm_get_edid(struct drm_connector *connector, > struct i2c_adapter *adapter); Reviewed-by: Todd Previte > Dave Airlie <mailto:airlied at gmail.com> > Tuesday, May 20, 2014 7:54 PM > Hey,

[Intel-gfx] [PATCH 03/11] drm/i915: add some registers need for displayport MST support.

2014-05-22 Thread Todd Previte
N_DONE (1<<12) > +#define DP_TP_STATUS_PAYLOAD_MAPPING_VC2 (3 << 8) > +#define DP_TP_STATUS_PAYLOAD_MAPPING_VC1 (3 << 4) > +#define DP_TP_STATUS_PAYLOAD_MAPPING_VC0 (3 << 0) > > /* DDI Buffer Control */ > #define DDI_BUF_CTL_A 0x64000 Definitions look correct

[Intel-gfx] [PATCH 02/11] drm: add DP MST encoder type

2014-05-22 Thread Todd Previte
4 > #define DRM_MODE_ENCODER_VIRTUAL 5 > #define DRM_MODE_ENCODER_DSI 6 > +#define DRM_MODE_ENCODER_DPMST 7 > > struct drm_mode_get_encoder { > __u32 encoder_id; Reviewed-by: Todd Previte > Dave Airlie <mailto:airlied at gmail.com> > Tuesday, May 20, 2014 7:54 PM > H

[PATCH 01/11] drm/dp_helper: add defines for DP 1.2 and MST support.

2014-05-22 Thread Todd Previte
x24 > +#define DP_POWER_DOWN_PHY 0x25 > +#define DP_SINK_EVENT_NOTIFY 0x30 > +#define DP_QUERY_STREAM_ENC_STATUS 0x38 > + > +/* DP 1.2 MST sideband nak reasons - table 2.84 */ > +#define DP_NAK_WRITE_FAILURE 0x01 > +#define DP_NAK_INVALID_READ 0x02 > +#define DP_NAK_CRC_FA

[PATCH] drm/dp: Clarify automated test constant and add constant for FAUX test pattern

2013-10-04 Thread Todd Previte
- DP_TEST_LINK_PATTERN is ambiguous, rename to DP_TEST_LINK_VIDEO_PATTERN to clarify - Added DP_TEST_LINK_FAUX_PATTERN to support automated testing of Fast AUX Signed-off-by: Todd Previte --- include/drm/drm_dp_helper.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a

Re: [PATCH 1/2] drm/dp: add defines for downstream port types

2013-09-27 Thread Todd Previte
Looks good. Reviewed-by: Todd Previte On Fri, Sep 27, 2013 at 4:48 AM, Jani Nikula wrote: > Detailed cap info at address 80h is not available with DPCD ver > 1.0. Whether such devices exist in the wild I don't know, but there > should be no harm done in having the defines