summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/intel_guc_log.h
diff options
context:
space:
mode:
authorMichał Winiarski <michal.winiarski@intel.com>2018-03-19 10:53:42 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2018-03-19 12:23:02 +0000
commit6a96be2448a446efb1ac67974535fd4b33df3d48 (patch)
treed24afb250730e6fb4affd0a59fdfaa9ea617f8ff /drivers/gpu/drm/i915/intel_guc_log.h
parentb8299c71d4e15972ba507a9b8cdba5653cd247d5 (diff)
downloadlinux-next-6a96be2448a446efb1ac67974535fd4b33df3d48.tar.gz
drm/i915/guc: Get rid of GuC log runtime
Runtime is not a very good name. Let's also move counting relay overflows inside relay struct. v2: Rename things rather than remove the struct (Chris) Signed-off-by: Michał Winiarski <michal.winiarski@intel.com> Cc: Chris Wilson <chris@chris-wilson.co.uk> Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com> Cc: Sagar Arun Kamble <sagar.a.kamble@intel.com> Cc: Michal Wajdeczko <michal.wajdeczko@intel.com> Reviewed-by: Sagar Arun Kamble <sagar.a.kamble@intel.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Link: https://patchwork.freedesktop.org/patch/msgid/20180319095348.9716-7-michal.winiarski@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/intel_guc_log.h')
-rw-r--r--drivers/gpu/drm/i915/intel_guc_log.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/gpu/drm/i915/intel_guc_log.h b/drivers/gpu/drm/i915/intel_guc_log.h
index 3cf911eef3a8..db35e548d2ed 100644
--- a/drivers/gpu/drm/i915/intel_guc_log.h
+++ b/drivers/gpu/drm/i915/intel_guc_log.h
@@ -43,16 +43,15 @@ struct intel_guc;
struct intel_guc_log {
u32 flags;
struct i915_vma *vma;
- /* The runtime stuff gets created only when GuC logging gets enabled */
struct {
void *buf_addr;
struct workqueue_struct *flush_wq;
struct work_struct flush_work;
- struct rchan *relay_chan;
+ struct rchan *channel;
struct mutex lock;
- } runtime;
+ u32 full_count;
+ } relay;
/* logging related stats */
- u32 capture_miss_count;
u32 flush_interrupt_count;
u32 prev_overflow_count[GUC_MAX_LOG_BUFFER];
u32 total_overflow_count[GUC_MAX_LOG_BUFFER];