Re: [Intel-gfx] [PATCH] drm/i915: fix failure to power off after hibernate

2015-02-26 Thread Bjørn Mork
Ville Syrjälä writes: >> @@ -651,7 +651,14 @@ static int i915_drm_suspend_late(struct drm_device >> *drm_dev) >> } >> >> pci_disable_device(drm_dev->pdev); >> -pci_set_power_state(drm_dev->pdev, PCI_D3hot); >> +/* >> + * During hibernation on some GM45 platforms the BIOS

Re: [Intel-gfx] [PATCH] drm/i915: Check DVO reads for errors

2015-02-26 Thread Chris Wilson
On Thu, Feb 26, 2015 at 06:47:14PM +0100, Quentin Casasnovas wrote: > On Thu, Feb 26, 2015 at 05:10:17PM +, Chris Wilson wrote: > > Not all of the DVO functions were checking the return value from their > > i2c routines when reading registers. This could lead to us feeding > > garbage values ba

[Intel-gfx] [PATCH] drm/i915: Redo WMs when cursor size changes

2015-02-26 Thread Joe Konno
From: Joe Konno In instances where cursor sizes change, as in Chromium Ozone/Freon, watermarks should be recomputed. There should be no hard-coded assumptions about cursor widths. This was corrected originally here: commit 64f962e3e38bf6f40bbd2462f8380dee0369e1bf Author: Chris Wilson

[Intel-gfx] Suspend/resume problems on Broadwell

2015-02-26 Thread phoebe
Hi, I'm having a few problems with i915 on my Broadwell Thinkpad (T450s, i7-5600U) with kernel 3.19, apparently suspend/resume related. During every suspend/resume cycle, I see this in my kernel log after wakeup: PM: Entering mem sleep Suspending console(s) (use no_console_suspend to debug) (thr

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Ensure crtc_state backpointer is always initialized

2015-02-26 Thread shuang . he
Tested-By: PRC QA PRTS (Patch Regression Test System Contact: shuang...@intel.com) Task id: 5829 -Summary- Platform Delta drm-intel-nightly Series Applied PNV -3 281/281

[Intel-gfx] linux-next: manual merge of the drm-intel tree with the drm-intel-fixes tree

2015-02-26 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the drm-intel tree got a conflict in drivers/gpu/drm/i915/i915_drv.h between commit b3a38998f042 ("drm/i915: Fix a use after free, and unbalanced refcounting") from the drm-intel-fixes tree and commit 98e1bd4ae68e ("drm/i915: Cache ringbuf pointer in request str

Re: [Intel-gfx] [PATCH 1/7] drm/i915: Remove DRIVER_MODESET checks in load/unload/close code

2015-02-26 Thread Rodrigo Vivi
Reviewed-by: Rodrigo Vivi On Mon, Feb 23, 2015 at 3:03 AM, Daniel Vetter wrote: > UMS is gone, this is dead code. > > Signed-off-by: Daniel Vetter > --- > drivers/gpu/drm/i915/i915_dma.c | 95 > - > 1 file changed, 37 insertions(+), 58 deletions(-) > >

Re: [Intel-gfx] [PATCH 2/7] drm/i915: Remove DRIVER_MODESET checks from suspend/resume code

2015-02-26 Thread Rodrigo Vivi
Reviewed-by: Rodrigo Vivi On Mon, Feb 23, 2015 at 3:03 AM, Daniel Vetter wrote: > UMS is dead, yay! > > Signed-off-by: Daniel Vetter > --- > drivers/gpu/drm/i915/i915_drv.c | 113 > ++-- > 1 file changed, 52 insertions(+), 61 deletions(-) > > diff --git a/d

Re: [Intel-gfx] [PATCH 3/7] drm/i915: Remove DRIVER_MODESET checks in the gpu reset code

2015-02-26 Thread Rodrigo Vivi
Reviewed-by: Rodrigo Vivi On Mon, Feb 23, 2015 at 3:03 AM, Daniel Vetter wrote: > Again, good riddance to UMS! > > Signed-off-by: Daniel Vetter > --- > drivers/gpu/drm/i915/i915_drv.c | 49 > +++-- > 1 file changed, 23 insertions(+), 26 deletions(-) > > dif

Re: [Intel-gfx] [PATCH 4/7] drm/i915: Remove irq-related FIXME in reset code

2015-02-26 Thread Rodrigo Vivi
I believe this patch is on the wrong series, right? I'm afraid I don't know what was this race neither the two-step reset to be able to review this comment remove. Please give me some pointers to check that. On Mon, Feb 23, 2015 at 3:03 AM, Daniel Vetter wrote: > With the two-step reset counter

Re: [Intel-gfx] [PATCH 5/7] drm/i915: Remove DRIVER_MODESET checks from gem code

2015-02-26 Thread Rodrigo Vivi
Reviewed-by: Rodrigo Vivi On Mon, Feb 23, 2015 at 3:03 AM, Daniel Vetter wrote: > Hooray! > > Signed-off-by: Daniel Vetter > --- > drivers/gpu/drm/i915/i915_gem.c | 14 -- > 1 file changed, 14 deletions(-) > > diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915

Re: [Intel-gfx] [PATCH] drm/i915: Redo WMs when cursor size changes

2015-02-26 Thread Ausmus, James
On Thu, Feb 26, 2015 at 2:48 PM, Joe Konno wrote: > > From: Joe Konno > > In instances where cursor sizes change, as in Chromium Ozone/Freon, > watermarks should be recomputed. There should be no hard-coded > assumptions about cursor widths. This was corrected originally here: > > commit 64f9

Re: [Intel-gfx] [PATCH 6/7] drm/i915: Remove regfile code&data for UMS suspend/resume

2015-02-26 Thread Rodrigo Vivi
On Mon, Feb 23, 2015 at 3:03 AM, Daniel Vetter wrote: > Lots of lines to remove! Great clean up! :) > > Signed-off-by: Daniel Vetter > --- > drivers/gpu/drm/i915/i915_drv.h | 133 - > drivers/gpu/drm/i915/i915_suspend.c | 215 +- > drivers/gpu/drm/i915/i915_ums.c |

Re: [Intel-gfx] [PATCH 7/7] drm/i915: Remove DRIVER_MODESET checks from modeset code

2015-02-26 Thread Rodrigo Vivi
Reviewed-by: Rodrigo Vivi On Mon, Feb 23, 2015 at 3:03 AM, Daniel Vetter wrote: > Mostly just checks in i915-private modeset ioctls. > > Signed-off-by: Daniel Vetter > --- > drivers/gpu/drm/i915/intel_display.c | 3 --- > drivers/gpu/drm/i915/intel_opregion.c | 6 ++ > drivers/gpu/drm/i91

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

2015-02-26 Thread Todd Previte
Hi Mika, On 2/26/2015 2:26 AM, Mika Kahola wrote: In a case when DP link has been once trained we can reuse the existing link training parameters i.e. voltage swing and pre-emphasis levels from cache when there is a need to restart link training. In a case of eDP we initially try to train the li

[Intel-gfx] [PATCH 3/4] drm/i915: Remove the no FBC reason enum

2015-02-26 Thread Damien Lespiau
Now that we store the reason string in the fbc structure, we are duplicating the no FBC reason info. We can just reuse the string pointer instead. Signed-off-by: Damien Lespiau --- drivers/gpu/drm/i915/i915_drv.h | 13 - drivers/gpu/drm/i915/intel_fbc.c | 31 +++-

[Intel-gfx] [PATCH 0/4] Refactor the code storing the reason why we disable FBC

2015-02-26 Thread Damien Lespiau
There was a bit of duplicated logic here and we can have easier code to deal with when adding a reason why we decided to disable FBC: we don't need to add an enum, change the debugfs logic and code the check (3 sites), we can just code the check (1 site). That also removes 50 lines of code, which

[Intel-gfx] [PATCH 2/4] drm/i915: Use the original FBC reason strings in debugfs

2015-02-26 Thread Damien Lespiau
No need to duplicate the logic and strings in debugfs, we can just reuse the ones from when we disabled FBC. Signed-off-by: Damien Lespiau --- drivers/gpu/drm/i915/i915_debugfs.c | 50 +++-- drivers/gpu/drm/i915/i915_drv.h | 1 + drivers/gpu/drm/i915/intel_fb

[Intel-gfx] [PATCH 1/4] drm/i915: Refactor where we display the reason to disable FBC

2015-02-26 Thread Damien Lespiau
How we log the reason to disable FBC isn't very normalized and we can store the logic to only display the string once directly in set_no_fbc_reason() instead of having ifs all over the place. Signed-off-by: Damien Lespiau --- drivers/gpu/drm/i915/intel_fbc.c | 47 +++-

[Intel-gfx] [PATCH 4/4] drm/i915: Rename no_fbc_str to no_fbc_reason

2015-02-26 Thread Damien Lespiau
no_fbc_reason was a much better name, and now that we only store the reason as a string, we can reuse that name. Signed-off-by: Damien Lespiau --- drivers/gpu/drm/i915/i915_debugfs.c | 2 +- drivers/gpu/drm/i915/i915_drv.h | 2 +- drivers/gpu/drm/i915/intel_fbc.c| 12 ++-- 3 fi

Re: [Intel-gfx] [PATCH] drm/i915: Redo WMs when cursor size changes

2015-02-26 Thread Matt Roper
On Thu, Feb 26, 2015 at 02:48:44PM -0800, Joe Konno wrote: > From: Joe Konno > > In instances where cursor sizes change, as in Chromium Ozone/Freon, > watermarks should be recomputed. There should be no hard-coded > assumptions about cursor widths. This was corrected originally here: > > com

[Intel-gfx] [PATCH i-g-t] lib/igt_kms.c: igt_require -> igt_require_f("two displays required\n")

2015-02-26 Thread Marc Herbert
The bare "Test requirement: modes" message is too cryptic, I had to go and read the source code to understand the missing requirement. Signed-off-by: Marc Herbert --- If there is a different message that you would like to push yourself then please don't mind me - I think ANY message would do.

Re: [Intel-gfx] [PATCH 4/5] drm/i915: Modifying RC6 Promotion timer for Media workloads.

2015-02-26 Thread Deepak S
On Thursday 26 February 2015 09:38 PM, Chris Wilson wrote: On Thu, Feb 26, 2015 at 08:46:57PM +0530, deepa...@linux.intel.com wrote: From: Deepak S In normal cases, RC6 promotion timer is 1700us/500us. This will result in more time spent in C1 state. For more residency in C6 in case of media

[Intel-gfx] [PATCH i-g-t] kms_universal_plane: Check for cursor fb leaks

2015-02-26 Thread Matt Roper
We've been leaking the framebuffers that get created inside the legacy -> universal cursor compatibility layer and nobody noticed. Add an i-g-t test to check debugfs and ensure we end up the same number of framebuffers we started with after performing cursor operations. Cc: Chris Wilson Signed-o

Re: [Intel-gfx] [PATCH 0/4] drm/i915/skl: Support for edp1.4 intermediate frequencies

2015-02-26 Thread Jindal, Sonika
Hi, Did anybody get a chance to look into these patches? The first patch in the series is merged in -nightly Thanks, Sonika -Original Message- From: Jindal, Sonika Sent: Saturday, February 21, 2015 11:12 AM To: intel-gfx@lists.freedesktop.org Cc: ville.syrj...@linux.intel.com; Jindal, S

Re: [Intel-gfx] [PATCH] drm/i915: Fix a use after free, and unbalanced refcounting

2015-02-26 Thread Jani Nikula
On Tue, 24 Feb 2015, Jani Nikula wrote: > On Mon, 23 Feb 2015, "Daniel, Thomas" wrote: >>> -Original Message- >>> From: Intel-gfx [mailto:intel-gfx-boun...@lists.freedesktop.org] On Behalf >>> Of >>> Nick Hoath >>> Sent: Thursday, February 19, 2015 4:31 PM >>> To: intel-gfx@lists.freedes

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

2015-02-26 Thread Ville Syrjälä
On Thu, Feb 26, 2015 at 06:29:45PM -0700, Todd Previte wrote: > Hi Mika, > > On 2/26/2015 2:26 AM, Mika Kahola wrote: > > In a case when DP link has been once trained we can reuse > > the existing link training parameters i.e. voltage swing > > and pre-emphasis levels from cache when there is a ne

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

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

Re: [Intel-gfx] [PATCH] drm/i915: Check for driver readyness before handling an underrun interrupt

2015-02-26 Thread Jani Nikula
On Thu, 26 Feb 2015, Chris Wilson wrote: > When we takeover from the BIOS and install our interrupt handler, the > BIOS may have left us a few surprises in the form of spontaneous > interrupts. (This is especially likely on hardware like 965gm where > display fifo underruns are continuous and the

<    1   2