[Intel-gfx] [PATCH v2] Displayport compliance testing

2014-07-14 Thread Todd Previte
This patch set adds the foundational support for Displayport compliance testing in the i915 driver. It implements the framework for automated test support that preclude the need (most) for operator input during testing. Tests for AUX transactions, EDID reads and basic link training have also

[Intel-gfx] [PATCH 01/12] drm/i915: Add automated testing support for Displayport compliance testing

2014-07-14 Thread Todd Previte
Add the skeleton framework for supporting automation for Displayport compliance testing. This patch adds the necessary framework for the source device to appropriately responded to test automation requests from a sink device. Signed-off-by: Todd Previte tprev...@gmail.com --- drivers/gpu/drm

[Intel-gfx] [PATCH 05/12] drm/i915: Add a function to get the EDID preferred mode for Displayport compliance testing

2014-07-14 Thread Todd Previte
Add a simple function to pull the preferred mode out of an EDID block. This function is designed for use during Displayport compliance testing. Signed-off-by: Todd Previte tprev...@gmail.com --- drivers/gpu/drm/i915/intel_dp.c | 25 + 1 file changed, 25 insertions

[Intel-gfx] [PATCH 06/12] drm/i915: Add a constant and function for getting the Displayport compliance failsafe video mode

2014-07-14 Thread Todd Previte
Adds the failsafe mode (640x480@60hz) as a constant and a function that retrieves it. These are designed for use in Displayport compliance testing only and should not be used outside that context. Signed-off-by: Todd Previte tprev...@gmail.com --- drivers/gpu/drm/i915/intel_dp.c | 12

[Intel-gfx] [PATCH 02/12] drm/i915: Add a function to compute the EDID checksum for Displayport compliance

2014-07-14 Thread Todd Previte
This function computes the EDID checksum for a block of EDID data. This function is necessary for Displayport compliance testing as it does not not require the complete EDID checking functionality provided by the DRM layer functions. Signed-off-by: Todd Previte tprev...@gmail.com --- drivers/gpu

[Intel-gfx] [PATCH 04/12] drm/i915: Add wrapper function for intel_crtc_set_config()

2014-07-14 Thread Todd Previte
Add a wrapper around intel_crtc_set_config() to allow it to be called from the DP compliance test functions. This is necessary to perform the internal mode set operations required for compliance testing. Signed-off-by: Todd Previte tprev...@gmail.com --- drivers/gpu/drm/i915/intel_display.c | 6

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

2014-07-14 Thread 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 EDID tests to determine if the video mode needs to be set to the preferred mode or the failsafe mode. Signed-off-by: Todd Previte tprev

[Intel-gfx] [PATCH 08/12] drm/i915: Improve reliability for Displayport link training

2014-07-14 Thread Todd Previte
successful link training. This patch updates the link training functions and where/how they're used to be more intelligent about failures and to stop trying to train the link when it's a lost cause. Signed-off-by: Todd Previte tprev...@gmail.com --- drivers/gpu/drm/i915/intel_ddi.c | 23

[Intel-gfx] [PATCH 12/12] drm/i915: Add a delay in Displayport AUX transactions for compliance testing

2014-07-14 Thread Todd Previte
. Signed-off-by: Todd Previte tprev...@gmail.com --- drivers/gpu/drm/i915/intel_dp.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c index 0e207aaf..f0664cd 100644 --- a/drivers/gpu/drm/i915/intel_dp.c +++ b

[Intel-gfx] [PATCH 07/12] drm/i915: Update EDID automated test function for Displayport compliance

2014-07-14 Thread Todd Previte
Implements an updated version of the automated testing function that handles Displayport compliance for EDID operations. Signed-off-by: Todd Previte tprev...@gmail.com --- drivers/gpu/drm/i915/intel_dp.c | 77 - 1 file changed, 76 insertions(+), 1 deletion

[Intel-gfx] [PATCH 11/12] drm/i915: Minor code clean up in intel_dp.c

2014-07-14 Thread Todd Previte
Cleans up a couple of unused variables and an extraneous debug log message that was unintentionally left behind. Signed-off-by: Todd Previte tprev...@gmail.com --- drivers/gpu/drm/i915/intel_dp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915

[Intel-gfx] [PATCH 09/12] drm/i915: Update intel_dp_check_link_status() for Displayport compliance testing

2014-07-14 Thread Todd Previte
, resulting in a faied test. Signed-off-by: Todd Previte tprev...@gmail.com --- drivers/gpu/drm/i915/intel_dp.c | 32 ++-- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c index 1c6ee34

[Intel-gfx] [PATCH 10/12] drm/i915: Update link training automated test function for Displayport compliance

2014-07-14 Thread Todd Previte
Implements basic link training functionality for Displayport automated compliance testing. Signed-off-by: Todd Previte tprev...@gmail.com --- drivers/gpu/drm/i915/intel_dp.c | 47 + 1 file changed, 47 insertions(+) diff --git a/drivers/gpu/drm/i915

Re: [Intel-gfx] [PATCH 12/12] drm/i915: Add a delay in Displayport AUX transactions for compliance testing

2014-07-15 Thread Todd Previte
Daniel Vetter mailto:dan...@ffwll.ch Tuesday, July 15, 2014 12:46 AM On Mon, Jul 14, 2014 at 12:10:47PM -0700, Todd Previte wrote: The Displayport Link Layer Compliance Testing Specification 1.2 rev 1.1 specifies that repeated AUX transactions after a failure (NACK, DEFER or no response) must

Re: [Intel-gfx] [PATCH 11/12] drm/i915: Minor code clean up in intel_dp.c

2014-07-15 Thread Todd Previte
Daniel Vetter mailto:dan...@ffwll.ch Tuesday, July 15, 2014 12:47 AM On Mon, Jul 14, 2014 at 12:10:46PM -0700, Todd Previte wrote: Cleans up a couple of unused variables and an extraneous debug log message that was unintentionally left behind. Signed-off-by: Todd Previtetprev...@gmail.com

Re: [Intel-gfx] [PATCH v2] Displayport compliance testing

2014-07-31 Thread Todd Previte
Paulo Zanoni mailto:przan...@gmail.com Tuesday, July 29, 2014 2:53 PM 2014-07-22 18:11 GMT-03:00 Jesse Barnesjbar...@virtuousgeek.org: On Tue, 22 Jul 2014 22:53:44 +0200 Daniel Vetterdan...@ffwll.ch wrote: On Tue, Jul 22, 2014 at 10:48 PM, Jesse Barnesjbar...@virtuousgeek.org wrote: Are

Re: [Intel-gfx] [PATCH 07/12] drm/i915: Update EDID automated test function for Displayport compliance

2014-07-31 Thread Todd Previte
with an ACK immediately in some cases and wait til the end in others. return test_result; } -- 1.9.1 ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx Todd Previte

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

2014-05-22 Thread Todd Previte
DP_NAK_ALLOCATE_FAIL 0x0a + #define MODE_I2C_START 1 #define MODE_I2C_WRITE 2 #define MODE_I2C_READ 4 Constant definitions look good. Reviewed-by: Todd Previte tprev...@gmail.com Dave Airlie mailto:airl...@gmail.com Tuesday, May 20, 2014 7:54 PM Hey, So this set is pretty close to what I think we should

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

2014-05-22 Thread Todd Previte
/drm_mode.h +++ b/include/uapi/drm/drm_mode.h @@ -181,6 +181,7 @@ struct drm_mode_get_plane_res { #define DRM_MODE_ENCODER_TVDAC 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

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

2014-05-22 Thread Todd Previte
(struct drm_mode_group *group); +extern void drm_reinit_primary_mode_group(struct drm_device *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 tprev...@gmail.com Dave

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

2014-05-22 Thread Todd Previte
-by: Todd Previte tprev...@gmail.com Dave Airlie mailto:airl...@gmail.com Tuesday, May 20, 2014 7:54 PM Hey, So this set is pretty close to what I think we should be merging initially, Since the last set, it makes fbcon and suspend/resume work a lot better, I've also fixed a couple of bugs

Re: [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 tprev...@gmail.com Dave Airlie mailto:airl...@gmail.com Tuesday, May 20, 2014 7:54 PM From: Dave Airlie airl...@redhat.com This is required

Re: [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 tprev...@gmail.com Dave Airlie mailto:airl...@gmail.com Tuesday, May 20, 2014 7:55 PM From: Dave Airlie airl...@redhat.com DP MST will need connectors that aren't connected to specific encoders, add some checks in advance to avoid oopses. Signed-off

Re: [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 tprev...@gmail.com Dave Airlie mailto:airl...@gmail.com Tuesday, May 20, 2014 7:54 PM From: Dave Airlie airl...@redhat.com This property will be used by the MST code to provide userspace with a path to parse so it can recognise connectors

Re: [Intel-gfx] [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 tprev...@gmail.com Dave Airlie mailto:airl...@gmail.com Tuesday, May 20, 2014 7:55 PM From: Dave Airlie airl...@redhat.com this is just prep work for mst support. Signed-off-by: Dave Airlie airl...@redhat.com --- drivers/gpu/drm/i915/intel_ddi.c

Re: [Intel-gfx] [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 tprev...@gmail.com -T Dave Airlie mailto:airl...@gmail.com Tuesday, June 17, 2014 6:29 PM From: Daniel Vetter daniel.vet...@ffwll.ch For no reason at all the public docs lack them

Re: [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 Previte tprev...@gmail.com

[Intel-gfx] [PATCH 1/6] drm/i915: Add automated testing support for Displayport compliance testing

2014-06-24 Thread Todd Previte
Add the skeleton framework for supporting automation for Displayport compliance testing. This patch adds the necessary framework for the source device to appropriately responded to test automation requests from a sink device. Signed-off-by: Todd Previte tprev...@gmail.com --- drivers/gpu/drm

[Intel-gfx] [PATCH 5/6] drm/i915: Update Displayport compliance testing for link training

2014-06-24 Thread Todd Previte
Adds basic link training test functionality for Displayport compliance. Signed-off-by: Todd Previte tprev...@gmail.com --- drivers/gpu/drm/i915/intel_dp.c | 24 1 file changed, 24 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915

[Intel-gfx] [PATCH 6/6] drm/i915: Update intel_dp_check_link_status() for Displayport compliance testing

2014-06-24 Thread Todd Previte
Move the DPCD read to the top and check for an interrupt from the sink to catch Displayport automated testing requests necessary to support Displayport compliance testing. The checks for active connectors and link status are moved below the check for the interrupt. Signed-off-by: Todd Previte

[Intel-gfx] [PATCH 2/6] drm/i915: Add a delay in Displayport AUX transactions for compliance testing

2014-06-24 Thread Todd Previte
Several compliance tests require that follow-up AUX transactions (after a failure or no response) are not resent sooner than 400us later. Add a 400us delay to the response time of any failed transaction to account for this. Signed-off-by: Todd Previte tprev...@gmail.com --- drivers/gpu/drm/i915

[Intel-gfx] i915 Displayport Compliance Testing

2014-06-24 Thread Todd Previte
This patch set adds the foundational support for Displayport compliance testing in the i915 driver. It implements the framework for automated test support that preclude the need (most) for operator input during testing. Tests for AUX transactions, EDID reads and basic link training have also

[Intel-gfx] [PATCH 4/6] drm/i915: Update Displayport compliance test for EDID operations

2014-06-24 Thread Todd Previte
the mode is included as well. Signed-off-by: Todd Previte tprev...@gmail.com --- drivers/gpu/drm/i915/intel_dp.c | 100 +--- 1 file changed, 93 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c index

[Intel-gfx] [PATCH 3/6] drm/i915: Implement basic Displayport automated testing function for EDID operations

2014-06-24 Thread Todd Previte
Implements some of the basic EDID tests for Displayport compliance. These tests include reading the EDID, verifying the checksum and writing the test responses back to the sink device. Signed-off-by: Todd Previte tprev...@gmail.com --- drivers/gpu/drm/i915/intel_dp.c | 36

[Intel-gfx] [PATCH] drm/i915: Enable 5.4Ghz (HBR2) link rate for Displayport 1.2-capable devices

2014-01-16 Thread Todd Previte
For HSW+ platforms, enable the 5.4Ghz (HBR2) link rate for devices that support it. The sink device must report that is supports Displayport 1.2 and the HBR2 bit rate in the DPCD in order to use HBR2. --- drivers/gpu/drm/i915/intel_dp.c | 21 +++-- 1 file changed, 15

Re: [Intel-gfx] [PATCH] drm/i915: Enable 5.4Ghz (HBR2) link rate for Displayport 1.2-capable devices

2014-01-17 Thread Todd Previte
On 1/16/2014 11:30 PM, Daniel Vetter wrote: On Fri, Jan 17, 2014 at 4:06 AM, Todd Previte tprev...@gmail.com wrote: For HSW+ platforms, enable the 5.4Ghz (HBR2) link rate for devices that support it. The sink device must report that is supports Displayport 1.2 and the HBR2 bit rate

Re: [Intel-gfx] [PATCH] drm/i915: Enable 5.4Ghz (HBR2) link rate for Displayport 1.2-capable devices

2014-01-17 Thread Todd Previte
On 1/17/2014 4:55 AM, Damien Lespiau wrote: On Thu, Jan 16, 2014 at 08:06:08PM -0700, Todd Previte wrote: For HSW+ platforms, enable the 5.4Ghz (HBR2) link rate for devices that support it. The sink device must report that is supports Displayport 1.2 and the HBR2 bit rate in the DPCD in order

Re: [Intel-gfx] [PATCH] drm/i915: Enable 5.4Ghz (HBR2) link rate for Displayport 1.2-capable devices

2014-01-17 Thread Todd Previte
On 1/17/2014 8:08 AM, Damien Lespiau wrote: On Fri, Jan 17, 2014 at 07:58:58AM -0700, Todd Previte wrote: diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c index 7df5085..f92d1c0 100644 --- a/drivers/gpu/drm/i915/intel_dp.c +++ b/drivers/gpu/drm/i915/intel_dp.c

Re: [Intel-gfx] [PATCH] drm/i915: Enable 5.4Ghz (HBR2) link rate for Displayport 1.2-capable devices

2014-01-17 Thread Todd Previte
On 1/17/2014 6:32 AM, Jani Nikula wrote: On Fri, 17 Jan 2014, Damien Lespiau damien.lesp...@intel.com wrote: I see spaces instead of tabs. You can use the useful checkpatch.pl script on patches to catch those pesky style issues (from within a linux tree): $ ./scripts/checkpatch.pl

[Intel-gfx] [PATCH V2] drm/i915: Enable 5.4Ghz (HBR2) link rate for Displayport 1.2-capable devices

2014-01-17 Thread Todd Previte
Clean up and adjustments per the feedback above. ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx

[Intel-gfx] [PATCH] drm/i915: Enable 5.4Ghz (HBR2) link rate for Displayport 1.2-capable devices

2014-01-17 Thread Todd Previte
for appropriate hardware to 5.4Ghz link rate configuration - Added a check for TPS3 supprt in the DPCD read - Adjusted channel equalization to use TPS3 when appropriate - Cleaned up whitespace Signed-off-by: Todd Previte tprev...@gmail.com --- drivers/gpu/drm/i915/intel_dp.c | 30

[Intel-gfx] [PATCH v3] drm/i915: Enable 5.4Ghz (HBR2) link rate for Displayport 1.2-capable devices

2014-01-20 Thread Todd Previte
More whitepsace cleanup. One caveat with this patch: current link policy dictates that the driver will train the wide and slow, i.e. max lanes at low speed. It will increase lanes and speed when the specified resolution demands greater bandwidth. Consequently, the resolution

[Intel-gfx] [PATCH v3] drm/i915: Enable 5.4Ghz (HBR2) link rate for Displayport 1.2-capable devices

2014-01-20 Thread Todd Previte
For HSW+ platforms, enable the 5.4Ghz (HBR2) link rate for devices that support it. The sink device must report that is supports Displayport 1.2 and the HBR2 bit rate in the DPCD in order to use HBR2. Signed-off-by: Todd Previte tprev...@gmail.com --- drivers/gpu/drm/i915/intel_dp.c | 31

[Intel-gfx] [PATCH] drm/i915: (VLV2) Fix the hotplug detection bits

2014-01-21 Thread Todd Previte
These bits are in reverse order in the header from those defined in the specification. Change the bit positions for ports B and D to correctly match the spec. --- drivers/gpu/drm/i915/i915_reg.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[Intel-gfx] [PATCH V2] drm/i915: (VLV2) Fix the hotplug detection bits

2014-01-21 Thread Todd Previte
These bits are in reverse order in the header from those defined in the specification. Change the bit positions for ports B and D to correctly match the spec. - Added sign-off Signed-off-by: Todd Previte tprev...@gmail.com --- drivers/gpu/drm/i915/i915_reg.h | 4 ++-- 1 file changed, 2

Re: [Intel-gfx] [PATCH] drm/i915: Retry reading DPCD when bogus values are read

2014-01-22 Thread Todd Previte
On 11/22/13 1:36 AM, Takashi Iwai wrote: I got kernel WARNINGs frequently on Haswell laptops complaining about invalid max DP link bw. With drm.debug=0x0e, it turned out that the obtained DPCD is utterly bogus when it happens: [drm:intel_dp_get_dpcd], DPCD: 4d 4d 4d 4d 4d 4d 4d 4d 4d 4d 4d

[Intel-gfx] (no subject)

2014-01-22 Thread Todd Previte
Addresses the comments and feedback herein. VLV2 and gen4 have separate bit definitions now. The correct bits are selected in gen4x_dp_detect() based on the detected platform. ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org

[Intel-gfx] [PATCH v3] drm/i915: VLV2 - Fix hotplug detect bits

2014-01-22 Thread Todd Previte
-by: Todd Previte tprev...@gmail.com --- drivers/gpu/drm/i915/i915_reg.h | 11 --- drivers/gpu/drm/i915/intel_dp.c | 39 +++ 2 files changed, 35 insertions(+), 15 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h index

[Intel-gfx] [PATCH V4] VLV2 - Fix hotplug detect bits

2014-01-22 Thread Todd Previte
Fixed the trailing brace for the switch() statement in gen4x_dp_detect() ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx

[Intel-gfx] [PATCH V4] drm/i915: VLV2 - Fix hotplug detect bits

2014-01-22 Thread Todd Previte
trailing brace for the added switch() Signed-off-by: Todd Previte tprev...@gmail.com --- drivers/gpu/drm/i915/i915_reg.h | 11 --- drivers/gpu/drm/i915/intel_dp.c | 40 2 files changed, 36 insertions(+), 15 deletions(-) diff --git a/drivers/gpu/drm

Re: [Intel-gfx] [PATCH v3] drm/i915: VLV2 - Fix hotplug detect bits

2014-01-22 Thread Todd Previte
On 01/22/2014 11:41 PM, Jani Nikula wrote: On Thu, 23 Jan 2014, Todd Previte tprev...@gmail.com wrote: Add new definitions for hotplug live status bits for VLV2 since they're in reverse order from the gen4x ones. Changelog: - Restored gen4 bit definitions - Added new definitions for VLV2

[Intel-gfx] [PATCH 1/5] dmr/i915: Displayport - Add a function to set the training pattern

2014-04-08 Thread Todd Previte
Adds a function to set the training pattern for Displayport. This is functionality required to establish more fine-grained control over the Displayport interface, both for operational reliability and compliance testing. Signed-off-by: Todd Previte tprev...@gmail.com --- drivers/gpu/drm/i915

[Intel-gfx] [PATCH 0/5] RFC: Displayport Link Policy Maker Update

2014-04-08 Thread Todd Previte
. Todd Previte (5): dmr/i915: Displayport - Add a function to set the training pattern drm/i915: Displayport - Add function to check link status drm/i915: Displayport - Add function to enable/disable scrambling on the main link drm/i915: Displayport - Add function for executing a single

[Intel-gfx] [PATCH 2/5] drm/i915: Displayport - Add function to check link status

2014-04-08 Thread Todd Previte
Adds a function to check the link status across all lanes for Displayport. This is functionality required to establish more fine-grained control over the Displayport interface, both for operational reliability and compliance testing. Signed-off-by: Todd Previte tprev...@gmail.com --- drivers/gpu

[Intel-gfx] [PATCH 4/5] drm/i915: Displayport - Add function for executing a single iteration of clock recovery

2014-04-08 Thread Todd Previte
Adds a function to execute a single iteration of the clock recovery sequence for Displayport. This is functionality required to establish more fine-grained control over the Displayport interface, both for operational reliability and compliance testing. Signed-off-by: Todd Previte tprev

[Intel-gfx] [PATCH 3/5] drm/i915: Displayport - Add function to enable/disable scrambling on the main link

2014-04-08 Thread Todd Previte
Adds a function to enable and disable scrambling directly for the main link. This is functionality required to establish more fine-grained control over the Displayport interface, both for operational reliability and compliance testing. Signed-off-by: Todd Previte tprev...@gmail.com --- drivers

[Intel-gfx] [PATCH 5/5] drm/i915: Displayport - Add function to execute a single iteration of channel equalization

2014-04-08 Thread Todd Previte
Adds a function to execute a single iteration of the channel equalization sequence for Displayport. This is functionality required to establish more fine-grained control over the Displayport interface, both for operational reliability and compliance testing. Signed-off-by: Todd Previte tprev

Re: [Intel-gfx] [PATCH 1/4] drm/i915/dp: retry i2c-over-aux seven times on AUX DEFER

2013-09-20 Thread Todd Previte
On 09/20/2013 06:42 AM, Jani Nikula wrote: Per DP1.2 spec. Signed-off-by: Jani Nikula jani.nik...@intel.com --- drivers/gpu/drm/i915/intel_dp.c |7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c index

Re: [Intel-gfx] [PATCH 4/4] drm/i915/dp: read DPCD PSR capability only on eDP

2013-09-20 Thread Todd Previte
On 09/20/2013 06:42 AM, Jani Nikula wrote: Reduce AUX transactions for non-eDP. Signed-off-by: Jani Nikula jani.nik...@intel.com --- drivers/gpu/drm/i915/intel_dp.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_dp.c

Re: [Intel-gfx] [PATCH 2/4] drm/i915/dp: increase i2c-over-aux retry interval on AUX DEFER

2013-09-20 Thread Todd Previte
, 600); + else + usleep_range(300, 400); continue; default: DRM_ERROR(aux_ch invalid native reply 0x%02x\n, Those look like reasonable values to me. [Reviewed-by]: Todd Previte tprev

Re: [Intel-gfx] [PATCH 4/4] drm/i915/dp: read DPCD PSR capability only on eDP

2013-09-20 Thread Todd Previte
On 09/20/2013 01:57 PM, Paulo Zanoni wrote: 2013/9/20 Todd Previte tprev...@gmail.com: On 09/20/2013 06:42 AM, Jani Nikula wrote: Reduce AUX transactions for non-eDP. Signed-off-by: Jani Nikula jani.nik...@intel.com --- drivers/gpu/drm/i915/intel_dp.c | 13 - 1 file changed

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

2013-09-27 Thread Todd Previte
Looks good. Reviewed-by: Todd Previte tprev...@gmail.com On Fri, Sep 27, 2013 at 4:48 AM, Jani Nikula jani.nik...@intel.com 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

Re: [Intel-gfx] [PATCH 1/4] drm/i915/dp: retry i2c-over-aux seven times on AUX DEFER

2013-09-27 Thread Todd Previte
Yep. Good to go. Reviewed-by: Todd Previte tprev...@gmail.com On Fri, Sep 27, 2013 at 4:51 AM, Jani Nikula jani.nik...@linux.intel.comwrote: On Fri, 20 Sep 2013, Todd Previte tprev...@gmail.com wrote: On 09/20/2013 06:42 AM, Jani Nikula wrote: Per DP1.2 spec. Signed-off-by: Jani

[Intel-gfx] [PATCH] drm/i915: Implement Displayport automated testing

2013-10-04 Thread Todd Previte
). Signed-off-by: Todd Previte tprev...@gmail.com --- drivers/gpu/drm/i915/intel_dp.c | 108 +++- include/drm/drm_dp_helper.h | 3 +- 2 files changed, 108 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915

Re: [Intel-gfx] [PATCH] drm/i915: Implement Displayport automated testing

2013-10-04 Thread Todd Previte
On 10/4/13 3:45 AM, Chris Wilson wrote: On Fri, Oct 04, 2013 at 03:32:10AM -0700, Todd Previte wrote: This initial patch adds support for automated testing of the source device to the i915 driver. Most of this patch is infrastructure for the tests; follow up patches will add support

Re: [Intel-gfx] [PATCH] drm/i915: Implement Displayport automated testing

2013-10-04 Thread Todd Previte
On 10/4/13 4:49 AM, Jani Nikula wrote: On Fri, 04 Oct 2013, Todd Previtetprev...@gmail.com wrote: diff --git a/include/drm/drm_dp_helper.h b/include/drm/drm_dp_helper.h index ae8dbfb..9fa544b 100644 --- a/include/drm/drm_dp_helper.h +++ b/include/drm/drm_dp_helper.h @@ -266,9 +266,10 @@

[Intel-gfx] [PATCH V2] drm/i915: Implement Displayport automated testing

2013-10-04 Thread Todd Previte
). Signed-off-by: Todd Previte tprev...@gmail.com --- drivers/gpu/drm/i915/intel_dp.c | 75 +++-- 1 file changed, 72 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c index 9770160..1f97a1c 100644

Re: [Intel-gfx] [PATCH V2] drm/i915: Implement Displayport automated testing

2013-10-04 Thread Todd Previte
Ignore this message. Will resend to appropriate thread. -T On 10/4/13 12:46 PM, Todd Previte wrote: This initial patch adds support for automated testing of the source device to the i915 driver. Most of this patch is infrastructure for the tests; follow up patches will add support

[Intel-gfx] [PATCH V2] drm/i915: Implement Displayport automated testing

2013-10-04 Thread Todd Previte
). Signed-off-by: Todd Previte tprev...@gmail.com --- drivers/gpu/drm/i915/intel_dp.c | 75 +++-- 1 file changed, 72 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c index 9770160..1f97a1c 100644

[Intel-gfx] [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 tprev...@gmail.com --- include/drm/drm_dp_helper.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion

Re: [Intel-gfx] [PATCH] drm/i915: Implement Displayport automated testing

2013-10-04 Thread Todd Previte
On 10/4/13 1:39 PM, Ben Widawsky wrote: On Fri, Oct 04, 2013 at 11:11:32AM -0700, Todd Previte wrote: On 10/4/13 3:45 AM, Chris Wilson wrote: On Fri, Oct 04, 2013 at 03:32:10AM -0700, Todd Previte wrote: This initial patch adds support for automated testing of the source device to the i915

Re: [Intel-gfx] [PATCH 2/2] [v2] drm/i915: Disable GGTT PTEs on GEN6+ suspend

2013-10-17 Thread Todd Previte
://bugs.freedesktop.org/show_bug.cgi?id=65496 Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=59321 Tested-by: Takashi Iwai ti...@suse.de Tested-by: Paulo Zanoni paulo.r.zan...@intel.com Signed-off-by: Ben Widawsky b...@bwidawsk.net Tested-By: Todd Previte tprev...@gmail.com --- drivers/gpu/drm/i915

[Intel-gfx] [PATCH V3] drm/i915: Implement Displayport automated testing

2013-11-01 Thread Todd Previte
Revised patch incorporating feedback from the various reviews. - Changed printk() to DRM_DEBUG_KMS() - Removed extraneous comments - Added test hook for Fast AUX automated testing Note this patch relies on the constants defined in drm/drm_dp_helper.h that were updated in a

[Intel-gfx] [PATCH] drm/i915: Implement Displayport automated testing

2013-11-01 Thread Todd Previte
). Signed-off-by: Todd Previte tprev...@gmail.com --- drivers/gpu/drm/i915/intel_dp.c | 87 +++-- 1 file changed, 84 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c index c8515bb..5f2a720 100644

Re: [Intel-gfx] [PATCH] drm/i915: Implement Displayport automated testing

2013-11-05 Thread Todd Previte
On 11/5/13 2:21 AM, Jani Nikula wrote: On Sat, 02 Nov 2013, Todd Previte tprev...@gmail.com wrote: This initial patch adds support for automated testing of the source device to the i915 driver. Most of this patch is infrastructure for the tests; follow up patches will add support

Re: [Intel-gfx] [PATCH 45/62] drm/i915/bdw: add support for BDW DP voltage swings and pre-emphasis

2013-11-05 Thread Todd Previte
on the concept of the driver using levels not values for voltage swing and preemphasis. This solution works for BDW in the near term, though, so I'm good with it. Reviewed-by: Todd Previte tprev...@gmail.com +#define DDI_BUF_EMP_800MV_0DB_BDW (624) /* Sel6 */ 850, .5 +#define

Re: [Intel-gfx] [PATCH] drm/i915/dp: set sink to power down mode on dp disable

2013-11-12 Thread Todd Previte
is disabled. */ Reviewed-by: Todd Previte tprev...@gmail.com ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH] drm/i915: Fix Sink CRC

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

Re: [Intel-gfx] [PATCH] drm/i915: preserve other DP_TEST_SINK bits.

2014-09-29 Thread Todd Previte
Hi Rodrigo, Looks good. Only thing that needs to be removed is that extra blank line between the last part of the function and the return statement. Otherwise... Reviewed-by: Todd Previte tprev...@gmail.com -Original Message- From: Rodrigo Vivi [mailto:rodrigo.v...@intel.com] Sent

[Intel-gfx] [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 tprev...@gmail.com --- 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

[Intel-gfx] [PATCH 05/10] drm/i915: Add debugfs interface for Displayport debug and compliance testing

2014-10-09 Thread Todd Previte
. Signed-off-by: Todd Previte tprev...@gmail.com --- drivers/gpu/drm/i915/i915_debugfs.c | 389 drivers/gpu/drm/i915/intel_dp.c | 13 +- 2 files changed, 397 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm

[Intel-gfx] [PATCH 03/10] drm/i915: Update intel_dp_check_link_status() for Displayport compliance testing

2014-10-09 Thread Todd Previte
, resulting in a faied test. Signed-off-by: Todd Previte tprev...@gmail.com --- drivers/gpu/drm/i915/intel_dp.c | 32 +++- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c index f7d4119

[Intel-gfx] [intel-gfx] Displayport compliance testing

2014-10-09 Thread Todd Previte
The kernel side is responsible for the acknowledgement of the test requests and setup of the required parameters. It also handles the necessary AUX transactions for reading the EDID and DPCD as well as writing response codes or checksums as necessary. Performing these operations in userspace

[Intel-gfx] [PATCH 06/10] drm/i915: Add debugfs interface and support functions to notify userspace apps for Displayport compliance testing

2014-10-09 Thread Todd Previte
-off-by: Todd Previte tprev...@gmail.com --- drivers/gpu/drm/i915/i915_debugfs.c | 124 +++- drivers/gpu/drm/i915/intel_dp.c | 34 ++ drivers/gpu/drm/i915/intel_drv.h| 4 ++ 3 files changed, 161 insertions(+), 1 deletion(-) diff --git a/drivers/gpu

[Intel-gfx] [PATCH 01/10] drm/i915: Add automated testing support for Displayport compliance testing

2014-10-09 Thread Todd Previte
Add the skeleton framework for supporting automation for Displayport compliance testing. This patch adds the necessary framework for the source device to appropriately respond to test automation requests from a sink device. Signed-off-by: Todd Previte tprev...@gmail.com --- drivers/gpu/drm/i915

[Intel-gfx] [PATCH 09/10] drm/i915: Update intel_dp_compute_config() to respond to Displayport compliance test requests appropriately

2014-10-09 Thread Todd Previte
Adds provisions in intel_dp_compute_config() to accommodate compliance testing. Mostly this invovles circumventing the automatic link configuration paramters and allowing the compliance code to set those parameters as required by the tests. Signed-off-by: Todd Previte tprev...@gmail.com

[Intel-gfx] [PATCH 10/10] drm/i915: Fix intel_dp_hot_plug()

2014-10-09 Thread Todd Previte
The hot plug function for DP appears to have been broken somewhere along the way. Without this function being operational, hot plug events are not correctly received for compliance testing. This patch implements the necessary functionality to resolve that issue. Signed-off-by: Todd Previte

[Intel-gfx] [PATCH 07/10] drm/i915: Add structures for Displayport compliance testing parameters

2014-10-09 Thread Todd Previte
interface to use these new parameters instead of storing them in an intermediate structure. Values are stored on a per-connector basis in the intel_dp struct. Signed-off-by: Todd Previte tprev...@gmail.com --- drivers/gpu/drm/i915/i915_debugfs.c | 35 +-- drivers/gpu/drm

[Intel-gfx] [PATCH] drm/i915: Change order of operations for VLV/CHV to not train DP link before PHYs are ready

2014-10-09 Thread Todd Previte
() function after vlv_wait_port_ready() and only when the PHYs are ready helps ensure reliable operation of the Displayport link. Signed-off-by: Todd Previte tprev...@gmail.com --- drivers/gpu/drm/i915/intel_display.c | 8 ++-- drivers/gpu/drm/i915/intel_dp.c | 10 -- drivers

[Intel-gfx] [PATCH] drm/i915: Improve reliability for Displayport link training

2014-10-09 Thread Todd Previte
successful link training. This patch updates the link training functions and where/how they're used to be more intelligent about failures and to stop trying to train the link when it's a lost cause. Signed-off-by: Todd Previte tprev...@gmail.com --- drivers/gpu/drm/i915/intel_ddi.c | 25

Re: [Intel-gfx] [PATCH] drm/i915: Change order of operations for VLV/CHV to not train DP link before PHYs are ready

2014-10-10 Thread Todd Previte
On 10/10/14 1:04 AM, Jani Nikula wrote: On Thu, 09 Oct 2014, Todd Previtetprev...@gmail.com wrote: Reorder the function calls in chv/vlv_pre_enable_dp() such that link training is not initiated before the PHYs come up out of reset. Also check the status of vlv_wait_port_ready() and only

Re: [Intel-gfx] [PATCH 10/10] drm/i915: Fix intel_dp_hot_plug()

2014-10-10 Thread Todd Previte
On 10/9/14 8:38 PM, Dave Airlie wrote: On 10 October 2014 01:49, Chris Wilson ch...@chris-wilson.co.uk wrote: On Thu, Oct 09, 2014 at 08:38:10AM -0700, Todd Previte wrote: The hot plug function for DP appears to have been broken somewhere along the way. Without this function being operational

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Do a dummy DPCD read before the actual read

2014-10-16 Thread Todd Previte
for this problem, though investigating the actual root cause might be worthwhile. Reviewed-by: Todd Previte tprev...@gmail.com ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Ignore long hpds on eDP ports

2014-10-17 Thread Todd Previte
On 10/17/2014 1:43 AM, Ville Syrjälä wrote: On Thu, Oct 16, 2014 at 12:38:55PM -0700, Todd Previte wrote: On 10/16/2014 10:46 AM, ville.syrj...@linux.intel.com wrote: From: Ville Syrjälä ville.syrj...@linux.intel.com Turning vdd on/off can generate a long hpd pulse on eDP ports. In order

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Do a dummy DPCD read before the actual read

2014-10-17 Thread Todd Previte
On 10/17/2014 1:43 AM, Jani Nikula wrote: On Thu, 16 Oct 2014, ville.syrj...@linux.intel.com wrote: From: Ville Syrjälä ville.syrj...@linux.intel.com Sometimes we seem to get utter garbage from DPCD reads. The resulting buffer is filled with the same byte, and the operation completed without

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Do a dummy DPCD read before the actual read

2014-10-17 Thread Todd Previte
On 10/17/2014 2:06 AM, Ville Syrjälä wrote: On Thu, Oct 16, 2014 at 12:39:29PM -0700, Todd Previte wrote: On 10/16/2014 10:46 AM, ville.syrj...@linux.intel.com wrote: From: Ville Syrjälä ville.syrj...@linux.intel.com Sometimes we seem to get utter garbage from DPCD reads. The resulting

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Do a dummy DPCD read before the actual read

2014-10-17 Thread Todd Previte
On 10/17/2014 1:59 AM, Ville Syrjälä wrote: On Fri, Oct 17, 2014 at 11:43:21AM +0300, Jani Nikula wrote: On Thu, 16 Oct 2014, ville.syrj...@linux.intel.com wrote: From: Ville Syrjälä ville.syrj...@linux.intel.com Sometimes we seem to get utter garbage from DPCD reads. The resulting buffer is

[Intel-gfx] [PATCH 2/3] drm/i915: Change order of operations for VLV/CHV to not train DP link before PHYs are ready

2014-10-17 Thread Todd Previte
(). Signed-off-by: Todd Previte tprev...@gmail.com --- drivers/gpu/drm/i915/intel_display.c | 8 ++-- drivers/gpu/drm/i915/intel_dp.c | 16 drivers/gpu/drm/i915/intel_drv.h | 2 +- 3 files changed, 15 insertions(+), 11 deletions(-) diff --git a/drivers/gpu/drm/i915

[Intel-gfx] [PATCH V2] drm/i915: Change order of operations for VLV/CHV to not train DP link before PHYs are ready

2014-10-17 Thread Todd Previte
V2 changes: - Moved the intel_dp_enable_port() call out of intel_dp_enable() and placed it before the calls to intel_dp_enable() and vlv_wait_port_ready() - Cleaned up a spacing issues with the code indents - Amended the commit message to be under 80 characters per line and expanded on the

Re: [Intel-gfx] [PATCH 08/17] drm/i915: Wait for PHY port ready before link training on VLV/CHV

2014-10-22 Thread Todd Previte
On 10/16/2014 11:27 AM, ville.syrj...@linux.intel.com wrote: From: Ville Syrjälä ville.syrj...@linux.intel.com There's no point in checking if the data lanes came out of reset after link training. If the data lanes aren't ready link training will fail anyway. Suggested-by: Todd Previte tprev

  1   2   3   >