Commit 88a57514 authored by Michal Wajdeczko's avatar Michal Wajdeczko Committed by Chris Wilson

drm/i915/guc: Use correct name for last CT fence

While we have function that returns "next fence" that can be used
by new CT request, we internally store value of the last used fence.
Signed-off-by: default avatarMichal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: default avatarDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20200111231114.59208-5-michal.wajdeczko@intel.com
parent 59a46ad9
...@@ -290,7 +290,7 @@ void intel_guc_ct_disable(struct intel_guc_ct *ct) ...@@ -290,7 +290,7 @@ void intel_guc_ct_disable(struct intel_guc_ct *ct)
static u32 ct_get_next_fence(struct intel_guc_ct *ct) static u32 ct_get_next_fence(struct intel_guc_ct *ct)
{ {
/* For now it's trivial */ /* For now it's trivial */
return ++ct->requests.next_fence; return ++ct->requests.last_fence;
} }
/** /**
......
...@@ -49,7 +49,7 @@ struct intel_guc_ct { ...@@ -49,7 +49,7 @@ struct intel_guc_ct {
struct intel_guc_ct_buffer ctbs[2]; struct intel_guc_ct_buffer ctbs[2];
struct { struct {
u32 next_fence; /* fence to be used with next request to send */ u32 last_fence; /* last fence used to send request */
spinlock_t lock; /* protects pending requests list */ spinlock_t lock; /* protects pending requests list */
struct list_head pending; /* requests waiting for response */ struct list_head pending; /* requests waiting for response */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment