[Intel-gfx] [PATCH 3/8] drm/i915: Enable/disable DRRS

2014-12-10 Thread Vandana Kannan
Calling enable/disable DRRS when enable/disable DDI are called. These functions are responsible for setup of drrs data (in enable) and reset of drrs (in disable). has_drrs is true when downclock_mode is found and SEAMLESS_DRRS is set in the VBT. A check has been added for has_drrs in these function

[Intel-gfx] [PATCH 8/8] drm/i915: Add drrs_interval module parameter

2014-12-10 Thread Vandana Kannan
Adding i915 module parameter for setting drrs_interval. If this param is set to 0, then drrs is disabled. If changed in runtime, then the new interval value will be considered for scheduling the next drrs work. drrs_interval is set to 0 by default, i.e. DRRS is disabled by default. Signed-off-by:

[Intel-gfx] [PATCH 1/8] drm/i915: Modifying structures related to DRRS

2014-12-10 Thread Vandana Kannan
Earlier, DRRS structures were specific to eDP (used only in intel_dp). Since DRRS can be extended to other internal display types (if the panel supports multiple RR), modifying structures to be part of drm_i915_private and have a provision to add display related structs like intel_dp. Also, alignin

[Intel-gfx] [PATCH 2/8] drm/i915: Initialize DRRS delayed work

2014-12-10 Thread Vandana Kannan
Add DRRS work function to trigger a switch to low refresh rate when activity is detected on screen. Signed-off-by: Vandana Kannan --- drivers/gpu/drm/i915/intel_dp.c | 36 1 file changed, 28 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/i915/int

[Intel-gfx] [PATCH 0/8] eDP DRRS based on frontbuffer tracking

2014-12-10 Thread Vandana Kannan
This patch series inserts DRRS into frontbuffer tracking mechanism. 1. Previous submission for this feature was designed considering only eDP DRRS. In this series, apart from following fb tracking, changes have been made to make structures generic so that it can be of use to any other code additio

Re: [Intel-gfx] [PATCH] drm/i915: save/restore GMBUS freq across suspend/resume on gen4

2014-12-10 Thread Ville Syrjälä
On Wed, Dec 10, 2014 at 12:16:05PM -0800, Jesse Barnes wrote: > Should probably just init this in the GMbus code all the time, based on > the cdclk and HPLL like we do on newer platforms. Ville has code for > that in a rework branch, but until then we can fix this bug fairly > easily. > > Referen

[Intel-gfx] [PATCH 7/8] drm/i915: Enable eDP DRRS for CHV

2014-12-10 Thread Vandana Kannan
From: Durgadoss R This patch enables eDP DRRS for CHV by adding the required IS_CHERRYVIEW() checks. CHV uses the same register bit as VLV. [Vandana]: Since CHV has 2 sets of M_N registers, it will follow the same code path as gen < 8. Added CHV check in dp_set_m_n() Signed-off-by: Durgadoss R

Re: [Intel-gfx] [PATCH] drm/i915: save/restore GMBUS freq across suspend/resume on gen4

2014-12-10 Thread Jesse Barnes
On Wed, 10 Dec 2014 22:35:37 +0200 Ville Syrjälä wrote: > On Wed, Dec 10, 2014 at 12:16:05PM -0800, Jesse Barnes wrote: > > Should probably just init this in the GMbus code all the time, > > based on the cdclk and HPLL like we do on newer platforms. Ville > > has code for that in a rework branch

Re: [Intel-gfx] [PATCH] drm/i915: Use BUILD_BUG if possible in the i915 WARN_ON

2014-12-10 Thread shuang . he
Tested-By: PRC QA PRTS (Patch Regression Test System Contact: shuang...@intel.com) -Summary- Platform Delta drm-intel-nightly Series Applied PNV 364/364

[Intel-gfx] [PATCH] drm/i915/i9xx: check for panel on pipe before asserting panel unlock bits

2014-12-10 Thread Jesse Barnes
Should address a warning reported in #79824. References: https://bugs.freedesktop.org/show_bug.cgi?id=79824 Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_display.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Track nested calls to intel(_logical)_ring_{begin, advance}

2014-12-10 Thread shuang . he
Tested-By: PRC QA PRTS (Patch Regression Test System Contact: shuang...@intel.com) -Summary- Platform Delta drm-intel-nightly Series Applied PNV -2 364/364 3

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

2014-12-10 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. V2: - Addressed previous mailing list feedback - Fixed compilation issue (

[Intel-gfx] [intel-gfx] Displayport Compliance Testing V2

2014-12-10 Thread Todd Previte
This is version 2 of the patch set for Displayport compliance testing support in the i915 driver. This implementation of compliance testing conforms to the VESA specification Displayport Link Compliance Testing Specification (Link CTS) 1.2 Core Rev1.1. The code has been partitioned into two segme

[Intel-gfx] [PATCH 10/17] drm/i915: Implement the 'open' and 'write' debugfs functions for Displayport compliance

2014-12-10 Thread Todd Previte
This patch is a combination of sections out of the following two previous patches: [PATCH 05/10] drm/i915: Add debugfs interface for Displayport debug and compliance testing [PATCH 07/10] drm/i915: Add structures for Displayport compliance testing parameters This patch implements the debugfs funct

[Intel-gfx] [PATCH 06/17] drm/i915: Add support functions in debugfs for handling Displayport compliance configuration

2014-12-10 Thread Todd Previte
This patch was previously part of "[PATCH 05/10] drm/i915: Add debugfs interface for Displayport debug and compliance testing". Adds two support functions for handling Displayport configuration parameters that are used for compliance testing. Signed-off-by: Todd Previte --- drivers/gpu/drm/i915

[Intel-gfx] [PATCH 05/17] drm/i915: Add file ops for Displayport configuration in debugfs

2014-12-10 Thread Todd Previte
This patch was also part of "[PATCH 05/10] drm/i915: Add debugfs interface for Displayport debug and compliance testing". Adds file operations structures for Displayport configuration in debugfs for compliance testing. Also adds the declarations for the open() and write() functions listed in the fi

[Intel-gfx] [PATCH 07/17] drm/i915: Add and implement the debugfs 'show' functions for Displayport compliance

2014-12-10 Thread Todd Previte
This patch was previously part of "[PATCH 05/10] drm/i915: Add debugfs interface for Displayport debug and compliance testing". This patch implements the 'show' functions for the debugfs interface for Displayport compliance testing. Signed-off-by: Todd Previte --- drivers/gpu/drm/i915/i915_debug

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

2014-12-10 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. Adds a check at the top to veri

[Intel-gfx] [PATCH 09/17] drm/i915: Add config parsing utilities in debugfs for Displayport compliance

2014-12-10 Thread Todd Previte
This patch was previously part of "[PATCH 05/10] drm/i915: Add debugfs interface for Displayport debug and compliance testing". This patch adds two functions to handle parsing of Displayport configuration information as it formatted in the debugfs file. It is used to process incoming configuration

[Intel-gfx] [PATCH 11/17] drm/i915: Update the EDID automated compliance test function

2014-12-10 Thread Todd Previte
Updates the EDID compliance test function to perform the EDID read as required by the tests. This read needs to take place in the kernel for reasons of speed and efficiency. The results of the EDID read are handed off to userspace so that the remainder of the test can be conducted there. V2: - Add

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

2014-12-10 Thread Todd Previte
The Displayport Link Layer Compliance Testing Specification 1.2 rev 1.1 specifies that repeated AUX transactions after a failure (no response / invalid response) must have a minimum delay of 400us before the resend can occur. Tests 4.2.1.1 and 4.2.1.2 are two tests that require this specifically.

[Intel-gfx] [PATCH 08/17] drm/i915: Add Displayport link configuration structure

2014-12-10 Thread Todd Previte
This patch was previously part of "[PATCH 07/10] drm/i915: Add structures for Displayport compliance testing parameters". Adds a struct to maintain link configuration data for Displayport compliance testing. The members added to the intel_dp struct are for compliance testing purposes only and shoul

[Intel-gfx] [PATCH 04/17] drm/i915: Add debugfs information for Displayport compliance testing

2014-12-10 Thread Todd Previte
This patch was part of "[PATCH 05/10] drm/i915: Add debugfs interface for Displayport debug and compliance testing". That patch has been split into smaller patches for ease of review and integration. This patch contains the definitions/declarations for some of the constants and data structures add

[Intel-gfx] [PATCH 15/17] drm/i915: Update debugfs functions for Displayport compliance testing

2014-12-10 Thread Todd Previte
Updates displayport_config_ctl_write and displayport_config_ctl_show to use the dp_connector_is_valid() function. This saves on code and improves maintainability by unifying the code in a single, common path. Signed-off-by: Todd Previte --- drivers/gpu/drm/i915/i915_debugfs.c | 42 +-

[Intel-gfx] [PATCH 16/17] drm/i915: Add new debugfs file for Displaypor compliance test control

2014-12-10 Thread Todd Previte
Adds a new file for controlling Displayport compliance testing via the debugfs interface. Adds two functions, 'open' and 'show', as well as the file operations structure to support reading the file from userspace. The new file is called 'i915_dp_test_ctl' and contains 4 fields: - Connector name

[Intel-gfx] [PATCH 13/17] drm/i915: Update intel_dp_hpd_pulse() to check link status for non-MST operation

2014-12-10 Thread Todd Previte
Moves the non-MST case out of the if-statement and places it at the beginning of the function to handle HPD events for SST mode. The reasoning behind this is to accommodate link status checks for compliance testing. Some test devices use long pulses to perform test requests so link status must be c

[Intel-gfx] [PATCH 14/17] drm/i915: Add debugfs function to check connector status for compliance testing

2014-12-10 Thread Todd Previte
Adds a function to check the status of a Displayport connector. This function simplifies the Displayport compliance testing interface in debugfs by providing a single method for determining the status of a connector during Displayport compliance testing. This function checks whether or not the conn

[Intel-gfx] [PATCH 17/17] drm/i915: Add debugfs write and test param parsing function for DP test control

2014-12-10 Thread Todd Previte
Adds and implements the 'write' function for the debugfs i915_dp_test_ctrl file. Also adds in the required parsing function to read in the data from the file once the user app has written its data to it. Signed-off-by: Todd Previte --- drivers/gpu/drm/i915/i915_debugfs.c | 103 ++

[Intel-gfx] [PATCH 12/17] drm/i915: Update intel_dp_compute_config() to handle compliance test requests

2014-12-10 Thread Todd Previte
Adds provisions in intel_dp_compute_config() to accommodate compliance testing. Mostly this invovles circumventing the automatic link configuration parameters and allowing the compliance code to set those parameters as required by the tests. Signed-off-by: Todd Previte --- drivers/gpu/drm/i915/i

Re: [Intel-gfx] [PATCH v2 2/2] drm/i915: Track nested calls to intel(_logical)_ring_{begin, advance}

2014-12-10 Thread shuang . he
Tested-By: PRC QA PRTS (Patch Regression Test System Contact: shuang...@intel.com) -Summary- Platform Delta drm-intel-nightly Series Applied PNV -2 364/364 3

Re: [Intel-gfx] [ANNOUNCE][RFC] KVMGT - the implementation of Intel GVT-g(full GPU virtualization) for KVM

2014-12-10 Thread Tian, Kevin
> From: Paolo Bonzini [mailto:pbonz...@redhat.com] > Sent: Thursday, December 11, 2014 12:59 AM > > On 09/12/2014 03:49, Tian, Kevin wrote: > > - Now we have XenGT/KVMGT separately maintained, and KVMGT lags > > behind XenGT regarding to features and qualities. Likely you'll continue > > see stale

Re: [Intel-gfx] [PATCH] drm/i915: Use BUILD_BUG if possible in the i915 WARN_ON

2014-12-10 Thread shuang . he
Tested-By: PRC QA PRTS (Patch Regression Test System Contact: shuang...@intel.com) -Summary- Platform Delta drm-intel-nightly Series Applied PNV 364/364

Re: [Intel-gfx] [ANNOUNCE][RFC] KVMGT - the implementation of Intel GVT-g(full GPU virtualization) for KVM

2014-12-10 Thread Paolo Bonzini
On 11/12/2014 01:33, Tian, Kevin wrote: > My point is that KVMGT doesn't introduce new requirements as what's > required in IGD passthrough case, because all the hacks you see now > is to satisfy guest graphics driver's expectation. I haven't follow up the > KVM IGD passthrough progress, but if i

Re: [Intel-gfx] [PATCH] drm/i915: Call the lrc irq handler correctly

2014-12-10 Thread shuang . he
Tested-By: PRC QA PRTS (Patch Regression Test System Contact: shuang...@intel.com) -Summary- Platform Delta drm-intel-nightly Series Applied PNV 364/364

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Documentation for multiple GGTT views

2014-12-10 Thread shuang . he
Tested-By: PRC QA PRTS (Patch Regression Test System Contact: shuang...@intel.com) -Summary- Platform Delta drm-intel-nightly Series Applied PNV 364/364

Re: [Intel-gfx] [PATCH 1/7] drm/i915: Specify bsd rings through exec flag

2014-12-10 Thread Zhao, Yakui
On Wed, 2014-12-10 at 08:55 -0700, Dave Gordon wrote: > On 10/12/14 09:11, Daniel Vetter wrote: > > On Wed, Dec 10, 2014 at 02:18:15AM +, Gong, Zhipeng wrote: > >> On Tue, 2014-12-09 at 10:46 +0100, Daniel Vetter wrote: > >>> On Mon, Dec 08, 2014 at 01:55:56PM -0800, Rodrigo Vivi wrote: > > [s

Re: [Intel-gfx] [PATCH 8/8] drm/i915: Add drrs_interval module parameter

2014-12-10 Thread shuang . he
Tested-By: PRC QA PRTS (Patch Regression Test System Contact: shuang...@intel.com) -Summary- Platform Delta drm-intel-nightly Series Applied PNV 364/364

Re: [Intel-gfx] [PATCH] drm/i915: save/restore GMBUS freq across suspend/resume on gen4

2014-12-10 Thread shuang . he
Tested-By: PRC QA PRTS (Patch Regression Test System Contact: shuang...@intel.com) -Summary- Platform Delta drm-intel-nightly Series Applied PNV 364/364

<    1   2