<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Reviewed-by: Sagar Arun Kamble <a class="moz-txt-link-rfc2396E"
href="mailto:sagar.a.kamble@intel.com"><sagar.a.kamble@intel.com></a></p>
<div class="moz-cite-prefix">On 2/24/2017 4:41 AM, Michel Thierry
wrote:<br>
</div>
<blockquote
cite="mid:20170223231137.7682-1-michel.thierry@intel.com"
type="cite">
<pre wrap="">There was no way to check if the platform is running the latest firmware.
Cc: Tvrtko Ursulin <a class="moz-txt-link-rfc2396E" href="mailto:tvrtko.ursulin@intel.com"><tvrtko.ursulin@intel.com></a>
Cc: Arkadiusz Hiler <a class="moz-txt-link-rfc2396E" href="mailto:arkadiusz.hiler@intel.com"><arkadiusz.hiler@intel.com></a>
Signed-off-by: Michel Thierry <a class="moz-txt-link-rfc2396E" href="mailto:michel.thierry@intel.com"><michel.thierry@intel.com></a>
---
drivers/gpu/drm/i915/i915_gpu_error.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/drivers/gpu/drm/i915/i915_gpu_error.c b/drivers/gpu/drm/i915/i915_gpu_error.c
index 2b1d15668192..e022187916ee 100644
--- a/drivers/gpu/drm/i915/i915_gpu_error.c
+++ b/drivers/gpu/drm/i915/i915_gpu_error.c
@@ -632,6 +632,16 @@ int i915_error_state_to_str(struct drm_i915_error_state_buf *m,
CSR_VERSION_MINOR(csr->version));
}
+ if (HAS_GUC_UCODE(dev_priv)) {
+ struct intel_uc_fw *guc_fw = &dev_priv->guc.fw;
+
+ err_printf(m, "GuC loaded: %s\n",
+ yesno(guc_fw->load_status ==
+ INTEL_UC_FIRMWARE_SUCCESS));
+ err_printf(m, "GuC fw version: %d.%d\n",
+ guc_fw->major_ver_found, guc_fw->minor_ver_found);
+ }
+
err_printf(m, "EIR: 0x%08x\n", error->eir);
err_printf(m, "IER: 0x%08x\n", error->ier);
for (i = 0; i < error->ngtier; i++)
</pre>
</blockquote>
<br>
</body>
</html>