* [igt-dev] [PATCH i-g-t] tools/intel_watermark: Parse WM_DBG to help diagnose watermark issues
@ 2019-03-27 16:03 Ville Syrjala
2019-03-27 17:04 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
0 siblings, 1 reply; 2+ messages in thread
From: Ville Syrjala @ 2019-03-27 16:03 UTC (permalink / raw)
To: igt-dev
From: Ville Syrjälä <ville.syrjala@linux.intel.com>
WM_DBG has some useful sticky bits which tell us whether the
hardware has entered specific LP1+ and/or maxfifo modes since
those bits were last cleared. Let's dump those out.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
---
tools/intel_watermark.c | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/tools/intel_watermark.c b/tools/intel_watermark.c
index 2dc4307c33a3..8296795f5b66 100644
--- a/tools/intel_watermark.c
+++ b/tools/intel_watermark.c
@@ -43,6 +43,11 @@ static uint32_t read_reg(uint32_t addr)
return INREG(display_base + addr);
}
+static void write_reg(uint32_t addr, uint32_t val)
+{
+ OUTREG(display_base + addr, val);
+}
+
struct gmch_wm {
int wm, wm1, dl, fifo, fbc, burst;
bool dl_prec, valid;
@@ -250,6 +255,7 @@ static void skl_wm_dump(void)
uint32_t nv12_buf_cfg[num_pipes][max_planes];
uint32_t plane_ctl[num_pipes][max_planes];
uint32_t wm_linetime[num_pipes];
+ uint32_t wm_dbg;
intel_register_access_init(igt_device_get_pci_device(fd), 0, -1);
@@ -456,6 +462,17 @@ static void skl_wm_dump(void)
printf("* plane watermark enabled\n");
printf("(x) line watermark if enabled\n");
+
+ wm_dbg = read_reg(0x45280);
+ printf("WM_DBG: 0x%08x\n", wm_dbg);
+ printf(" LP used:");
+ for (level = 1; level < num_levels; level++) {
+ if (wm_dbg & (1 << (23 + level)))
+ printf(" LP%d", level);
+ }
+ printf("\n");
+ /* clear the sticky bits */
+ write_reg(0x45280, wm_dbg);
}
static void ilk_wm_dump(void)
@@ -608,6 +625,22 @@ static void ilk_wm_dump(void)
}
printf("FBC watermark = %s\n",
endis(!REG_DECODE1(arb_ctl, 15, 1)));
+
+ if (IS_BROADWELL(devid) || IS_HASWELL(devid)) {
+ uint32_t wm_dbg = read_reg(0x45280);
+ printf("WM_DBG: 0x%08x\n", wm_dbg);
+ if (wm_dbg & (1 << 31))
+ printf(" Full maxfifo used\n");
+ if (wm_dbg & (1 << 30))
+ printf(" Sprite maxfifo used\n");
+ printf(" LP used:");
+ for (i = 1; i < 4; i++) {
+ if (wm_dbg & (1 << (23+i)))
+ printf(" LP%d", i);
+ }
+ /* clear the sticky bits */
+ write_reg(0x45280, wm_dbg);
+ }
}
static void vlv_wm_dump(void)
--
2.19.2
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [igt-dev] ✗ Fi.CI.BAT: failure for tools/intel_watermark: Parse WM_DBG to help diagnose watermark issues
2019-03-27 16:03 [igt-dev] [PATCH i-g-t] tools/intel_watermark: Parse WM_DBG to help diagnose watermark issues Ville Syrjala
@ 2019-03-27 17:04 ` Patchwork
0 siblings, 0 replies; 2+ messages in thread
From: Patchwork @ 2019-03-27 17:04 UTC (permalink / raw)
To: Ville Syrjala; +Cc: igt-dev
== Series Details ==
Series: tools/intel_watermark: Parse WM_DBG to help diagnose watermark issues
URL : https://patchwork.freedesktop.org/series/58647/
State : failure
== Summary ==
CI Bug Log - changes from IGT_4909 -> IGTPW_2718
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with IGTPW_2718 absolutely need to be
verified manually.
If you think the reported changes have nothing to do with the changes
introduced in IGTPW_2718, please notify your bug team to allow them
to document this new failure mode, which will reduce false positives in CI.
External URL: https://patchwork.freedesktop.org/api/1.0/series/58647/revisions/1/mbox/
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in IGTPW_2718:
### IGT changes ###
#### Possible regressions ####
* igt@i915_selftest@live_contexts:
- fi-skl-gvtdvm: PASS -> DMESG-FAIL
Known issues
------------
Here are the changes found in IGTPW_2718 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@amdgpu/amd_cs_nop@fork-gfx0:
- fi-icl-u2: NOTRUN -> SKIP [fdo#109315] +17
* igt@gem_exec_basic@gtt-bsd2:
- fi-byt-clapper: NOTRUN -> SKIP [fdo#109271] +57
* igt@gem_exec_basic@readonly-bsd1:
- fi-icl-u2: NOTRUN -> SKIP [fdo#109276] +7
* igt@gem_exec_basic@readonly-vebox:
- fi-blb-e6850: NOTRUN -> SKIP [fdo#109271] +27
* igt@gem_exec_parse@basic-allowed:
- fi-icl-u2: NOTRUN -> SKIP [fdo#109289] +1
* igt@gem_exec_suspend@basic-s3:
- fi-blb-e6850: NOTRUN -> INCOMPLETE [fdo#107718]
* igt@i915_selftest@live_contexts:
- fi-icl-u2: NOTRUN -> DMESG-FAIL [fdo#108569]
* igt@i915_selftest@live_evict:
- fi-bsw-kefka: PASS -> DMESG-WARN [fdo#107709]
* igt@i915_selftest@live_execlists:
- fi-apl-guc: NOTRUN -> INCOMPLETE [fdo#103927] / [fdo#109720]
* igt@kms_busy@basic-flip-c:
- fi-byt-clapper: NOTRUN -> SKIP [fdo#109271] / [fdo#109278]
* igt@kms_chamelium@dp-edid-read:
- fi-icl-u2: NOTRUN -> SKIP [fdo#109316] +2
* igt@kms_chamelium@hdmi-edid-read:
- fi-hsw-peppy: NOTRUN -> SKIP [fdo#109271] +46
* igt@kms_chamelium@vga-edid-read:
- fi-skl-6600u: NOTRUN -> SKIP [fdo#109271] +41
* igt@kms_chamelium@vga-hpd-fast:
- fi-icl-u2: NOTRUN -> SKIP [fdo#109309] +1
* igt@kms_force_connector_basic@prune-stale-modes:
- fi-icl-u2: NOTRUN -> SKIP [fdo#109285] +3
* igt@kms_frontbuffer_tracking@basic:
- fi-hsw-peppy: NOTRUN -> DMESG-FAIL [fdo#102614] / [fdo#107814]
- fi-byt-clapper: NOTRUN -> FAIL [fdo#103167]
* igt@kms_psr@primary_page_flip:
- fi-apl-guc: NOTRUN -> SKIP [fdo#109271] +50
* igt@runner@aborted:
- fi-bsw-kefka: NOTRUN -> FAIL [fdo#107709]
- fi-apl-guc: NOTRUN -> FAIL [fdo#108622] / [fdo#109720]
#### Possible fixes ####
* igt@i915_selftest@live_uncore:
- fi-skl-gvtdvm: DMESG-FAIL [fdo#110210] -> PASS
* igt@kms_busy@basic-flip-b:
- fi-gdg-551: FAIL [fdo#103182] -> PASS
[fdo#102614]: https://bugs.freedesktop.org/show_bug.cgi?id=102614
[fdo#103167]: https://bugs.freedesktop.org/show_bug.cgi?id=103167
[fdo#103182]: https://bugs.freedesktop.org/show_bug.cgi?id=103182
[fdo#103927]: https://bugs.freedesktop.org/show_bug.cgi?id=103927
[fdo#107709]: https://bugs.freedesktop.org/show_bug.cgi?id=107709
[fdo#107718]: https://bugs.freedesktop.org/show_bug.cgi?id=107718
[fdo#107814]: https://bugs.freedesktop.org/show_bug.cgi?id=107814
[fdo#108569]: https://bugs.freedesktop.org/show_bug.cgi?id=108569
[fdo#108622]: https://bugs.freedesktop.org/show_bug.cgi?id=108622
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109276]: https://bugs.freedesktop.org/show_bug.cgi?id=109276
[fdo#109278]: https://bugs.freedesktop.org/show_bug.cgi?id=109278
[fdo#109285]: https://bugs.freedesktop.org/show_bug.cgi?id=109285
[fdo#109289]: https://bugs.freedesktop.org/show_bug.cgi?id=109289
[fdo#109309]: https://bugs.freedesktop.org/show_bug.cgi?id=109309
[fdo#109315]: https://bugs.freedesktop.org/show_bug.cgi?id=109315
[fdo#109316]: https://bugs.freedesktop.org/show_bug.cgi?id=109316
[fdo#109720]: https://bugs.freedesktop.org/show_bug.cgi?id=109720
[fdo#110210]: https://bugs.freedesktop.org/show_bug.cgi?id=110210
Participating hosts (36 -> 37)
------------------------------
Additional (6): fi-hsw-peppy fi-icl-u2 fi-apl-guc fi-blb-e6850 fi-byt-clapper fi-skl-6600u
Missing (5): fi-kbl-soraka fi-ilk-m540 fi-hsw-4200u fi-byt-squawks fi-bsw-cyan
Build changes
-------------
* IGT: IGT_4909 -> IGTPW_2718
CI_DRM_5826: 6ab42c4774198f9cd8caf0b865e68b5b26c0acf0 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_2718: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2718/
IGT_4909: 7df3eeb4f3360cd2b511c31acc1c52bd7ce6587f @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2718/
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-03-27 17:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-27 16:03 [igt-dev] [PATCH i-g-t] tools/intel_watermark: Parse WM_DBG to help diagnose watermark issues Ville Syrjala
2019-03-27 17:04 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox