[Intel-gfx] [RFC v2] GuC firmware versioning change

2018-10-22 Thread Jeff McGee
See https://lists.freedesktop.org/archives/intel-gfx/2018-October/178452.html for RFC v1 and the helpful feedback incorporated into this v2. The GuC firmware team is proposing a change to the firmware versioning scheme. The goal is to more accurately track the firmware interface to help users mana

Re: [Intel-gfx] [RFC] GuC firmware versioning change

2018-10-18 Thread Jeff McGee
On Thu, Oct 18, 2018 at 11:12:21AM -0700, Rodrigo Vivi wrote: > On Thu, Oct 18, 2018 at 10:32:37AM -0700, Jeff McGee wrote: > > On Thu, Oct 18, 2018 at 11:57:06AM +0200, Daniel Vetter wrote: > > > On Fri, Oct 12, 2018 at 11:45 PM Jeff McGee wrote: > > > > > &g

Re: [Intel-gfx] [RFC] GuC firmware versioning change

2018-10-18 Thread Jeff McGee
On Thu, Oct 18, 2018 at 11:57:06AM +0200, Daniel Vetter wrote: > On Fri, Oct 12, 2018 at 11:45 PM Jeff McGee wrote: > > > > On Fri, Oct 12, 2018 at 02:33:26PM -0700, Jeff McGee wrote: > > > On Fri, Oct 12, 2018 at 01:51:46PM -0700, Rodrigo Vivi wrote: > > > >

Re: [Intel-gfx] [RFC] GuC firmware versioning change

2018-10-12 Thread Jeff McGee
On Fri, Oct 12, 2018 at 02:33:26PM -0700, Jeff McGee wrote: > On Fri, Oct 12, 2018 at 01:51:46PM -0700, Rodrigo Vivi wrote: > > On Fri, Oct 12, 2018 at 01:24:30PM -0700, Jeff McGee wrote: > > > The GuC firmware team is proposing a change to the firmware versioning > > >

Re: [Intel-gfx] [RFC] GuC firmware versioning change

2018-10-12 Thread Jeff McGee
On Fri, Oct 12, 2018 at 01:51:46PM -0700, Rodrigo Vivi wrote: > On Fri, Oct 12, 2018 at 01:24:30PM -0700, Jeff McGee wrote: > > The GuC firmware team is proposing a change to the firmware versioning > > scheme. > > The goal is to more accurately track the firmware in

Re: [Intel-gfx] [RFC] GuC firmware versioning change

2018-10-12 Thread Jeff McGee
Forgot to add some people on CC. On Fri, Oct 12, 2018 at 01:24:30PM -0700, Jeff McGee wrote: > The GuC firmware team is proposing a change to the firmware versioning scheme. > The goal is to more accurately track the firmware interface to help users > manage dependencies on that inter

[Intel-gfx] [RFC] GuC firmware versioning change

2018-10-12 Thread Jeff McGee
The GuC firmware team is proposing a change to the firmware versioning scheme. The goal is to more accurately track the firmware interface to help users manage dependencies on that interface. The proposed scheme is based on semver.org with some additions to handle branching. The proposed version n

Re: [Intel-gfx] [PATCH] drm/i915/guc: Disable preemption if it fails

2018-06-01 Thread Jeff McGee
On Thu, May 31, 2018 at 10:20:54PM +0100, Chris Wilson wrote: > Quoting Singh, Satyeshwar (2018-05-31 22:17:25) > > Hi Chris, > > Isn't this dependent upon the workload submitted to the GuC? Meaning we > > have one workload that refused to be preempted (really long shader for > > example) but it

Re: [Intel-gfx] [PATCH 08/11] drm/i915/execlists: Force preemption via reset on timeout

2018-03-27 Thread Jeff McGee
On Mon, Mar 26, 2018 at 12:50:41PM +0100, Chris Wilson wrote: > Install a timer when trying to preempt on behalf of an important > context such that if the active context does not honour the preemption > request within the desired timeout, then we reset the GPU to allow the > important context to r

Re: [Intel-gfx] [PATCH 08/11] drm/i915/execlists: Force preemption via reset on timeout

2018-03-27 Thread Jeff McGee
On Tue, Mar 27, 2018 at 09:51:20AM +0100, Tvrtko Ursulin wrote: > > On 26/03/2018 12:50, Chris Wilson wrote: > >Install a timer when trying to preempt on behalf of an important > >context such that if the active context does not honour the preemption > >request within the desired timeout, then we

Re: [Intel-gfx] [PATCH v2] drm/i915/execlists: Flush pending preemption events during reset

2018-03-27 Thread Jeff McGee
gpu. > > Signed-off-by: Chris Wilson > Cc: Michał Winiarski > CC: Michel Thierry > Cc: Jeff McGee > --- > drivers/gpu/drm/i915/intel_lrc.c | 127 > +++ > 1 file changed, 87 insertions(+), 40 deletions(-) > > diff --git a/

Re: [Intel-gfx] [PATCH v2] drm/i915/selftests: Include the trace as a debug aide

2018-03-22 Thread Jeff McGee
+) > > > @@ -1126,6 +1139,10 @@ int intel_hangcheck_live_selftests(struct > > > drm_i915_private *i915) > > > > > > err = i915_subtests(tests, i915); > > > > > > + mutex_lock(&i915->drm.struct_mutex); > > > + flush_test(i915, I915_WAIT_LOCKED); > > > + mutex_unlock(&i915->drm.struct_mutex); > > > + > > > > To wash out leftovers. > > Yeah, from the early abort we left requests unaccounted for and needed > to grab the struct_mutex to run retire. Otherwise we hit assertions > later on about trying to unload the driver with requests still inflight. > -Chris On this and the 3 others in this series... Reviewed-by: Jeff McGee ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [RFC 0/8] Force preemption

2018-03-22 Thread Jeff McGee
On Thu, Mar 22, 2018 at 05:41:57PM +, Tvrtko Ursulin wrote: > > On 22/03/2018 16:01, Jeff McGee wrote: > >On Thu, Mar 22, 2018 at 03:57:49PM +, Tvrtko Ursulin wrote: > >> > >>On 22/03/2018 14:34, Jeff McGee wrote: > >>>On Thu, Mar 22, 20

Re: [Intel-gfx] [RFC 0/8] Force preemption

2018-03-22 Thread Jeff McGee
On Thu, Mar 22, 2018 at 03:57:49PM +, Tvrtko Ursulin wrote: > > On 22/03/2018 14:34, Jeff McGee wrote: > >On Thu, Mar 22, 2018 at 09:28:00AM +, Chris Wilson wrote: > >>Quoting Tvrtko Ursulin (2018-03-22 09:22:55) > >>> > >>>On 21/03/2018 17:26,

Re: [Intel-gfx] [RFC 0/8] Force preemption

2018-03-22 Thread Jeff McGee
On Thu, Mar 22, 2018 at 03:35:19PM +, Chris Wilson wrote: > Quoting Jeff McGee (2018-03-22 14:34:58) > > On Thu, Mar 22, 2018 at 09:28:00AM +, Chris Wilson wrote: > > > Quoting Tvrtko Ursulin (2018-03-22 09:22:55) > > > > > > > > On 21

Re: [Intel-gfx] [PATCH 3/4] drm/i915: Use full serialisation around engine->irq_posted

2018-03-22 Thread Jeff McGee
the interrupt > with reset, we need serialisation on the set_bit() itself. > > And at last Mika can be happy. > > Signed-off-by: Chris Wilson > Cc: Mika Kuoppala > Cc: Michał Winiarski > CC: Michel Thierry > Cc: Jeff McGee > Cc: Tvrtko Ursulin > --- > driv

Re: [Intel-gfx] [PATCH 4/5] drm/i915: Split execlists/guc reset prepartions

2018-03-22 Thread Jeff McGee
to their own backend callbacks. > > Signed-off-by: Chris Wilson > Cc: Michał Winiarski > CC: Michel Thierry > Cc: Jeff McGee > --- > drivers/gpu/drm/i915/intel_guc_submission.c | 39 > + > drivers/gpu/drm/i915/intel_lrc.c| 11 +--

Re: [Intel-gfx] [PATCH 3/5] drm/i915: Move engine reset prepare/finish to backends

2018-03-22 Thread Jeff McGee
n > Cc: Michał Winiarski > CC: Michel Thierry > Cc: Jeff McGee > --- > drivers/gpu/drm/i915/i915_gem.c | 42 -- > drivers/gpu/drm/i915/intel_lrc.c| 52 > +++-- > drivers/gpu/drm/i915/intel_ringbuffer.c | 2

Re: [Intel-gfx] [PATCH 2/5] drm/i915/execlists: Refactor out complete_preempt_context()

2018-03-22 Thread Jeff McGee
y: Chris Wilson > Cc: Jeff McGee > Cc: Michał Winiarski > --- > drivers/gpu/drm/i915/intel_lrc.c | 22 -- > 1 file changed, 12 insertions(+), 10 deletions(-) > > diff --git a/drivers/gpu/drm/i915/intel_lrc.c > b/drivers/gpu/drm/i915/intel_lrc.c > index

Re: [Intel-gfx] [PATCH 5/5] drm/i915/execlists: Flush pending preemption events during reset

2018-03-22 Thread Jeff McGee
On Tue, Mar 20, 2018 at 05:17:34PM -0700, Jeff McGee wrote: > On Tue, Mar 20, 2018 at 12:18:48AM +, Chris Wilson wrote: > > Catch up with the inflight CSB events, after disabling the tasklet > > before deciding which request was truly guilty of hanging the GPU. > > >

Re: [Intel-gfx] [RFC 0/8] Force preemption

2018-03-22 Thread Jeff McGee
On Thu, Mar 22, 2018 at 09:28:00AM +, Chris Wilson wrote: > Quoting Tvrtko Ursulin (2018-03-22 09:22:55) > > > > On 21/03/2018 17:26, jeff.mc...@intel.com wrote: > > > From: Jeff McGee > > > > > > Force preemption uses engine reset to enforc

Re: [Intel-gfx] [RFC 6/8] drm/i915: Fix loop on CSB processing

2018-03-21 Thread Jeff McGee
On Wed, Mar 21, 2018 at 06:06:44PM +, Chris Wilson wrote: > Quoting Jeff McGee (2018-03-21 17:33:04) > > On Wed, Mar 21, 2018 at 10:26:23AM -0700, jeff.mc...@intel.com wrote: > > > From: Jeff McGee > > > > > > Signed-off-by: Jeff McGee > > > --

Re: [Intel-gfx] [RFC 6/8] drm/i915: Fix loop on CSB processing

2018-03-21 Thread Jeff McGee
On Wed, Mar 21, 2018 at 10:26:23AM -0700, jeff.mc...@intel.com wrote: > From: Jeff McGee > > Signed-off-by: Jeff McGee > --- > drivers/gpu/drm/i915/intel_lrc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/i915/intel_lrc.c

Re: [Intel-gfx] [RFC 7/8] drm/i915: Skip CSB processing on invalid CSB tail

2018-03-21 Thread Jeff McGee
On Wed, Mar 21, 2018 at 10:26:24AM -0700, jeff.mc...@intel.com wrote: > From: Jeff McGee > > Engine reset is fast. A context switch interrupt may be generated just > prior to the reset such that the top half handler is racing with reset > post-processing. The handler may set the

[Intel-gfx] [RFC 4/8] drm/i915: Split execlists/guc reset prepartions

2018-03-21 Thread jeff . mcgee
: Michał Winiarski CC: Michel Thierry Cc: Jeff McGee --- drivers/gpu/drm/i915/intel_guc_submission.c | 39 + drivers/gpu/drm/i915/intel_lrc.c| 11 +--- 2 files changed, 40 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/i915

[Intel-gfx] [RFC 0/8] Force preemption

2018-03-21 Thread jeff . mcgee
From: Jeff McGee Force preemption uses engine reset to enforce a limit on the time that a request targeted for preemption can block. This feature is a requirement in automotive systems where the GPU may be shared by clients of critically high priority and clients of low priority that may not

[Intel-gfx] [RFC 8/8] drm/i915: Force preemption to complete via engine reset

2018-03-21 Thread jeff . mcgee
From: Jeff McGee The hardware can complete the requested preemption at only certain points in execution. Thus an uncooperative request that avoids those points can block a preemption indefinitely. Our only option to bound the preemption latency is to trigger reset and recovery just as we would

[Intel-gfx] [RFC 2/8] drm/i915: Add control flags to i915_handle_error()

2018-03-21 Thread jeff . mcgee
/i915_reset_engine so that we include the reason for the reset in the dev_notice(), superseding the earlier option to not print that notice. v3: Stash the reason inside the i915->gpu_error to handover to the direct reset from the blocking waiter. Signed-off-by: Chris Wilson Cc: Jeff McGee Cc: Mika Kuopp

[Intel-gfx] [RFC 1/8] drm/i915/execlists: Refactor out complete_preempt_context()

2018-03-21 Thread jeff . mcgee
From: Chris Wilson As a complement to inject_preempt_context(), follow up with the function to handle its completion. This will be useful should we wish to extend the duties of the preempt-context for execlists. Signed-off-by: Chris Wilson Cc: Jeff McGee Cc: Michał Winiarski --- drivers/gpu

[Intel-gfx] [RFC 5/8] drm/i915/execlists: Flush pending preemption events during reset

2018-03-21 Thread jeff . mcgee
From: Chris Wilson Catch up with the inflight CSB events, after disabling the tasklet before deciding which request was truly guilty of hanging the GPU. Signed-off-by: Chris Wilson Cc: Michał Winiarski CC: Michel Thierry Cc: Jeff McGee --- drivers/gpu/drm/i915/intel_lrc.c | 355

[Intel-gfx] [RFC 7/8] drm/i915: Skip CSB processing on invalid CSB tail

2018-03-21 Thread jeff . mcgee
From: Jeff McGee Engine reset is fast. A context switch interrupt may be generated just prior to the reset such that the top half handler is racing with reset post-processing. The handler may set the irq_posted bit again after the reset code has cleared it to start fresh. Then the re-enabled

[Intel-gfx] [RFC 6/8] drm/i915: Fix loop on CSB processing

2018-03-21 Thread jeff . mcgee
From: Jeff McGee Signed-off-by: Jeff McGee --- drivers/gpu/drm/i915/intel_lrc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_lrc.c b/drivers/gpu/drm/i915/intel_lrc.c index beb81f13a3cc..cec4e1653daf 100644 --- a/drivers/gpu/drm/i915/intel_lrc.c

[Intel-gfx] [RFC 3/8] drm/i915: Move engine reset prepare/finish to backends

2018-03-21 Thread jeff . mcgee
From: Chris Wilson In preparation to more carefully handling incomplete preemption during reset by execlists, we move the existing code wholesale to the backends under a couple of new reset vfuncs. Signed-off-by: Chris Wilson Cc: Michał Winiarski CC: Michel Thierry Cc: Jeff McGee

Re: [Intel-gfx] [PATCH] drm/i915: Flush pending interrupt following a GPU reset

2018-03-21 Thread Jeff McGee
On Wed, Mar 21, 2018 at 04:42:32PM +, Chris Wilson wrote: > Quoting Jeff McGee (2018-03-21 15:55:16) > > On Wed, Mar 21, 2018 at 03:00:23PM +, Chris Wilson wrote: > > > After resetting the GPU (or subset of engines), call synchronize_irq() > > > to flush any pe

Re: [Intel-gfx] [PATCH] drm/i915: Flush pending interrupt following a GPU reset

2018-03-21 Thread Jeff McGee
On Wed, Mar 21, 2018 at 03:00:23PM +, Chris Wilson wrote: > After resetting the GPU (or subset of engines), call synchronize_irq() > to flush any pending irq before proceeding with the cleanup. For a > device level reset, we disable the interupts around the reset, but when > resetting just one

Re: [Intel-gfx] [PATCH 5/5] drm/i915/execlists: Flush pending preemption events during reset

2018-03-20 Thread Jeff McGee
On Tue, Mar 20, 2018 at 12:18:48AM +, Chris Wilson wrote: > Catch up with the inflight CSB events, after disabling the tasklet > before deciding which request was truly guilty of hanging the GPU. > > Signed-off-by: Chris Wilson > Cc: Michał Winiarski > CC: Michel Thierry

[Intel-gfx] [RFC 4/8] drm/i915: Add a wait_for routine with more exact timeout

2018-03-16 Thread jeff . mcgee
From: Jeff McGee The current non-atomic wait_for routines convert the provided usec timeout into jiffies with upward rounding. This can increase the actual timeout several msecs which is fine in most cases. In the next patch we need the timeout to conform more exactly to what is requested. This

[Intel-gfx] [RFC 7/8] drm/i915: Allow reset without error capture

2018-03-16 Thread jeff . mcgee
From: Jeff McGee Pull the reset handling out of i915_handle_error() so that it can be called by that function and directly by the upcoming force preemption handler. This allows the force preemption handler to bypass the error capture that i915_handle_error() does before getting on with the reset

[Intel-gfx] [RFC 0/8] Force preemption

2018-03-16 Thread jeff . mcgee
From: Jeff McGee Force preemption uses engine reset to enforce a limit on the time that a request targeted for preemption can block. This feature is a requirement in automotive systems where the GPU may be shared by clients of critically high priority and clients of low priority that may not

[Intel-gfx] [RFC 2/8] drm/i915: Skip CSB processing on invalid CSB tail

2018-03-16 Thread jeff . mcgee
From: Jeff McGee Engine reset is fast. A context switch interrupt may be generated just prior to the reset such that the top half handler is racing with reset post-processing. The handler may set the irq_posted bit again after the reset code has cleared it to start fresh. Then the re-enabled

[Intel-gfx] [RFC 1/8] drm/i915: Downgrade tasklet GEM_BUG_ON for request not completed

2018-03-16 Thread jeff . mcgee
From: Jeff McGee It is possible for the hardware to be reset just as a context is completing. The reset post-processing may see the seqno update and assume that the context escaped corruption, but the context may have been disrupted in the save out process. The corruption may screw up the HEAD

[Intel-gfx] [RFC 5/8] drm/i915: Consider preemption when finding the active request

2018-03-16 Thread jeff . mcgee
From: Jeff McGee The active request is found by scanning the engine timeline for the request that follows the last completed request. That method is accurate if there is no preemption in progress, because the engine will certainly have started that request. If there is a preemption in progress

[Intel-gfx] [RFC 8/8] drm/i915: Force preemption to complete via engine reset

2018-03-16 Thread jeff . mcgee
From: Jeff McGee The hardware can complete the requested preemption at only certain points in execution. Thus an uncooperative request that avoids those points can block a preemption indefinitely. Our only option to bound the preemption latency is to trigger reset and recovery just as we would

[Intel-gfx] [RFC 3/8] drm/i915: Execlists to mark the HWSP upon preemption finished

2018-03-16 Thread jeff . mcgee
From: Jeff McGee In the next patch we are improving how we find the active request on an engine with a pending preemption. We need to know if the preemption has completed or not. This determination can be made most robustly by having the preemption context write a preemption finished indicator

[Intel-gfx] [RFC 6/8] drm/i915: Repair the preemption context if hit by reset

2018-03-16 Thread jeff . mcgee
From: Jeff McGee It is possible for the preemption context to be active on an engine when the engine is reset. The preemption context is not tracked via the request mechanism, so the normal reset handling will not detect this scenario and will not be able to fixup possible context corruption. So

Re: [Intel-gfx] ✓ Fi.CI.IGT: success for series starting with [CI,1/8] drm/i915: Define an engine class enum for the uABI

2018-01-24 Thread Jeff McGee
On Fri, Nov 10, 2017 at 06:14:17PM +, Chris Wilson wrote: > Quoting Patchwork (2017-11-10 16:46:14) > > == Series Details == > > > > Series: series starting with [CI,1/8] drm/i915: Define an engine class enum > > for the uABI > > URL : https://patchwork.freedesktop.org/series/33606/ > > Sta

[Intel-gfx] [PATCH] drm/i915/guc: Clear terminated attribute bit on GuC preemption context

2017-11-01 Thread jeff . mcgee
From: Jeff McGee If GuC firmware performs an engine reset while that engine had a preemption pending, it will set the terminated attribute bit on our preemption stage descriptor. GuC firmware retains all pending work items for a high-priority GuC client, unlike the normal-priority GuC client

Re: [Intel-gfx] [PATCH v6] drm/i915/guc: Add support for reset engine using GuC commands

2017-11-01 Thread Jeff McGee
DRM_DEBUG_DRIVER("Failed to reset %s, ret=%d\n", > > + DRM_DEBUG_DRIVER("%sFailed to reset %s, ret=%d\n", > > +(engine->i915->guc.execbuf_client ? "GUC > > ":""), > > A bit ove

Re: [Intel-gfx] [PATCH] drm/i915: Debugfs to disable context banning

2017-10-18 Thread Jeff McGee
On Wed, Oct 18, 2017 at 11:01:13AM +0200, Daniel Vetter wrote: > On Tue, Oct 17, 2017 at 09:23:43AM -0700, Jeff McGee wrote: > > On Tue, Oct 17, 2017 at 05:36:54PM +0200, Daniel Vetter wrote: > > > On Tue, Oct 17, 2017 at 08:25:33AM -0700, jeff.mc...@intel.com wrote: > &

[Intel-gfx] [PATCH v2] drm/i915: Debugfs to disable context banning

2017-10-17 Thread jeff . mcgee
From: Jeff McGee Useful for stress testing various reset scenarios. The ioctl that we have for specific client/context banning disable is difficult to utilize outside of unit testing. v2: Fix rebase compilation error Signed-off-by: Jeff McGee --- drivers/gpu/drm/i915/i915_debugfs.c | 27

Re: [Intel-gfx] [PATCH] drm/i915: Debugfs to disable context banning

2017-10-17 Thread Jeff McGee
On Tue, Oct 17, 2017 at 05:36:54PM +0200, Daniel Vetter wrote: > On Tue, Oct 17, 2017 at 08:25:33AM -0700, jeff.mc...@intel.com wrote: > > From: Jeff McGee > > > > Useful for stress testing various reset scenarios. The ioctl that we > > have for specific client

[Intel-gfx] [PATCH] drm/i915: Debugfs to disable context banning

2017-10-17 Thread jeff . mcgee
From: Jeff McGee Useful for stress testing various reset scenarios. The ioctl that we have for specific client/context banning disable is difficult to utilize outside of unit testing. Signed-off-by: Jeff McGee --- drivers/gpu/drm/i915/i915_debugfs.c | 25 + drivers/gpu

Re: [Intel-gfx] [PATCH] drm/i915: Add in-flight request details to intel_engine_dump()

2017-10-16 Thread Jeff McGee
liminate the entirely redundant and forgotten debugfs/i915_gem_request > > Signed-off-by: Chris Wilson > Cc: Jeff McGee > Cc: Mika Kuoppala > --- Reviewed-by: Jeff McGee > drivers/gpu/drm/i915/i915_debugfs.c| 49 > -- > drivers

[Intel-gfx] [PATCH 1/2] drm/i915: Properly lock the engine timeline in debugfs i915_gem_request

2017-10-13 Thread jeff . mcgee
From: Jeff McGee We are racing with updates to the timeline. This can cause an inconsistent snapshot to be dumped, or even worse a NULL pointer dereference. Signed-off-by: Jeff McGee --- drivers/gpu/drm/i915/i915_debugfs.c | 27 ++- 1 file changed, 10 insertions(+), 17

[Intel-gfx] [PATCH 2/2] drm/i915: Include current seqno in debugfs i915_gem_request

2017-10-13 Thread jeff . mcgee
From: Jeff McGee Debugfs i915_gem_request lists the entire queue of requests on the engine timeline. This will include requests that are complete but not yet removed from the timeline. So let's include in this snapshot the current seqno to help separate completed from pending. Signed-o

Re: [Intel-gfx] [PATCH 07/10] drm/i915: Add information needed to track engine preempt state

2017-10-05 Thread Jeff McGee
; information, meaning that preemption has finished, and hardware is now > idle. > > Cc: Chris Wilson > Cc: Jeff Mcgee > Cc: Michal Wajdeczko > Cc: Oscar Mateo > Signed-off-by: Michał Winiarski Reviewed-by: Jeff McGee _

Re: [Intel-gfx] [PATCH 05/10] drm/i915/guc: Split guc_wq_item_append

2017-10-05 Thread Jeff McGee
tions operating on GuC work items. > We can extract guc_request_add - responsible for adding GuC work item and > ringing the doorbell, and guc_wq_item_append - used by the function > above, not tied to the concept of gem request. > > Cc: Chris Wilson > Cc: Jeff Mcgee > Cc: Mich

Re: [Intel-gfx] [PATCH 04/10] drm/i915/guc: Add a second client, to be used for preemption

2017-10-05 Thread Jeff McGee
On Thu, Oct 05, 2017 at 11:13:43AM +0200, Michał Winiarski wrote: > From: Dave Gordon > > This second client is created with priority KMD_HIGH, and marked > as preemptive. This will allow us to request preemption using GuC actions. > > Cc: Chris Wilson > Cc: Jeff Mcgee &

Re: [Intel-gfx] [PATCH 03/10] drm/i915/guc: Add preemption action to GuC firmware interface

2017-10-05 Thread Jeff McGee
context to report its status. > Let's update GuC firmware interface with those new definitions. > > Cc: Jeff Mcgee > Cc: Michal Wajdeczko > Cc: Oscar Mateo > Signed-off-by: Michał Winiarski Reviewed-by: Jeff McGee

Re: [Intel-gfx] [PATCH] drm/i915: Clear local engine-needs-reset bit if in progress elsewhere

2017-09-13 Thread Jeff McGee
On Wed, Sep 06, 2017 at 10:57:20PM +0100, Chris Wilson wrote: > Quoting Jeff McGee (2017-08-29 18:01:47) > > On Tue, Aug 29, 2017 at 04:17:46PM +0100, Chris Wilson wrote: > > > Quoting Jeff McGee (2017-08-29 16:04:17) > > > > On Tue, Aug 29, 2017 at 10:07:

Re: [Intel-gfx] [PATCH] drm/i915: Clear local engine-needs-reset bit if in progress elsewhere

2017-08-29 Thread Jeff McGee
On Tue, Aug 29, 2017 at 04:17:46PM +0100, Chris Wilson wrote: > Quoting Jeff McGee (2017-08-29 16:04:17) > > On Tue, Aug 29, 2017 at 10:07:18AM +0100, Chris Wilson wrote: > > > Quoting Jeff McGee (2017-08-28 21:18:44) > > > > On Mon, Aug 28, 2017 at 08:44:

Re: [Intel-gfx] [PATCH] drm/i915: Clear local engine-needs-reset bit if in progress elsewhere

2017-08-29 Thread Jeff McGee
On Tue, Aug 29, 2017 at 10:07:18AM +0100, Chris Wilson wrote: > Quoting Jeff McGee (2017-08-28 21:18:44) > > On Mon, Aug 28, 2017 at 08:44:48PM +0100, Chris Wilson wrote: > > > Quoting jeff.mc...@intel.com (2017-08-28 20:25:30) > > > > From: Jeff McGee >

Re: [Intel-gfx] [PATCH] drm/i915: Clear local engine-needs-reset bit if in progress elsewhere

2017-08-28 Thread Jeff McGee
On Mon, Aug 28, 2017 at 08:44:48PM +0100, Chris Wilson wrote: > Quoting jeff.mc...@intel.com (2017-08-28 20:25:30) > > From: Jeff McGee > > > > If someone else is resetting the engine we should clear our own bit as > > part of skipping that engine. Otherwise we will la

Re: [Intel-gfx] [PATCH] drm/i915: Clear local engine-needs-reset bit if in progress elsewhere

2017-08-28 Thread Jeff McGee
On Mon, Aug 28, 2017 at 12:41:58PM -0700, Michel Thierry wrote: > On 28/08/17 12:25, jeff.mc...@intel.com wrote: > >From: Jeff McGee > > > >If someone else is resetting the engine we should clear our own bit as > >part of skipping that engine. Otherwise we will later

[Intel-gfx] [PATCH] drm/i915: Clear local engine-needs-reset bit if in progress elsewhere

2017-08-28 Thread jeff . mcgee
From: Jeff McGee If someone else is resetting the engine we should clear our own bit as part of skipping that engine. Otherwise we will later believe that it has not been reset successfully and then trigger full gpu reset. If the other guy's reset actually fails, he will trigger the ful

Re: [Intel-gfx] [igt PATCH] igt/pm_rps: Remove remaining assert on CUR <= MAX

2017-06-21 Thread Jeff McGee
19 09:41:40 2017 +0100 > > > > > > > >     igt/pm_rps: Allow CUR to be greater than MAX (overclocking) > > > > > > > > Cc: Chris Wilson > > > > Signed-off-by: Jeff McGee > > > Reviewed-by: Radoslaw Szwichtenberg > > > > Pushed. Tha

[Intel-gfx] [igt PATCH] igt/pm_rps: Remove remaining assert on CUR <= MAX

2017-06-14 Thread jeff . mcgee
From: Jeff McGee This completes the change started by: commit 39cccab83b7c515a2b57abe679a8cb304c8933ef Author: Chris Wilson Date: Fri May 19 09:41:40 2017 +0100 igt/pm_rps: Allow CUR to be greater than MAX (overclocking) Cc: Chris Wilson Signed-off-by: Jeff McGee --- tests/pm_rps.c

Re: [Intel-gfx] [PATCH v6 18/20] drm/i915: Watchdog timeout: DRM kernel interface to set the timeout

2017-04-19 Thread Jeff McGee
On Tue, Apr 18, 2017 at 01:23:33PM -0700, Michel Thierry wrote: > Final enablement patch for GPU hang detection using watchdog timeout. > Using the gem_context_setparam ioctl, users can specify the desired > timeout value in microseconds, and the driver will do the conversion to > 'timestamps'. >

Re: [Intel-gfx] [PATCH 4/8] drm/i915/huc: Add BXT HuC Loading Support

2016-12-08 Thread Jeff McGee
>> > >> Version 1.7 of the HuC firmware. > >> > >> v2: rebased. > >> v3: rebased on top of drm-tip > >> > >> Cc: Jeff Mcgee > >> Signed-off-by: Anusha Srivatsa > >> Reviewed-by: Jeff McGee > >> --- > >>

Re: [Intel-gfx] [PATCH] drm/i915/guc: Drop comment on fwif autogeneration

2016-12-05 Thread Jeff McGee
Reviewed-by: Jeff McGee On Mon, Dec 05, 2016 at 05:04:29PM +0100, Arkadiusz Hiler wrote: > The firmware interface file was initially partially autogenerated, but > this is no longer the case. > > It was never updated automatically, and a lot manual changes were > introduced since

Re: [Intel-gfx] [PATCH 8/8] drm/i915/get_params: Add HuC status to getparams

2016-11-23 Thread Jeff McGee
: rebased. > v7: rebased. > v8: rebased. > > Tested-by: Xiang Haihao > Signed-off-by: Anusha Srivatsa > Signed-off-by: Peter Antoine > Reviewed-by: Rodrigo Vivi > Reviewed-by: Jeff McGee > --- > drivers/gpu/drm/i915/i915_drv.c | 8 >

Re: [Intel-gfx] [PATCH] drm/i915/GuC: Combine the two kernel parameter into one

2016-11-15 Thread Jeff McGee
On Tue, Nov 15, 2016 at 10:06:47AM -0800, Srivatsa, Anusha wrote: > > > >-Original Message- > >From: Tvrtko Ursulin [mailto:tvrtko.ursu...@linux.intel.com] > >Sent: Tuesday, November 15, 2016 2:31 AM > >To: Srivatsa, Anusha ; Mcgee, Jeff > > > >Cc: Ursulin, Tvrtko ; > >intel-gfx@lists.fr

Re: [Intel-gfx] [PATCH-v11] drm/i915/huc: Add HuC fw loading support

2016-11-15 Thread Jeff McGee
On Tue, Nov 15, 2016 at 10:26:46AM +, Tvrtko Ursulin wrote: > > On 15/11/2016 00:39, Anusha Srivatsa wrote: > >From: Peter Antoine > > > >The HuC loading process is similar to GuC. The intel_uc_fw_fetch() > >is used for both cases. > > > >HuC loading needs to be before GuC loading. The WOPCM

Re: [Intel-gfx] [PATCH] drm/i915/GuC: Combine the two kernel parameter into one

2016-11-11 Thread Jeff McGee
that we had an option to just load GuC and do nothing with it. Can those folks please comment? Jeff > Cc: Tvrtko Ursulin > Cc: Jeff Mcgee > Cc: Rodrigo Vivi > Signed-off-by: Anusha Srivatsa > --- > drivers/gpu/drm/i915/i915_guc_submission.c | 16 +--- >

Re: [Intel-gfx] [PATCH 5/8] drm/i915/HuC: Add KBL huC loading Support

2016-11-11 Thread Jeff McGee
Reviewed-by: Jeff McGee On Thu, Nov 10, 2016 at 04:15:18PM -0800, Anusha Srivatsa wrote: > This patch adds the support to load HuC on KBL > Version 2.0 > > Cc: Jeff Mcgee > Signed-off-by: Anusha Srivatsa > --- > drivers/gpu/drm/i915/intel_huc_loader.c | 15

Re: [Intel-gfx] [PATCH 4/8] drm/i915/huc: Add BXT HuC Loading Support

2016-11-11 Thread Jeff McGee
Reviewed-by: Jeff McGee On Thu, Nov 10, 2016 at 04:15:17PM -0800, Anusha Srivatsa wrote: > This patch adds the HuC Loading for the BXT by using > the updated file construction. > > Version 1.7 of the HuC firmware. > > Cc: Jeff Mcgee > Signed-off-by: Anusha Srivatsa >

Re: [Intel-gfx] [PATCH 3/8] drm/i915/huc: Add HuC fw loading support

2016-11-11 Thread Jeff McGee
On Fri, Nov 11, 2016 at 06:05:34PM -0800, Jeff McGee wrote: > On Thu, Nov 10, 2016 at 04:15:16PM -0800, Anusha Srivatsa wrote: > > From: Peter Antoine > > > > The HuC loading process is similar to GuC. The intel_uc_fw_fetch() > > is used for both cases. > > &

Re: [Intel-gfx] [PATCH 3/8] drm/i915/huc: Add HuC fw loading support

2016-11-11 Thread Jeff McGee
On Thu, Nov 10, 2016 at 04:15:16PM -0800, Anusha Srivatsa wrote: > From: Peter Antoine > > The HuC loading process is similar to GuC. The intel_uc_fw_fetch() > is used for both cases. > > HuC loading needs to be before GuC loading. The WOPCM setting must > be done early before loading any of the

Re: [Intel-gfx] [PATCH 1/8] drm/i915/guc: Make the GuC fw loading helper functions general

2016-11-09 Thread Jeff McGee
ed. > > Signed-off-by: Anusha Srivatsa > Signed-off-by: Alex Dai > Signed-off-by: Peter Antoine > Reviewed-by: Dave Gordon > Reviewed-by: Jeff McGee > Reviewed-by: Carlos Santa > Tested-by: Carlos Santa > --- > drivers/gpu/drm/i915/i915_debugfs.c

Re: [Intel-gfx] [PATCH 6/8] drm/i915/huc: Update SKL and BXT HuC Loading Support

2016-11-09 Thread Jeff McGee
er patch is fixing an issue in an earlier patch. Just fix the original patch. -Jeff > v2: rebased. > v3: rebased. > changed file name to match the install package format. > v7: rebased. > v8: rebased. > v10: rebased. > > Cc: Tvrtko Ursulin > Cc: Jeff Mcgee > Si

Re: [Intel-gfx] [PATCH] drm/i915/huc: Update the construction of file path for HuC similar to that of GuC

2016-11-01 Thread Jeff McGee
On Mon, Oct 31, 2016 at 03:24:53PM -0700, Anusha Srivatsa wrote: > Update the file construction and specifying the required version > similar to that of GuC.Add an extra field for the build number. > Adopted the approach used in > https://patchwork.freedesktop.org/patch/104355/ &

Re: [Intel-gfx] [PATCH] i915/GuC: Make GuC loads default

2016-10-31 Thread Jeff McGee
have not yet been made available (I don't see them on 01.org). In either case... Reviewed-by: Jeff McGee On Mon, Oct 31, 2016 at 10:06:27AM -0700, Rodrigo Vivi wrote: > Could someone please ack this? We need this before getting HuC. > > GuC submission has regressions so the sub

Re: [Intel-gfx] [PATCH 7/7] drm/i915/get_params: Add HuC status to getparams

2016-10-31 Thread Jeff McGee
Patch set header includes links to libva intent to use the interface. Thanks Reviewed-by: Jeff McGee On Fri, Oct 28, 2016 at 05:05:46PM -0700, Anusha Srivatsa wrote: > From: Peter Antoine > > This patch will allow for getparams to return the status of the HuC. > As the HuC has to

Re: [Intel-gfx] [PATCH 6/7] drm/i915/huc: Add BXT HuC Loading Support

2016-10-31 Thread Jeff McGee
On Fri, Oct 28, 2016 at 05:05:45PM -0700, Anusha Srivatsa wrote: > From: Peter Antoine > > This patch adds the HuC Loading for the BXT. > Version 1.7 of the HuC firmware. > > v2: rebased. > v3: rebased. > changed file name to match the install package format. > v7: rebased. > v8: rebased. >

Re: [Intel-gfx] [PATCH 5/7] drm/i915/huc: Support HuC authentication

2016-10-31 Thread Jeff McGee
Reviewed-by: Jeff McGee On Fri, Oct 28, 2016 at 05:05:44PM -0700, Anusha Srivatsa wrote: > From: Peter Antoine > > The HuC authentication is done by host2guc call. The HuC RSA keys > are sent to GuC for authentication. > > v2: rebased on top of drm-intel-nightly. > ch

Re: [Intel-gfx] [PATCH 3/7] drm/i915/huc: Add HuC fw loading support

2016-10-31 Thread Jeff McGee
On Fri, Oct 28, 2016 at 05:05:42PM -0700, Anusha Srivatsa wrote: > From: Peter Antoine > > The HuC loading process is similar to GuC. The intel_uc_fw_fetch() > is used for both cases. > > HuC loading needs to be before GuC loading. The WOPCM setting must > be done early before loading any of the

Re: [Intel-gfx] [PATCH 2/7] drm/i915/huc: Unified css_header struct for GuC and HuC

2016-10-31 Thread Jeff McGee
Reviewed-by: Jeff McGee On Fri, Oct 28, 2016 at 05:05:41PM -0700, Anusha Srivatsa wrote: > From: Peter Antoine > > HuC firmware css header has almost exactly same definition as GuC > firmware except for the sw_version. Also, add a new member fw_type > into intel_uc_fw to indica

Re: [Intel-gfx] [PATCH 3/8] drm/i915/huc: Add HuC fw loading support

2016-10-27 Thread Jeff McGee
On Mon, Oct 24, 2016 at 02:24:01PM -0700, Carlos Santa wrote: > On Thu, 2016-10-13 at 13:54 -0700, Jeff McGee wrote: > > On Thu, Oct 13, 2016 at 10:42:42AM -0700, Jeff McGee wrote: > > > > > > On Mon, Oct 03, 2016 at 11:42:57AM -0700, Anusha Srivatsa wrote: > >

Re: [Intel-gfx] [PATCH 2/8] drm/i915/huc: Unified css_header struct for GuC and HuC

2016-10-13 Thread Jeff McGee
On Thu, Oct 13, 2016 at 08:45:45AM -0700, Jeff McGee wrote: > On Mon, Oct 03, 2016 at 11:42:56AM -0700, Anusha Srivatsa wrote: > > From: Peter Antoine > > > > HuC firmware css header has almost exactly same definition as GuC > > firmware except for the sw_version. Als

Re: [Intel-gfx] [PATCH 8/8] drm/i915/get_params: Add HuC status to getparams

2016-10-13 Thread Jeff McGee
On Mon, Oct 03, 2016 at 11:43:02AM -0700, Anusha Srivatsa wrote: > From: Peter Antoine > > This patch will allow for getparams to return the status of the HuC. > As the HuC has to be validated by the GuC this patch uses the validated > status to show when the HuC is loaded and ready for use. You

Re: [Intel-gfx] [PATCH 7/8] drm/i915/get_params: Add GuC status to getparams

2016-10-13 Thread Jeff McGee
On Fri, Oct 07, 2016 at 09:11:03AM +0200, Daniel Vetter wrote: > On Wed, Oct 05, 2016 at 01:51:14PM -0700, Rodrigo Vivi wrote: > > > > > > Reviewed-by: Rodrigo Vivi > > This is new uabi. Where's the userspace? > > Checking this is part of the review. > -Daniel > I'm not sure that GuC status i

Re: [Intel-gfx] [PATCH 6/8] drm/i915/huc: Add BXT HuC Loading Support

2016-10-13 Thread Jeff McGee
On Mon, Oct 03, 2016 at 11:43:00AM -0700, Anusha Srivatsa wrote: > From: Peter Antoine > > This patch adds the HuC Loading for the BXT. > Version 1.7 of the HuC firmware. > > v2: rebased. > v3: rebased. > changed file name to match the install package format. > v7: rebased. > v8: rebased. >

Re: [Intel-gfx] [PATCH 5/8] drm/i915/huc: Support HuC authentication

2016-10-13 Thread Jeff McGee
On Mon, Oct 03, 2016 at 11:42:59AM -0700, Anusha Srivatsa wrote: > From: Peter Antoine > > The HuC authentication is done by host2guc call. The HuC RSA keys > are sent to GuC for authentication. > > v2: rebased on top of drm-intel-nightly. > changed name format and upped version 1.7. > v3: r

Re: [Intel-gfx] [PATCH 3/8] drm/i915/huc: Add HuC fw loading support

2016-10-13 Thread Jeff McGee
On Thu, Oct 13, 2016 at 10:42:42AM -0700, Jeff McGee wrote: > On Mon, Oct 03, 2016 at 11:42:57AM -0700, Anusha Srivatsa wrote: > > From: Peter Antoine > > > > The HuC loading process is similar to GuC. The intel_uc_fw_fetch() > > is used for both cases. > > &

Re: [Intel-gfx] [PATCH 4/8] drm/i915/huc: Add debugfs for HuC loading status check

2016-10-13 Thread Jeff McGee
Reviewed-by: Jeff McGee On Mon, Oct 03, 2016 at 11:42:58AM -0700, Anusha Srivatsa wrote: > From: Peter Antoine > > Add debugfs entry for HuC loading status check. > > v2: rebase on-top of drm-intel-nightly. > v3: rebased again. > v7: rebased. > v8: rebased. >

Re: [Intel-gfx] [PATCH 3/8] drm/i915/huc: Add HuC fw loading support

2016-10-13 Thread Jeff McGee
On Mon, Oct 03, 2016 at 11:42:57AM -0700, Anusha Srivatsa wrote: > From: Peter Antoine > > The HuC loading process is similar to GuC. The intel_uc_fw_fetch() > is used for both cases. > > HuC loading needs to be before GuC loading. The WOPCM setting must > be done early before loading any of the

Re: [Intel-gfx] [PATCH 2/8] drm/i915/huc: Unified css_header struct for GuC and HuC

2016-10-13 Thread Jeff McGee
On Mon, Oct 03, 2016 at 11:42:56AM -0700, Anusha Srivatsa wrote: > From: Peter Antoine > > HuC firmware css header has almost exactly same definition as GuC > firmware except for the sw_version. Also, add a new member fw_type > into intel_uc_fw to indicate what kind of fw it is. So, the loader >

Re: [Intel-gfx] [PATCH 1/8] drm/i915/guc: Make the GuC fw loading helper functions general

2016-10-13 Thread Jeff McGee
Reviewed-by: Jeff McGee On Mon, Oct 03, 2016 at 11:42:55AM -0700, Anusha Srivatsa wrote: > From: Peter Antoine > > Rename some of the GuC fw loading code to make them more general. We > will utilise them for HuC loading as well. > s/intel_guc_fw/intel_uc_fw/g >

Re: [Intel-gfx] [PATCH] drm/i915/gen9: Add WaVFEStateAfterPipeControlwithMediaStateClear

2016-06-03 Thread Jeff McGee
> + ret= wa_ring_whitelist_reg(engine, GEN9_CTX_PREEMPT_REG); > + if (ret) > + return ret; > + > /* WaEnablePreemptionGranularityControlByUMD:skl,bxt */ > ret= wa_ring_whitelist_reg(engine, GEN8_CS_CHICKEN1); > if (ret) >

Re: [Intel-gfx] [PATCH v2 2/2] drm/i915: resize the GuC WOPCM for rc6

2016-01-21 Thread Jeff McGee
On Thu, Jan 21, 2016 at 06:11:01PM +, Peter Antoine wrote: > This patch resizes the GuC WOPCM to so that the GuC and the RC6 memory > spaces do not overlap. > > Issue: https://jira01.devtools.intel.com/browse/VIZ-6638 > Signed-off-by: Peter Antoine > --- > drivers/gpu/drm/i915/i915_guc_reg.h

  1   2   3   >