Re: [Intel-gfx] [PATCH] intel: merge latest i915_drm.h

2015-12-12 Thread Jesse Barnes
On 12/12/2015 07:16 AM, Emil Velikov wrote: > On 11 December 2015 at 21:55, Jesse Barnes wrote: >> Pick up context flags, softpin, etc. >> >> Signed-off-by: Jesse Barnes >> --- >> include/drm/i915_drm.h | 57 >> ++ >> 1 file changed, 48 insertions

[Intel-gfx] [PATCH igt 6/9] igt/kms_pipe_crc_basic: Replace stop_rings with igt_hang_ring

2015-12-12 Thread Chris Wilson
We can inject a real GPU hang for greater effect! Signed-off-by: Chris Wilson --- tests/kms_pipe_crc_basic.c | 55 -- 1 file changed, 4 insertions(+), 51 deletions(-) diff --git a/tests/kms_pipe_crc_basic.c b/tests/kms_pipe_crc_basic.c index a3292c2..

[Intel-gfx] [PATCH igt 9/9] igt/pm_rps: Trigger a real GPU reset

2015-12-12 Thread Chris Wilson
Signed-off-by: Chris Wilson --- tests/pm_rps.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/tests/pm_rps.c b/tests/pm_rps.c index 9f752f8..db23492 100644 --- a/tests/pm_rps.c +++ b/tests/pm_rps.c @@ -525,6 +525,13 @@ static void stabilize_check(int *freqs)

[Intel-gfx] [PATCH igt 8/9] igt/gem_workarounds: Convert to real GPU hang injection

2015-12-12 Thread Chris Wilson
Signed-off-by: Chris Wilson --- tests/gem_workarounds.c | 43 ++- 1 file changed, 6 insertions(+), 37 deletions(-) diff --git a/tests/gem_workarounds.c b/tests/gem_workarounds.c index 87c798b..90d4005 100644 --- a/tests/gem_workarounds.c +++ b/tests/gem_wo

[Intel-gfx] [PATCH igt 5/9] igt/gem_reset_stats: Convert from stop-rings to real hang injection

2015-12-12 Thread Chris Wilson
Signed-off-by: Chris Wilson --- tests/gem_reset_stats.c | 488 +++- 1 file changed, 147 insertions(+), 341 deletions(-) diff --git a/tests/gem_reset_stats.c b/tests/gem_reset_stats.c index 4cbbb4e..da4aae3 100644 --- a/tests/gem_reset_stats.c +++ b/tes

[Intel-gfx] [PATCH igt 3/9] igt/drv_hangman: Inject a true hang

2015-12-12 Thread Chris Wilson
Wean drv_hangman off the atrocious stop_rings and use a real GPU hang instead. Signed-off-by: Chris Wilson --- tests/drv_hangman.c | 66 - 1 file changed, 14 insertions(+), 52 deletions(-) diff --git a/tests/drv_hangman.c b/tests/drv_hangman.c

[Intel-gfx] [PATCH igt 7/9] igt/kms_flip: Convert over to real hang injection

2015-12-12 Thread Chris Wilson
Signed-off-by: Chris Wilson --- tests/kms_flip.c | 89 ++-- 1 file changed, 15 insertions(+), 74 deletions(-) diff --git a/tests/kms_flip.c b/tests/kms_flip.c index a3acc3d..356462e 100644 --- a/tests/kms_flip.c +++ b/tests/kms_flip.c @@ -776,7

[Intel-gfx] [PATCH igt 1/9] lib: Always double check igt_require_hang_ring() on use

2015-12-12 Thread Chris Wilson
If we move the igt_require() into the hang injector, this makes simple test cases even more convenient. More complex test cases can always do their own precursory check before settting up the test. However, this does embed the assumption that the first context we are called from is safe (i.e no i9

[Intel-gfx] [PATCH igt 2/9] lib: Expand igt_hang_ring() to select target context and various options

2015-12-12 Thread Chris Wilson
Some potential callers want to inject a hang into a particular context, some want to trigger an actual ban and others may or may not want to capture the associated error state. Expand the hang injection interface to suit all. Signed-off-by: Chris Wilson --- lib/igt_gt.c | 82

[Intel-gfx] [PATCH igt 4/9] igt/gem_ctx_exec: Convert from stop-rings to a real GPU hang/reset

2015-12-12 Thread Chris Wilson
Signed-off-by: Chris Wilson --- tests/gem_ctx_exec.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/gem_ctx_exec.c b/tests/gem_ctx_exec.c index 179e991..0ec898a 100644 --- a/tests/gem_ctx_exec.c +++ b/tests/gem_ctx_exec.c @@ -188,6 +188,8 @@ igt_main igt_s

Re: [Intel-gfx] [PATCH v2] PM / Runtime: Introduce pm_runtime_get_noidle

2015-12-12 Thread Chris Wilson
On Sat, Dec 12, 2015 at 09:40:45PM +0200, Imre Deak wrote: > On Sat, 2015-12-12 at 02:51 +0100, Rafael J. Wysocki wrote: > > +bool pm_runtime_get_if_in_use(struct device *dev) > > +{ > > + unsigned long flags; > > + bool retval; > > + > > + spin_lock_irqsave(&dev->power.lock, flags); > > +

Re: [Intel-gfx] [PATCH v2] PM / Runtime: Introduce pm_runtime_get_noidle

2015-12-12 Thread Imre Deak
On Sat, 2015-12-12 at 02:51 +0100, Rafael J. Wysocki wrote: > On Saturday, December 12, 2015 12:41:06 AM Rafael J. Wysocki wrote: > > On Saturday, December 12, 2015 12:21:43 AM Rafael J. Wysocki wrote: > > > On Friday, December 11, 2015 05:47:08 PM Imre Deak wrote: > > > > On pe, 2015-12-11 at 16:4

[Intel-gfx] [PATCH 3/3] drm/i915: Derive GEM requests from dma-fence

2015-12-12 Thread Chris Wilson
dma-buf provides a generic fence class for interoperation between drivers. Internally we use the request structure as a fence, and so with only a little bit of interfacing we can rebase those requests on top of dma-buf fences. This will allow us, in the future, to pass those fences back to userspac

[Intel-gfx] [PATCH 2/3] drm/i915: Move releasing of the GEM request from free to retire/cancel

2015-12-12 Thread Chris Wilson
If we move the release of the GEM request (i.e. decoupling it from the various lists used for client and context tracking) after it is complete (either by the GPU retiring the request, or by the caller cancelling the request), we can remove the requirement that the final unreference of the GEM requ

[Intel-gfx] [PATCH 1/3] drm/i915: Move GEM request routines to i915_gem_request.c

2015-12-12 Thread Chris Wilson
Migrate the request operations out of the main body of i915_gem.c and into their own C file for easier expansion. Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/Makefile | 1 + drivers/gpu/drm/i915/i915_drv.h | 186 +--- drivers/gpu/drm/i915/i915_gem.c |

[Intel-gfx] [PATCH v2] drm/i915: Convert trace-irq to the breadcrumb waiter

2015-12-12 Thread Chris Wilson
If we convert the tracing over from direct use of ring->irq_get() and over to the breadcrumb infrastructure, we only have a single user of the ring->irq_get and so we will be able to simplify the driver routines (eliminating the redundant validation and irq refcounting). v2: Move to a signalling f

Re: [Intel-gfx] [PATCH] intel: merge latest i915_drm.h

2015-12-12 Thread Emil Velikov
On 11 December 2015 at 21:55, Jesse Barnes wrote: > Pick up context flags, softpin, etc. > > Signed-off-by: Jesse Barnes > --- > include/drm/i915_drm.h | 57 > ++ > 1 file changed, 48 insertions(+), 9 deletions(-) > Any objections if we do this (a

[Intel-gfx] Information sought

2015-12-12 Thread Ian Bruntlett
Hi, I've got a couple of third hand computers using Intel graphics (Dell Optiplex GX50, HP Compaq dc 7600) with graphics problems - Dell becomes unusable, screen is all white with black squiggles after running updates on Ubuntu 14.04LTS- freedesktop bug 93173, dc 7600 screen works most of the time

Re: [Intel-gfx] [PATCH 5/5] drm: Enable markdown^Wasciidoc for gpu.tmpl

2015-12-12 Thread Daniel Vetter
On Fri, Dec 11, 2015 at 03:12:26PM -0700, Jonathan Corbet wrote: > On Wed, 25 Nov 2015 18:07:59 +0100 > Daniel Vetter wrote: > > > Unfortunately the entire improved docbook project died at KS in a > > massive bikeshed. So we need to carry this around in drm private trees > > forever :( > > I don