[Intel-gfx] [PATCH 05/20] drm/i915: Extending i915_gem_check_wedge to check engine reset in progress

2016-01-13 Thread Arun Siluvery
From: Tomas Elf i915_gem_wedge now returns a non-zero result in three different cases: 1. Legacy: A hang has been detected and full GPU reset is in progress. 2. Per-engine recovery: a. A single engine reference can be passed to the function, in which case only that engine will

[Intel-gfx] [PATCH 06/20] drm/i915: Reinstate hang recovery work queue.

2016-01-13 Thread Arun Siluvery
From: Tomas Elf There used to be a work queue separating the error handler from the hang recovery path, which was removed a while back in this commit: commit b8d24a06568368076ebd5a858a011699a97bfa42 Author: Mika Kuoppala Date: Wed Jan 28 17:03:14 2015 +0200

[Intel-gfx] [PATCH 20/20] drm/i915: Enable TDR / per-engine hang recovery

2016-01-13 Thread Arun Siluvery
From: Tomas Elf This is the final enablement patch for per-engine hang recovery. It sets up per-engine hang recovery to be used per default in favour of full GPU reset. Legacy full GPU reset will no longer be the preferred mode of hang recovery and will only be used as a fall-back in case of freq

[Intel-gfx] [PATCH 11/20] drm/i915: Fake lost context event interrupts through forced CSB checking.

2016-01-13 Thread Arun Siluvery
From: Tomas Elf *** General *** A recurring issue during long-duration operations testing of concurrent rendering tasks with intermittent hangs is that context completion interrupts following engine resets are sometimes lost. This becomes a real problem since the hardware might have completed a p

[Intel-gfx] [PATCH 08/20] drm/i915: Watchdog timeout: IRQ handler for gen8

2016-01-13 Thread Arun Siluvery
From: Tomas Elf *** General *** Watchdog timeout (or "media engine reset") is a feature that allows userland applications to enable hang detection on individual batch buffers. The detection mechanism itself is mostly bound to the hardware and the only thing that the driver needs to do to support

[Intel-gfx] [PATCH 07/20] drm/i915: Watchdog timeout: Hang detection integration into error handler

2016-01-13 Thread Arun Siluvery
From: Tomas Elf This patch enables watchdog timeout hang detection as an entrypoint into the driver error handler. This form of hang detection overrides the promotion logic normally used by the periodic hang checker and instead allows for direct access to the per-engine hang recovery path. NOTE:

[Intel-gfx] [PATCH 15/20] drm/i915: Port of Added scheduler support to __wait_request() calls

2016-01-13 Thread Arun Siluvery
From: Tomas Elf This is a partial port of the following patch from John Harrison's GPU scheduler patch series: (patch sent to Intel-GFX with the subject line "[Intel-gfx] [RFC 19/39] drm/i915: Added scheduler support to __wait_request() calls" on Fri 17 July 2015) Author: John Harrison

[Intel-gfx] [PATCH 09/20] drm/i915: Watchdog timeout: Ringbuffer command emission for gen8

2016-01-13 Thread Arun Siluvery
From: Tomas Elf *** General *** Watchdog timeout (or "media engine reset") is a feature that allows userland applications to enable hang detection on individual batch buffers. The detection mechanism itself is mostly bound to the hardware and the only thing that the driver needs to do to support

[Intel-gfx] [PATCH 10/20] drm/i915: Watchdog timeout: DRM kernel interface enablement

2016-01-13 Thread Arun Siluvery
From: Tomas Elf Final enablement patch for GPU hang recovery using watchdog timeout. Added execbuf flag for watchdog timeout in DRM kernel interface. Signed-off-by: Tomas Elf --- drivers/gpu/drm/i915/intel_lrc.c | 6 ++ include/uapi/drm/i915_drm.h | 5 - 2 files changed, 6 inserti

[Intel-gfx] [PATCH 13/20] drm/i915: Test infrastructure for context state inconsistency simulation

2016-01-13 Thread Arun Siluvery
From: Tomas Elf Added debugfs functions and embedded test infrastructure in the context event interrupt handler for simulating the loss of context event interrupts so that a context submission state inconsistency can be induced. This is useful for testing the consistency checker pre-stage to the

[Intel-gfx] [PATCH 19/20] drm/i915: drm/i915 changes to simulated hangs

2016-01-13 Thread Arun Siluvery
From: Tim Gore Simulated hangs, as used by drv_hangman and some other IGT tests, are not handled correctly with the new per-engine hang recovery mode. This patch fixes several issues needed to get them working in the execlist case. 1) The "simulated" hang is effected by not submitting a particul

[Intel-gfx] [PATCH 12/20] drm/i915: Debugfs interface for per-engine hang recovery.

2016-01-13 Thread Arun Siluvery
From: Tomas Elf 1. The i915_wedged_set() function now allows for both legacy full GPU reset and per-engine reset of one or more engines at a time: a) Legacy hang recovery by passing 0. b) Multiple engine hang recovery by passing in an engine flag mask where bit 0 corr

[Intel-gfx] [PATCH 14/20] drm/i915: TDR/watchdog trace points.

2016-01-13 Thread Arun Siluvery
From: Tomas Elf Defined trace points and sprinkled the usage of these throughout the TDR/watchdog implementation. The following trace points are supported: 1. trace_i915_tdr_gpu_recovery: Called at the onset of the full GPU reset recovery path. 2. trace_i915_tdr_engine_

[Intel-gfx] [PATCH 16/20] drm/i915: Fix __i915_wait_request() behaviour during hang detection.

2016-01-13 Thread Arun Siluvery
From: Tomas Elf Use is_locked parameter in __i915_wait_request() to determine if a thread should be forced to back off and retry or if it can continue sleeping. Don't return -EIO from __i915_wait_request since that is bad for the upper layers, only -EAGAIN to signify reset in progress. (unless th

[Intel-gfx] [PATCH 18/20] drm/i915: TDR / per-engine hang recovery kernel docs

2016-01-13 Thread Arun Siluvery
From: Tomas Elf Signed-off-by: Tomas Elf --- Documentation/DocBook/gpu.tmpl | 476 drivers/gpu/drm/i915/i915_irq.c | 8 +- 2 files changed, 483 insertions(+), 1 deletion(-) diff --git a/Documentation/DocBook/gpu.tmpl b/Documentation/DocBook/gpu.tmpl

[Intel-gfx] [PATCH 17/20] drm/i915: Extended error state with TDR count, watchdog count and engine reset count

2016-01-13 Thread Arun Siluvery
From: Tomas Elf These new TDR-specific metrics have previously been added to i915_hangcheck_info() in debugfs. During design review Chris Wilson asked for these metrics to be added to the error state as well. Signed-off-by: Tomas Elf Cc: Chris Wilson Cc: Mika Kuoppala --- drivers/gpu/drm/i91

[Intel-gfx] [PATCH] drm/i915: Demote user facing DMC firmware load failure message

2016-01-13 Thread Chris Wilson
This is an expected error given the lack of the firmware so emit it at KERN_NOTICE and not KERN_ERROR. Also include the firmware URL in the user facing message so that the user can investigate and fix the issue on their own, and also explain the consequence in plain language. The complete failure

Re: [Intel-gfx] [PATCH] drm/i915: Expose exec parameter to force non IA-Coherent for Gen9+

2016-01-13 Thread Harasimiuk, Artur
> -Original Message- > From: Intel-gfx [mailto:intel-gfx-boun...@lists.freedesktop.org] On Behalf > Of Arun Siluvery > Sent: Wednesday, January 13, 2016 5:09 PM > To: Gordon, David S ; intel- > g...@lists.freedesktop.org > Subject: Re: [Intel-gfx] [PATCH] drm/i915: Expose exec parameter to

Re: [Intel-gfx] [PATCH] drm/i915: Demote user facing DMC firmware load failure message

2016-01-13 Thread Damien Lespiau
On Wed, Jan 13, 2016 at 05:38:15PM +, Chris Wilson wrote: > This is an expected error given the lack of the firmware so emit it at > KERN_NOTICE and not KERN_ERROR. Also include the firmware URL in the > user facing message so that the user can investigate and fix the issue > on their own, and

Re: [Intel-gfx] [PATCH] drm/i915: Force ordering on request submission and hangcheck

2016-01-13 Thread Chris Wilson
On Wed, Jan 13, 2016 at 07:04:53PM +0200, Mika Kuoppala wrote: > Hangcheck is run on irq context and might be active on a s/irq/process/ that we pretend is irq-like. > completely different CPU that is submitting requests. And as > we have been very careful not to add locking to hangcheck to guard

[Intel-gfx] [RFC 2/9] staging/android/sync: add sync_fence_create_dma

2016-01-13 Thread John . C . Harrison
From: Maarten Lankhorst This allows users of dma fences to create a android fence. v0.2: Added kerneldoc. (Tvrtko Ursulin). v0.4: Updated comments from review feedback by Maarten. Signed-off-by: Maarten Lankhorst Signed-off-by: Tvrtko Ursulin Cc: Maarten Lankhorst Cc: Daniel Vetter Cc: Jes

[Intel-gfx] [RFC 9/9] drm/i915: Add sync support to the scheduler statistics and status dump

2016-01-13 Thread John . C . Harrison
From: John Harrison There are useful statistics and debug information about fences that can be returned via the scheduler's existing reporting mechanisms (sysfs and debug output). These changes were previously part of the patches that originally added those mechanisms. However, as the sync framew

[Intel-gfx] [RFC 0/9] Add native sync support to i915 driver

2016-01-13 Thread John . C . Harrison
From: John Harrison This patch set was originally part of the struct fence and scheduler patch sets. However, it relies on de-staging the sync framework and that is now being done by another group. Hence these patches had to be split out into a separate series that can be merged after the de-stag

[Intel-gfx] [RFC 1/9] staging/android/sync: Support sync points created from dma-fences

2016-01-13 Thread John . C . Harrison
From: Maarten Lankhorst Debug output assumes all sync points are built on top of Android sync points and when we start creating them from dma-fences will NULL ptr deref unless taught about this. v0.4: Corrected patch ownership. v0.5: Removed redundant braces to keep style checker happy Signed-

[Intel-gfx] [RFC 3/9] staging/android/sync: Move sync framework out of staging

2016-01-13 Thread John . C . Harrison
From: John Harrison The sync framework is now used by the i915 driver. Therefore it can be moved out of staging and into the regular tree. Also, the public interfaces can actually be made public and exported. v0.3: New patch for series. Signed-off-by: John Harrison Signed-off-by: Geoff Miller

[Intel-gfx] [RFC 5/9] android/sync: Fix reversed sense of signaled fence

2016-01-13 Thread John . C . Harrison
From: Peter Lawthers In the 3.14 kernel, a signaled fence was indicated by the status field == 1. In 4.x, a status == 0 indicates signaled, status < 0 indicates error, and status > 0 indicates active. This patch wraps the check for a signaled fence in a function so that callers no longer needs t

[Intel-gfx] [RFC 8/9] drm/i915: Connecting execbuff fences to scheduler

2016-01-13 Thread John . C . Harrison
From: John Harrison The scheduler now supports sync framework fences being associated with batch buffers. The execbuff IOCTL allows such fences to be passed in from user land. This patch wires the two together so that the IOCTL no longer needs to stall on the fence immediately. Instead the stall

[Intel-gfx] [RFC 4/9] android/sync: Improved debug dump to dmesg

2016-01-13 Thread John . C . Harrison
From: John Harrison The sync code has a facility for dumping current state information via debugfs. It also has a way to re-use the same code for dumping to the kernel log on an internal error. However, the redirection was rather clunky and split the output across multiple prints at arbitrary bou

[Intel-gfx] [RFC 7/9] drm/i915: Add sync wait support to scheduler

2016-01-13 Thread John . C . Harrison
From: John Harrison There is a sync framework to allow work for multiple independent systems to be synchronised with each other but without stalling the CPU whether in the application or the driver. This patch adds support for this framework to the GPU scheduler. Batch buffers can now have sync

[Intel-gfx] [RFC 6/9] drm/i915: Add sync framework support to execbuff IOCTL

2016-01-13 Thread John . C . Harrison
From: John Harrison Various projects desire a mechanism for managing dependencies between work items asynchronously. This can also include work items across complete different and independent systems. For example, an application wants to retrieve a frame from a video in device, using it for rende

Re: [Intel-gfx] ✗ failure: Fi.CI.BAT

2016-01-13 Thread Chris Wilson
On Wed, Jan 13, 2016 at 05:17:03PM +0100, Daniel Vetter wrote: > On Wed, Jan 13, 2016 at 03:13:40PM -, Patchwork wrote: > > == Summary == > > > > Built on 4d09810b01441f9124c072a866f608b748f92f6c drm-intel-nightly: > > 2016y-01m-13d-12h-32m-08s UTC integration manifest > > > > Test gem_ctx_b

Re: [Intel-gfx] [PATCH v1] drm/i915/guc: Fix a memory leak where guc->execbuf_client is not freed

2016-01-13 Thread Dave Gordon
On 12/01/16 23:17, yu@intel.com wrote: From: Alex Dai During driver unloading, the guc_client created for command submission needs to be released to avoid memory leak. The struct_mutex needs to be held before tearing down GuC. v1: Move i915_guc_submission_disable out of i915_guc_submissio

Re: [Intel-gfx] [PATCH v1] drm/i915/guc: Fix a memory leak where guc->execbuf_client is not freed

2016-01-13 Thread Yu Dai
On 01/13/2016 10:15 AM, Dave Gordon wrote: On 12/01/16 23:17, yu@intel.com wrote: > From: Alex Dai > > During driver unloading, the guc_client created for command submission > needs to be released to avoid memory leak. > > The struct_mutex needs to be held before tearing down GuC. > > v1:

Re: [Intel-gfx] [RFC 6/9] drm/i915: Add sync framework support to execbuff IOCTL

2016-01-13 Thread Chris Wilson
On Wed, Jan 13, 2016 at 05:57:32PM +, john.c.harri...@intel.com wrote: > static int > i915_gem_do_execbuffer(struct drm_device *dev, void *data, > struct drm_file *file, > @@ -1428,6 +1465,17 @@ i915_gem_do_execbuffer(struct drm_device *dev, void > *data, > u32 dis

Re: [Intel-gfx] [PATCH v3 1/3] drm/i915: simplify allocation of driver-internal requests

2016-01-13 Thread Dave Gordon
On 13/01/16 13:41, Chris Wilson wrote: On Wed, Jan 13, 2016 at 01:27:51PM +, Dave Gordon wrote: On 12/01/16 14:27, Chris Wilson wrote: On Tue, Jan 12, 2016 at 01:56:48PM +, Chris Wilson wrote: But we were removing the engine->default_context as it complicated the rest of the code. I st

Re: [Intel-gfx] [PATCH v1] drm/i915/guc: Fix a memory leak where guc->execbuf_client is not freed

2016-01-13 Thread Dave Gordon
On 13/01/16 18:17, Yu Dai wrote: On 01/13/2016 10:15 AM, Dave Gordon wrote: On 12/01/16 23:17, yu@intel.com wrote: > From: Alex Dai > > During driver unloading, the guc_client created for command submission > needs to be released to avoid memory leak. > > The struct_mutex needs to be held

Re: [Intel-gfx] [RFC 3/9] staging/android/sync: Move sync framework out of staging

2016-01-13 Thread Gustavo Padovan
Hi John, 2016-01-13 john.c.harri...@intel.com : > From: John Harrison > > The sync framework is now used by the i915 driver. Therefore it can be > moved out of staging and into the regular tree. Also, the public > interfaces can actually be made public and exported. I also have been working on

Re: [Intel-gfx] [PATCH v3 1/8] drm/i915/gen9: Add framework to whitelist specific GPU registers

2016-01-13 Thread Chris Wilson
On Wed, Jan 13, 2016 at 03:38:15PM +, Arun Siluvery wrote: > Some of the HW registers are privileged and cannot be written to from > non-privileged batch buffers coming from userspace unless they are added to > the HW whitelist. This whitelist is maintained by HW and it is different from > SW w

Re: [Intel-gfx] [RFC 2/9] staging/android/sync: add sync_fence_create_dma

2016-01-13 Thread Gustavo Padovan
Hi John, 2016-01-13 john.c.harri...@intel.com : > From: Maarten Lankhorst > > This allows users of dma fences to create a android fence. > > v0.2: Added kerneldoc. (Tvrtko Ursulin). > > v0.4: Updated comments from review feedback by Maarten. > > Signed-off-by: Maarten Lankhorst > Signed-off

[Intel-gfx] [PATCH v2] drm/i915/guc: Fix a memory leak where guc->execbuf_client is not freed

2016-01-13 Thread yu . dai
From: Alex Dai During driver unloading, the guc_client created for command submission needs to be released to avoid memory leak. The struct_mutex needs to be held before tearing down GuC. v1: Move i915_guc_submission_disable out of i915_guc_submission_fini and take struct_mutex lock before

Re: [Intel-gfx] [PATCH] drm/i915: Allow i915_gem_object_get_page() on userptr as well

2016-01-13 Thread Dave Gordon
On 12/01/16 23:49, Chris Wilson wrote: On Tue, Jan 12, 2016 at 11:40:06PM +, Chris Wilson wrote: struct drm_i915_gem_object_ops { + const unsigned int flags; Bleh, const is redundant as the definitions should be const themselves. -Chris Yeah, the const-ness attaches to the instan

Re: [Intel-gfx] [PATCH v2] drm/i915/guc: Fix a memory leak where guc->execbuf_client is not freed

2016-01-13 Thread Dave Gordon
On 13/01/16 19:01, yu@intel.com wrote: From: Alex Dai During driver unloading, the guc_client created for command submission needs to be released to avoid memory leak. The struct_mutex needs to be held before tearing down GuC. v1: Move i915_guc_submission_disable out of i915_guc_submissio

Re: [Intel-gfx] [PATCH v3 1/8] drm/i915/gen9: Add framework to whitelist specific GPU registers

2016-01-13 Thread Arun Siluvery
On 13/01/2016 19:01, Chris Wilson wrote: On Wed, Jan 13, 2016 at 03:38:15PM +, Arun Siluvery wrote: Some of the HW registers are privileged and cannot be written to from non-privileged batch buffers coming from userspace unless they are added to the HW whitelist. This whitelist is maintained

Re: [Intel-gfx] [PATCH v10] drm/i915: Extend LRC pinning to cover GPU context writeback

2016-01-13 Thread Yu Dai
This version resolved the issue (kernel bug check in intel_lr_context_clean_ring) I reported on previous versions. Verified by igt drv_module_reload_basic, gem_close_race and -t basic tests. Reviewed-by: Alex Dai On 01/13/2016 08:19 AM, Nick Hoath wrote: Use the first retired request on a ne

Re: [Intel-gfx] [PATCH v3] drm/i915: Do not call API requiring struct_mutex where it is not available

2016-01-13 Thread Chris Wilson
On Wed, Jan 13, 2016 at 04:16:21PM +, Tvrtko Ursulin wrote: > From: Tvrtko Ursulin > > LRC code was calling GEM API like i915_gem_obj_ggtt_offset from > places where the struct_mutex cannot be grabbed (irq handlers). > > To avoid that this patch caches some interesting bits and values > in t

Re: [Intel-gfx] [PATCH v3 1/8] drm/i915/gen9: Add framework to whitelist specific GPU registers

2016-01-13 Thread Chris Wilson
On Wed, Jan 13, 2016 at 07:14:56PM +, Arun Siluvery wrote: > On 13/01/2016 19:01, Chris Wilson wrote: > >On Wed, Jan 13, 2016 at 03:38:15PM +, Arun Siluvery wrote: > >>Some of the HW registers are privileged and cannot be written to from > >>non-privileged batch buffers coming from userspac

Re: [Intel-gfx] [RFC 3/9] staging/android/sync: Move sync framework out of staging

2016-01-13 Thread Gustavo Padovan
2016-01-13 john.c.harri...@intel.com : > From: John Harrison > > The sync framework is now used by the i915 driver. Therefore it can be > moved out of staging and into the regular tree. Also, the public > interfaces can actually be made public and exported. > > v0.3: New patch for series. > >

Re: [Intel-gfx] [PATCH 004/190] drm/i915: Fix some invalid requests cancellations

2016-01-13 Thread Chris Wilson
On Tue, Jan 12, 2016 at 06:16:21PM +, Dave Gordon wrote: > On 11/01/16 09:16, Chris Wilson wrote: > >As we add the VMA to the request early, it may be cancelled during > >execbuf reservation. This will leave the context object pointing to a > >dangling request; i915_wait_request() simply skips

Re: [Intel-gfx] [PATCH v3 1/3] drm/i915: simplify allocation of driver-internal requests

2016-01-13 Thread Chris Wilson
On Wed, Jan 13, 2016 at 06:46:08PM +, Dave Gordon wrote: > On 13/01/16 13:41, Chris Wilson wrote: > >On Wed, Jan 13, 2016 at 01:27:51PM +, Dave Gordon wrote: > >>On 12/01/16 14:27, Chris Wilson wrote: > >>>On Tue, Jan 12, 2016 at 01:56:48PM +, Chris Wilson wrote: > But we were remov

Re: [Intel-gfx] [PATCH 04/20] drm/i915: TDR / per-engine hang detection

2016-01-13 Thread Chris Wilson
On Wed, Jan 13, 2016 at 05:28:16PM +, Arun Siluvery wrote: > From: Tomas Elf > > With the per-engine hang recovery path already in place this patch adds > per-engine hang detection by letting the periodic hang checker detect hangs on > individual engines and communicate this to the error hand

Re: [Intel-gfx] [PATCH 05/20] drm/i915: Extending i915_gem_check_wedge to check engine reset in progress

2016-01-13 Thread Chris Wilson
On Wed, Jan 13, 2016 at 05:28:17PM +, Arun Siluvery wrote: > From: Tomas Elf > > i915_gem_wedge now returns a non-zero result in three different cases: > > 1. Legacy: A hang has been detected and full GPU reset is in progress. > > 2. Per-engine recovery: > > a. A single engine refere

Re: [Intel-gfx] [PATCH 06/20] drm/i915: Reinstate hang recovery work queue.

2016-01-13 Thread Chris Wilson
On Wed, Jan 13, 2016 at 05:28:18PM +, Arun Siluvery wrote: > From: Tomas Elf > > There used to be a work queue separating the error handler from the hang > recovery path, which was removed a while back in this commit: > > commit b8d24a06568368076ebd5a858a011699a97bfa42 > Author:

Re: [Intel-gfx] [PATCH 07/20] drm/i915: Watchdog timeout: Hang detection integration into error handler

2016-01-13 Thread Chris Wilson
On Wed, Jan 13, 2016 at 05:28:19PM +, Arun Siluvery wrote: > /* i915_irq.c */ > void i915_queue_hangcheck(struct drm_device *dev); > -__printf(4, 5) > -void i915_handle_error(struct drm_device *dev, u32 engine_mask, bool wedged, > -const char *fmt, ...); > +__printf(5, 6)

Re: [Intel-gfx] [PATCH 03/20] drm/i915: TDR / per-engine hang recovery support for gen8.

2016-01-13 Thread Chris Wilson
On Wed, Jan 13, 2016 at 05:28:15PM +, Arun Siluvery wrote: > @@ -596,6 +598,16 @@ static int i915_drm_suspend(struct drm_device *dev) > + atomic_clear_mask(I915_RESET_IN_PROGRESS_FLAG, > + &dev_priv->gpu_error.reset_counter); This could be its own little patch as we could appl

Re: [Intel-gfx] [PATCH 03/20] drm/i915: TDR / per-engine hang recovery support for gen8.

2016-01-13 Thread Chris Wilson
On Wed, Jan 13, 2016 at 05:28:15PM +, Arun Siluvery wrote: > diff --git a/drivers/gpu/drm/i915/i915_params.c > b/drivers/gpu/drm/i915/i915_params.c > index 8d90c25..5cf9c11 100644 > --- a/drivers/gpu/drm/i915/i915_params.c > +++ b/drivers/gpu/drm/i915/i915_params.c > @@ -37,6 +37,8 @@ struct i

[Intel-gfx] [PATCH] drm-intel: add notes about handling -nightly rebuilds

2016-01-13 Thread Daniel Vetter
Also try to polish the formatting a bit. Signed-off-by: Daniel Vetter --- drm-intel.rst | 60 ++- 1 file changed, 59 insertions(+), 1 deletion(-) diff --git a/drm-intel.rst b/drm-intel.rst index 12bceb4e5324..e5c54d3d64ed 100644 --- a/drm-

[Intel-gfx] [PATCH] drm/i915: Sink CRC: tune down error message at stop to debug_kms.

2016-01-13 Thread Rodrigo Vivi
When we stop the sink CRC calculation we wait a while until the counter is reset to zero and return -ETIMEDOUT. However the sink crc was calculated already by this point so we just ignore this return at the main function. So, let's also ignore the message and put it as a debug message instead of a

Re: [Intel-gfx] [PATCH] drm/omap: Nuke close hooks

2016-01-13 Thread Laurent Pinchart
Hi Daniel, Thank you for the patch. On Wednesday 13 January 2016 12:05:14 Daniel Vetter wrote: > Again since the core takes care of this we can remove them. While at > it also remove the postclose hook, it's empty. > > v2: Laurent pointed me at even more code to delete. > > v3: Remove unused fl

[Intel-gfx] [PATCH] drm/i915: Make sure DC writes are coherent on flush.

2016-01-13 Thread Francisco Jerez
We need to set the DC FLUSH PIPE_CONTROL bit on Gen7+ to guarantee that writes performed via the HDC are visible in memory. Fixes an intermittent failure in a Piglit test that writes to a BO from a shader using GL atomic counters (implemented as HDC untyped atomics) and then expects the memory to

Re: [Intel-gfx] [RFC 3/9] staging/android/sync: Move sync framework out of staging

2016-01-13 Thread Greg Kroah-Hartman
On Wed, Jan 13, 2016 at 05:57:29PM +, john.c.harri...@intel.com wrote: > From: John Harrison > > The sync framework is now used by the i915 driver. Therefore it can be > moved out of staging and into the regular tree. Also, the public > interfaces can actually be made public and exported. >

Re: [Intel-gfx] [PATCH] drm/i915: Make sure DC writes are coherent on flush.

2016-01-13 Thread Mark Janes
Tested-by: Mark Janes Francisco Jerez writes: > We need to set the DC FLUSH PIPE_CONTROL bit on Gen7+ to guarantee > that writes performed via the HDC are visible in memory. Fixes an > intermittent failure in a Piglit test that writes to a BO from a > shader using GL atomic counters (implement

[Intel-gfx] [PATCH 01/11] drm/i915: Add support for mapping an object page by page

2016-01-13 Thread ankitprasad . r . sharma
From: Chris Wilson Introduced a new vm specfic callback insert_page() to program a single pte in ggtt or ppgtt. This allows us to map a single page in to the mappable aperture space. This can be iterated over to access the whole object by using space as meagre as page size. Signed-off-by: Chris

[Intel-gfx] [PATCH 02/11] drm/i915: Introduce i915_gem_object_get_dma_address()

2016-01-13 Thread ankitprasad . r . sharma
From: Chris Wilson This utility function is a companion to i915_gem_object_get_page() that uses the same cached iterator for the scatterlist to perform fast sequential lookup of the dma address associated with any page within the object. Signed-off-by: Chris Wilson Signed-off-by: Ankitprasad Sh

[Intel-gfx] [PATCH v14 0/11] Support for creating/using Stolen memory backed objects

2016-01-13 Thread ankitprasad . r . sharma
From: Ankitprasad Sharma This patch series adds support for creating/using Stolen memory backed objects. Despite being a unified memory architecture (UMA) some bits of memory are more equal than others. In particular we have the thorny issue of stolen memory, memory stolen from the system by the

[Intel-gfx] [PATCH 08/11] drm/i915: Support for pread/pwrite from/to non shmem backed objects

2016-01-13 Thread ankitprasad . r . sharma
From: Ankitprasad Sharma This patch adds support for extending the pread/pwrite functionality for objects not backed by shmem. The access will be made through gtt interface. This will cover objects backed by stolen memory as well as other non-shmem backed objects. v2: Drop locks around slow_user

[Intel-gfx] [PATCH 06/11] drm/i915: Propagating correct error codes to the userspace

2016-01-13 Thread ankitprasad . r . sharma
From: Ankitprasad Sharma Propagating correct error codes to userspace by using ERR_PTR and PTR_ERR macros for stolen memory based object allocation. We generally return -ENOMEM to the user whenever there is a failure in object allocation. This patch helps user to identify the correct reason for t

[Intel-gfx] [PATCH 03/11] drm/i915: Use insert_page for pwrite_fast

2016-01-13 Thread ankitprasad . r . sharma
From: Ankitprasad Sharma In pwrite_fast, map an object page by page if obj_ggtt_pin fails. First, we try a nonblocking pin for the whole object (since that is fastest if reused), then failing that we try to grab one page in the mappable aperture. It also allows us to handle objects larger than th

[Intel-gfx] [PATCH 07/11] drm/i915: Add support for stealing purgable stolen pages

2016-01-13 Thread ankitprasad . r . sharma
From: Chris Wilson If we run out of stolen memory when trying to allocate an object, see if we can reap enough purgeable objects to free up enough contiguous free space for the allocation. This is in principle very much like evicting objects to free up enough contiguous space in the vma when bind

[Intel-gfx] [PATCH 10/11] acpi: Export acpi_bus_type

2016-01-13 Thread ankitprasad . r . sharma
From: Ankitprasad Sharma Some modules, like i915.ko, needs to detect when certain ACPI features are active inorder to prevent corruption on contended resources. In particular, use of BIOS RapidStart Technology may corrupt the contents of the reserved graphics memory, due to unalarmed hibernation.

[Intel-gfx] [PATCH 05/11] drm/i915: Support for creating Stolen memory backed objects

2016-01-13 Thread ankitprasad . r . sharma
From: Ankitprasad Sharma Extend the drm_i915_gem_create structure to add support for creating Stolen memory backed objects. Added a new flag through which user can specify the preference to allocate the object from stolen memory, which if set, an attempt will be made to allocate the object from s

[Intel-gfx] [PATCH 09/11] drm/i915: Migrate stolen objects before hibernation

2016-01-13 Thread ankitprasad . r . sharma
From: Chris Wilson Ville reminded us that stolen memory is not preserved across hibernation, and a result of this was that context objects now being allocated from stolen were being corrupted on S4 and promptly hanging the GPU on resume. We want to utilise stolen for as much as possible (nothing

[Intel-gfx] [PATCH 11/11] drm/i915: Disable use of stolen area by User when Intel RST is present

2016-01-13 Thread ankitprasad . r . sharma
From: Ankitprasad Sharma The BIOS RapidStartTechnology may corrupt the stolen memory across S3 suspend due to unalarmed hibernation, in which case we will not be able to preserve the User data stored in the stolen region. Hence this patch tries to identify presence of the RST device on the ACPI b

[Intel-gfx] [PATCH 04/11] drm/i915: Clearing buffer objects via CPU/GTT

2016-01-13 Thread ankitprasad . r . sharma
From: Ankitprasad Sharma This patch adds support for clearing buffer objects via CPU/GTT. This is particularly useful for clearing out the non shmem backed objects. Currently intend to use this only for buffers allocated from stolen region. v2: Added kernel doc for i915_gem_clear_object(), corre

[Intel-gfx] ✗ failure: Fi.CI.BAT

2016-01-13 Thread Patchwork
== Summary == Built on 058740f8fced6851aeda34f366f5330322cd585f drm-intel-nightly: 2016y-01m-13d-17h-07m-44s UTC integration manifest Test gem_ctx_basic: pass -> FAIL (bdw-ultra) Test gem_ctx_param_basic: Subgroup non-root-set: pass -> DM

Re: [Intel-gfx] [PATCH] drm-intel: add notes about handling -nightly rebuilds

2016-01-13 Thread Jani Nikula
Nitpick, should have [maintainer-tools PATCH] in the subject. On Wed, 13 Jan 2016, Daniel Vetter wrote: > Also try to polish the formatting a bit. > > Signed-off-by: Daniel Vetter > --- > drm-intel.rst | 60 > ++- > 1 file changed, 59 in

[Intel-gfx] ✓ success: Fi.CI.BAT

2016-01-13 Thread Patchwork
== Summary == Built on 058740f8fced6851aeda34f366f5330322cd585f drm-intel-nightly: 2016y-01m-13d-17h-07m-44s UTC integration manifest Test gem_storedw_loop: Subgroup basic-render: dmesg-warn -> PASS (bdw-nuci7) dmesg-warn -> PASS (skl-i7k-2) UN

Re: [Intel-gfx] [PATCH] drm/i915: Make sure DC writes are coherent on flush.

2016-01-13 Thread Jani Nikula
On Thu, 14 Jan 2016, Francisco Jerez wrote: > We need to set the DC FLUSH PIPE_CONTROL bit on Gen7+ to guarantee > that writes performed via the HDC are visible in memory. Fixes an > intermittent failure in a Piglit test that writes to a BO from a > shader using GL atomic counters (implemented as

<    1   2