aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_uc_fw.h
diff options
context:
space:
mode:
authorMichal Wajdeczko <michal.wajdeczko@intel.com>2017-10-17 09:44:49 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2017-10-17 16:42:56 +0100
commit56ffc7427c2b0b27d732a15e062f0c7cdf62c173 (patch)
tree303df2d9a9a587c5556640999a5e0395165f0475 /drivers/gpu/drm/i915/intel_uc_fw.h
parentdrm/i915: Handle drm-layer errors in intel_dp_add_mst_connector (diff)
downloadlinux-dev-56ffc7427c2b0b27d732a15e062f0c7cdf62c173.tar.xz
linux-dev-56ffc7427c2b0b27d732a15e062f0c7cdf62c173.zip
drm/i915/uc: Add pretty printer for uc firmware
Debugfs for GuC and HuC load info have similar common part. Move and update dump of uc_fw to separate helper for reuse. Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Cc: Chris Wilson <chris@chris-wilson.co.uk> Link: https://patchwork.freedesktop.org/patch/msgid/20171017094449.22584-1-michal.wajdeczko@intel.com Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to '')
-rw-r--r--drivers/gpu/drm/i915/intel_uc_fw.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_uc_fw.h b/drivers/gpu/drm/i915/intel_uc_fw.h
index 412fbdc4db93..132903669391 100644
--- a/drivers/gpu/drm/i915/intel_uc_fw.h
+++ b/drivers/gpu/drm/i915/intel_uc_fw.h
@@ -25,6 +25,7 @@
#ifndef _INTEL_UC_FW_H_
#define _INTEL_UC_FW_H_
+struct drm_printer;
struct drm_i915_private;
struct i915_vma;
@@ -115,5 +116,6 @@ int intel_uc_fw_upload(struct intel_uc_fw *uc_fw,
int (*xfer)(struct intel_uc_fw *uc_fw,
struct i915_vma *vma));
void intel_uc_fw_fini(struct intel_uc_fw *uc_fw);
+void intel_uc_fw_dump(struct intel_uc_fw *uc_fw, struct drm_printer *p);
#endif