Re: [Intel-gfx] Patch to fix backlight on GM45

2011-02-01 Thread Niccolò Belli
Il 28/01/2011 23:13, Peter Clifton ha scritto: > Without this, querying the backlight value returns half of the value it > has been set to. Hilarity ensues, as my user-space likes to query first > before incrementing / decrementing brightness, leading to brightness > collapsing to near as I try to

Re: [Intel-gfx] [PATCH 2/9] drm/i915/context: basic implementation context ioctls

2011-02-01 Thread Chris Wilson
On Tue, 1 Feb 2011 10:16:19 -0800, Ben Widawsky wrote: > Added the minimal amount of code to enable the two ioctls used for > creating and destroying contexts. Also added neccessary information in > the structures to implement some basic operations the ioctls will have > to perform. Locking to b

Re: [Intel-gfx] [PATCH 1/9] drm/i915/context: context switch, and PPGTT params

2011-02-01 Thread Jesse Barnes
On Tue, 1 Feb 2011 10:16:18 -0800 Ben Widawsky wrote: > Adding parameters for userspace to query what features the > driver/hardware supports. In the future context and ppgtt will always go > together, but for now we will use hardware contexts without ppgtt since > there are some issues with ppg

[Intel-gfx] [PATCH 9/9] drm/i915/context: Insert MI_SET_CONTEXT in ringbuffer context switch

2011-02-01 Thread Ben Widawsky
Added ringbuffer code to initiate context switch. The context switch can fail since intel_ring_begin() can fail, and I am not sure how to handle that yet. In most cases a context switch failure is pretty much fatal. Modified the locking on deinit, which had a race (though results were not fatal, j

[Intel-gfx] [PATCH 8/9] drm/i915/context: enable calling context_switch

2011-02-01 Thread Ben Widawsky
Changed context_validation code to return a pointer to the context which was validated. This saved us a context id lookup later when we want to actually context switch. The downside is we can't differentiate a lost context (buffer moved) from a never-existed context. This seems okay to me for now.

[Intel-gfx] [PATCH 7/9] drm/i915/context: context validation for execbuffer2

2011-02-01 Thread Ben Widawsky
Adds the support for actually doing something with buffer validation for the context when submitted via execbuffer2. When a set of context flags are submitted in the execbuffer call, the code is able to handle the commands. It will also go through the existing buffers associated with the context an

[Intel-gfx] [PATCH 6/9] drm/i915/context: minimal support for contexts in execbuffer2

2011-02-01 Thread Ben Widawsky
This change doesn't do anything except take parameters from clients for context flag information, and pass it to a stubbed function to validate the context flag information. Included here are the updates to the necessary functions and structures needed to handle contexts when execbuffer is called.

[Intel-gfx] [PATCH 5/9] drm/i915/context: switch context support query to variable

2011-02-01 Thread Ben Widawsky
--- drivers/gpu/drm/i915/i915_dma.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c index b0acc0d..9d055ba 100644 --- a/drivers/gpu/drm/i915/i915_dma.c +++ b/drivers/gpu/drm/i915/i915_dma.c @@ -772,7 +772,7

[Intel-gfx] [PATCH 4/9] drm/i915/context: whitespace cleanup, and warning cleanup

2011-02-01 Thread Ben Widawsky
--- drivers/gpu/drm/i915/i915_context.c |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_context.c b/drivers/gpu/drm/i915/i915_context.c index 4e19636..90b7bf3 100644 --- a/drivers/gpu/drm/i915/i915_context.c +++ b/drivers/gpu/drm/i915/i915_

[Intel-gfx] [PATCH 3/9] drm/i915/context: context initialization/destruction

2011-02-01 Thread Ben Widawsky
This does most of the work needed to create, destroy, and cleanup-after contexts, but does not have the actual code to the do the context switching, or buffer association. This includes context id/name generation, context object allocation, calls hardware initialization functions, ringbuffer API f

[Intel-gfx] [PATCH 2/9] drm/i915/context: basic implementation context ioctls

2011-02-01 Thread Ben Widawsky
Added the minimal amount of code to enable the two ioctls used for creating and destroying contexts. Also added neccessary information in the structures to implement some basic operations the ioctls will have to perform. A small whitespace fixup in the Makefile also made it in here. --- drivers/g

[Intel-gfx] [PATCH 1/9] drm/i915/context: context switch, and PPGTT params

2011-02-01 Thread Ben Widawsky
Adding parameters for userspace to query what features the driver/hardware supports. In the future context and ppgtt will always go together, but for now we will use hardware contexts without ppgtt since there are some issues with ppgtt on the current generation. --- drivers/gpu/drm/i915/i915_dma.

[Intel-gfx] [PATCH 0/9] drm/1915/context (i915HW Context support, early)

2011-02-01 Thread Ben Widawsky
This patch adds the basic API for HW context manipulation. Right now only a very basic unit test is passing. I was hoping to get some eyes on this code while I look into porting some of mesa (and cleaning up my libdrm patches). I tried my best to split up the patches logically, but I'm afraid the

Re: [Intel-gfx] GMA HD driver support for hardware acceleration

2011-02-01 Thread sudeep
Thanks a lot Chris. Thanks for your valuable inputs. Sudeep Chris Wilson wrote: On Tue, 01 Feb 2011 15:45:34 +0530, sudeep wrote: Hi All, I am a starter in Linux graphics. Our development board is *MATXM*-*CORE*-*411*-*B* from Emerson. It has Intel i5 core and QM57 chip set. We have a a

Re: [Intel-gfx] [PATCH 1/1] intel-gpu-tools: add test case for testdisplay

2011-02-01 Thread Chris Wilson
On Mon, 31 Jan 2011 15:00:23 +0800, "Lan, Hai" wrote: > Add test case for dumping display into, test all mode(including clone/twin > mode) and support to test forced mode in testdisplay > usage: ./testdisplay [-hiaf:] > -i dump info > -a test all modes > -f MHz>,

Re: [Intel-gfx] GMA HD driver support for hardware acceleration

2011-02-01 Thread Chris Wilson
On Tue, 01 Feb 2011 15:45:34 +0530, sudeep wrote: > Hi All, > > I am a starter in Linux graphics. Our development board is > *MATXM*-*CORE*-*411*-*B* from Emerson. It has > Intel i5 core and QM57 chip set. We have a a requirement to use the > hardware acceleration for various graphics > operati

[Intel-gfx] GMA HD driver support for hardware acceleration

2011-02-01 Thread sudeep
Hi All, I am a starter in Linux graphics. Our development board is *MATXM*-*CORE*-*411*-*B* from Emerson. It has Intel i5 core and QM57 chip set. We have a a requirement to use the hardware acceleration for various graphics operations such as blit, blend etc. 1)Does the Linux graphics driver f

[Intel-gfx] [git pull] i915 fixes

2011-02-01 Thread Chris Wilson
Hi Dave, a fairly busy week or two of bouncing .38 regression fixes off testers. A great big thanks to the QA at Suse who have been very responsive and helped a great deal with these patches. In the wings, as always, we have more patches under test, mainly focusing on stability fixes for SNB and