summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_guc_ct.h
diff options
context:
space:
mode:
authorMichal Wajdeczko2018-03-26 21:48:26 +0200
committerChris Wilson2018-03-28 21:35:17 +0200
commit6c77a2b05841a4082f746bf58345209df57175c9 (patch)
treea8071f34dd2d9133ffb3343d467d02da8a381da2 /drivers/gpu/drm/i915/intel_guc_ct.h
parentdrm/i915/guc: Implement response handling in send_ct() (diff)
downloadkernel-qcow2-linux-6c77a2b05841a4082f746bf58345209df57175c9.tar.gz
kernel-qcow2-linux-6c77a2b05841a4082f746bf58345209df57175c9.tar.xz
kernel-qcow2-linux-6c77a2b05841a4082f746bf58345209df57175c9.zip
drm/i915/guc: Prepare to process incoming requests from CT
Requests are read from CT in the irq handler, but actual processing will be done in the work thread. Processing of specific actions will be added in the upcoming patches. v2: don't use GEM_BUG_ON (Chris) don't kmalloc too large buffer (Michal) v3: rebased v4: don't name it 'dispatch' (Michel) and fix checkpatch add some documentation (Michal) Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Cc: Oscar Mateo <oscar.mateo@intel.com> Cc: Michel Thierry <michel.thierry@intel.com> Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com> Reviewed-by: Michel Thierry <michel.thierry@intel.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Link: https://patchwork.freedesktop.org/patch/msgid/20180326194829.58836-10-michal.wajdeczko@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/intel_guc_ct.h')
-rw-r--r--drivers/gpu/drm/i915/intel_guc_ct.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_guc_ct.h b/drivers/gpu/drm/i915/intel_guc_ct.h
index fac6e53194c6..d774895ab143 100644
--- a/drivers/gpu/drm/i915/intel_guc_ct.h
+++ b/drivers/gpu/drm/i915/intel_guc_ct.h
@@ -81,6 +81,12 @@ struct intel_guc_ct {
/** @pending_requests: list of requests waiting for response */
struct list_head pending_requests;
+
+ /** @incoming_requests: list of incoming requests */
+ struct list_head incoming_requests;
+
+ /** @worker: worker for handling incoming requests */
+ struct work_struct worker;
};
void intel_guc_ct_init_early(struct intel_guc_ct *ct);