[Intel-gfx] [PATCH] igt: Correct the return value for drm short_buffer read

2014-12-22 Thread Xiong Zhang
After i915 commit: commit bd008e5b2953186fc0c6633a885ade95e7043800 Author: Chris Wilson Date: Tue Oct 7 14:13:51 2014 +0100 drm: Implement O_NONBLOCK support on /dev/dri/cardN the return value for drm short_buffer read is -1 and errno is EAGAIN. Signed-off-by: Xiong Zhang --- tests/drm_

Re: [Intel-gfx] [PATCH 2/4] drm/i915: Removed duplicate members from submit_request

2014-12-22 Thread Daniel, Thomas
> -Original Message- > From: Intel-gfx [mailto:intel-gfx-boun...@lists.freedesktop.org] On Behalf > Of Nick Hoath > Sent: Monday, December 22, 2014 9:37 AM > To: intel-gfx@lists.freedesktop.org > Cc: daniel.vet...@ffwll.ch > Subject: [Intel-gfx] [PATCH 2/4] drm/i915: Removed duplicate membe

Re: [Intel-gfx] [PATCH 1/5] drm/i915: Refactor work that can sleep out of commit (v5)

2014-12-22 Thread Ander Conselvan de Oliveira
On 12/16/2014 02:23 AM, Matt Roper wrote: Once we integrate our work into the atomic pipeline, plane commit operations will need to happen with interrupts disabled, due to vblank evasion. Our commit functions today include sleepable work, so those operations need to be split out and run either b

[Intel-gfx] Question regarding forcewake in i915

2014-12-22 Thread 유재용
Hello intel-gfx, I'm reading i915 gpu drivers and find myself quite hard to understand about forcewake concepts. I understand that it is something with the energy efficiency so related to ACPI. And it looks like forcewake is working as a pair (get and put). In the "get" part, what it first does i

[Intel-gfx] [PATCH 1/4] drm/i915: execlist request keeps ptr/ref to gem_request

2014-12-22 Thread Nick Hoath
Add a reference and pointer from the execlist queue item to the associated gem request. For execlist requests that don't have a request, create one as a placeholder. Issue: VIZ-4274 v1: Rebase after upstream of "Replace seqno values with request structures" patchset. Signed-off-by: Nick Hoath --

[Intel-gfx] [PATCH 4/4] drm/i915: Subsume intel_ctx_submit_request in to drm_i915_gem_request

2014-12-22 Thread Nick Hoath
Move all remaining elements that were unique to execlists queue items in to the associated request. Issue: VIZ-4274 v2: Rebase. Fixed issue of overzealous freeing of request. v3: Removed re-addition of cleanup work queue (found by Daniel Vetter) Signed-off-by: Nick Hoath --- drivers/gpu/drm/i91

[Intel-gfx] [PATCH 3/4] drm/i915: Remove FIXME_lrc_ctx backpointer

2014-12-22 Thread Nick Hoath
The first pass implementation of execlists required a backpointer to the context to be held in the intel_ringbuffer. However the context pointer is available higher in the call stack. Remove the backpointer from the ring buffer structure and instead pass it down through the call stack. v2: Inte

[Intel-gfx] [PATCH 0/4] drm/i915: Untangle execlist tracking

2014-12-22 Thread Nick Hoath
This patchset merges execlist queue items in to gem requests. It does this by using the reference count added by the "Replace seqno values with request structures" patchset to ensure that the gem request is available for the whole execlist submission lifespan. v2: merge intel_ctx_submit_request a

[Intel-gfx] [PATCH 2/4] drm/i915: Removed duplicate members from submit_request

2014-12-22 Thread Nick Hoath
Where there were duplicate variables for the tail, context and ring (engine) in the gem request and the execlist queue item, use the one from the request and remove the duplicate from the execlist queue item. Issue: VIZ-4274 v1: Rebase Signed-off-by: Nick Hoath --- drivers/gpu/drm/i915/i915_deb