Re: [Intel-gfx] [PATCH] drm/i915/skl: Update DDI buffer translation programming.

2015-08-28 Thread shuang . he
Tested-By: Intel Graphics QA PRTS (Patch Regression Test System Contact: shuang...@intel.com) Task id: 7248 -Summary- Platform Delta drm-intel-nightly Series Applied ILK -2

Re: [Intel-gfx] [PATCH] drm/i915: Flush pipecontrol post-sync writes

2015-08-28 Thread shuang . he
Tested-By: Intel Graphics QA PRTS (Patch Regression Test System Contact: shuang...@intel.com) Task id: 7243 -Summary- Platform Delta drm-intel-nightly Series Applied ILK

[Intel-gfx] [RFC 3/3] drm/i915: Update modeset programming to use intermediate state

2015-08-28 Thread Matt Roper
As suggested by Ville, the general flow should now roughly follow: // whatever the user wanted compute_final_atomic_state() // include all crtcs in the intermediate state which are // getting disabled (even temporarily to perform a modeset) compute_intermed

[Intel-gfx] [RFC 2/3] drm/i915: Calculate an intermediate plane/crtc atomic state for modesets

2015-08-28 Thread Matt Roper
To simplify the modeset process for atomic, start calculating an "intermediate" state for any CRTC's which undergo a modeset (or get permanently disabled). This state represents the status of the CRTC and planes at the point in which the CRTC's have been disabled; i.e., intermediate_state->active

[Intel-gfx] [RFC 1/3] drm/i915: Roll intel_crtc->atomic into intel_crtc_state

2015-08-28 Thread Matt Roper
Way back at the beginning of i915's atomic conversion I added intel_crtc->atomic as a temporary dumping ground for "stuff to do outside vblank evasion" flags since CRTC states weren't properly wired up and tracked at that time. We've had proper CRTC state tracking for a while now, so there's reall

Re: [Intel-gfx] [PATCH 7/7] drm/i915: Reduce PSR re-activation time for VLV/CHV.

2015-08-28 Thread shuang . he
Tested-By: Intel Graphics QA PRTS (Patch Regression Test System Contact: shuang...@intel.com) Task id: 7240 -Summary- Platform Delta drm-intel-nightly Series Applied ILK

Re: [Intel-gfx] [PATCH 18/17] drm/i915: Don't call intel_get_hpd_pins() when there's no hotplug interrupt

2015-08-28 Thread Paulo Zanoni
2015-08-28 16:59 GMT-03:00 : > From: Ville Syrjälä > > On GMCH plaforms we are now getting the following spew on aux > interrupts: > [drm:intel_get_hpd_pins] hotplug event received, stat 0x, dig > 0x, pins 0x > [drm:intel_get_hpd_pins] hotplug event received, stat 0x0

Re: [Intel-gfx] [PATCH 17/17] drm/i915: Pass hpd_status_i915[] to intel_get_hpd_pins() in pre-g4x

2015-08-28 Thread Paulo Zanoni
2015-08-27 17:56 GMT-03:00 : > From: Ville Syrjälä > > Pass the correct hpd[] array to intel_get_hpd_pins() on pre-g4x > platforms. > > This got broken in the following commit: > commit fd63e2a972c670887e5e8a08440111d3812c0996 > Author: Imre Deak > Date: Tue Jul 21 15:32:44 2015 -0700 > >

Re: [Intel-gfx] [PATCH 16/17] drm/i915: Rewrite BXT HPD code to conform to pre-existing style

2015-08-28 Thread Paulo Zanoni
2015-08-27 17:56 GMT-03:00 : > From: Ville Syrjälä > > Rewrite the BXT hpd setup to match the way we do it on other platforms: > - Throw out BXT_HOTPLUG_CTL since it's the same as PCH_PORT_HOTPLUG > - Enable the HPD bits in the DE port IER in gen8_de_irq_postinstall() > - Update DE port IMR using

Re: [Intel-gfx] [PATCH 15/17] drm/i915: Refactor the hpd irq handling functions

2015-08-28 Thread Paulo Zanoni
2015-08-27 17:56 GMT-03:00 : > From: Ville Syrjälä > > A lot of the hpd irq handling is duplicated code, so refactor it a bit > by observing that in several places the only difference is the hpd[] > array. So pull the code to a few functions and pass in the hpd[] array > from the caller. Another

Re: [Intel-gfx] [PATCH 2/2] drm/i915/skl+: Enable pipe CSC on cursor planes.

2015-08-28 Thread Bob Paauwe
On Fri, 28 Aug 2015 17:12:12 +0100 Daniel Stone wrote: > Hi, > > On 28 August 2015 at 16:55, Bob Paauwe wrote: > > On Fri, 28 Aug 2015 15:19:04 +0100 > > Daniel Stone wrote: > >> For both this and the previous patch, cf. the corresponding patch for > >> HSW/BDW[0], have you ensured these value

Re: [Intel-gfx] [PATCH 14/17] drm/i915: Rewrite bxt_hpd_handler() to look like everyone else

2015-08-28 Thread Paulo Zanoni
2015-08-27 17:56 GMT-03:00 : > From: Ville Syrjälä > > bxt_hpd_handler() looks different to everyone else for no good reason. > Rewrite it to use the standard variable namees etc. Reviewed-by: Paulo Zanoni > > Signed-off-by: Ville Syrjälä > --- > drivers/gpu/drm/i915/i915_irq.c | 37

Re: [Intel-gfx] [PATCH v2 11/17] drm/i915: Add port A HPD support for BDW

2015-08-28 Thread Paulo Zanoni
2015-08-27 17:56 GMT-03:00 : > From: Ville Syrjälä > > Wire up the port A HPD for BDW. Compared to earlier platforms the > interrupt setup is a bit different, but basically everything else > looks the same. > > v2: 0 initialize pin_mask/long_mask due to intel_get_hpd_pins() changes > Check fo

[Intel-gfx] [PATCH 18/17] drm/i915: Don't call intel_get_hpd_pins() when there's no hotplug interrupt

2015-08-28 Thread ville . syrjala
From: Ville Syrjälä On GMCH plaforms we are now getting the following spew on aux interrupts: [drm:intel_get_hpd_pins] hotplug event received, stat 0x, dig 0x, pins 0x [drm:intel_get_hpd_pins] hotplug event received, stat 0x, dig 0x, pins 0x [drm:

Re: [Intel-gfx] [PATCH v2 07/17] drm/i915: Introduce spt_irq_handler()

2015-08-28 Thread Ville Syrjälä
On Fri, Aug 28, 2015 at 03:20:33PM -0300, Paulo Zanoni wrote: > 2015-08-27 17:56 GMT-03:00 : > > From: Ville Syrjälä > > > > Starting from SPT the only interrupts living in the south are GMBUS and > > HPD. What's worse some of the SPT specific new bits conflict with some > > other bits on earlier

[Intel-gfx] [PATCH v2 06/17] drm/i915: Move {pin, long}_mask initialization to caller from intel_get_hpd_pins()

2015-08-28 Thread ville . syrjala
From: Ville Syrjälä Move the 0 initialization of pin_mask and long_mask from intel_get_hpd_pins() into each caller. This we we can call intel_get_hpd_pins() multiple times to accumulate more pins from several sources. v2: Add a comment explaining the dangers of intel_get_hpd_pins() (Paulo) Revi

Re: [Intel-gfx] [PATCH 06/17] drm/i915: Move {pin, long}_mask initialization to caller from intel_get_hpd_pins()

2015-08-28 Thread Ville Syrjälä
On Fri, Aug 28, 2015 at 03:01:50PM -0300, Paulo Zanoni wrote: > 2015-08-27 17:56 GMT-03:00 : > > From: Ville Syrjälä > > > > Move the 0 initialization of pin_mask and long_mask from > > intel_get_hpd_pins() into each caller. This we we can call > > intel_get_hpd_pins() multiple times to accumulat

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

2015-08-28 Thread shuang . he
Tested-By: Intel Graphics QA PRTS (Patch Regression Test System Contact: shuang...@intel.com) Task id: 7238 -Summary- Platform Delta drm-intel-nightly Series Applied ILK -3

Re: [Intel-gfx] [PATCH v2 07/17] drm/i915: Introduce spt_irq_handler()

2015-08-28 Thread Paulo Zanoni
2015-08-27 17:56 GMT-03:00 : > From: Ville Syrjälä > > Starting from SPT the only interrupts living in the south are GMBUS and > HPD. What's worse some of the SPT specific new bits conflict with some > other bits on earlier PCH generations. So better not use the > cpt_irq_handler() for SPT+ anymo

Re: [Intel-gfx] [PATCH 06/17] drm/i915: Move {pin, long}_mask initialization to caller from intel_get_hpd_pins()

2015-08-28 Thread Paulo Zanoni
2015-08-27 17:56 GMT-03:00 : > From: Ville Syrjälä > > Move the 0 initialization of pin_mask and long_mask from > intel_get_hpd_pins() into each caller. This we we can call > intel_get_hpd_pins() multiple times to accumulate more pins from several > sources. Hmm... I'm not a big fan of this appr

Re: [Intel-gfx] [PATCH 16/16] drm/i915: reject invalid formats for FBC

2015-08-28 Thread Ville Syrjälä
On Fri, Aug 14, 2015 at 06:34:21PM -0300, Paulo Zanoni wrote: > This commit is essentially a rewrite of "drm/i915: Check pixel format > for fbc" from Ville Syrjälä. The idea is the same, but the code is > different due to all the changes that happened since his original > patch. So any bugs are due

Re: [Intel-gfx] [PATCH 14/16] drm/i915: don't apply WaFbcAsynchFlipDisableFbcQueue on SKL

2015-08-28 Thread Ville Syrjälä
On Fri, Aug 14, 2015 at 06:34:19PM -0300, Paulo Zanoni wrote: > This WA is only for HSW/BDW. w/a db says it was needed for early SKL, but we can ignore it. w/a db still has it for BXT. I guess we can hope BXT would be fixed too if SKL is. Reviewed-by: Ville Syrjälä > > Signed-off-by: Paulo Zan

Re: [Intel-gfx] [PATCH 12/16] drm/i915: apply WaFbcAsynchFlipDisableFbcQueue earlier

2015-08-28 Thread Ville Syrjälä
On Fri, Aug 14, 2015 at 06:34:17PM -0300, Paulo Zanoni wrote: > The spec says the register should have that value for the entire time > that FBC is enabled, so apply the WA before we enable FBC. > > Notice that we also have this WA for ILK/SNB, but it is implemented at > init_clock_gating(). I cou

Re: [Intel-gfx] [PATCH 11/16] drm/i915/bdw: don't enable FBC when pixel rate exceeds 95%

2015-08-28 Thread Ville Syrjälä
On Fri, Aug 14, 2015 at 06:34:16PM -0300, Paulo Zanoni wrote: > BSpec says we shouldn't enable FBC on BDW when the pipe pixel rate > exceeds 95% of the core display clock. w/a db says HSW has the same issue, apparently it was found on HSW originally. Actually it says BDW G0 would have it fixed. Bs

Re: [Intel-gfx] [PATCH] drm/i915: set CDCLK if DPLL0 enabled during resuming from S3

2015-08-28 Thread Jani Nikula
On Fri, 28 Aug 2015, Gary Wang wrote: > Since BIOS RC 1.4 it would enable CDCLK PLL during BIOS S3 resume, then > driver needs to set CDCLK to avoid display corruption if DPLL0 enabled. > > References: https://bugs.freedesktop.org/show_bug.cgi?id=91697 > Reviewed-by: Rodrigo Vivi > Reviewed-by: D

Re: [Intel-gfx] [PATCH 10/16] drm/i915: fix CFB size calculation

2015-08-28 Thread Ville Syrjälä
On Fri, Aug 14, 2015 at 06:34:15PM -0300, Paulo Zanoni wrote: > We were considering the whole framebuffer height, but the spec clearly > says that we should only consider the active display height size. > > On my current testing machine, this moves us from 124 successes and > 502 skips to 209 succ

Re: [Intel-gfx] [PATCH 0/4 v5] i915 to call hda driver on HDMI plug/unplug

2015-08-28 Thread Jani Nikula
On Fri, 28 Aug 2015, David Henningsson wrote: > Hopefully last version? :-) > > * Added commit text about duplicate events (patch 4/4) > * Added locks in bind/unbind on i915 side (patch 2/4) > * Fixed docbook comments in i915 struct (patch 1/4) > * Removed port_mst_streaming parameter (patch 1

Re: [Intel-gfx] [PATCH 09/16] drm/i915: print the correct amount of bytes allocated for the CFB

2015-08-28 Thread Ville Syrjälä
On Fri, Aug 14, 2015 at 06:34:14PM -0300, Paulo Zanoni wrote: > And also print the threshold. I was surprised to see a log message > claiming the CFB size was 32mb when there was less than 24mb available > for it. > > Signed-off-by: Paulo Zanoni > --- > drivers/gpu/drm/i915/intel_fbc.c | 5 +++--

[Intel-gfx] [PATCH 3/4] ALSA: hda - allow codecs to access the i915 pin/ELD callback

2015-08-28 Thread David Henningsson
This lets the interested codec be notified when an i915 pin/ELD event happens. Reviewed-by: Takashi Iwai Signed-off-by: David Henningsson --- include/sound/hda_i915.h | 7 +++ sound/hda/hdac_i915.c| 10 ++ 2 files changed, 17 insertions(+) diff --git a/include/sound/hda_i915.h

[Intel-gfx] [PATCH 2/4] drm/i915: Call audio pin/ELD notify function

2015-08-28 Thread David Henningsson
When the audio codec is enabled or disabled, notify the audio driver. This will enable the audio driver to get the notification at all times (even when audio is in different powersave states). Reviewed-by: Jani Nikula Signed-off-by: David Henningsson --- drivers/gpu/drm/i915/i915_drv.h| 1

[Intel-gfx] [PATCH 0/4 v5] i915 to call hda driver on HDMI plug/unplug

2015-08-28 Thread David Henningsson
Hopefully last version? :-) * Added commit text about duplicate events (patch 4/4) * Added locks in bind/unbind on i915 side (patch 2/4) * Fixed docbook comments in i915 struct (patch 1/4) * Removed port_mst_streaming parameter (patch 1/4) * Added Reviewed-by - 1 & 2 by Jani, 3 & 4 by Takashi

[Intel-gfx] [PATCH 1/4] drm/i915: Add audio pin sense / ELD callback

2015-08-28 Thread David Henningsson
This callback will be called by the i915 driver to notify the hda driver that its HDMI information needs to be refreshed, i e, that audio output is now available (or unavailable) - usually as a result of a monitor being plugged in (or unplugged). Reviewed-by: Jani Nikula Signed-off-by: David Henn

[Intel-gfx] [PATCH 4/4] ALSA: hda - Wake the codec up on pin/ELD notify events

2015-08-28 Thread David Henningsson
Whenever there is an event from the i915 driver, wake the codec and recheck plug/unplug + ELD status. This fixes the issue with lost unsol events in power save mode, the codec and controller can now sleep in D3 and still know when the HDMI monitor has been connected. Right now, this might mean we

Re: [Intel-gfx] [PATCH 06/16] drm/i915: try a little harder to find an FBC CRTC

2015-08-28 Thread Ville Syrjälä
On Fri, Aug 14, 2015 at 06:34:11PM -0300, Paulo Zanoni wrote: > Keep searching in case the candidate has a NULL primary fb. This is > only relevant for the platforms that don't have the pipe_a_only > restriction. > > Signed-off-by: Paulo Zanoni > --- > drivers/gpu/drm/i915/intel_fbc.c | 6 ++

Re: [Intel-gfx] [PATCH 2/2] drm/i915/skl+: Enable pipe CSC on cursor planes.

2015-08-28 Thread Daniel Stone
Hi, On 28 August 2015 at 16:55, Bob Paauwe wrote: > On Fri, 28 Aug 2015 15:19:04 +0100 > Daniel Stone wrote: >> For both this and the previous patch, cf. the corresponding patch for >> HSW/BDW[0], have you ensured these values are sanitised at startup, >> even if UEFI hasn't set something clever

[Intel-gfx] Updated drm-intel-testing

2015-08-28 Thread Daniel Vetter
Hi all, New -testing cycle with cool stuff: Somehow I've forgotten to do a new dinq tag 2 weeks ago, so this covers 4 weeks. Still not all that much due to vacation: - PML4 pagetable support for 48b from Michel Thierry - more fixes for sink crc from Rodrigo - DP link settings cleanup from Ville -

Re: [Intel-gfx] [PATCH 2/2] drm/i915/skl+: Enable pipe CSC on cursor planes.

2015-08-28 Thread Bob Paauwe
On Fri, 28 Aug 2015 15:19:04 +0100 Daniel Stone wrote: > Hi Bob, > > On 27 August 2015 at 21:46, Bob Paauwe wrote: > > Extend this to SKL and BXT as it's needed for these platforms as well. > > > > Signed-off-by: Bob Paauwe > > --- > > drivers/gpu/drm/i915/intel_display.c | 3 ++- > > 1 file

Re: [Intel-gfx] [PATCH 2/3] lib: Optionally initialize mmio register access without forcewake

2015-08-28 Thread Ville Syrjälä
On Fri, Aug 28, 2015 at 05:51:46PM +0300, Mika Kuoppala wrote: > Sometimes it is beneficial to debug the forcewake registers > themselves or registers that don't need or are interfered by > forcewake. Add parameter to intel_register_access_init() > to optionally avoid forcewake dance around registe

Re: [Intel-gfx] [PATCH] drm/i915: set CDCLK if DPLL0 enabled during resuming from S3

2015-08-28 Thread Rodrigo Vivi
On Fri, Aug 28, 2015 at 6:12 AM Damien Lespiau wrote: > On Fri, Aug 28, 2015 at 04:40:34PM +0800, Gary Wang wrote: > > Since BIOS RC 1.4 it would enable CDCLK PLL during BIOS S3 resume, then > > driver needs to set CDCLK to avoid display corruption if DPLL0 enabled. > > > > References: https://bu

Re: [Intel-gfx] [PATCH 02/16] drm/i915: fix the FBC work allocation failure path

2015-08-28 Thread Ville Syrjälä
On Fri, Aug 28, 2015 at 11:50:08AM -0300, Paulo Zanoni wrote: > 2015-08-28 11:20 GMT-03:00 Ville Syrjälä : > > On Fri, Aug 14, 2015 at 06:34:07PM -0300, Paulo Zanoni wrote: > >> Always update the currrent crtc, fb and vertical offset after calling > >> enable_fbc. We were forgetting to do so along

[Intel-gfx] [RFC PATCH] drm/i915: Use universal planes for cursor on skylake.

2015-08-28 Thread Maarten Lankhorst
This appears to make all the cursor tests really slow because of the many calls to skl_update_wm when the cursor plane visibility is changed. It performs does 3 vblanks each time it's called, and it's probably called more than once on each update. Smarter watermark updates will hopefully fix thi

Re: [Intel-gfx] [PATCH 05/16] drm/i915: check for the supported strides on HSW+ FBC

2015-08-28 Thread Ville Syrjälä
On Fri, Aug 14, 2015 at 06:34:10PM -0300, Paulo Zanoni wrote: > I could only find the restrictions for HSW+, but I think it's safe to > assume that the older platforms also can't support the configurations > HSW can't support. The older platforms probably have additional > restrictions, so we need

Re: [Intel-gfx] [PATCH 1/3] tools/intel_reg: Use pci device from config on write

2015-08-28 Thread Jani Nikula
On Fri, 28 Aug 2015, Mika Kuoppala wrote: > Use the pre configured pci device from config also > in write path. > > Cc: Jani Nikula > Signed-off-by: Mika Kuoppala > --- > tools/intel_reg.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/intel_reg.c b/tools/intel_r

Re: [Intel-gfx] [PATCH 3/3] tools/intel_reg: Add option to skip forcewake

2015-08-28 Thread Jani Nikula
On Fri, 28 Aug 2015, Mika Kuoppala wrote: > Sometimes we want to inspect the hardware as it is, > without doing the forcewake before access. Add option to skip > the forcewake dance. This needs a manual page update. Some trivial comments below, otherwise lgtm. > > Cc: Jani Nikula > Signed-off-

Re: [Intel-gfx] [PATCH 2/3] lib: Optionally initialize mmio register access without forcewake

2015-08-28 Thread Jani Nikula
On Fri, 28 Aug 2015, Mika Kuoppala wrote: > Sometimes it is beneficial to debug the forcewake registers > themselves or registers that don't need or are interfered by > forcewake. Add parameter to intel_register_access_init() > to optionally avoid forcewake dance around register access. > > Signed

[Intel-gfx] [PATCH 3/3] tools/intel_reg: Add option to skip forcewake

2015-08-28 Thread Mika Kuoppala
Sometimes we want to inspect the hardware as it is, without doing the forcewake before access. Add option to skip the forcewake dance. Cc: Jani Nikula Signed-off-by: Mika Kuoppala --- tools/intel_reg.c | 17 ++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/tools/

[Intel-gfx] [PATCH 1/3] tools/intel_reg: Use pci device from config on write

2015-08-28 Thread Mika Kuoppala
Use the pre configured pci device from config also in write path. Cc: Jani Nikula Signed-off-by: Mika Kuoppala --- tools/intel_reg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/intel_reg.c b/tools/intel_reg.c index 190aa5b..2b60a83 100644 --- a/tools/intel_reg.c ++

[Intel-gfx] [PATCH 2/3] lib: Optionally initialize mmio register access without forcewake

2015-08-28 Thread Mika Kuoppala
Sometimes it is beneficial to debug the forcewake registers themselves or registers that don't need or are interfered by forcewake. Add parameter to intel_register_access_init() to optionally avoid forcewake dance around register access. Signed-off-by: Mika Kuoppala --- debugger/debug_rdata.c

Re: [Intel-gfx] [PATCH 02/16] drm/i915: fix the FBC work allocation failure path

2015-08-28 Thread Paulo Zanoni
2015-08-28 11:20 GMT-03:00 Ville Syrjälä : > On Fri, Aug 14, 2015 at 06:34:07PM -0300, Paulo Zanoni wrote: >> Always update the currrent crtc, fb and vertical offset after calling >> enable_fbc. We were forgetting to do so along the failure paths when >> enabling fbc synchronously. Fix this with a

Re: [Intel-gfx] [PATCH 04/16] drm/i915: set ILK_DPFC_FENCE_YOFF to 0 on SNB

2015-08-28 Thread Ville Syrjälä
On Fri, Aug 14, 2015 at 06:34:09PM -0300, Paulo Zanoni wrote: > The doc is pretty clear that this register should be set to 0 on SNB. > We already write y_offset to DPFC_CPU_FENCE_OFFSET a few lines below. Bspec says: "Restriction : The CPU fence is always programmed to match the Display Buffer b

Re: [Intel-gfx] [PATCH i-g-t] tools/null_state_gen: fix various compiler warnings

2015-08-28 Thread Mika Kuoppala
Thomas Wood writes: > Add the debug and warning flags to cflags and fix the resulting issues. > > Signed-off-by: Thomas Wood Much better now, Reviewed-by: Mika Kuoppala > --- > tools/null_state_gen/Makefile.am | 2 ++ > tools/null_state_gen/intel_batchbuffer.c | 7 +++--

Re: [Intel-gfx] [PATCH 03/16] drm/i915: fix FBC for cases where crtc->base.y is non-zero

2015-08-28 Thread Ville Syrjälä
On Fri, Aug 14, 2015 at 06:34:08PM -0300, Paulo Zanoni wrote: > I only tested this on BDW, but since the register description is the > same ever since gen4, let's assume that all gens take the same > register format. If that's not true, then hopefully someone will > bisect a bug to this patch and w

Re: [Intel-gfx] [PATCH 02/16] drm/i915: fix the FBC work allocation failure path

2015-08-28 Thread Ville Syrjälä
On Fri, Aug 14, 2015 at 06:34:07PM -0300, Paulo Zanoni wrote: > Always update the currrent crtc, fb and vertical offset after calling > enable_fbc. We were forgetting to do so along the failure paths when > enabling fbc synchronously. Fix this with a new helper to enable_fbc() > and update the stat

[Intel-gfx] [PATCH i-g-t] tools/null_state_gen: fix various compiler warnings

2015-08-28 Thread Thomas Wood
Add the debug and warning flags to cflags and fix the resulting issues. Signed-off-by: Thomas Wood --- tools/null_state_gen/Makefile.am | 2 ++ tools/null_state_gen/intel_batchbuffer.c | 7 +++--- tools/null_state_gen/intel_batchbuffer.h | 4 +++- tools/null_state_gen/i

Re: [Intel-gfx] [PATCH 2/2] drm/i915/skl+: Enable pipe CSC on cursor planes.

2015-08-28 Thread Daniel Stone
Hi Bob, On 27 August 2015 at 21:46, Bob Paauwe wrote: > Extend this to SKL and BXT as it's needed for these platforms as well. > > Signed-off-by: Bob Paauwe > --- > drivers/gpu/drm/i915/intel_display.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/i9

Re: [Intel-gfx] [PATCH 01/16] drm/i915: make sure we're not changing the FBC CFB with FBC enabled

2015-08-28 Thread Ville Syrjälä
On Fri, Aug 14, 2015 at 06:34:06PM -0300, Paulo Zanoni wrote: > We used to have this bug in the past, but now that we properly track > the size of the CFB, we don't have it anymore. Still, add the WARN > just to make sure we don't go back to the bad state. > > Signed-off-by: Paulo Zanoni > --- >

Re: [Intel-gfx] [PATCH 10/13] drm/i915: Calculate watermark configuration during atomic check

2015-08-28 Thread Ander Conselvan De Oliveira
On Thu, 2015-08-20 at 18:12 -0700, Matt Roper wrote: > Signed-off-by: Matt Roper > --- > drivers/gpu/drm/i915/i915_drv.h | 10 ++ > drivers/gpu/drm/i915/intel_display.c | 51 ++-- > drivers/gpu/drm/i915/intel_drv.h | 1 + > drivers/gpu/drm/i915/intel_pm.c

Re: [Intel-gfx] [PATCH] drm/i915: Split alloc from init for lrc

2015-08-28 Thread shuang . he
Tested-By: Intel Graphics QA PRTS (Patch Regression Test System Contact: shuang...@intel.com) Task id: 7233 -Summary- Platform Delta drm-intel-nightly Series Applied ILK -1

Re: [Intel-gfx] [PATCH 2/4] drm/i915: Call audio pin/ELD notify function

2015-08-28 Thread David Henningsson
On 2015-08-28 15:07, Jani Nikula wrote: On Wed, 19 Aug 2015, David Henningsson wrote: When the audio codec is enabled or disabled, notify the audio driver. This will enable the audio driver to get the notification at all times (even when audio is in different powersave states). Signed-off-by

Re: [Intel-gfx] [PATCH] drm/i915: set CDCLK if DPLL0 enabled during resuming from S3

2015-08-28 Thread Damien Lespiau
On Fri, Aug 28, 2015 at 04:40:34PM +0800, Gary Wang wrote: > Since BIOS RC 1.4 it would enable CDCLK PLL during BIOS S3 resume, then > driver needs to set CDCLK to avoid display corruption if DPLL0 enabled. > > References: https://bugs.freedesktop.org/show_bug.cgi?id=91697 > Reviewed-by: Rodrigo V

Re: [Intel-gfx] [PATCH 4/4] ALSA: hda - Wake the codec up on pin/ELD notify events

2015-08-28 Thread Jani Nikula
On Thu, 20 Aug 2015, Takashi Iwai wrote: > On Thu, 20 Aug 2015 11:41:42 +0200, > David Henningsson wrote: >> >> >> >> On 2015-08-20 11:28, Takashi Iwai wrote: >> > On Wed, 19 Aug 2015 10:48:58 +0200, >> > David Henningsson wrote: >> >> >> >> Whenever there is an event from the i915 driver, wake

Re: [Intel-gfx] [PATCH 2/4] drm/i915: Call audio pin/ELD notify function

2015-08-28 Thread Jani Nikula
On Wed, 19 Aug 2015, David Henningsson wrote: > When the audio codec is enabled or disabled, notify the audio driver. > This will enable the audio driver to get the notification at all times > (even when audio is in different powersave states). > > Signed-off-by: David Henningsson > --- > driver

Re: [Intel-gfx] [PATCH 09/13] drm/i915: Calculate ILK-style watermarks during atomic check (v2)

2015-08-28 Thread Ander Conselvan De Oliveira
On Thu, 2015-08-20 at 18:12 -0700, Matt Roper wrote: > Calculate pipe watermarks during atomic calculation phase, based on the > contents of the atomic transaction's state structure. We still program > the watermarks at the same time we did before, but the computation now > happens much earlier. >

Re: [Intel-gfx] [PATCH 09/13] drm/i915: Calculate ILK-style watermarks during atomic check (v2)

2015-08-28 Thread Ander Conselvan De Oliveira
On Thu, 2015-08-20 at 18:12 -0700, Matt Roper wrote: > Calculate pipe watermarks during atomic calculation phase, based on the > contents of the atomic transaction's state structure. We still program > the watermarks at the same time we did before, but the computation now > happens much earlier. >

Re: [Intel-gfx] [PATCH 1/4] drm/i915: Add audio pin sense / ELD callback

2015-08-28 Thread Jani Nikula
On Wed, 19 Aug 2015, David Henningsson wrote: > This callback will be called by the i915 driver to notify the hda > driver that its HDMI information needs to be refreshed, i e, > that audio output is now available (or unavailable) - usually as a > result of a monitor being plugged in (or unplugged

[Intel-gfx] [PULL] drm-intel-next-fixes

2015-08-28 Thread Jani Nikula
Hi Dave - Some i915 fixes headed for v4.3. SKL DDI-E is a wip, but here's the first in a series. BR, Jani. The following changes since commit 3732ce72b45a2a145803558758821bf198751276: Merge tag 'v4.2-rc8' into drm-next (2015-08-24 16:36:42 +1000) are available in the git repository at:

[Intel-gfx] [PATCH] drm/i915: Detect virtual south bridge

2015-08-28 Thread robert . beckett
From: Robert Beckett Virtualized systems often use a virtual P2X4 south bridge. Detect this in intel_detect_pch and make a best guess as to which PCH we should be using. This was seen on vmware esxi hypervisor. When passing the graphics device through to a guest, it can not pass through the PCH.

Re: [Intel-gfx] [PATCH v2 00/17] drm/i915: Port A HPD and other HPD cleanups

2015-08-28 Thread Ville Syrjälä
On Thu, Aug 27, 2015 at 11:55:55PM +0300, ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > Second posting of the HPD port A series, with some new added goodies > at the end ;) > > I tried to accomodate Paulo's review comments on v1 of the series [1] > and noticed a few other warts

Re: [Intel-gfx] [PATCH] drm/i915/bxt: Use correct live status register for BXT platform

2015-08-28 Thread shuang . he
Tested-By: Intel Graphics QA PRTS (Patch Regression Test System Contact: shuang...@intel.com) Task id: 7232 -Summary- Platform Delta drm-intel-nightly Series Applied ILK -1

[Intel-gfx] [PATCH i-g-t] tests/tools: add --as-needed to linker flags

2015-08-28 Thread Thomas Wood
Add --as-needed to the linker flags to reduce the number of shared library dependencies, since not all the tests and tools use all the libraries required by the helper library (for example, many tests do not use cairo). This helps portability of the binaries and also makes a very small improvement

[Intel-gfx] [PATCH] drm/i915: set CDCLK if DPLL0 enabled during resuming from S3

2015-08-28 Thread Gary Wang
Since BIOS RC 1.4 it would enable CDCLK PLL during BIOS S3 resume, then driver needs to set CDCLK to avoid display corruption if DPLL0 enabled. References: https://bugs.freedesktop.org/show_bug.cgi?id=91697 Reviewed-by: Rodrigo Vivi Reviewed-by: Damien Lespiau Reviewed-by: Cooper Chiou Reviewed

Re: [Intel-gfx] [PATCH] drm/i915: Split alloc from init for lrc

2015-08-28 Thread shuang . he
Tested-By: Intel Graphics QA PRTS (Patch Regression Test System Contact: shuang...@intel.com) Task id: 7229 -Summary- Platform Delta drm-intel-nightly Series Applied ILK -1

[Intel-gfx] [PATCH v2 0/6] drm/intel: guest i915 changes for Broadwell to run inside VM with Intel GVT-g

2015-08-28 Thread Zhiyuan Lv
I915 kernel driver can now work inside a virtual machine on Haswell with Intel GVT-g. In order to do the same thing on Broadwell, there are some extra changes needed. The two main things are to support the more complicated PPGTT page table structure and EXECLIST contexts. GVT-g will perform shadow

[Intel-gfx] [PATCH v2 6/6] drm/i915: Allow Broadwell guest with Intel GVT-g

2015-08-28 Thread Zhiyuan Lv
I915 Broadwell guest driver is now supported to run inside a VM with Intel GVT-g v2: - Introduce HAS_VGPU macro (Zhenyu Wang) Signed-off-by: Zhiyuan Lv Signed-off-by: Zhi Wang Reviewed-by: Joonas Lahtinen --- drivers/gpu/drm/i915/i915_vgpu.c | 2 +- drivers/gpu/drm/i915/i915_vgpu.h | 2 ++ 2

[Intel-gfx] [PATCH v2 1/6] drm/i915: preallocate pdps for 32 bit vgpu

2015-08-28 Thread Zhiyuan Lv
This is based on Mika Kuoppala's patch below: http://article.gmane.org/gmane.comp.freedesktop.xorg.drivers.intel/61104/match=workaround+hw+preload The patch will preallocate the page directories for 32-bit PPGTT when i915 runs inside a virtual machine with Intel GVT-g. With this change, the root p

[Intel-gfx] [PATCH v2 5/6] drm/i915: guest i915 notification for Intel GVT-g

2015-08-28 Thread Zhiyuan Lv
When i915 drivers run inside a VM with Intel GVT-g, some explicit notifications are needed from guest to host device model through PV INFO page write. The notifications include: PPGTT create PPGTT destroy They are used for the shadow implementation of PPGTT. Intel GVT-g needs to w

[Intel-gfx] [PATCH v2 2/6] drm/i915: Enable full ppgtt for vgpu on Broadwell

2015-08-28 Thread Zhiyuan Lv
The full ppgtt is supported now in Intel GVT-g device model. Broadwell is allowed to use it in virtual machines. v2: - Keep backward compatibility on HSW with old device model (daniel) Signed-off-by: Zhiyuan Lv Signed-off-by: Zhi Wang Reviewed-by: Joonas Lahtinen --- drivers/gpu/drm/i915/i915

[Intel-gfx] [PATCH v2 3/6] drm/i915: Always enable execlists on BDW for vgpu

2015-08-28 Thread Zhiyuan Lv
Broadwell hardware supports both ring buffer mode and execlist mode. When i915 runs inside a VM with Intel GVT-g, we allow execlist mode only. The main reason of EXECLIST only is that GVT-g does not support the dynamic mode switch between ring buffer mode and execlist mode when running multiple vi

[Intel-gfx] [PATCH v2 4/6] drm/i915: Update PV INFO page definition for Intel GVT-g

2015-08-28 Thread Zhiyuan Lv
Some more definitions in the PV info page are added. They are mainly for the guest notification to Intel GVT-g device model. They are used for Broadwell enabling. The notification of PPGTT page table creation/destroy is to notify GVT-g device model the life cycle of guest page tables. Then device