Re: [Intel-gfx] Television turns greenish after stand-by

2012-02-09 Thread Angela Schmid
Hello I have Linux 3.3-rc2 with daniels interlace patches. When the television turns off (dpms) and after turning on, the blacks are green. This is highly reproducable, however I don't know exactly which conditions have to exist. Restarting X, putting television once again to stand-by and turnin

[Intel-gfx] [ANNOUNCE] intel-gpu-tools 1.2

2012-02-09 Thread Daniel Vetter
Highlights: - intel_audio_dump improvements (Wu Fengguang) - buildsystem improvements (Gaetan Nadon) - solaris support (Alan Coopersmith) - massive refactoring of testcases and rendercpy extraction - new tests - fixed up intel_reg_read/write for platforms needing forcewake (needs a kernel patch w

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

2012-02-09 Thread Keith Packard
Here are a few bug fixes for drm/i915. This fixes switching from interlaced to non-interlaced mode at boot time, as well as a bunch of regressions caused by bad DP bandwidth computations. The following changes since commit acb42a3b611d7ad4cb173c3b37674b549df2ffeb: Merge branch 'drm-fixes' of g

Re: [Intel-gfx] [PATCH 0/7] updated ppgtt patches

2012-02-09 Thread Daniel Vetter
On Thu, Feb 09, 2012 at 04:21:31PM -0200, Eugeni Dodonov wrote: > On Thu, Feb 9, 2012 at 14:15, Daniel Vetter wrote: > > > Hi all, > > > > I've rebased and updated my ppgtt patches. Only changes are somewhat > > improved > > commit messages (especially for the final patch that actually enables >

[Intel-gfx] [PATCH] drm/i915: enable ppgtt

2012-02-09 Thread Daniel Vetter
We want to unconditionally enable ppgtt for two reasons: - Windows uses this on snb and later. - We need the basic hw support to work before we can think about real per-process address spaces and other cool features we want. But Chris Wilson was complaining all over irc and intel-gfx that this w

[Intel-gfx] [PATCH] intel: Add a missing VG_CLEAR.

2012-02-09 Thread Eric Anholt
This fixes the last false positive from libdrm for valgrind glxgears for me. --- I'm slightly nervous about removing memsets in favor of VG_CLEAR, in case there are pad fields that might become important later. But the only one I could think of that this ought to be the case for was execbuf, and

Re: [Intel-gfx] [PATCH] drm/i915/lvds: Always use the presence pin for LVDS on PCH

2012-02-09 Thread Keith Packard
<#part sign=pgpmime> On Thu, 09 Feb 2012 17:33:23 +, Chris Wilson wrote: > > That code already existed in intel_lvds_init(): > if (HAS_PCH_SPLIT(dev)) { > if (I915_READ(PCH_LVDS) & LVDS_DETECTED) == 0) > return false > ... > } Tricky. Do we have any idea how reliable t

Re: [Intel-gfx] [PATCH 0/7] updated ppgtt patches

2012-02-09 Thread Eugeni Dodonov
On Thu, Feb 9, 2012 at 14:15, Daniel Vetter wrote: > Hi all, > > I've rebased and updated my ppgtt patches. Only changes are somewhat > improved > commit messages (especially for the final patch that actually enables > ppgtt) and > an added module option in the last patch to please Chris. > > Ass

Re: [Intel-gfx] [PATCH] drm/i915/lvds: Always use the presence pin for LVDS on PCH

2012-02-09 Thread Eugeni Dodonov
On Thu, Feb 9, 2012 at 07:35, Chris Wilson wrote: > With the introduction of the PCH, we gained an LVDS presence pin but we > continued to use the existing logic that asserted that LVDS was only > supported on certain mobile chipsets. However, there are desktop > IronLake systems with LVDS attach

Re: [Intel-gfx] [PATCH 7/7] drm/i915: enable ppgtt

2012-02-09 Thread Eugeni Dodonov
On Thu, Feb 9, 2012 at 14:39, Chris Wilson wrote: > On Thu, 9 Feb 2012 17:15:50 +0100, Daniel Vetter > wrote: > > v3: Pimp commit message and make Chris Wilson less grumpy by adding a > > module option. > > > +void i915_gem_init_ppgtt(struct drm_device *dev) > > +{ > > + drm_i915_private_t

Re: [Intel-gfx] [PATCH] drm/i915/lvds: Always use the presence pin for LVDS on PCH

2012-02-09 Thread Chris Wilson
On Thu, 09 Feb 2012 09:13:35 -0800, Keith Packard wrote: > <#part sign=pgpmime> > On Thu, 9 Feb 2012 09:35:53 +, Chris Wilson > wrote: > > With the introduction of the PCH, we gained an LVDS presence pin but we > > continued to use the existing logic that asserted that LVDS was only > > sup

Re: [Intel-gfx] [PATCH] drm/i915/lvds: Always use the presence pin for LVDS on PCH

2012-02-09 Thread Keith Packard
<#part sign=pgpmime> On Thu, 9 Feb 2012 09:35:53 +, Chris Wilson wrote: > With the introduction of the PCH, we gained an LVDS presence pin but we > continued to use the existing logic that asserted that LVDS was only > supported on certain mobile chipsets. However, there are desktop > IronLa

Re: [Intel-gfx] Ivybridge hang fixes respun

2012-02-09 Thread Keith Packard
<#part sign=pgpmime> On Thu, 9 Feb 2012 08:04:26 -0200, Eugeni Dodonov wrote: > Keith, Jesse - I think they are good -fixes candidates at this point. I'll be sending a pull request today without these; please work with Jesse to get them merged after that. -- keith.pack...@intel.com ___

Re: [Intel-gfx] [PATCH 0/7] updated ppgtt patches

2012-02-09 Thread Chris Wilson
On Thu, 9 Feb 2012 17:15:43 +0100, Daniel Vetter wrote: > Hi all, > > I've rebased and updated my ppgtt patches. Only changes are somewhat improved > commit messages (especially for the final patch that actually enables ppgtt) > and > an added module option in the last patch to please Chris. >

Re: [Intel-gfx] [PATCH 7/7] drm/i915: enable ppgtt

2012-02-09 Thread Chris Wilson
On Thu, 9 Feb 2012 17:15:50 +0100, Daniel Vetter wrote: > v3: Pimp commit message and make Chris Wilson less grumpy by adding a > module option. > +void i915_gem_init_ppgtt(struct drm_device *dev) > +{ > + drm_i915_private_t *dev_priv = dev->dev_private; > + uint32_t pd_offset; > +

[Intel-gfx] [PATCH 7/7] drm/i915: enable ppgtt

2012-02-09 Thread Daniel Vetter
We want to unconditionally enable ppgtt for two reasons: - Windows uses this on snb and later. - We need the basic hw support to work before we can think about real per-process address spaces and other cool features we want. But Chris Wilson was complaining all over irc and intel-gfx that this w

[Intel-gfx] [PATCH 6/7] drm/i915: ppgtt debugfs info

2012-02-09 Thread Daniel Vetter
This was pretty usefull for debugging, might be useful for diagnosing issues. Signed-off-by: Daniel Vetter Reviewed-by: Ben Widawsky --- drivers/gpu/drm/i915/i915_debugfs.c | 38 +++ 1 files changed, 38 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/dr

[Intel-gfx] [PATCH 5/7] drm/i915: ppgtt register definitions

2012-02-09 Thread Daniel Vetter
Split out for easier cross-checking of the boring pieces with bspec. Reviewed-by: Ben Widawsky Signed-off-by: Daniel Vetter --- drivers/gpu/drm/i915/i915_reg.h | 18 ++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gp

[Intel-gfx] [PATCH 4/7] drm/i915: ppgtt binding/unbinding support

2012-02-09 Thread Daniel Vetter
This adds support to bind/unbind objects and wires it up. Objects are only put into the ppgtt when necessary, i.e. at execbuf time. Objects are still unconditionally put into the global gtt. v2: Kill the quick hack and explicitly pass cache_level to ppgtt_bind like for the global gtt function. No

[Intel-gfx] [PATCH 3/7] drm/i915: initialization/teardown for the aliasing ppgtt

2012-02-09 Thread Daniel Vetter
This just adds the setup and teardown code for the ppgtt PDE and the last-level pagetables, which are fixed for the entire lifetime, at least for the moment. v2: Kill the stray debug printk noted by and improve the pte definitions as suggested by Chris Wilson. v3: Clean up the aperture stealing c

[Intel-gfx] [PATCH 2/7] agp/intel-gtt: export the gtt pagetable iomapping

2012-02-09 Thread Daniel Vetter
We need this because ppgtt page directory entries need to be in the global gtt pagetable. Reviewed-by: Ben Widawsky Signed-Off-by: Daniel Vetter --- drivers/char/agp/intel-gtt.c |1 + include/drm/intel-gtt.h |2 ++ 2 files changed, 3 insertions(+), 0 deletions(-) diff --git a/driv

[Intel-gfx] [PATCH 1/7] agp/intel-gtt: export the scratch page dma address

2012-02-09 Thread Daniel Vetter
To implement a PPGTT for drm/i915 that fully aliases the GTT, we also need to properly alias the scratch page. Reviewed-by: Ben Widawsky Signed-Off-by: Daniel Vetter --- drivers/char/agp/intel-gtt.c |9 - include/drm/intel-gtt.h |2 ++ 2 files changed, 6 insertions(+), 5 de

[Intel-gfx] [PATCH 0/7] updated ppgtt patches

2012-02-09 Thread Daniel Vetter
Hi all, I've rebased and updated my ppgtt patches. Only changes are somewhat improved commit messages (especially for the final patch that actually enables ppgtt) and an added module option in the last patch to please Chris. Assuming nothing pops up I plan to merge this in 1-2 days. Cheers, Dani

Re: [Intel-gfx] [PATCH] drm/i915: dump even more into the error_state

2012-02-09 Thread Daniel Vetter
On Wed, Feb 01, 2012 at 10:23:05PM -0200, Eugeni Dodonov wrote: > On Wed, Feb 1, 2012 at 19:39, Chris Wilson wrote: > > > On Wed, 1 Feb 2012 22:26:45 +0100, Daniel Vetter > > wrote: > > > Chris Wilson and me have again stared at funny error states and it's > > > been pretty clear from the start

Re: [Intel-gfx] [PATCH 1/2] intel: Mark up with valgrind intrinsics to reduce false positives

2012-02-09 Thread Ben Widawsky
On 02/09/2012 11:43 AM, Chris Wilson wrote: > In particular, declare the hidden CPU mmaps to valgrind so that it knows > about those memory regions. > > References: https://bugs.freedesktop.org/show_bug.cgi?id=35071 > Signed-off-by: Chris Wilson Acked-by: Ben Widawsky > --- > configure.ac

Re: [Intel-gfx] [PATCH 2/2] intel: Detect cache domain inconsistency with valgrind

2012-02-09 Thread Daniel Vetter
On Thu, Feb 09, 2012 at 10:43:11AM +, Chris Wilson wrote: > Every access to either the GTT or CPU pointer is supposed to be > proceeded by a set_domain ioctl so that GEM is able to manage the cache > domains correctly and for the following access to be coherent. Of > course, some people explici

[Intel-gfx] [PATCH 2/2] intel: Detect cache domain inconsistency with valgrind

2012-02-09 Thread Chris Wilson
Every access to either the GTT or CPU pointer is supposed to be proceeded by a set_domain ioctl so that GEM is able to manage the cache domains correctly and for the following access to be coherent. Of course, some people explicitly want incoherent, non-blocking access which is going to trigger war

[Intel-gfx] [PATCH 1/2] intel: Mark up with valgrind intrinsics to reduce false positives

2012-02-09 Thread Chris Wilson
In particular, declare the hidden CPU mmaps to valgrind so that it knows about those memory regions. References: https://bugs.freedesktop.org/show_bug.cgi?id=35071 Signed-off-by: Chris Wilson --- configure.ac |3 ++ intel/Makefile.am|1 + intel/intel_bufmgr_gem.c |

Re: [Intel-gfx] [PATCH] drm/i915: s/DRM_ERROR/DRM_DEBUG in i915_gem_execbuffer.c

2012-02-09 Thread Daniel Vetter
On Tue, Jan 31, 2012 at 08:34:15PM +, Chris Wilson wrote: > On Tue, 31 Jan 2012 21:08:14 +0100, Daniel Vetter > wrote: > > These are all user-trigerable, so tune down their loudness a notch. > > For some of these we have i-g-t tests (because they prevent > > newly-discovered bugs), without th

Re: [Intel-gfx] For the ones affected by RC6 issues..

2012-02-09 Thread Eugeni Dodonov
On Wed, Feb 8, 2012 at 21:29, Eugeni Dodonov wrote: > On Wed, Feb 8, 2012 at 20:14, Kai Krakow wrote: > >> Eugeni Dodonov schrieb: >> >> > if you are among the ones affected by any kind of RC6 issues on Sandy >> > Bridge platform, please, try the following patch and report if it >> changes >> >

Re: [Intel-gfx] Ivybridge hang fixes respun

2012-02-09 Thread Eugeni Dodonov
On Wed, Feb 8, 2012 at 18:53, Kenneth Graunke wrote: > These fix many GPU hangs for Eugeni, though not on my machine for some > reason. > > Oddly, the register writes to UCGCTL2 and SQ_CHICKEN_MBCUNIT_CONFIG stick, > but the writes to L3_CHICKEN_MODE, L3CNTLREG1, and COMMON_SLICE_CHICKEN1 > don't

[Intel-gfx] [PATCH] drm/i915/lvds: Always use the presence pin for LVDS on PCH

2012-02-09 Thread Chris Wilson
With the introduction of the PCH, we gained an LVDS presence pin but we continued to use the existing logic that asserted that LVDS was only supported on certain mobile chipsets. However, there are desktop IronLake systems with LVDS attached which we fail to detect. So for PCH, trust the LVDS prese

[Intel-gfx] [PATCH 3/3] drm/i915: check gtfifodbg after possibly failed writes

2012-02-09 Thread Ben Widawsky
If we don't have a sufficient number of free entries in the FIFO, we proceed to do a write anyway. With this check we should have a clue if that write actually failed or not. After some discussion with Daniel Vetter regarding his original complaint, we agreed upon this. Signed-off-by: Ben Widawsk

[Intel-gfx] [PATCH 2/3] drm/i915: catch gtfifo errors on forcewake_put

2012-02-09 Thread Ben Widawsky
This is similar to a patch I wrote several months ago. It's been updated for the new FORCEWAKE_MT. As recommended by Chris Wilson, use WARN() instead of DRM_ERROR, so we can get a backtrace. This shouldn't impact performance too much as the extra register read can replace the POSTING_READ we had p

[Intel-gfx] [PATCH 1/3] drm/i915: use gtfifodbg

2012-02-09 Thread Ben Widawsky
Add register definitions for GTFIFODBG, and clear it during init time to make sure state is correct. This register tells us if either a read, or a write occurred while the fifo was full. It seems like bit 2 is an OR of bit 0 and bit 1, so we check that as well, but the documents are not quite clea

[Intel-gfx] [PATCH 0/3 v3] GTFIFODBG

2012-02-09 Thread Ben Widawsky
Someday I will get simple patches in one version... Alas that day is not today. Ben Widawsky (3): drm/i915: use gtfifodbg drm/i915: catch gtfifo errors on forcewake_put drm/i915: check gtfifodbg after possibly failed writes drivers/gpu/drm/i915/i915_drv.c | 30 ++