Re: [Intel-gfx] [PATCH 05/10] drm/i915: extract intel_gpu_reset

2012-04-29 Thread Ben Widawsky
On Fri, 27 Apr 2012 15:17:42 +0200 Daniel Vetter wrote: > Slightly cleans up the code and could be useful for e.g. Ben > Widawsky's hw context patches. > > v2: New colours! > > Cc: Ben Widawsky Unfortunately, I have been unable to make use of this patch. In all my attempts, doing intel_gpu_re

[Intel-gfx] [PATCH] tests/wait render timeout test

2012-04-29 Thread Ben Widawsky
Not sure I want to include this in the make test suite, but it's useful to both test the feature, and show how it can be used. Signed-off-by: Ben Widawsky --- tests/gem_wait_render_timeout.c | 175 +++ 2 files changed, 176 insertions(+) create mode 100644 te

[Intel-gfx] [PATCH] intel: add a timed wait function

2012-04-29 Thread Ben Widawsky
drm_intel_gem_bo_wait(bo, timeout in ns) Signed-off-by: Ben Widawsky --- include/drm/i915_drm.h |8 intel/intel_bufmgr.h |1 + intel/intel_bufmgr_gem.c | 25 + 3 files changed, 34 insertions(+) diff --git a/include/drm/i915_drm.h b/include/drm/i9

[Intel-gfx] [PATCH 5/5] drm/i915: s/i915_wait_reqest/i915_wait_seqno/g

2012-04-29 Thread Ben Widawsky
Wait request is poorly named IMO. After working with these functions for some time, I feel it's much clearer to name the functions more appropriately. Of course we must update the callers to use the new name as well. This leaves room within our namespace for a *real* wait request function at some

[Intel-gfx] [PATCH 4/5 v3] drm/i915: wait render timeout ioctl

2012-04-29 Thread Ben Widawsky
This helps implement GL_ARB_sync put stops short of allowing full blow sync objects. Finally we can use the new timed seqno waiting function to allow userspace to wait on a request with a timeout. This implements that interface. The new ioctl is very straight forward, there is a flags field which

[Intel-gfx] [PATCH 3/5 v2] drm/i915: extract some common olr+wedge code

2012-04-29 Thread Ben Widawsky
Refactor. v2: Don't use seqno as an outparam (Chris) Signed-off-by: Ben Widawsky --- drivers/gpu/drm/i915/i915_gem.c | 120 --- 1 file changed, 63 insertions(+), 57 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c

[Intel-gfx] [PATCH 2/5] drm/i915: make waiting trace events more useful

2012-04-29 Thread Ben Widawsky
With the new timeout parameter it is somewhat more useful to get trace events for each iteration of the loop with values we care about. Signed-off-by: Ben Widawsky --- drivers/gpu/drm/i915/i915_gem.c |7 +++--- drivers/gpu/drm/i915/i915_trace.h | 45 +++--

[Intel-gfx] [PATCH 1/5 v2] drm/i915: timeout parameter for seqno wait

2012-04-29 Thread Ben Widawsky
Insert a wait parameter in the code so we can possibly timeout on a seqno wait if need be. The code should be functionally the same as before because all the callers will continue to retry if an arbitrary timeout elapses. We'd like to have nanosecond granularity, but the only way to do this is wit

[Intel-gfx] [PATCH 0/5 v3] timed BO wait

2012-04-29 Thread Ben Widawsky
This adds the fixes to the patches which Daniel didn't already take. New patch to update trace events is here as well, otherwise they're pretty much just cleanups and bug fixes from the previous try. Ben Widawsky (5): drm/i915: timeout parameter for seqno wait drm/i915: make waiting trace even

Re: [Intel-gfx] how to install xf86-video-intel.

2012-04-29 Thread Kenneth Graunke
On 04/28/2012 11:50 PM, jeffsoft wrote: hi, man, I am a new user for Ubuntu, I can't install the driver for the hp G45. the type is hp dx2810. You shouldn't need to install any drivers. Ubuntu already includes drivers for the G45. Everything should just work. So unless you're trying to so

Re: [Intel-gfx] Intel HD3000 Graphics + i3-2330M CPU

2012-04-29 Thread Kenneth Graunke
On 04/29/2012 06:32 AM, Torsten Brieskorn wrote: hello list, i use a Lenovo G770 with Intel HD3000 Graphics and i3-2330M CPU. A standard Linux installation does not install my graphic card correctly. I tried Ubuntu 12.04, openSuse 12.1 and the newest Knoppix. Hi Torsten, Could you please elab

[Intel-gfx] [PATCH] drm/i915: Fix location of stolen memory register for SandyBridge+

2012-04-29 Thread Chris Wilson
A few of the earlier registers where enlarged and so the Base Data of Stolem Memory Register (BDSM) was pushed to 0xb0. Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/i915_gem_stolen.c |8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_g

[Intel-gfx] Intel HD3000 Graphics + i3-2330M CPU

2012-04-29 Thread Torsten Brieskorn
hello list, i use a Lenovo G770 with Intel HD3000 Graphics and i3-2330M CPU. A standard Linux installation does not install my graphic card correctly. I tried Ubuntu 12.04, openSuse 12.1 and the newest Knoppix. On http://intellinuxgraphics.org I read that Intel HD3000 with i5 and i7 CPU runni

Re: [Intel-gfx] [PATCH 11/12 v2] drm/i915: wait render timeout ioctl

2012-04-29 Thread Chris Wilson
On Sat, 28 Apr 2012 19:11:34 -0700, Ben Widawsky wrote: > On Fri, 27 Apr 2012 16:24:24 +0100 > Chris Wilson wrote: > > > On Thu, 26 Apr 2012 16:03:08 -0700, Ben Widawsky > > wrote: > > > This helps implement glClientWaitSync. > > > > > > Finally we can use the new timed seqno waiting function