[Intel-gfx] [PATCH 1/5] drm/i915: missing error case in init status page

2012-07-13 Thread Ben Widawsky
Signed-off-by: Ben Widawsky b...@bwidawsk.net --- drivers/gpu/drm/i915/intel_ringbuffer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.c b/drivers/gpu/drm/i915/intel_ringbuffer.c index ddc4859..bf0195a 100644 ---

[Intel-gfx] [PATCH 0/5] some ringbuffer cleanups

2012-07-13 Thread Ben Widawsky
This is prep work for some yet to be named stuff I'm trying out. I think it ended up standing well on its own, so I decided to submit it for consideration on it's own. Basically it just cleans up the special allocation of the pipe control, as I intend to do a bit in that area. Daniel, if you

[Intel-gfx] [PATCH 2/5] drm/i915: add cpu_map to i915 object

2012-07-13 Thread Ben Widawsky
mostly for convenience, this will help us clear up a bit of the code in intel_ringbuffer.c Signed-off-by: Ben Widawsky b...@bwidawsk.net --- drivers/gpu/drm/i915/i915_drv.h | 1 + drivers/gpu/drm/i915/i915_gem.c | 3 +++ 2 files changed, 4 insertions(+) diff --git

[Intel-gfx] [PATCH 3/5] drm/i915: refactor ring object allocation

2012-07-13 Thread Ben Widawsky
There is duplication here. Even more will be coming. Signed-off-by: Ben Widawsky b...@bwidawsk.net --- drivers/gpu/drm/i915/intel_ringbuffer.c | 94 +++-- 1 file changed, 53 insertions(+), 41 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.c

[Intel-gfx] [PATCH 5/5] drm/i915: move ring init to intel_ringbuffer.c

2012-07-13 Thread Ben Widawsky
This is precursor to some work I'm doing, but I think it stands nicely as its own refactor. v2: skip teardown returning on success (BUG) Reviewed-by: Chris Wilson ch...@chris-wilson.co.uk Signed-off-by: Ben Widawsky b...@bwidawsk.net --- drivers/gpu/drm/i915/i915_gem.c | 36

[Intel-gfx] [PATCH 4/5] drm/i915: kill struct pipe_control

2012-07-13 Thread Ben Widawsky
It's all redundant with the object now. Simply store that. Signed-off-by: Ben Widawsky b...@bwidawsk.net --- drivers/gpu/drm/i915/intel_ringbuffer.c | 58 - 1 file changed, 13 insertions(+), 45 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.c

Re: [Intel-gfx] [Mesa-dev] [PATCH 0/5] First batch of gm45 clipping/interpolation fixes

2012-07-13 Thread Olivier Galibert
On Sat, Jun 30, 2012 at 08:50:10PM +0200, Olivier Galibert wrote: This is the first part of the fixes I've done to make my gm45 work correctly w.r.t clipping and interpolation. There's a fair chance they work for everything gen 4/5, but I have no way to be sure. So, not even one comment,

Re: [Intel-gfx] [PATCH 2/5] drm/i915: add cpu_map to i915 object

2012-07-13 Thread Chris Wilson
On Thu, 12 Jul 2012 23:16:13 -0700, Ben Widawsky b...@bwidawsk.net wrote: mostly for convenience, this will help us clear up a bit of the code in intel_ringbuffer.c I don't think your couple of use-cases is a strong enough argument to justify an extra pointer on thousands of objects. If you

Re: [Intel-gfx] [PATCH 3/6] drm/i915: Remove the per-ring write list

2012-07-13 Thread Daniel Vetter
On Thu, Jul 12, 2012 at 09:07:52PM +0100, Chris Wilson wrote: On Thu, 12 Jul 2012 21:37:16 +0200, Daniel Vetter dan...@ffwll.ch wrote: On Thu, Jul 12, 2012 at 04:13:36PM +0100, Chris Wilson wrote: obj-base.write_domain = 0; - list_del_init(obj-gpu_write_list); +

Re: [Intel-gfx] [PATCH 3/6] drm/i915: Remove the per-ring write list

2012-07-13 Thread Chris Wilson
On Fri, 13 Jul 2012 10:34:43 +0200, Daniel Vetter dan...@ffwll.ch wrote: On Thu, Jul 12, 2012 at 09:07:52PM +0100, Chris Wilson wrote: On Thu, 12 Jul 2012 21:37:16 +0200, Daniel Vetter dan...@ffwll.ch wrote: On Thu, Jul 12, 2012 at 04:13:36PM +0100, Chris Wilson wrote:

Re: [Intel-gfx] [PATCH 3/6] drm/i915: Remove the per-ring write list

2012-07-13 Thread Chris Wilson
On Fri, 13 Jul 2012 09:49:48 +0100, Chris Wilson ch...@chris-wilson.co.uk wrote: No. Because by the time the previous breadcrumb has been seen we are guarranteed to have flushed the gpu caches. So any wait in the future we have flushed the caches before returning. Egg on face time. The issue

Re: [Intel-gfx] [PATCH 3/6] drm/i915: Remove the per-ring write list

2012-07-13 Thread Daniel Vetter
On Fri, Jul 13, 2012 at 09:53:33AM +0100, Chris Wilson wrote: On Fri, 13 Jul 2012 09:49:48 +0100, Chris Wilson ch...@chris-wilson.co.uk wrote: No. Because by the time the previous breadcrumb has been seen we are guarranteed to have flushed the gpu caches. So any wait in the future we have

Re: [Intel-gfx] [PATCH 2/6] drm/i915: Remove the defunct flushing list

2012-07-13 Thread Daniel Vetter
On Thu, Jul 12, 2012 at 04:13:35PM +0100, Chris Wilson wrote: Signed-off-by: Chris Wilson ch...@chris-wilson.co.uk I'd like to keep the analysis of why things blow up on the BUG_ON(seqno == 0) here in the commit message, i.e. the two patches that together caused the regression (I think we need

[Intel-gfx] [PATCH] drm/i915: mask tiled bit when updating ILK sprites

2012-07-13 Thread Ander Conselvan de Oliveira
From: Ander Conselvan de Oliveira ander.conselvan.de.olive...@intel.com Or going from tiled to untiled may break. Signed-off-by: Ander Conselvan de Oliveira ander.conselvan.de.olive...@intel.com --- drivers/gpu/drm/i915/intel_sprite.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-)

[Intel-gfx] Remove defunct flushing list (v2)

2012-07-13 Thread Chris Wilson
This is turning into a dinq BUG_ON special. Have fun! -chris ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx

[Intel-gfx] [PATCH 05/13] drm/i915: Insert a flush between batches if the breadcrumb was dropped

2012-07-13 Thread Chris Wilson
If we drop the breadcrumb request after a batch due to a signal for example we aim to fix it up at the next opportunity. In this case we emit a second batchbuffer with no waits upon the first and so no opportunity to insert the missing request, so we need to emit the missing flush for coherency.

[Intel-gfx] [PATCH 07/13] drm/i915: Remove the per-ring write list

2012-07-13 Thread Chris Wilson
This is now handled by a global flag to ensure we emit a flush before the next serialisation point (if we failed to queue one previously). Signed-off-by: Chris Wilson ch...@chris-wilson.co.uk --- drivers/gpu/drm/i915/i915_drv.h|2 -- drivers/gpu/drm/i915/i915_gem.c|

[Intel-gfx] [PATCH 09/13] drm/i915: Remove the explicit flush of the GPU write domain

2012-07-13 Thread Chris Wilson
Rely instead on the insertion of the implicit flush before the seqno breadcrumb. Signed-off-by: Chris Wilson ch...@chris-wilson.co.uk --- drivers/gpu/drm/i915/i915_gem.c | 34 -- 1 file changed, 34 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_gem.c

[Intel-gfx] [PATCH 12/13] drm/i915: Split i915_gem_flush_ring() into seperate invalidate/flush funcs

2012-07-13 Thread Chris Wilson
By moving the function to intel_ringbuffer and currying the appropriate parameter, hopefully we make the callsites easier to read and understand. Signed-off-by: Chris Wilson ch...@chris-wilson.co.uk --- drivers/gpu/drm/i915/i915_drv.h|3 --- drivers/gpu/drm/i915/i915_gem.c

[Intel-gfx] [PATCH 13/13] drm/i915: Move the write seqno handling to move_to_active

2012-07-13 Thread Chris Wilson
This moves the open-coded handling of the write seqno from the execbuffer dispatch into the core logic alongside the read seqno handling. Signed-off-by: Chris Wilson ch...@chris-wilson.co.uk --- drivers/gpu/drm/i915/i915_gem.c|9 + drivers/gpu/drm/i915/i915_gem_context.c

[Intel-gfx] [PATCH 01/13] drm/i915: Flush the context object from the CPU caches upon creation

2012-07-13 Thread Chris Wilson
Signed-off-by: Chris Wilson ch...@chris-wilson.co.uk Cc: Ben Widawsky b...@bwidawsk.net --- drivers/gpu/drm/i915/i915_gem_context.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_gem_context.c

[Intel-gfx] [PATCH 10/13] drm/i915: Replace the complex flushing logic with simple invalidate/flush all

2012-07-13 Thread Chris Wilson
Now that we unconditionally flush and invalidate between every batch buffer, we no longer need the complex logic to decide which domains require flushing. Remove it and rejoice. One side-effect is that this also removes the broken wait-on-pending-flip logic. Signed-off-by: Chris Wilson

[Intel-gfx] [PATCH 06/13] drm/i915: Remove the defunct flushing list

2012-07-13 Thread Chris Wilson
As we guarantee to emit a flush before emitting the breadcrumb or the next batchbuffer, there is no further need for the flushing list. Signed-off-by: Chris Wilson ch...@chris-wilson.co.uk --- drivers/gpu/drm/i915/i915_debugfs.c |7 drivers/gpu/drm/i915/i915_drv.h | 19

[Intel-gfx] [PATCH 08/13] drm/i915: Remove explicit flush from i915_gem_object_flush_fence()

2012-07-13 Thread Chris Wilson
As the flush is either performed explictly immediately after the execbuffer dispatch, or before the serialisation of last_fenced_seqno we can forgo the explict i915_gem_flush_ring(). Signed-off-by: Chris Wilson ch...@chris-wilson.co.uk --- drivers/gpu/drm/i915/i915_gem.c | 16 ++--

[Intel-gfx] [PATCH 02/13] drm/i915: fix invalid reference handling of the default ctx obj

2012-07-13 Thread Chris Wilson
Otherwise we end up trying to unpin a freed object and BUG. Signed-off-by: Chris Wilson ch...@chris-wilson.co.uk Cc: Ben Widawsky b...@bwidawsk.net --- drivers/gpu/drm/i915/i915_gem_context.c | 82 +++ 1 file changed, 30 insertions(+), 52 deletions(-) diff --git

[Intel-gfx] [PATCH 04/13] drm/i915: Replace the pending_gpu_write flag with an explicit seqno

2012-07-13 Thread Chris Wilson
As we always flush the GPU cache prior to emitting the breadcrumb, we no longer have to worry about the deferred flush causing the pending_gpu_write to be delayed. So we can instead utilize the known last_write_seqno to hopefully minimise the wait times. Signed-off-by: Chris Wilson

[Intel-gfx] [PATCH 11/13] drm/i915: Clear the pending_gpu_fenced_access flag at the start of execbuffer

2012-07-13 Thread Chris Wilson
Otherwise once we use the buffer with a BLT command on gen2/3, we will always regard future command submissions as continuing the fenced access. However, now that we flush/invalidate between every batch we can drop this pessimism. Signed-off-by: Chris Wilson ch...@chris-wilson.co.uk ---

[Intel-gfx] [PATCH 03/13] drm/i915: Allow late allocation of request for i915_add_request()

2012-07-13 Thread Chris Wilson
Request preallocation was added to i915_add_request() in order to support the overlay. However, not all users care and can quite happily ignore the failure to allocate the request as they will simply repeat the request in the future. By pushing the allocation down into i915_add_request(), we can

Re: [Intel-gfx] [PATCH] drm/i915: mask tiled bit when updating ILK sprites

2012-07-13 Thread Chris Wilson
On Fri, 13 Jul 2012 15:50:33 +0300, Ander Conselvan de Oliveira conselv...@gmail.com wrote: From: Ander Conselvan de Oliveira ander.conselvan.de.olive...@intel.com Or going from tiled to untiled may break. Signed-off-by: Ander Conselvan de Oliveira ander.conselvan.de.olive...@intel.com

Re: [Intel-gfx] [PATCH 2/5] drm/i915: add cpu_map to i915 object

2012-07-13 Thread Ben Widawsky
On Fri, 13 Jul 2012 08:47:15 +0100 Chris Wilson ch...@chris-wilson.co.uk wrote: On Thu, 12 Jul 2012 23:16:13 -0700, Ben Widawsky b...@bwidawsk.net wrote: mostly for convenience, this will help us clear up a bit of the code in intel_ringbuffer.c I don't think your couple of use-cases is a

Re: [Intel-gfx] [PATCH 2/5] drm/i915: add cpu_map to i915 object

2012-07-13 Thread Chris Wilson
On Fri, 13 Jul 2012 06:56:44 -0700, Ben Widawsky b...@bwidawsk.net wrote: On Fri, 13 Jul 2012 08:47:15 +0100 Chris Wilson ch...@chris-wilson.co.uk wrote: On Thu, 12 Jul 2012 23:16:13 -0700, Ben Widawsky b...@bwidawsk.net wrote: mostly for convenience, this will help us clear up a bit of

Re: [Intel-gfx] [PATCH] drm/i915: mask tiled bit when updating ILK sprites

2012-07-13 Thread Daniel Vetter
On Fri, Jul 13, 2012 at 02:26:54PM +0100, Chris Wilson wrote: On Fri, 13 Jul 2012 15:50:33 +0300, Ander Conselvan de Oliveira conselv...@gmail.com wrote: From: Ander Conselvan de Oliveira ander.conselvan.de.olive...@intel.com Or going from tiled to untiled may break. Signed-off-by:

Re: [Intel-gfx] [PATCH 02/13] drm/i915: fix invalid reference handling of the default ctx obj

2012-07-13 Thread Ben Widawsky
On Fri, 13 Jul 2012 14:14:05 +0100 Chris Wilson ch...@chris-wilson.co.uk wrote: Otherwise we end up trying to unpin a freed object and BUG. Just a quick excuse: originally do_switch was just a very low level helper, and everything called i915_switch_context (including default setup), so the

Re: [Intel-gfx] [PATCH 01/13] drm/i915: Flush the context object from the CPU caches upon creation

2012-07-13 Thread Ben Widawsky
On Fri, 13 Jul 2012 14:14:04 +0100 Chris Wilson ch...@chris-wilson.co.uk wrote: Signed-off-by: Chris Wilson ch...@chris-wilson.co.uk Cc: Ben Widawsky b...@bwidawsk.net I guess setting the read_domains is now superfluous. Reviewed-by: Ben Widawsky b...@bwidawsk.net ---

Re: [Intel-gfx] [PATCH 02/13] drm/i915: fix invalid reference handling of the default ctx obj

2012-07-13 Thread Daniel Vetter
On Fri, Jul 13, 2012 at 02:14:05PM +0100, Chris Wilson wrote: Otherwise we end up trying to unpin a freed object and BUG. Signed-off-by: Chris Wilson ch...@chris-wilson.co.uk Cc: Ben Widawsky b...@bwidawsk.net Afact this patch contains quite some code refactoring that does not relate

Re: [Intel-gfx] [PATCH 04/13] drm/i915: Replace the pending_gpu_write flag with an explicit seqno

2012-07-13 Thread Daniel Vetter
On Fri, Jul 13, 2012 at 02:14:07PM +0100, Chris Wilson wrote: As we always flush the GPU cache prior to emitting the breadcrumb, we no longer have to worry about the deferred flush causing the pending_gpu_write to be delayed. So we can instead utilize the known last_write_seqno to hopefully

Re: [Intel-gfx] [PATCH 05/13] drm/i915: Insert a flush between batches if the breadcrumb was dropped

2012-07-13 Thread Daniel Vetter
On Fri, Jul 13, 2012 at 02:14:08PM +0100, Chris Wilson wrote: If we drop the breadcrumb request after a batch due to a signal for example we aim to fix it up at the next opportunity. In this case we emit a second batchbuffer with no waits upon the first and so no opportunity to insert the

Re: [Intel-gfx] [PATCH 01/13] drm/i915: Flush the context object from the CPU caches upon creation

2012-07-13 Thread Daniel Vetter
On Fri, Jul 13, 2012 at 02:14:04PM +0100, Chris Wilson wrote: Signed-off-by: Chris Wilson ch...@chris-wilson.co.uk Cc: Ben Widawsky b...@bwidawsk.net --- drivers/gpu/drm/i915/i915_gem_context.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git

Re: [Intel-gfx] Questions about tripple display

2012-07-13 Thread Daniel Vetter
On Fri, Jul 13, 2012 at 5:59 PM, Guo Tang guo.t...@sonoartis.com wrote: Hi, Greetings! I have a system with GM 45 chip set. I want to have 3 displays: LVDS, VGA, and TV output. There is no need for them to show different contents. So only clone display is required. From GM 45 chip set spec,

Re: [Intel-gfx] Questions about tripple display

2012-07-13 Thread Guo Tang
Hi, Daniel, Thanks for the prompt reply. From your reply looks like I still have a little hope. How about if I only run 1024x768@60Hz or 30Hz resolution? Will that address the dotclock problem between LVDS and TV? Thanks, Guo On Fri, Jul 13, 2012 at 9:10 AM, Daniel Vetter dan...@ffwll.ch

Re: [Intel-gfx] Questions about tripple display

2012-07-13 Thread Daniel Vetter
On Fri, Jul 13, 2012 at 6:36 PM, Guo Tang guo.t...@sonoartis.com wrote: Hi, Daniel, Thanks for the prompt reply. From your reply looks like I still have a little hope. How about if I only run 1024x768@60Hz or 30Hz resolution? Will that address the dotclock problem between LVDS and TV? As

Re: [Intel-gfx] Questions about tripple display

2012-07-13 Thread Guo Tang
Great! Thanks for the direction. We will give it a shoot! - Guo On Fri, Jul 13, 2012 at 9:38 AM, Daniel Vetter dan...@ffwll.ch wrote: On Fri, Jul 13, 2012 at 6:36 PM, Guo Tang guo.t...@sonoartis.com wrote: Hi, Daniel, Thanks for the prompt reply. From your reply looks like I still have a

[Intel-gfx] [pull] drm-intel-next

2012-07-13 Thread Daniel Vetter
Hi Dave, New pull for -next. Highlights: - rc6/turbo support for hsw (Eugeni) - improve corner-case of the reset handling code - gpu reset handling should be rock-solid now - support for fb offset 4096 pixels on gen4+ (yeah, you need some fairly big screens to hit that) - the Flush Me Harder

Re: [Intel-gfx] [PATCH 1/5] drm/i915: missing error case in init status page

2012-07-13 Thread Daniel Vetter
On Thu, Jul 12, 2012 at 11:16:12PM -0700, Ben Widawsky wrote: Signed-off-by: Ben Widawsky b...@bwidawsk.net Queued for -next, thanks for the patch. -Daniel -- Daniel Vetter Mail: dan...@ffwll.ch Mobile: +41 (0)79 365 57 48 ___ Intel-gfx mailing list

Re: [Intel-gfx] [Mesa-dev] [PATCH 0/5] First batch of gm45 clipping/interpolation fixes

2012-07-13 Thread Kenneth Graunke
On 07/13/2012 12:20 AM, Olivier Galibert wrote: On Sat, Jun 30, 2012 at 08:50:10PM +0200, Olivier Galibert wrote: This is the first part of the fixes I've done to make my gm45 work correctly w.r.t clipping and interpolation. There's a fair chance they work for everything gen 4/5, but I have

[Intel-gfx] Panning broken in i915?

2012-07-13 Thread Felix Miata
I wouldn't ask here, except Bugzilla seems stuck on unreachable. Anyone know when it should be back online? Anyone know the status of panning? For me, mouse cannot move into the extended area, so only content can't go there, not my eyes. -- The wise are known for their understanding, and