public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915: Include GuC fw version in error state
@ 2017-02-23 23:11 Michel Thierry
  2017-02-24  0:22 ` ✓ Fi.CI.BAT: success for " Patchwork
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Michel Thierry @ 2017-02-23 23:11 UTC (permalink / raw)
  To: intel-gfx

There was no way to check if the platform is running the latest firmware.

Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Signed-off-by: Michel Thierry <michel.thierry@intel.com>
---
 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++)
-- 
2.11.0

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2017-02-24 17:32 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-23 23:11 [PATCH] drm/i915: Include GuC fw version in error state Michel Thierry
2017-02-24  0:22 ` ✓ Fi.CI.BAT: success for " Patchwork
2017-02-24  3:43 ` [PATCH] " Kamble, Sagar A
2017-02-24  9:13   ` Chris Wilson
2017-02-24 10:43     ` Michal Wajdeczko
2017-02-24 10:49       ` Chris Wilson
2017-02-24 15:45         ` Kamble, Sagar A
2017-02-24 16:30         ` Michel Thierry
2017-02-24 17:15           ` Chris Wilson
2017-02-24 17:32             ` Michel Thierry
2017-02-24 10:40 ` Michal Wajdeczko
2017-02-24 16:15   ` Michel Thierry
2017-02-24 16:21     ` Michel Thierry

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox