[Intel-gfx] [PATCH 60/68] drm/i915/bdw: Add 4 level switching infrastructure

2014-08-21 Thread Ben Widawsky
functions insert and clear entries. Signed-off-by: Ben Widawsky b...@bwidawsk.net --- drivers/gpu/drm/i915/i915_gem_gtt.c | 60 - drivers/gpu/drm/i915/i915_gem_gtt.h | 4 ++- drivers/gpu/drm/i915/i915_reg.h | 1 + 3 files changed, 57 insertions(+), 8 deletions

[Intel-gfx] [PATCH 2/2] intel: Add prelocation support

2014-08-21 Thread Ben Widawsky
Words Signed-off-by: Ben Widawsky b...@bwidawsk.net --- intel/intel_bufmgr.h | 8 intel/intel_bufmgr_gem.c | 102 +++ 2 files changed, 102 insertions(+), 8 deletions(-) diff --git a/intel/intel_bufmgr.h b/intel/intel_bufmgr.h index 9383c72

[Intel-gfx] [PATCH] no_reloc: test case

2014-08-21 Thread Ben Widawsky
needs libdrm --- tests/Makefile.am| 4 +- tests/Makefile.sources | 1 + tests/gem_exec_noreloc.c | 172 +++ 3 files changed, 175 insertions(+), 2 deletions(-) create mode 100644 tests/gem_exec_noreloc.c diff --git a/tests/Makefile.am

[Intel-gfx] [PATCH 63/68] drm/i915: Introduce map and unmap for VMAs

2014-08-21 Thread Ben Widawsky
not the first time I've written this patch. XXX: This patch was never tested pre-GEN8. After rebase it was compile tested only on GEN8. Signed-off-by: Ben Widawsky b...@bwidawsk.net --- drivers/gpu/drm/i915/i915_gem_gtt.c | 78 + drivers/gpu/drm/i915/i915_gem_gtt.h

[Intel-gfx] [PATCH 66/68] drm/i915/bdw: Flip the 48b switch

2014-08-21 Thread Ben Widawsky
Signed-off-by: Ben Widawsky b...@bwidawsk.net --- drivers/gpu/drm/i915/i915_drv.h | 2 +- drivers/gpu/drm/i915/i915_gem_gtt.c | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index 8d46993..00d9ab3 100644

[Intel-gfx] [PATCH 1/2] intel: Split out bo allocation

2014-08-21 Thread Ben Widawsky
Signed-off-by: Ben Widawsky b...@bwidawsk.net --- intel/intel_bufmgr_gem.c | 69 1 file changed, 40 insertions(+), 29 deletions(-) diff --git a/intel/intel_bufmgr_gem.c b/intel/intel_bufmgr_gem.c index 0e1cb0d..d7d3769 100644 --- a/intel

[Intel-gfx] [PATCH 64/68] drm/i915: Depend exclusively on map and unmap_vma

2014-08-21 Thread Ben Widawsky
-by: Ben Widawsky b...@bwidawsk.net --- drivers/gpu/drm/i915/i915_gem_gtt.c | 398 +--- drivers/gpu/drm/i915/i915_gem_gtt.h | 23 +-- 2 files changed, 147 insertions(+), 274 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.c b/drivers/gpu/drm/i915

[Intel-gfx] [PATCH 67/68] drm/i915: Provide a soft_pin hook

2014-08-21 Thread Ben Widawsky
This patch is a proof of concept hack which repurposes the MSB of the size field in created. Userptr already has the gup code, and all we need to do is reuse it. Signed-off-by: Ben Widawsky b...@bwidawsk.net --- drivers/gpu/drm/i915/i915_drv.h| 12 - drivers/gpu/drm/i915

Re: [Intel-gfx] [PATCH 2/3] drm/i915: Fix obj-map_and_fenceable for ppgtt

2014-08-09 Thread Ben Widawsky
sentences were perfectly succinct in describing the problem. v2: Revamp and resend to ease future patches. Signed-off-by: Chris Wilson ch...@chris-wilson.co.uk Cc: Ben Widawsky benjamin.widaw...@intel.com Cc: Daniel Vetter daniel.vet...@ffwll.ch I didn't read the patch closely, but the problem

[Intel-gfx] [PATCH] [v2] drm/i915: Fix another another use-after-free in do_switch

2014-08-09 Thread Ben Widawsky
: There was a bug in the original patch where the ring-last_context was set too early. I am not sure how this wasn't being hit when I sent this previously. Perhaps I tested the wrong patch previously. Signed-off-by: Ben Widawsky b...@bwidawsk.net --- drivers/gpu/drm/i915/i915_gem_context.c | 24

Re: [Intel-gfx] [PATCH] drm/i915: Update gen8_ppgtt_info to keep working in full ppgtt

2014-08-08 Thread Ben Widawsky
/mailman/listinfo/intel-gfx -- Ben Widawsky, Intel Open Source Technology Center ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH 1/7] drm/i915/bdw: Always issue a force restore

2014-08-04 Thread Ben Widawsky
On Mon, Aug 04, 2014 at 11:15:13AM -0700, Rodrigo Vivi wrote: From: Ben Widawsky benjamin.widaw...@intel.com The PDPs seem to get screwed up otherwise, specifically PDP0. I am not really clear why this is required, it just works with full PPGTT. v2: Only do it for gen8, to limit regression

Re: [Intel-gfx] [PATCH 3/7] drm/i915/bdw: MI_FLUSH_DW a qword instead of dword

2014-08-04 Thread Ben Widawsky
On Mon, Aug 04, 2014 at 11:15:15AM -0700, Rodrigo Vivi wrote: From: Ben Widawsky benjamin.widaw...@intel.com The actual post sync op is Write Immediate Data QWord. It is therefore arguable that we should have always done a qword write. The actual impetus for this patch is our decoder

Re: [Intel-gfx] [PATCH 1/2] drm/i915: timespec_sub should already be normalized

2014-07-30 Thread Ben Widawsky
On Wed, Jul 30, 2014 at 07:15:05AM +0100, Chris Wilson wrote: On Tue, Jul 29, 2014 at 01:14:29PM -0700, Ben Widawsky wrote: So don't bother checking it again. This was introduced: commit b361237bcc7cea1d99f770490120d8bc2aed Author: Chris Wilson ch...@chris-wilson.co.uk Date: Fri

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Embellish wait_end trace

2014-07-30 Thread Ben Widawsky
On Wed, Jul 30, 2014 at 07:19:26AM +0100, Chris Wilson wrote: On Tue, Jul 29, 2014 at 01:14:30PM -0700, Ben Widawsky wrote: This adds two new data points to the trace event, wait time, and whether or not the event slept. Both of these should already be obtainable through various means

Re: [Intel-gfx] [PATCH 5/7] drm/i915: Initialize the aliasing ppgtt as part of global gtt

2014-07-30 Thread Ben Widawsky
; + + dev_priv-mm.aliasing_ppgtt = ppgtt; + } + return 0; } -- 1.9.3 ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx -- Ben Widawsky, Intel Open Source Technology

Re: [Intel-gfx] [PATCH 5/7] drm/i915: Initialize the aliasing ppgtt as part of global gtt

2014-07-30 Thread Ben Widawsky
On Wed, Jul 30, 2014 at 08:46:11PM -0700, Ben Widawsky wrote: 1386367941-7131-76-git-send-email-benjamin.widaw...@intel.com and 1386367941-7131-81-git-send-email-benjamin.widaw...@intel.com On Wed, Jul 30, 2014 at 09:42:02PM +0200, Daniel Vetter wrote: Stuffing this into the context setup

Re: [Intel-gfx] [PATCH 5/7] drm/i915: Initialize the aliasing ppgtt as part of global gtt

2014-07-30 Thread Ben Widawsky
On Wed, Jul 30, 2014 at 08:47:03PM -0700, Ben Widawsky wrote: On Wed, Jul 30, 2014 at 08:46:11PM -0700, Ben Widawsky wrote: 1386367941-7131-76-git-send-email-benjamin.widaw...@intel.com and 1386367941-7131-81-git-send-email-benjamin.widaw...@intel.com Oops, was looking at the wrong

Re: [Intel-gfx] [PATCH] drm/i915: Skip Stolen Memory first page.

2014-07-30 Thread Ben Widawsky
as it is. With the first fix (I didn't verify that's the real workaround name), Reviewed-by: Ben Widawsky b...@bwidawsk.net -- Ben Widawsky, Intel Open Source Technology Center ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Introduce FBC False Color for debug purposes.

2014-07-30 Thread Ben Widawsky
: Ville Syrjälä ville.syrj...@linux.intel.com Cc: Ben Widawsky b...@bwidawsk.net Cc: Daniel Vetter daniel.vet...@ffwll.ch Signed-off-by: Rodrigo Vivi rodrigo.v...@intel.com I don't quite understand the motivation for a get() other than debugging the interface itself (if your set is broken

Re: [Intel-gfx] [PATCH] drm/i915: vma/ppgtt lifetime rules

2014-07-29 Thread Ben Widawsky
will explode loudly if you overflow it. For future safety, I'd recommend dropping vm-ctx at this point. It shouldn't be hard at all to get rid of (quick grep shows only debugfs). -- Ben Widawsky, Intel Open Source Technology Center ___ Intel-gfx mailing

Re: [Intel-gfx] [PATCH] drm/i915: vma/ppgtt lifetime rules

2014-07-29 Thread Ben Widawsky
On Tue, Jul 29, 2014 at 11:32:07AM -0700, Ben Widawsky wrote: On Tue, Jul 29, 2014 at 11:08:05AM +0100, Michel Thierry wrote: VMAs should take a reference of the address space they use. Now, when the fd is closed, it will release the ref that the context was holding, but it will still

[Intel-gfx] [PATCH 2/2] drm/i915: Embellish wait_end trace

2014-07-29 Thread Ben Widawsky
exist where it won't sleep). Signed-off-by: Ben Widawsky b...@bwidawsk.net --- drivers/gpu/drm/i915/i915_gem.c | 12 +++- drivers/gpu/drm/i915/i915_trace.h | 29 ++--- 2 files changed, 33 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_gem.c b

[Intel-gfx] [PATCH 1/2] drm/i915: timespec_sub should already be normalized

2014-07-29 Thread Ben Widawsky
Signed-off-by: Ben Widawsky b...@bwidawsk.net --- drivers/gpu/drm/i915/i915_gem.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c index ac349ff..17f7ac9 100644 --- a/drivers/gpu/drm/i915/i915_gem.c +++ b/drivers/gpu/drm/i915

Re: [Intel-gfx] [PATCH] mutex: Export an interface to wrap a mutex lock

2014-07-28 Thread Ben Widawsky
the true callers of mutex_lock(). Unless we provide a means for the wrapper to pass that information down. It also appears that i915 is unique in this manner of wrapping mutex_lock(). Signed-off-by: Chris Wilson ch...@chris-wilson.co.uk Cc: Ben Widawsky benjamin.widaw...@intel.com With the one

Re: [Intel-gfx] [PATCH] drm/i915: Rework GPU reset sequence to match driver load thaw

2014-07-28 Thread Ben Widawsky
, Alistair. -Original Message- From: Daniel Vetter [mailto:daniel.vet...@ffwll.ch] On Behalf Of Daniel Vetter Sent: Monday, July 28, 2014 10:27 AM To: Ben Widawsky Cc: Mcaulay, Alistair; intel-gfx@lists.freedesktop.org Subject: Re: [Intel-gfx] [PATCH] drm/i915: Rework GPU reset sequence

Re: [Intel-gfx] [PATCH] drm/i915: Rework GPU reset sequence to match driver load thaw

2014-07-25 Thread Ben Widawsky
___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx -- Ben Widawsky, Intel Open Source Technology Center ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http

Re: [Intel-gfx] [PATCH] drm/i915/chv: Use timeout mode for RC6 on chv

2014-07-21 Thread Ben Widawsky
on the BDW version because of the public QA data which showed it was a win for power without hurting performance. I'd suggest you get Tom O'Rourke to review this. Thanks Deepak -- Ben Widawsky, Intel Open Source Technology Center ___ Intel-gfx

Re: [Intel-gfx] [PATCH] drm/i915: Do not access stolen memory directly by the CPU, even for error capture

2014-07-20 Thread Ben Widawsky
On Sun, Jul 20, 2014 at 09:29:55AM +0100, Chris Wilson wrote: On Tue, Jul 15, 2014 at 08:30:33PM -0700, Ben Widawsky wrote: On Tue, Jul 15, 2014 at 04:15:08PM +0200, Daniel Vetter wrote: On Thu, Apr 24, 2014 at 02:47:48PM -0700, Ben Widawsky wrote: On Wed, Feb 12, 2014 at 07:18:40PM

Re: [Intel-gfx] [PATCH 08/16] drm/i915/error: Do a better job of disambiguating VMAs

2014-07-20 Thread Ben Widawsky
On Thu, Jul 17, 2014 at 10:51:23AM +0200, Daniel Vetter wrote: On Fri, Jul 04, 2014 at 09:56:54AM -0700, Ben Widawsky wrote: On Fri, Jul 04, 2014 at 08:57:08AM +0100, Chris Wilson wrote: On Tue, Jul 01, 2014 at 11:17:43AM -0700, Ben Widawsky wrote: Some of the original PPGTT patches

Re: [Intel-gfx] [PATCH] drm/i915: Fix possible overflow when recording semaphore states.

2014-07-18 Thread Ben Widawsky
== to (Damien). use ring == to instead of ring-id == to-id (Damien). use continue instead of return (Rodrigo). v4: avoid all unecessary computation (Damien). reduce idx to loop scope (Damien). Cc: Damien Lespiau damien.lesp...@intel.com Cc: Ben Widawsky benjamin.widaw...@intel.com Signed

Re: [Intel-gfx] [PATCH] drm/i915: Fix possible overflow when recording semaphore states.

2014-07-17 Thread Ben Widawsky
, 2 = vecs, 3 = vcs2; * vcs - 0 = bcs, 1 = vecs, 2 = vcs2, 3 = rcs; * bcs - 0 = vecs, 1 = vcs2. 2 = rcs, 3 = vcs; * vecs - 0 = vcs2, 1 = rcs, 2 = vcs, 3 = bcs; * vcs2 - 0 = rcs, 1 = vcs, 2 = bcs, 3 = vecs; */ Cc: Ben Widawsky benjamin.widaw...@intel.com Signed-off-by: Rodrigo Vivi

Re: [Intel-gfx] [PATCH] drm/i915: Optimize the i915_gem_gtt_finish_object function

2014-07-17 Thread Ben Widawsky
, PCI_DMA_BIDIRECTIONAL); - undo_idling(dev_priv, interruptible); + undo_idling(dev_priv, interruptible); + } } static void i915_gtt_color_adjust(struct drm_mm_node *node, Note that this doesn't do much on platforms you care about. -- Ben Widawsky, Intel Open

Re: [Intel-gfx] [PATCH] drm/i915: Do not unmap object unless no other VMAs reference it

2014-07-17 Thread Ben Widawsky
the dma_unmap. Therefore I assume everything in that list_empty() condition is a temporary hack. This patch is: Reviewed-by: Ben Widawsky b...@bwidawsk.net -- Ben Widawsky, Intel Open Source Technology Center ___ Intel-gfx mailing list Intel-gfx

Re: [Intel-gfx] [PATCH] drm/i915: Do not unmap object unless no other VMAs reference it

2014-07-17 Thread Ben Widawsky
On Thu, Jul 17, 2014 at 04:45:02PM -0700, Ben Widawsky wrote: On Fri, Jul 11, 2014 at 10:20:07AM -0700, armin.c.re...@intel.com wrote: From: Armin Reese armin.c.re...@intel.com Signed-off-by: Armin Reese armin.c.re...@intel.com --- drivers/gpu/drm/i915/i915_gem.c | 6 +++--- 1 file

Re: [Intel-gfx] [PATCH] drm/i915: print full error ring semaphore mboxes and sync.

2014-07-17 Thread Ben Widawsky
On Thu, Jul 17, 2014 at 09:39:55AM -0700, Rodrigo Vivi wrote: With the increasing number of rings, we probably have more information to print than we were printing. After our discussion were you going to send a new patch? [snip] -- Ben Widawsky, Intel Open Source Technology Center

Re: [Intel-gfx] [PATCH] drm/i915: print full error ring semaphore mboxes and sync.

2014-07-17 Thread Ben Widawsky
more information to print than we were printing. After our discussion were you going to send a new patch? [snip] -- Ben Widawsky, Intel Open Source Technology Center -- Ben Widawsky, Intel Open Source Technology Center ___ Intel-gfx mailing

Re: [Intel-gfx] [PATCH] drm/i915: print full error ring semaphore mboxes and sync.

2014-07-17 Thread Ben Widawsky
On Thu, Jul 17, 2014 at 10:58:17AM -0700, Rodrigo Vivi wrote: With the increasing number of rings, we probably have more information to print than we were printing. v2: Loop only over active rings and print info with ring names. Cc: Ben Widawsky benjamin.widaw...@intel.com Signed-off

Re: [Intel-gfx] [PATCH] drm/i915: Fix printing proper min/min/rpe values in debugfs

2014-07-17 Thread Ben Widawsky
Oops, meant to reply-to-all On Thu, Jul 17, 2014 at 07:44:25PM -0700, Ben Widawsky wrote: On Thu, Jul 17, 2014 at 10:42:20AM +0200, Daniel Vetter wrote: On Thu, Jul 17, 2014 at 02:21:14PM +0530, deepa...@linux.intel.com wrote: From: Deepak S deepa...@linux.intel.com This was fumbled

Re: [Intel-gfx] [PATCH 11/11] drm/i915/bdw: Map unused PDPs to a scratch page

2014-07-16 Thread Ben Widawsky
On Mon, 14 Jul 2014 05:18:44 -0700 Rodrigo Vivi rodrigo.v...@intel.com wrote: From: Bob Beckett robert.beck...@intel.com Create a scratch page for the two unused PDPs and set all the PTEs for them to point to it. This patch addresses a page fault, and subsequent hang in pipe control

Re: [Intel-gfx] [PATCH] drm/i915: Do not access stolen memory directly by the CPU, even for error capture

2014-07-15 Thread Ben Widawsky
On Tue, Jul 15, 2014 at 04:15:08PM +0200, Daniel Vetter wrote: On Thu, Apr 24, 2014 at 02:47:48PM -0700, Ben Widawsky wrote: On Wed, Feb 12, 2014 at 07:18:40PM +, Chris Wilson wrote: For stolen pages, since it is verboten to access them directly on many architectures, we have to read

Re: [Intel-gfx] [PATCH 07/10] drm/i915/bdw: collect semaphore error state

2014-07-14 Thread Ben Widawsky
). -- Damien Dan Carpenter has already reported this to us. I was expecting a patch from Rodrigo. -- Ben Widawsky, Intel Open Source Technology Center ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo

Re: [Intel-gfx] [PATCH] drm/i915: get/put runtime PM at i915_semaphore_status

2014-07-09 Thread Ben Widawsky
didn't follow any of the PM mails, so feel free to ignore if this has been discussed and addressed already. Testcase: igt/pm_rpm/debugfs-read Cc: Ben Widawsky b...@bwidawsk.net Signed-off-by: Paulo Zanoni paulo.r.zan...@intel.com Reviewed-by: Ben Widawsky b...@bwidawsk.net --- drivers/gpu/drm

Re: [Intel-gfx] pin OABUFFER to GGTT

2014-07-03 Thread Ben Widawsky
binding. FWIW, I remain in favor of the relocation idea unless someone already expressed why we need multiple processes to have the relocation info. -- Ben Widawsky, Intel Open Source Technology Center ___ Intel-gfx mailing list Intel-gfx

Re: [Intel-gfx] pin OABUFFER to GGTT

2014-07-03 Thread Ben Widawsky
On Thu, Jul 03, 2014 at 10:10:48AM -0700, Ben Widawsky wrote: On Thu, Jul 03, 2014 at 08:17:32AM +0100, Damien Lespiau wrote: On Wed, Jul 02, 2014 at 02:19:42PM +0100, Rutkowski, Adam J wrote: Having said all this, how about restoring the pin_ioctl? At least for some time? We do have

Re: [Intel-gfx] [PATCH 09/10] drm/i915/bdw: Always issue a force restore

2014-07-03 Thread Ben Widawsky
On Thu, Jul 03, 2014 at 05:33:05PM -0400, Rodrigo Vivi wrote: From: Ben Widawsky benjamin.widaw...@intel.com The PDPs seem to get screwed up otherwise, specifically PDP0. I am not really clear why this is required, it just works with full PPGTT. v2: Only do it for gen8, to limit regression

[Intel-gfx] [PATCH 1/2] drm/i915/gen8: Invalidate TLBs before PDP reload

2014-07-03 Thread Ben Widawsky
This is a spec requirement for all rings. Signed-off-by: Ben Widawsky b...@bwidawsk.net --- drivers/gpu/drm/i915/i915_gem_context.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/i915/i915_gem_context.c b/drivers/gpu/drm/i915/i915_gem_context.c index 5b4a9a0..1ac648f

[Intel-gfx] [PATCH 2/2] drm/i915: Remove false assertion in ppgtt_release

2014-07-03 Thread Ben Widawsky
the active list because of the missing retire seqno for a VMA. Like some of the other fixes I've submitted recently, this should be fixed by the eventual work Daniel will do. This is pretty easy to reproduce whenever mesa uses the blit engine. Signed-off-by: Ben Widawsky b...@bwidawsk.net --- drivers

Re: [Intel-gfx] pin OABUFFER to GGTT

2014-07-02 Thread Ben Widawsky
this should be a pretty reasonable thing to accomplish. I think we can just give a flag for the reloc that it needs to be in the GGTT, and then pass a check to the command scanner that only that one offset is allowed, and only for OA. -- Ben Widawsky, Intel Open Source Technology Center

Re: [Intel-gfx] pin OABUFFER to GGTT

2014-07-02 Thread Ben Widawsky
results of performance counters, shown by tools such as GPA/ Vtune. Thanks, Tomasz -Original Message- From: Mateo Lozano, Oscar Sent: Wednesday, July 02, 2014 10:50 AM To: Chris Wilson; Ben Widawsky Cc: Intel-gfx@lists.freedesktop.org; Madajczak, Tomasz; Rutkowski, Adam J

[Intel-gfx] [PATCH 00/16] Enabling GEN8 full PPGTT + fixes

2014-07-01 Thread Ben Widawsky
kill ${pid[*]} done Ben Widawsky (16): drm/i915: Split up do_switch drm/i915: Extract l3 remapping out of ctx switch drm/i915/ppgtt: Load address space after mi_set_context drm/i915: Fix another another use-after-free in do_switch drm/i915/ctx: Return earlier on failure drm/i915/error

[Intel-gfx] [PATCH 04/16] drm/i915: Fix another another use-after-free in do_switch

2014-07-01 Thread Ben Widawsky
. Signed-off-by: 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 b/drivers/gpu/drm/i915/i915_gem_context.c index 601a58f..0e6e743 100644 --- a/drivers/gpu

[Intel-gfx] [PATCH 06/16] drm/i915/error: Check the potential ctx obj's vm

2014-07-01 Thread Ben Widawsky
to fix up the error state). Signed-off-by: Ben Widawsky b...@bwidawsk.net --- drivers/gpu/drm/i915/i915_gpu_error.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/i915/i915_gpu_error.c b/drivers/gpu/drm/i915/i915_gpu_error.c index 66cf417..550ba38 100644 --- a/drivers/gpu/drm

[Intel-gfx] [PATCH 02/16] drm/i915: Extract l3 remapping out of ctx switch

2014-07-01 Thread Ben Widawsky
This is just a cosmetic change to try to put do_switch_rcs on a diet. As it stands, the function was quite complex, and error prone. Signed-off-by: Ben Widawsky b...@bwidawsk.net --- drivers/gpu/drm/i915/i915_gem_context.c | 32 1 file changed, 20 insertions

[Intel-gfx] [PATCH 10/16] drm/i915: Add some extra guards in evict_vm

2014-07-01 Thread Ben Widawsky
Signed-off-by: Ben Widawsky b...@bwidawsk.net --- drivers/gpu/drm/i915/i915_gem_evict.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_gem_evict.c b/drivers/gpu/drm/i915/i915_gem_evict.c index bbf4b12..38297d3 100644 --- a/drivers/gpu/drm/i915

[Intel-gfx] [PATCH 05/16] drm/i915/ctx: Return earlier on failure

2014-07-01 Thread Ben Widawsky
: Rafael Barbalho rafael.barba...@intel.com Signed-off-by: Ben Widawsky b...@bwidawsk.net --- drivers/gpu/drm/i915/i915_gem_context.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/gpu/drm/i915/i915_gem_context.c b/drivers/gpu/drm/i915/i915_gem_context.c index 0e6e743..cf7cf81

[Intel-gfx] [PATCH 09/16] drm/i915/error: Capture vmas instead of BOs

2014-07-01 Thread Ben Widawsky
whatever we chose later. Signed-off-by: Ben Widawsky b...@bwidawsk.net --- drivers/gpu/drm/i915/i915_drv.h | 1 + drivers/gpu/drm/i915/i915_gpu_error.c | 53 +++ 2 files changed, 30 insertions(+), 24 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_drv.h b

[Intel-gfx] [PATCH 03/16] drm/i915/ppgtt: Load address space after mi_set_context

2014-07-01 Thread Ben Widawsky
commit message that addresses the requests Ville made for v1 Only load PDPs for initial context load (Ville) Signed-off-by: Ben Widawsky b...@bwidawsk.net --- drivers/gpu/drm/i915/i915_gem_context.c | 29 +++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git

[Intel-gfx] [PATCH 11/16] drm/i915: Make an uninterruptible evict

2014-07-01 Thread Ben Widawsky
There are no users of this yet, but the idea is presented and split out to find bugs. Also, while here, return -ERESTARTSYS to the caller, in case they want to do something with it. Signed-off-by: Ben Widawsky b...@bwidawsk.net --- drivers/gpu/drm/i915/i915_drv.h| 2 +- drivers/gpu

[Intel-gfx] [PATCH 12/16] drm/i915: Reorder ctx unref on ppgtt cleanup

2014-07-01 Thread Ben Widawsky
makes debugging a bit easier if we're tracking object lifetimes for the context vs ppgtt Signed-off-by: Ben Widawsky b...@bwidawsk.net --- drivers/gpu/drm/i915/i915_gem_context.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_gem_context.c b

[Intel-gfx] [PATCH 16/16] drm/i915: Get the error state over the wire (HACKish)

2014-07-01 Thread Ben Widawsky
to keep reset enabled but still get error state. Since I found the patch pretty useful, I decided to clean it up and submit it. It was mostly meant as a one-off hack originally though. If a maintainer decides it's useful, then here it is. Signed-off-by: Ben Widawsky b...@bwidawsk.net --- drivers/gpu

[Intel-gfx] [PATCH 15/16] drm/i915/bdw: Enable full PPGTT

2014-07-01 Thread Ben Widawsky
Broadwell is perfectly capable of full PPGTT. I've been using it for some time, and seen no especially ill effects. Signed-off-by: Ben Widawsky b...@bwidawsk.net Conflicts: drivers/gpu/drm/i915/i915_drv.h --- drivers/gpu/drm/i915/i915_drv.h | 2 +- 1 file changed, 1 insertion(+), 1

[Intel-gfx] [PATCH 07/16] drm/i915/error: vma error capture prettyify

2014-07-01 Thread Ben Widawsky
Rename some variables, and clean up the code a bit to make things clearer in our error capture. There isn't an intentional functional change here. Signed-off-by: Ben Widawsky b...@bwidawsk.net --- drivers/gpu/drm/i915/i915_gpu_error.c | 55 --- 1 file changed, 32

[Intel-gfx] [PATCH 08/16] drm/i915/error: Do a better job of disambiguating VMAs

2014-07-01 Thread Ben Widawsky
, and know all the VMAs we want to capture are valid. I could have probably figured out a way to reuse mm_list. As we've had bugs here before in the shrinker, I think the best way forward is to get it working, and then optimize it later. Signed-off-by: Ben Widawsky b...@bwidawsk.net --- drivers

[Intel-gfx] [PATCH 14/16] drm/i915: Defer PPGTT cleanup

2014-07-01 Thread Ben Widawsky
investigating any corner cases, in particular, cases where I need to cleanup the wq. If this patch does head in the merge direction, I will take a closer look at that. Signed-off-by: Ben Widawsky b...@bwidawsk.net --- drivers/gpu/drm/i915/i915_drv.h | 10 +++ drivers/gpu/drm/i915/i915_gem.c

[Intel-gfx] [PATCH 13/16] drm/i915: More correct (slower) ppgtt cleanup

2014-07-01 Thread Ben Widawsky
the need for the yet unmerged patch from Chris (and an identical patch from me, which was first!!): drm/i915: Prevent signals from interrupting close() I have a followup patch to implement deferred free, before you complain. Signed-off-by: Ben Widawsky b...@bwidawsk.net --- drivers/gpu/drm/i915

Re: [Intel-gfx] [PATCH 05/10] drm/i915: Implement MI decode for gen8

2014-06-30 Thread Ben Widawsky
Cc: Ben Widawsky b...@bwidawsk.net Signed-off-by: Rodrigo Vivi rodrigo.v...@intel.com Reviewed-by: Ben Widawsky b...@bwidawsk.net -- Ben Widawsky, Intel Open Source Technology Center ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http

Re: [Intel-gfx] [PATCH 10/10] drm/i915: Enable semaphores on BDW

2014-06-30 Thread Ben Widawsky
On Mon, Jun 30, 2014 at 09:53:44AM -0700, Rodrigo Vivi wrote: Signed-off-by: Rodrigo Vivi rodrigo.v...@intel.com Reviewed-by: Ben Widawsky b...@bwidawsk.net -- Ben Widawsky, Intel Open Source Technology Center ___ Intel-gfx mailing list Intel-gfx

Re: [Intel-gfx] [PATCH 1/3] drm/i915: Fix VCS2's ring name.

2014-06-30 Thread Ben Widawsky
On Mon, Jun 30, 2014 at 09:51:09AM -0700, Rodrigo Vivi wrote: It just fix a typo. Signed-off-by: Rodrigo Vivi rodrigo.v...@intel.com Reviewed-by: Ben Widawsky b...@bwidawsk.net [snip] -- Ben Widawsky, Intel Open Source Technology Center ___ Intel

Re: [Intel-gfx] [PATCH 4/4] drm/i915: Reserve space for FBC (fbcon)

2014-06-30 Thread Ben Widawsky
On Thu, Jun 19, 2014 at 08:28:11PM +0100, Chris Wilson wrote: On Thu, Jun 19, 2014 at 12:06:13PM -0700, Ben Widawsky wrote: This is one part in a few fixes needed to make FBC work with limited stolen memory and large resolution displays. It is not the full solution, but one (easy) step

Re: [Intel-gfx] [PATCH] drm/i915: Fix some NUM_RING iterators

2014-06-28 Thread Ben Widawsky
On Sat, Jun 28, 2014 at 07:20:38AM +0100, Chris Wilson wrote: On Fri, Jun 27, 2014 at 03:21:20PM -0700, Rodrigo Vivi wrote: Reviewed-by: Rodrigo Vivi [1]rodrigo.v...@intel.com On Fri, Jun 27, 2014 at 3:09 PM, Ben Widawsky [2]benjamin.widaw...@intel.com wrote

Re: [Intel-gfx] [PATCH] drm/i915: Fix some NUM_RING iterators

2014-06-28 Thread Ben Widawsky
On Sat, Jun 28, 2014 at 08:28:55PM +0100, Chris Wilson wrote: On Sat, Jun 28, 2014 at 08:26:15AM -0700, Ben Widawsky wrote: On Sat, Jun 28, 2014 at 07:20:38AM +0100, Chris Wilson wrote: diff --git a/drivers/gpu/drm/i915/i915_gpu_error.c b/drivers/gpu/drm/i915/i915_gpu_error.c

[Intel-gfx] [PATCH] drm/i915: Fix some NUM_RING iterators

2014-06-27 Thread Ben Widawsky
on this, except I think all the issues have been around for multiple releases without bug reports. Compile tested only for now. Signed-off-by: Ben Widawsky b...@bwidawsk.net --- drivers/gpu/drm/i915/i915_gem_context.c | 6 +++--- drivers/gpu/drm/i915/i915_gpu_error.c | 2 +- drivers/gpu/drm/i915

Re: [Intel-gfx] [PATCH] drm/i915: Fix some NUM_RING iterators

2014-06-27 Thread Ben Widawsky
On Fri, Jun 27, 2014 at 03:21:20PM -0700, Rodrigo Vivi wrote: Reviewed-by: Rodrigo Vivi rodrigo.v...@intel.com I have a couple of spots that I think are important to add, all in error state. I'll repost v2 after I can actually test it. [snip] -- Ben Widawsky, Intel Open Source Technology

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Don't BUG_ON in i915_gem_obj_offset

2014-06-24 Thread Ben Widawsky
On Wed, Jun 25, 2014 at 12:00:35PM +1000, Dave Airlie wrote: On 25 June 2014 11:30, Ben Widawsky b...@bwidawsk.net wrote: On Wed, Jun 18, 2014 at 12:04:46AM +0200, Daniel Vetter wrote: On Tue, Jun 17, 2014 at 10:34:38PM +0200, Daniel Vetter wrote: A WARN_ON is perfectly fine. The BUG

Re: [Intel-gfx] [PATCH] drm/i915: Only mark the ctx as initialised after a SET_CONTEXT operation

2014-06-23 Thread Ben Widawsky
Lespiau damien.lesp...@intel.com Cc: Mika Kuoppala mika.kuopp...@intel.com Cc: Ben Widawsky b...@bwidawsk.net Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=79108 Daniel put his IRC r-b on this on IIRC. [snip] -- Ben Widawsky, Intel Open Source Technology Center

Re: [Intel-gfx] [PATCH 26/53] drm/i915/bdw: New logical ring submission mechanism

2014-06-23 Thread Ben Widawsky
place to be (I know from much experience). If Daniel is not okay with that, then he needs to find a different reviewer. -- Ben Widawsky, Intel Open Source Technology Center ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http

[Intel-gfx] [PATCH 6/6] drm/i915/bdw: Enable full PPGTT

2014-06-23 Thread Ben Widawsky
Broadwell is perfectly capable of full PPGTT. I've been using it for some time, and seen no especially ill effects. Signed-off-by: Ben Widawsky b...@bwidawsk.net Conflicts: drivers/gpu/drm/i915/i915_drv.h --- drivers/gpu/drm/i915/i915_drv.h | 2 +- 1 file changed, 1 insertion(+), 1

[Intel-gfx] [PATCH 2/6] drm/i915: Only mark the ctx as initialised after a SET_CONTEXT operation

2014-06-23 Thread Ben Widawsky
as initialised after it is saved by the hardware during a SET_CONTEXT operation. Signed-off-by: Chris Wilson ch...@chris-wilson.co.uk Reviewed-by: Ben Widawsky b...@bwidawsk.net Cc: Ville Syrjälä ville.syrj...@linux.intel.com Cc: Damien Lespiau damien.lesp...@intel.com Cc: Mika Kuoppala mika.kuopp

[Intel-gfx] [PATCH 5/6] drm/i915/ppgtt: Load address space after mi_set_context

2014-06-23 Thread Ben Widawsky
commit message that addresses the requests Ville made for v1 Only load PDPs for initial context load (Ville) Signed-off-by: Ben Widawsky b...@bwidawsk.net --- drivers/gpu/drm/i915/i915_gem_context.c | 29 +++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git

[Intel-gfx] [PATCH 1/6] drm/i915: Prevent signals from interrupting close()

2014-06-23 Thread Ben Widawsky
proper live tracking of vma and contexts under full-ppgtt, but this is useful piece of defensive programming enforcing our userspace API contract. Signed-off-by: Chris Wilson ch...@chris-wilson.co.uk Reviewed-by: Ben Widawsky b...@bwidawsk.net --- drivers/gpu/drm/i915/i915_dma.c | 9 + 1

[Intel-gfx] [PATCH 4/6] drm/i915: Extract l3 remapping out of ctx switch

2014-06-23 Thread Ben Widawsky
This is just a cosmetic change to try to put do_switch_rcs on a diet. As it stands, the function was quite complex, and error prone. Signed-off-by: Ben Widawsky b...@bwidawsk.net --- drivers/gpu/drm/i915/i915_gem_context.c | 32 1 file changed, 20 insertions

Re: [Intel-gfx] [PATCH 3/4] drm/i915: Try harder to get FBC

2014-06-20 Thread Ben Widawsky
Rodrigo, when you're ready, can you pull in Art's requests? On Fri, Jun 20, 2014 at 03:56:08PM +, Runyan, Arthur J wrote: You give me too much credit. I just gave you an explanation of what the hardware does, then you ran with it. On Thu, Jun 19, 2014 at 12:06:13PM -0700, Ben Widawsky

[Intel-gfx] [PATCH 1/4] drm/i915: Move compressed_fb to static allocation

2014-06-19 Thread Ben Widawsky
simpler, which benefits the look of an upcoming patch. Signed-off-by: Ben Widawsky b...@bwidawsk.net --- drivers/gpu/drm/i915/i915_drv.h| 2 +- drivers/gpu/drm/i915/i915_gem_stolen.c | 27 ++- 2 files changed, 11 insertions(+), 18 deletions(-) diff --git a/drivers/gpu

[Intel-gfx] [PATCH 2/4] drm/i915: Extract CFB threshold calculation

2014-06-19 Thread Ben Widawsky
. Signed-off-by: Ben Widawsky b...@bwidawsk.net --- drivers/gpu/drm/i915/i915_gem_stolen.c | 26 -- 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_gem_stolen.c b/drivers/gpu/drm/i915/i915_gem_stolen.c index 642fd36..a86b331 100644

[Intel-gfx] [PATCH 4/4] drm/i915: Reserve space for FBC (fbcon)

2014-06-19 Thread Ben Widawsky
-by: Ben Widawsky b...@bwidawsk.net --- drivers/gpu/drm/i915/intel_fbdev.c | 37 +++-- 1 file changed, 35 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_fbdev.c b/drivers/gpu/drm/i915/intel_fbdev.c index 27975c3..ca83af8 100644 --- a/drivers/gpu

[Intel-gfx] [PATCH 3/4] drm/i915: Try harder to get FBC

2014-06-19 Thread Ben Widawsky
is Art's. The bugs are mine. Cc: Art Runyan arthur.j.run...@intel.com Signed-off-by: Ben Widawsky b...@bwidawsk.net --- drivers/gpu/drm/i915/i915_drv.h| 3 +- drivers/gpu/drm/i915/i915_gem_stolen.c | 54 +- drivers/gpu/drm/i915/intel_pm.c| 28

Re: [Intel-gfx] [PATCH 4/4] drm/i915: Reserve space for FBC (fbcon)

2014-06-19 Thread Ben Widawsky
On Thu, Jun 19, 2014 at 08:28:11PM +0100, Chris Wilson wrote: On Thu, Jun 19, 2014 at 12:06:13PM -0700, Ben Widawsky wrote: This is one part in a few fixes needed to make FBC work with limited stolen memory and large resolution displays. It is not the full solution, but one (easy) step

Re: [Intel-gfx] intel_gpu_top missing clocks

2014-06-19 Thread Ben Widawsky
@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx -- Ben Widawsky, Intel Open Source Technology Center ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH] Fixed the review issues for pm_rc6_residency IGT case

2014-06-16 Thread Ben Widawsky
to revert your patch as was stated in the commit message. I am not sure how Daniel got the impression that I thought this was in order. Can you please resubmit the patch based on the latest intel-gpu-tools? -- Ben Widawsky, Intel Open Source Technology Center

[Intel-gfx] [REPOST] [PATCH] drm/i915/ppgtt: Load address space after mi_set_context

2014-06-12 Thread Ben Widawsky
to bar's context // load foos PDPs LRI PDPs 1 MI_SET_CONTEXT bar // save PDPs 1 to foo's context It's all wacky. This should allow full PPGTT on Broadwell to work. Signed-off-by: Ben Widawsky b...@bwidawsk.net --- drivers/gpu/drm/i915/i915_gem_context.c | 24

[Intel-gfx] [REPOST] [PATCH] drm/i915/bdw: Enable full PPGTT

2014-06-12 Thread Ben Widawsky
Broadwell is perfectly capable of full PPGTT. I've been using it for some time, and seen no especially ill effects. Signed-off-by: Ben Widawsky b...@bwidawsk.net Conflicts: drivers/gpu/drm/i915/i915_drv.h --- drivers/gpu/drm/i915/i915_drv.h | 2 +- 1 file changed, 1 insertion(+), 1

Re: [Intel-gfx] [REPOST] [PATCH] drm/i915/ppgtt: Load address space after mi_set_context

2014-06-12 Thread Ben Widawsky
On Thu, Jun 12, 2014 at 07:16:48PM +0300, Ville Syrjälä wrote: On Thu, Jun 12, 2014 at 08:25:52AM -0700, Ben Widawsky wrote: On GEN8 the PDPs are saved and restored with context, which means we must set them after the context switch has occurred. If we do not do this, we end up saving

Re: [Intel-gfx] [PATCH] drm/i915: BDW: Adding Reserved PCI IDs.

2014-06-11 Thread Ben Widawsky
accelaration weren't enabled. v2: Reserved IDs doesn't have GT defined. So, creating a separated list. (Ben) Cc: Ben Widawsky b...@bwidawsk.net Signed-off-by: Rodrigo Vivi rodrigo.v...@intel.com --- include/drm/i915_pciids.h | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions

Re: [Intel-gfx] Sluggish performance after resume//Re: Bug Report - [Acer Aspire V5-122P] Unable to adjust screen brightness

2014-06-10 Thread Ben Widawsky
On Tue, Jun 10, 2014 at 01:33:51PM +0800, Aaron Lu wrote: +Ben Widawsky Daniel Vetter On 06/09/2014 03:38 PM, Lewis Toohey wrote: On 3 June 2014 02:22, Aaron Lu aaron...@intel.com wrote: On 05/30/2014 09:12 PM, Lewis Toohey wrote: Aaron I am in the process of performing

Re: [Intel-gfx] Sluggish performance after resume//Re: Bug Report - [Acer Aspire V5-122P] Unable to adjust screen brightness

2014-06-10 Thread Ben Widawsky
On Tue, Jun 10, 2014 at 08:59:32PM +0100, Lewis Toohey wrote: On 10 June 2014 17:58, Ben Widawsky b...@bwidawsk.net wrote: On Tue, Jun 10, 2014 at 01:33:51PM +0800, Aaron Lu wrote: +Ben Widawsky Daniel Vetter On 06/09/2014 03:38 PM, Lewis Toohey wrote: On 3 June 2014 02:22, Aaron Lu

Re: [Intel-gfx] [PATCH] drm/i915: BDW: Adding Reserved PCI IDs.

2014-06-10 Thread Ben Widawsky
) \ INTEL_VGA_DEVICE(0x22b0, info), \ -- 1.9.3 ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx -- Ben Widawsky, Intel Open Source Technology Center

Re: [Intel-gfx] [PATCH] [I-G-T]Add rc6_residency_counter subtest

2014-06-05 Thread Ben Widawsky
sign-off in mail added unnecessary whitespace replace assert with open coded abort So I've merged it with all those warts (except I fixed the signed-off-by). Please keep these things in mind next patch, and feel free to submit patches to fix these issues as well. [snip] -- Ben Widawsky, Intel

Re: [Intel-gfx] [PATCH] drm/i915: Implement WaDisableFenceDestinationToSLM:bdw

2014-06-04 Thread Ben Widawsky
is only needed for BDW E,F step. Issue: APDEV-3096 Signed-off-by: Michel Thierry michel.thie...@intel.com Docs say Gt3 only. Otherwise, it's Reviewed-by: Ben Widawsky b...@bwidawsk.net -- Ben Widawsky, Intel Open Source Technology Center ___ Intel-gfx

Re: [Intel-gfx] [PATCH] drm/i915: BDW: Adding missing cursor offsets.

2014-06-04 Thread Ben Widawsky
. Signed-off-by: Rodrigo Vivi rodrigo.v...@gmail.com Reviewed-by: Ben Widawsky b...@bwidawsk.net Should be cc: stable IMO [snip] -- Ben Widawsky, Intel Open Source Technology Center ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http

<    1   2   3   4   5   6   7   8   9   10   >