[Intel-gfx] Improvements and fixes for Intel ddx swap scheduling/timestamping.

2012-10-07 Thread Mario Kleiner
Hi, a series of three patches to improve the dri2 swap scheduling and timestamping for the current intel ddx. The first one enables proper OML_sync_control timestamping while triple-buffering is enabled and XOrg 1.12+ with DRI2SwapLimit support is in use. So far, timestamping was unuseable with

[Intel-gfx] [PATCH 1/3] ddx/dri2: Make triple-buffering compatible with timestamping on Xorg 1.12+

2012-10-07 Thread Mario Kleiner
This patch adds support for OML_sync_control compliant pageflip completion timestamping while triple-buffering is enabled and the ddx is running on Xorg server 1.12 or later. It makes use of the DRI2SwapLimit api to allow up to two pending flips without throttling of the client, then defers

[Intel-gfx] [PATCH 2/3] ddx/dri2: Repair broken pageflip swap scheduling.

2012-10-07 Thread Mario Kleiner
Commit 7538be3315b8683b05e8f6b22023baadcc0bc4da together with DRI2/OpenGL triple-buffering support added an optimization which breaks kms pageflip swap scheduling for most meaningful use cases and thereby violates the OML_sync_control, GLX_SGI_swap_control, GLX_swap_control and MESA_swap_control

[Intel-gfx] [PATCH 3/3] ddx/dri2: Prevent option 'SwapBuffersWait' from disabling pageflip.

2012-10-07 Thread Mario Kleiner
Commit 1d102cc6ed21d1c4afa47800eecd24b9d663f689 introduced a change, where setting option 'SwapBuffersWait' to 'off' disables kms pageflipping of fullscreen windows. Afaics this change had no benefit, but only downsides: 1. Apps which don't want to throttle their swaps to video refresh rate

Re: [Intel-gfx] [3.2.y] drm/i915: add Ivy Bridge GT2 Server entries

2012-10-07 Thread Chris Wilson
On Sun, 07 Oct 2012 15:01:17 +0100, Ben Hutchings b...@decadent.org.uk wrote: On Mon, 2012-10-01 at 03:24 -0700, Jonathan Nieder wrote: Hi Ben, Please consider cc22a938fc1d drm/i915: add Ivy Bridge GT2 Server entries, 2012-03-29 for application to the 3.2.y tree. It adds a PCI

[Intel-gfx] [PATCH] drm/i915: Set guardband clipping workaround bit in the right register.

2012-10-07 Thread Kenneth Graunke
A previous patch, namely: commit bf97b276ca04cee9ab65ffd378fa8e6aedd71ff6 Author: Daniel Vetter daniel.vet...@ffwll.ch Date: Wed Apr 11 20:42:41 2012 +0200 drm/i915: implement w/a for incorrect guarband clipping accidentally set bit 5 in 3D_CHICKEN, which has nothing to do with clipping.

[Intel-gfx] i915 problems with suspend to disk

2012-10-07 Thread Hugo Mills
Hi, On 3.6, I've got a problem with my video driver after resuming from suspend-to-disk: the lower part of the display flickers, rapidly but irregularly (think of a neon sign in a bad film noir), flicking between the correct display and... something else, it's hard to see what. Shutting

Re: [Intel-gfx] [RFC] [PATCH 00/14] HPD/connector-polling rework

2012-10-07 Thread Alex Deucher
On Thu, May 24, 2012 at 3:26 PM, Daniel Vetter daniel.vet...@ffwll.ch wrote: Hi all, I've got fed up with our sorry state of connector detection and rampant edid re and rere-reading. This patch series lays the groundwork in the drm helpers so that drivers can avoid all this madness (at

Re: [Intel-gfx] [RFC] [PATCH 00/14] HPD/connector-polling rework

2012-10-07 Thread Alex Deucher
On Thu, Oct 4, 2012 at 1:16 PM, Daniel Vetter dan...@ffwll.ch wrote: On Thu, Oct 04, 2012 at 12:07:01PM -0400, Alex Deucher wrote: On Thu, May 24, 2012 at 3:26 PM, Daniel Vetter daniel.vet...@ffwll.ch wrote: Hi all, I've got fed up with our sorry state of connector detection and rampant

Re: [Intel-gfx] i915 problems with suspend to disk

2012-10-07 Thread Hugo Mills
On Thu, Oct 04, 2012 at 09:31:39PM +0200, Daniel Vetter wrote: On Thu, Oct 04, 2012 at 08:20:17PM +0100, Hugo Mills wrote: On 3.6, I've got a problem with my video driver after resuming from suspend-to-disk: the lower part of the display flickers, rapidly but irregularly (think of a neon

Re: [Intel-gfx] [RFC 4/4] drm: add support for raw monotonic vblank timestamps

2012-10-07 Thread Michel Dänzer
On Fre, 2012-10-05 at 16:37 +0300, Imre Deak wrote: In practice we never want the timestamps for vblank and page flip events to be affected by time adjustments, so in addition to the gettimeofday timestamps we used so far add support for raw monotonic timestamps. For backward compatibility

Re: [Intel-gfx] [RFC 4/4] drm: add support for raw monotonic vblank timestamps

2012-10-07 Thread Michel Dänzer
On Fre, 2012-10-05 at 16:59 +0300, Imre Deak wrote: On Fri, 2012-10-05 at 15:55 +0200, Michel Dänzer wrote: On Fre, 2012-10-05 at 16:37 +0300, Imre Deak wrote: In practice we never want the timestamps for vblank and page flip events to be affected by time adjustments, so in addition to

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Align the retire_requests worker to the nearest second

2012-10-07 Thread Arjan van de Ven
On 10/5/2012 6:53 AM, Chris Wilson wrote: By using round_jiffies() we can align the wakeup of our worker to the nearest second in order to batch wakeups and reduce system load, which is useful for unimportant coarse tasks like our retire_requests. Suggested-by: Arjan van de Ven

Re: [Intel-gfx] [RFC 4/4] drm: add support for raw monotonic vblank timestamps

2012-10-07 Thread Rob Clark
On Fri, Oct 5, 2012 at 7:37 AM, Imre Deak imre.d...@intel.com wrote: diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index ab1ef15..056e810 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c @@ -6247,7

Re: [Intel-gfx] [RFC 4/4] drm: add support for raw monotonic vblank timestamps

2012-10-07 Thread Rob Clark
On Fri, Oct 5, 2012 at 5:41 PM, Imre Deak imre.d...@intel.com wrote: On Fri, 2012-10-05 at 16:18 -0600, Rob Clark wrote: On Fri, Oct 5, 2012 at 7:37 AM, Imre Deak imre.d...@intel.com wrote: diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index

Re: [Intel-gfx] [3.2.y] drm/i915: add Ivy Bridge GT2 Server entries

2012-10-07 Thread Ben Hutchings
On Mon, 2012-10-01 at 03:24 -0700, Jonathan Nieder wrote: Hi Ben, Please consider cc22a938fc1d drm/i915: add Ivy Bridge GT2 Server entries, 2012-03-29 for application to the 3.2.y tree. It adds a PCI id to the i915 driver, making kms work. It was applied during the 3.4-rc2 cycle, so

Re: [Intel-gfx] [3.2.y] drm/i915: add Ivy Bridge GT2 Server entries

2012-10-07 Thread Ben Hutchings
On Sun, 2012-10-07 at 15:11 +0100, Chris Wilson wrote: On Sun, 07 Oct 2012 15:01:17 +0100, Ben Hutchings b...@decadent.org.uk wrote: On Mon, 2012-10-01 at 03:24 -0700, Jonathan Nieder wrote: Hi Ben, Please consider cc22a938fc1d drm/i915: add Ivy Bridge GT2 Server entries,

Re: [Intel-gfx] [3.2.y] drm/i915: add Ivy Bridge GT2 Server entries

2012-10-07 Thread Julien Cristau
On Mon, Oct 1, 2012 at 03:24:32 -0700, Jonathan Nieder wrote: - without this patch, modern X errors out instead of starting, because the intel driver requires kms. (In a hypothetical better world, userspace would know to fall back to vesa or something.) I'd expect X to start with

Re: [Intel-gfx] [3.2.y] drm/i915: add Ivy Bridge GT2 Server entries

2012-10-07 Thread Jonathan Nieder
Maik Zumstrull wrote: On Sun, Oct 7, 2012 at 7:26 PM, Julien Cristau jcris...@debian.org wrote: On Mon, Oct 1, 2012 at 03:24:32 -0700, Jonathan Nieder wrote: - without this patch, modern X errors out instead of starting, [...] I'd expect X to start with vesa or fbdev, rather than erroring

Re: [Intel-gfx] [PATCH] drm/i915: Remove the disabling of VHR unit clock gating for HSW

2012-10-07 Thread Daniel Vetter
On Fri, Oct 05, 2012 at 10:40:35AM -0300, Paulo Zanoni wrote: 2012/10/5 Damien Lespiau damien.lesp...@gmail.com: From: Damien Lespiau damien.lesp...@intel.com There's is another register (a read only, so no harm done) at 0x42020 on Haswell GPUs. Let's just remove the write from the

Re: [Intel-gfx] [RFC 4/4] drm: add support for raw monotonic vblank timestamps

2012-10-07 Thread Daniel Vetter
On Sat, Oct 06, 2012 at 03:49:16AM +0300, Imre Deak wrote: On Fri, 2012-10-05 at 18:09 -0600, Rob Clark wrote: /* Called before vblank count and timestamps have * been updated for the vblank interval of flip * completion? Need to increment vblank count and * add one

Re: [Intel-gfx] [regression] 3.6-rc6, gpu hang with vaapi

2012-10-07 Thread Chen, Chao A
Hi Guilherme, Sorry, I cannot reproduce this issue with the following Env: --- Kernel: (this is the same with yours) Version : 3.6.0rc6_stable_20120919+ Kernel: (drm-intel-fixes)b98b60167279df3acac9422c3c9820d9ebbcf9fb Some