drm/i915: Add Guc/HuC firmware details to error state
Subsystems (2)
PATCH 1/1 drm/i915: Add Guc/HuC firmware details to error state
Include GuC and HuC firmware details in captured error state to provide additional debug information. To reuse existing uc firmware pretty printer, introduce new drm-printer variant that works with our i915_error_state_buf output.
--- drivers/gpu/drm/i915/i915_drv.h | 4 ++++ drivers/gpu/drm/i915/i915_gpu_error.c | 42 +++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+)
drivers/gpu/drm/i915/i915_drv.h +4 -0
@@ -912,6 +912,10 @@ struct i915_gpu_state {struct intel_device_info device_info;struct i915_params params; +/* uC state */ +struct intel_uc_fw guc_fw; +struct intel_uc_fw huc_fw; +/* Generic register state */ u32 eir;u32 pgtbl_er;
drivers/gpu/drm/i915/i915_gpu_error.c +42 -0
80 lines not on this page · raw message
Signature · 6 lines
2.7.4 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.BAT: failure for drm/i915: Add Guc/HuC firmware details to error state
== Series Details ==
== Series Details ==
Series: drm/i915: Add Guc/HuC firmware details to error state
URL : https://patchwork.freedesktop.org/series/32293/
State : failure
== Summary ==
Series 32293v1 drm/i915: Add Guc/HuC firmware details to error state
https://patchwork.freedesktop.org/api/1.0/series/32293/revisions/1/mbox/
Test chamelium:
Subgroup dp-crc-fast:
pass -> FAIL (fi-kbl-7500u) fdo#102514
Test kms_pipe_crc_basic:
Subgroup hang-read-crc-pipe-a:
pass -> INCOMPLETE (fi-skl-6700hq)fdo#102514 https://bugs.freedesktop.org/show_bug.cgi?id=102514
fi-bdw-5557u total:289 pass:268 dwarn:0 dfail:0 fail:0 skip:21 time:442s fi-bdw-gvtdvm total:289 pass:265 dwarn:0 dfail:0 fail:0 skip:24 time:445s fi-blb-e6850 total:289 pass:223 dwarn:1 dfail:0 fail:0 skip:65 time:372s fi-bsw-n3050 total:289 pass:243 dwarn:0 dfail:0 fail:0 skip:46 time:529s fi-bwr-2160 total:289 pass:183 dwarn:0 dfail:0 fail:0 skip:106 time:262s fi-bxt-dsi total:289 pass:259 dwarn:0 dfail:0 fail:0 skip:30 time:499s fi-bxt-j4205 total:289 pass:260 dwarn:0 dfail:0 fail:0 skip:29 time:504s fi-byt-j1900 total:289 pass:253 dwarn:1 dfail:0 fail:0 skip:35 time:493s fi-byt-n2820 total:289 pass:249 dwarn:1 dfail:0 fail:0 skip:39 time:484s fi-cfl-s total:289 pass:253 dwarn:4 dfail:0 fail:0 skip:32 time:558s fi-elk-e7500 total:289 pass:229 dwarn:0 dfail:0 fail:0 skip:60 time:419s fi-gdg-551 total:289 pass:178 dwarn:1 dfail:0 fail:1 skip:109 time:248s fi-glk-1 total:289 pass:261 dwarn:0 dfail:0 fail:0 skip:28 time:577s fi-hsw-4770 total:289 pass:262 dwarn:0 dfail:0 fail:0 skip:27 time:447s fi-hsw-4770r total:289 pass:262 dwarn:0 dfail:0 fail:0 skip:27 time:430s fi-ilk-650 total:289 pass:228 dwarn:0 dfail:0 fail:0 skip:61 time:432s fi-ivb-3520m total:289 pass:260 dwarn:0 dfail:0 fail:0 skip:29 time:493s fi-ivb-3770 total:289 pass:260 dwarn:0 dfail:0 fail:0 skip:29 time:456s fi-kbl-7500u total:289 pass:263 dwarn:1 dfail:0 fail:1 skip:24 time:478s fi-kbl-7560u total:289 pass:270 dwarn:0 dfail:0 fail:0 skip:19 time:573s fi-kbl-7567u total:289 pass:269 dwarn:0 dfail:0 fail:0 skip:20 time:481s fi-kbl-r total:289 pass:262 dwarn:0 dfail:0 fail:0 skip:27 time:588s fi-pnv-d510 total:289 pass:222 dwarn:1 dfail:0 fail:0 skip:66 time:543s fi-skl-6260u total:289 pass:269 dwarn:0 dfail:0 fail:0 skip:20 time:444s fi-skl-6700hq total:230 pass:205 dwarn:0 dfail:0 fail:0 skip:24 fi-skl-6700k total:289 pass:265 dwarn:0 dfail:0 fail:0 skip:24 time:516s fi-skl-6770hq total:289 pass:269 dwarn:0 dfail:0 fail:0 skip:20 time:499s fi-skl-gvtdvm total:289 pass:266 dwarn:0 dfail:0 fail:0 skip:23 time:457s fi-snb-2520m total:289 pass:250 dwarn:0 dfail:0 fail:0 skip:39 time:565s fi-snb-2600 total:289 pass:249 dwarn:0 dfail:0 fail:0 skip:40 time:413s
93f001963c9915c52b5ad84500075d231e008ced drm-tip: 2017y-10m-19d-10h-52m-17s UTC integration manifest 687278cfb361 drm/i915: Add Guc/HuC firmware details to error state
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_6102/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoting Michal Wajdeczko (2017-10-19 13:57:06)
drivers/gpu/drm/i915/i915_gpu_error.c int i915_error_state_to_str(struct drm_i915_error_state_buf *m, · line 796
Quoted 5 lines
drivers/gpu/drm/i915/i915_gpu_error.c +1
-0@@ -774,6 +793,11 @@ int i915_error_state_to_str(struct drm_i915_error_state_buf *m,err_print_capabilities (m, &error->device_info);err_print_params (m, &error->params); +if (HAS_GUC (dev_priv)) {
Could we not peek inside the struct to know if it has been set? Looking at the current device should be a last resort -- better to assume that everything and anything may have been overwritten since the error.
drivers/gpu/drm/i915/i915_gpu_error.c int i915_error_state_to_str(struct drm_i915_error_state_buf *m, · line 799
Quoted 3 lines
drivers/gpu/drm/i915/i915_gpu_error.c +3
-0+intel_uc_fw_dump (&dev_priv->guc.fw, &p); +intel_uc_fw_dump (&dev_priv->huc.fw, &p); + }
Looks really useful, thanks.
-Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 11 lines · Chris Wilson
Quoting Michal Wajdeczko (2017-10-19 13:57:06)
drivers/gpu/drm/i915/i915_gpu_error.c int i915_error_state_to_str(struct · line 797
Quoted 6 lines
drivers/gpu/drm/i915/i915_gpu_error.c +1
-0@@ -774,6 +793,11 @@ int i915_error_state_to_str(struct drm_i915_error_state_buf *m,err_print_capabilities (m, &error->device_info);err_print_params (m, &error->params); +if (HAS_GUC (dev_priv)) {Could we not peek inside the struct to know if it has been set? Looking at the current device should be a last resort -- better to assume that everything and anything may have been overwritten since the error.
I was following earlier patterns where HAS_CSR/IS_GEN were used. Will change into:
if (error->device_info.has_guc) {Quoted 4 lines
drivers/gpu/drm/i915/i915_gpu_error.c int i915_error_state_to_str(struct drm_i915_error_state_buf *m, · line 799
Quoted 4 lines
drivers/gpu/drm/i915/i915_gpu_error.c +3
-0+intel_uc_fw_dump (&dev_priv->guc.fw, &p); +intel_uc_fw_dump (&dev_priv->huc.fw, &p); + }
Ooops, I don't know how it happen but above dump should be:
intel_uc_fw_dump(&error->guc_fw, &p); intel_uc_fw_dump(&error->huc_fw, &p);
Michal
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoting Michal Wajdeczko (2017-10-19 13:57:06)
Quoted 14 lines
drivers/gpu/drm/i915/i915_gpu_error.c +2
-0@@ -30,6 +30,8 @@#include <generated/utsrelease.h> #include <linux/stop_machine.h> #include <linux/zlib.h> +#include <drm/drm_print.h> +#include "i915_drv.h" static const char *engine_str (int engine)
drivers/gpu/drm/i915/i915_gpu_error.c static void i915_error_puts(struct drm_i915_error_state_buf *e, · line 180
Quoted 4 lines
drivers/gpu/drm/i915/i915_gpu_error.c +1
-0@@ -175,6 +177,21 @@ static void i915_error_puts(struct drm_i915_error_state_buf *e,#define err_printf (e, ...) i915_error_printf(e, __VA_ARGS__)#define err_puts (e, s) i915_error_puts(e, s) +void __i915_printfn_error (struct drm_printer *p,struct va_format *vaf)
This isn't exported so don't forget the static?
-Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx