diff options
author | Sujaritha Sundaresan <sujaritha.sundaresan@intel.com> | 2019-02-19 17:39:26 -0800 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2019-02-20 23:53:04 +0000 |
commit | e0ad3c64fa1fbbddb2eab9ee0de3e057b7da942b (patch) | |
tree | 821eba6b23a2dca3f1cc62623420d14c38c5d28b /drivers/gpu/drm/i915/intel_guc_ct.h | |
parent | 9ce25e72cc7794d2428ff0d5730731496a02fbb7 (diff) | |
download | linux-stable-e0ad3c64fa1fbbddb2eab9ee0de3e057b7da942b.tar.gz linux-stable-e0ad3c64fa1fbbddb2eab9ee0de3e057b7da942b.tar.bz2 linux-stable-e0ad3c64fa1fbbddb2eab9ee0de3e057b7da942b.zip |
drm/i915/guc: Splitting CT channel open/close functions
The aim of this patch is to allow enabling and disabling
of CTB without requiring the mutex lock.
v2: Phasing out ctch_is_enabled function and replacing it with
ctch->enabled (Daniele)
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Signed-off-by: Sujaritha Sundaresan <sujaritha.sundaresan@intel.com>
Reviewed-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20190220013927.9488-2-sujaritha.sundaresan@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/intel_guc_ct.h')
-rw-r--r-- | drivers/gpu/drm/i915/intel_guc_ct.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_guc_ct.h b/drivers/gpu/drm/i915/intel_guc_ct.h index d774895ab143..f5e7f0663304 100644 --- a/drivers/gpu/drm/i915/intel_guc_ct.h +++ b/drivers/gpu/drm/i915/intel_guc_ct.h @@ -66,6 +66,7 @@ struct intel_guc_ct_channel { struct intel_guc_ct_buffer ctbs[2]; u32 owner; u32 next_fence; + bool enabled; }; /** Holds all command transport channels. @@ -90,6 +91,8 @@ struct intel_guc_ct { }; void intel_guc_ct_init_early(struct intel_guc_ct *ct); +int intel_guc_ct_init(struct intel_guc_ct *ct); +void intel_guc_ct_fini(struct intel_guc_ct *ct); int intel_guc_ct_enable(struct intel_guc_ct *ct); void intel_guc_ct_disable(struct intel_guc_ct *ct); |