Skip to contentSkip to conversation

drm/i915: program wm blocks to at least blocks required per line

PATCH Superseded Vinod Govindapillai 3 participants 5 messages Apr 6, 2022 – Apr 17, 2022

Subsystems (2)

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 drm/i915: program wm blocks to at least blocks required per line

In configurations with single DRAM channel, for usecases like 4K 60 Hz, FIFO underruns are observed quite frequently. Looks like the wm0 watermark values need to bumped up because the wm0 memory latency calculations are probably not taking the DRAM channel's impact into account.

As per the Bspec 49325, if the ddb allocation can hold at least one plane_blocks_per_line we should have selected method2. Assuming that modern HW versions have enough dbuf to hold at least one line, set the wm blocks to equivalent to blocks per line.

V2: styling and comments changes (Ville)
V3: Updated the reviewed-by tag

cc Ville Syrjälä <[email protected]>
cc Stanislav Lisovskiy <[email protected]>
---
 drivers/gpu/drm/i915/intel_pm.c | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
drivers/gpu/drm/i915/intel_pm.c +19 -0
index 8824f269e5f5..d284ec8aff21 100644
@@ -5475,6 +5475,25 @@ static void skl_compute_plane_wm(const struct intel_crtc_state *crtc_state,
 	}
 
 	blocks = fixed16_to_u32_round_up(selected_result) + 1;
+	/*
+	 * Lets have blocks at minimum equivalent to plane_blocks_per_line
+	 * as there will be at minimum one line for lines configuration. This
+	 * is a work around for FIFO underruns observed with resolutions like
+	 * 4k 60 Hz in single channel DRAM configurations.
+	 *
+	 * As per the Bspec 49325, if the ddb allocation can hold at least
+	 * one plane_blocks_per_line, we should have selected method2 in
+	 * the above logic. Assuming that modern versions have enough dbuf
+	 * and method2 guarantees blocks equivalent to at least 1 line,
+	 * select the blocks as plane_blocks_per_line.
+	 *
+	 * TODO: Revisit the logic when we have better understanding on DRAM
+	 * channels' impact on the level 0 memory latency and the relevant
+	 * wm calculations.
+	 */
+	if (skl_wm_has_lines(dev_priv, level))
+		blocks = max_t(u32, blocks,
+			       fixed16_to_u32_round_up(wp->plane_blocks_per_line));
 	lines = div_round_up_fixed16(selected_result,
 				     wp->plane_blocks_per_line);
 
Signature · 1 line
2.25.1
#1 lore raw

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: program wm blocks to at least blocks required per line (rev3)

== Series Details ==

== Series Details ==

Series: drm/i915: program wm blocks to at least blocks required per line (rev3)
URL : https://patchwork.freedesktop.org/series/102149/
State : success

== Summary ==

CI Bug Log - changes from CI_DRM_11467 -> Patchwork_22799
====================================================

Summary
-------

**WARNING**

Minor unknown changes coming with Patchwork_22799 need to be verified manually.

If you think the reported changes have nothing to do with the changes introduced in Patchwork_22799, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.

External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/index.html

Participating hosts (50 -> 45)
------------------------------

Missing (5): shard-tglu fi-bsw-cyan fi-ctg-p8600 fi-pnv-d510 fi-bdw-samus

Possible new issues
-------------------

Here are the unknown changes that may have been introduced in Patchwork_22799:

### IGT changes ###

#### Warnings ####

* igt@core_hotunplug@unbind-rebind:
- fi-tgl-1115g4: [DMESG-WARN][1] ([i915#1982]) -> [DMESG-WARN][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11467/fi-tgl-1115g4/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/fi-tgl-1115g4/igt@[email protected]

Known issues
------------

Here are the changes found in Patchwork_22799 that come from known issues:

### IGT changes ###

#### Issues hit ####

* igt@kms_chamelium@vga-edid-read:
- fi-bdw-5557u: NOTRUN -> [SKIP][3] ([fdo#109271] / [fdo#111827]) +8 similar issues
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/fi-bdw-5557u/igt@[email protected]

* igt@kms_flip@basic-plain-flip:
- bat-dg1-6: NOTRUN -> [SKIP][4] ([i915#4078])
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/bat-dg1-6/igt@[email protected]

* igt@kms_force_connector_basic@force-load-detect:
- fi-bdw-5557u: NOTRUN -> [SKIP][5] ([fdo#109271]) +3 similar issues
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/fi-bdw-5557u/igt@[email protected]

* igt@kms_pipe_crc_basic@suspend-read-crc-pipe-a:
- fi-bdw-5557u: NOTRUN -> [INCOMPLETE][6] ([i915#146] / [i915#4444])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/fi-bdw-5557u/igt@[email protected]

* igt@runner@aborted:
- fi-tgl-u2: NOTRUN -> [FAIL][7] ([i915#5257])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/fi-tgl-u2/igt@[email protected]

#### Possible fixes ####

* igt@kms_busy@basic@modeset:
- {bat-adlp-6}: [DMESG-WARN][8] ([i915#3576]) -> [PASS][9]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11467/bat-adlp-6/igt@kms_busy@[email protected]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/bat-adlp-6/igt@kms_busy@[email protected]

{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).

[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[i915#146]: https://gitlab.freedesktop.org/drm/intel/issues/146
[i915#1982]: https://gitlab.freedesktop.org/drm/intel/issues/1982
[i915#3576]: https://gitlab.freedesktop.org/drm/intel/issues/3576
[i915#4078]: https://gitlab.freedesktop.org/drm/intel/issues/4078
[i915#4444]: https://gitlab.freedesktop.org/drm/intel/issues/4444
[i915#5257]: https://gitlab.freedesktop.org/drm/intel/issues/5257

Build changes
-------------

* Linux: CI_DRM_11467 -> Patchwork_22799

CI-20190529: 20190529
CI_DRM_11467: 9620d9a4dee7a4c418de2683f3a7f544042c1a4a @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_6414: b4d8d30a4ec8dae5c1c403f41348c073a9591d9f @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_22799: 35b2e9e5bd5367527ef716ab6cba7e74c4eec8a8 @ git://anongit.freedesktop.org/gfx-ci/linux

== Linux commits ==

35b2e9e5bd53 drm/i915: program wm blocks to at least blocks required per line

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/index.html

#2 lore raw

[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915: program wm blocks to at least blocks required per line (rev3)

In reply to Vinod Govindapillai
== Series Details ==

== Series Details ==

Series: drm/i915: program wm blocks to at least blocks required per line (rev3)
URL : https://patchwork.freedesktop.org/series/102149/
State : success

== Summary ==

CI Bug Log - changes from CI_DRM_11467_full -> Patchwork_22799_full
====================================================

Summary
-------

**SUCCESS**

No regressions found.

Participating hosts (13 -> 13)
------------------------------

No changes in participating hosts

Known issues
------------

Here are the changes found in Patchwork_22799_full that come from known issues:

### IGT changes ###

#### Issues hit ####

* igt@gem_ccs@ctrl-surf-copy:
- shard-iclb: NOTRUN -> [SKIP][1] ([i915#5327])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-iclb8/igt@[email protected]

* igt@gem_exec_fair@basic-deadline:
- shard-skl: NOTRUN -> [FAIL][2] ([i915#2846])
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-skl10/igt@[email protected]

* igt@gem_exec_fair@basic-none-solo@rcs0:
- shard-apl: [PASS][3] -> [FAIL][4] ([i915#2842])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11467/shard-apl8/igt@gem_exec_fair@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-apl8/igt@gem_exec_fair@[email protected]

* igt@gem_exec_fair@basic-none@vcs0:
- shard-glk: [PASS][5] -> [FAIL][6] ([i915#2842])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11467/shard-glk3/igt@gem_exec_fair@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-glk4/igt@gem_exec_fair@[email protected]

* igt@gem_exec_flush@basic-wb-rw-before-default:
- shard-snb: [PASS][7] -> [SKIP][8] ([fdo#109271]) +1 similar issue
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11467/shard-snb4/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-snb6/igt@[email protected]

* igt@gem_exec_params@secure-non-root:
- shard-tglb: NOTRUN -> [SKIP][9] ([fdo#112283])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-tglb8/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][10] ([fdo#112283])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-iclb1/igt@[email protected]

* igt@gem_lmem_swapping@random:
- shard-tglb: NOTRUN -> [SKIP][11] ([i915#4613])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-tglb8/igt@[email protected]
- shard-skl: NOTRUN -> [SKIP][12] ([fdo#109271] / [i915#4613])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-skl10/igt@[email protected]

* igt@gem_lmem_swapping@smem-oom:
- shard-iclb: NOTRUN -> [SKIP][13] ([i915#4613]) +1 similar issue
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-iclb8/igt@[email protected]
- shard-apl: NOTRUN -> [SKIP][14] ([fdo#109271] / [i915#4613])
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-apl6/igt@[email protected]

* igt@gem_mmap_gtt@coherency:
- shard-iclb: NOTRUN -> [SKIP][15] ([fdo#109292])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-iclb8/igt@[email protected]

* igt@gem_pread@exhaustion:
- shard-apl: NOTRUN -> [WARN][16] ([i915#2658])
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-apl6/igt@[email protected]
- shard-iclb: NOTRUN -> [WARN][17] ([i915#2658])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-iclb8/igt@[email protected]

* igt@gem_pxp@create-protected-buffer:
- shard-iclb: NOTRUN -> [SKIP][18] ([i915#4270])
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-iclb1/igt@[email protected]
- shard-tglb: NOTRUN -> [SKIP][19] ([i915#4270])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-tglb8/igt@[email protected]

* igt@gem_render_copy@y-tiled-mc-ccs-to-vebox-y-tiled:
- shard-iclb: NOTRUN -> [SKIP][20] ([i915#768]) +1 similar issue
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-iclb1/igt@[email protected]

* igt@gen9_exec_parse@allowed-single:
- shard-apl: NOTRUN -> [DMESG-WARN][21] ([i915#5566])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-apl3/igt@[email protected]

* igt@gen9_exec_parse@basic-rejected-ctx-param:
- shard-iclb: NOTRUN -> [SKIP][22] ([i915#2856]) +1 similar issue
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-iclb8/igt@[email protected]

* igt@gen9_exec_parse@cmd-crossing-page:
- shard-tglb: NOTRUN -> [SKIP][23] ([i915#2527] / [i915#2856])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-tglb8/igt@[email protected]

* igt@i915_pm_dc@dc6-psr:
- shard-iclb: [PASS][24] -> [FAIL][25] ([i915#454])
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11467/shard-iclb2/igt@[email protected]
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-iclb2/igt@[email protected]

* igt@i915_pm_rpm@system-suspend:
- shard-skl: [PASS][26] -> [INCOMPLETE][27] ([i915#5420])
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11467/shard-skl1/igt@[email protected]
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-skl1/igt@[email protected]

* igt@i915_pm_rpm@system-suspend-modeset:
- shard-glk: [PASS][28] -> [DMESG-WARN][29] ([i915#118] / [i915#1888])
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11467/shard-glk3/igt@[email protected]
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-glk4/igt@[email protected]

* igt@i915_pm_sseu@full-enable:
- shard-iclb: NOTRUN -> [SKIP][30] ([i915#4387])
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-iclb1/igt@[email protected]

* igt@i915_query@query-topology-unsupported:
- shard-iclb: NOTRUN -> [SKIP][31] ([fdo#109302])
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-iclb8/igt@[email protected]

* igt@i915_suspend@fence-restore-tiled2untiled:
- shard-apl: [PASS][32] -> [DMESG-WARN][33] ([i915#180]) +4 similar issues
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11467/shard-apl6/igt@[email protected]
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-apl2/igt@[email protected]

* igt@kms_big_fb@4-tiled-max-hw-stride-32bpp-rotate-0-hflip-async-flip:
- shard-tglb: NOTRUN -> [SKIP][34] ([i915#5286]) +1 similar issue
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-tglb8/igt@kms_big_fb@4-tiled-max-hw-stride-32bpp-rotate-0-hflip-async-flip.html

* igt@kms_big_fb@4-tiled-max-hw-stride-64bpp-rotate-0-async-flip:
- shard-iclb: NOTRUN -> [SKIP][35] ([i915#5286]) +2 similar issues
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-iclb1/igt@[email protected]

* igt@kms_big_fb@x-tiled-16bpp-rotate-270:
- shard-iclb: NOTRUN -> [SKIP][36] ([fdo#110725] / [fdo#111614])
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-iclb1/igt@[email protected]

* igt@kms_big_fb@yf-tiled-max-hw-stride-32bpp-rotate-0-hflip-async-flip:
- shard-tglb: NOTRUN -> [SKIP][37] ([fdo#111615])
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-tglb8/igt@kms_big_fb@yf-tiled-max-hw-stride-32bpp-rotate-0-hflip-async-flip.html

* igt@kms_ccs@pipe-b-bad-rotation-90-y_tiled_gen12_rc_ccs_cc:
- shard-iclb: NOTRUN -> [SKIP][38] ([fdo#109278] / [i915#3886])
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-iclb1/igt@kms_ccs@pipe-b-bad-rotation-90-y_tiled_gen12_rc_ccs_cc.html

* igt@kms_color@pipe-d-ctm-negative:
- shard-kbl: NOTRUN -> [SKIP][39] ([fdo#109271]) +16 similar issues
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-kbl1/igt@[email protected]

* igt@kms_color_chamelium@pipe-c-ctm-0-5:
- shard-iclb: NOTRUN -> [SKIP][40] ([fdo#109284] / [fdo#111827]) +3 similar issues
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-iclb1/igt@[email protected]
- shard-skl: NOTRUN -> [SKIP][41] ([fdo#109271] / [fdo#111827])
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-skl10/igt@[email protected]
- shard-tglb: NOTRUN -> [SKIP][42] ([fdo#109284] / [fdo#111827])
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-tglb8/igt@[email protected]

* igt@kms_color_chamelium@pipe-c-degamma:
- shard-apl: NOTRUN -> [SKIP][43] ([fdo#109271] / [fdo#111827]) +3 similar issues
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-apl7/igt@[email protected]
- shard-kbl: NOTRUN -> [SKIP][44] ([fdo#109271] / [fdo#111827]) +1 similar issue
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-kbl1/igt@[email protected]

* igt@kms_cursor_crc@pipe-a-cursor-512x170-random:
- shard-tglb: NOTRUN -> [SKIP][45] ([fdo#109279] / [i915#3359])
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-tglb8/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][46] ([fdo#109278] / [fdo#109279]) +1 similar issue
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-iclb1/igt@[email protected]

* igt@kms_cursor_crc@pipe-d-cursor-32x10-onscreen:
- shard-tglb: NOTRUN -> [SKIP][47] ([i915#3359])
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-tglb8/igt@[email protected]

* igt@kms_cursor_crc@pipe-d-cursor-64x64-rapid-movement:
- shard-iclb: NOTRUN -> [SKIP][48] ([fdo#109278]) +13 similar issues
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-iclb1/igt@[email protected]

* igt@kms_cursor_legacy@cursorb-vs-flipb-atomic-transitions-varying-size:
- shard-iclb: NOTRUN -> [SKIP][49] ([fdo#109274] / [fdo#109278]) +1 similar issue
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-iclb1/igt@kms_cursor_legacy@cursorb-vs-flipb-atomic-transitions-varying-size.html

* igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions:
- shard-glk: [PASS][50] -> [FAIL][51] ([i915#2346])
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11467/shard-glk1/igt@[email protected]
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-glk6/igt@[email protected]

* igt@kms_flip@2x-nonexisting-fb:
- shard-iclb: NOTRUN -> [SKIP][52] ([fdo#109274]) +4 similar issues
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-iclb1/igt@[email protected]

* igt@kms_flip@plain-flip-ts-check-interruptible@c-edp1:
- shard-skl: [PASS][53] -> [FAIL][54] ([i915#2122])
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11467/shard-skl8/igt@kms_flip@[email protected]
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-skl4/igt@kms_flip@[email protected]

* igt@kms_frontbuffer_tracking@fbc-2p-primscrn-indfb-plflip-blt:
- shard-glk: [PASS][55] -> [FAIL][56] ([i915#1888] / [i915#2546])
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11467/shard-glk5/igt@[email protected]
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-glk5/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbc-2p-primscrn-pri-indfb-draw-pwrite:
- shard-skl: NOTRUN -> [SKIP][57] ([fdo#109271]) +7 similar issues
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-skl10/igt@kms_frontbuffer_tracking@fbc-2p-primscrn-pri-indfb-draw-pwrite.html
- shard-tglb: NOTRUN -> [SKIP][58] ([fdo#109280] / [fdo#111825]) +4 similar issues
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-tglb8/igt@kms_frontbuffer_tracking@fbc-2p-primscrn-pri-indfb-draw-pwrite.html

* igt@kms_frontbuffer_tracking@fbcpsr-2p-primscrn-shrfb-pgflip-blt:
- shard-apl: NOTRUN -> [SKIP][59] ([fdo#109271]) +49 similar issues
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-apl6/igt@kms_frontbuffer_tracking@fbcpsr-2p-primscrn-shrfb-pgflip-blt.html

* igt@kms_frontbuffer_tracking@fbcpsr-tiling-4:
- shard-iclb: NOTRUN -> [SKIP][60] ([i915#5438])
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-iclb8/igt@[email protected]

* igt@kms_frontbuffer_tracking@psr-2p-primscrn-cur-indfb-move:
- shard-iclb: NOTRUN -> [SKIP][61] ([fdo#109280]) +7 similar issues
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-iclb8/igt@[email protected]

* igt@kms_plane_alpha_blend@pipe-b-constant-alpha-min:
- shard-skl: [PASS][62] -> [FAIL][63] ([fdo#108145] / [i915#265])
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11467/shard-skl9/igt@[email protected]
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-skl4/igt@[email protected]

* igt@kms_plane_alpha_blend@pipe-c-alpha-7efc:
- shard-kbl: NOTRUN -> [FAIL][64] ([fdo#108145] / [i915#265])
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-kbl1/igt@[email protected]
- shard-apl: NOTRUN -> [FAIL][65] ([fdo#108145] / [i915#265])
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-apl7/igt@[email protected]

* igt@kms_plane_scaling@downscale-with-pixel-format-factor-0-25@pipe-a-edp-1-downscale-with-pixel-format:
- shard-iclb: NOTRUN -> [SKIP][66] ([i915#5176]) +2 similar issues
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-iclb1/igt@kms_plane_scaling@downscale-with-pixel-format-factor-0-25@pipe-a-edp-1-downscale-with-pixel-format.html

* igt@kms_psr@psr2_cursor_plane_move:
- shard-iclb: [PASS][67] -> [SKIP][68] ([fdo#109441])
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11467/shard-iclb2/igt@kms_psr@psr2_cursor_plane_move.html
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-iclb1/igt@kms_psr@psr2_cursor_plane_move.html

* igt@kms_vblank@pipe-c-ts-continuation-suspend:
- shard-skl: [PASS][69] -> [INCOMPLETE][70] ([i915#2828])
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11467/shard-skl4/igt@[email protected]
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-skl6/igt@[email protected]

* igt@kms_vrr@flipline:
- shard-iclb: NOTRUN -> [SKIP][71] ([fdo#109502])
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-iclb8/igt@[email protected]

* igt@nouveau_crc@pipe-a-source-outp-complete:
- shard-tglb: NOTRUN -> [SKIP][72] ([i915#2530])
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-tglb8/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][73] ([i915#2530])
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-iclb1/igt@[email protected]

* igt@prime_nv_api@nv_self_import_to_different_fd:
- shard-iclb: NOTRUN -> [SKIP][74] ([fdo#109291])
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-iclb8/igt@prime_nv_api@nv_self_import_to_different_fd.html

#### Possible fixes ####

* igt@fbdev@unaligned-write:
- {shard-rkl}: [SKIP][75] ([i915#2582]) -> [PASS][76]
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11467/shard-rkl-5/igt@[email protected]
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-rkl-6/igt@[email protected]

* igt@gem_eio@unwedge-stress:
- shard-tglb: [FAIL][77] ([i915#232]) -> [PASS][78]
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11467/shard-tglb5/igt@[email protected]
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-tglb7/igt@[email protected]
- {shard-tglu}: [TIMEOUT][79] ([i915#3063] / [i915#3648]) -> [PASS][80]
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11467/shard-tglu-1/igt@[email protected]
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-tglu-5/igt@[email protected]
- {shard-rkl}: [TIMEOUT][81] ([i915#3063]) -> [PASS][82]
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11467/shard-rkl-1/igt@[email protected]
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-rkl-1/igt@[email protected]

* igt@gem_exec_endless@dispatch@vecs0:
- shard-tglb: [INCOMPLETE][83] ([i915#3778]) -> [PASS][84]
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11467/shard-tglb3/igt@gem_exec_endless@[email protected]
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-tglb6/igt@gem_exec_endless@[email protected]

* igt@gem_exec_fair@basic-deadline:
- shard-kbl: [FAIL][85] ([i915#2846]) -> [PASS][86]
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11467/shard-kbl7/igt@[email protected]
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-kbl4/igt@[email protected]

* igt@gem_exec_flush@basic-batch-kernel-default-uc:
- shard-snb: [SKIP][87] ([fdo#109271]) -> [PASS][88] +5 similar issues
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11467/shard-snb6/igt@[email protected]
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-snb5/igt@[email protected]

* igt@gem_exec_suspend@basic-s3-devices@smem:
- shard-kbl: [DMESG-WARN][89] -> [PASS][90]
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11467/shard-kbl6/igt@gem_exec_suspend@[email protected]
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-kbl3/igt@gem_exec_suspend@[email protected]

* igt@gem_exec_whisper@basic-queues-all:
- shard-glk: [DMESG-WARN][91] ([i915#118]) -> [PASS][92] +1 similar issue
[91]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11467/shard-glk5/igt@[email protected]
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-glk3/igt@[email protected]

* igt@gem_exec_whisper@basic-queues-priority:
- {shard-rkl}: [INCOMPLETE][93] -> [PASS][94]
[93]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11467/shard-rkl-5/igt@[email protected]
[94]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-rkl-2/igt@[email protected]

* igt@gem_mmap_gtt@close-race:
- {shard-rkl}: [INCOMPLETE][95] ([i915#5080]) -> [PASS][96]
[95]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11467/shard-rkl-5/igt@[email protected]
[96]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-rkl-2/igt@[email protected]

* igt@gem_mmap_wc@set-cache-level:
- {shard-rkl}: [SKIP][97] ([i915#1850]) -> [PASS][98]
[97]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11467/shard-rkl-5/igt@[email protected]
[98]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-rkl-6/igt@[email protected]

* igt@gem_ppgtt@blt-vs-render-ctxn:
- shard-snb: [DMESG-FAIL][99] ([i915#3692]) -> [PASS][100]
[99]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11467/shard-snb6/igt@[email protected]
[100]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-snb5/igt@[email protected]

* igt@gem_softpin@allocator-evict-all-engines:
- shard-glk: [FAIL][101] ([i915#4171]) -> [PASS][102]
[101]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11467/shard-glk3/igt@[email protected]
[102]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-glk4/igt@[email protected]

* igt@i915_pm_dc@dc6-dpms:
- shard-iclb: [FAIL][103] ([i915#454]) -> [PASS][104]
[103]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11467/shard-iclb3/igt@[email protected]
[104]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-iclb8/igt@[email protected]

* igt@i915_pm_dc@dc9-dpms:
- {shard-tglu}: [SKIP][105] ([i915#4281]) -> [PASS][106]
[105]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11467/shard-tglu-3/igt@[email protected]
[106]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-tglu-2/igt@[email protected]

* igt@i915_pm_rpm@drm-resources-equal:
- {shard-rkl}: [SKIP][107] ([fdo#109308]) -> [PASS][108]
[107]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11467/shard-rkl-2/igt@[email protected]
[108]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-rkl-6/igt@[email protected]

* igt@i915_pm_rpm@modeset-lpsp:
- {shard-rkl}: [SKIP][109] ([i915#1397]) -> [PASS][110]
[109]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11467/shard-rkl-5/igt@[email protected]
[110]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-rkl-6/igt@[email protected]

* igt@i915_pm_rpm@system-suspend-execbuf:
- shard-iclb: [INCOMPLETE][111] ([i915#5096]) -> [PASS][112]
[111]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11467/shard-iclb4/igt@[email protected]
[112]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-iclb1/igt@[email protected]

* igt@kms_big_fb@x-tiled-32bpp-rotate-0:
- {shard-tglu}: [DMESG-WARN][113] ([i915#402]) -> [PASS][114]
[113]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11467/shard-tglu-6/igt@[email protected]
[114]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-tglu-5/igt@[email protected]

* igt@kms_big_fb@x-tiled-max-hw-stride-64bpp-rotate-0:
- {shard-rkl}: [SKIP][115] ([i915#1845] / [i915#4098]) -> [PASS][116] +29 similar issues
[115]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11467/shard-rkl-1/igt@[email protected]
[116]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-rkl-6/igt@[email protected]

* igt@kms_ccs@pipe-b-crc-sprite-planes-basic-y_tiled_ccs:
- shard-kbl: [DMESG-WARN][117] ([i915#62] / [i915#92]) -> [PASS][118] +5 similar issues
[117]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11467/shard-kbl6/igt@kms_ccs@pipe-b-crc-sprite-planes-basic-y_tiled_ccs.html
[118]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-kbl3/igt@kms_ccs@pipe-b-crc-sprite-planes-basic-y_tiled_ccs.html

* igt@kms_color@pipe-a-ctm-max:
- {shard-rkl}: [SKIP][119] ([i915#1149] / [i915#1849] / [i915#4070] / [i915#4098]) -> [PASS][120] +1 similar issue
[119]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11467/shard-rkl-2/igt@[email protected]
[120]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-rkl-6/igt@[email protected]

* igt@kms_cursor_crc@pipe-b-cursor-128x128-sliding:
- {shard-rkl}: [SKIP][121] ([fdo#112022] / [i915#4070]) -> [PASS][122] +8 similar issues
[121]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11467/shard-rkl-1/igt@[email protected]
[122]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-rkl-6/igt@[email protected]

* igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size:
- shard-glk: [FAIL][123] ([i915#2346] / [i915#533]) -> [PASS][124]
[123]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11467/shard-glk4/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size.html
[124]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-glk7/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size.html

* igt@kms_cursor_legacy@flip-vs-cursor-toggle:
- shard-iclb: [FAIL][125] ([i915#2346]) -> [PASS][126]
[125]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11467/shard-iclb7/igt@[email protected]
[126]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-iclb5/igt@[email protected]

* igt@kms_cursor_legacy@short-flip-after-cursor-atomic-transitions-varying-size:
- {shard-rkl}: [SKIP][127] ([fdo#111825] / [i915#4070]) -> [PASS][128] +3 similar issues
[127]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11467/shard-rkl-5/igt@kms_cursor_legacy@short-flip-after-cursor-atomic-transitions-varying-size.html
[128]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-rkl-6/igt@kms_cursor_legacy@short-flip-after-cursor-atomic-transitions-varying-size.html

* igt@kms_draw_crc@draw-method-xrgb2101010-render-untiled:
- {shard-rkl}: [SKIP][129] ([fdo#111314] / [i915#4098] / [i915#4369]) -> [PASS][130] +10 similar issues
[129]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11467/shard-rkl-2/igt@[email protected]
[130]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-rkl-6/igt@[email protected]

* igt@kms_fbcon_fbt@psr:
- {shard-rkl}: [SKIP][131] ([fdo#110189] / [i915#3955]) -> [PASS][132]
[131]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11467/shard-rkl-5/igt@[email protected]
[132]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-rkl-6/igt@[email protected]

* igt@kms_flip@flip-vs-suspend-interruptible@c-dp1:
- shard-apl: [DMESG-WARN][133] ([i915#180]) -> [PASS][134] +3 similar issues
[133]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11467/shard-apl2/igt@kms_flip@[email protected]
[134]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-apl7/igt@kms_flip@[email protected]
- shard-kbl: [INCOMPLETE][135] ([i915#636]) -> [PASS][136]
[135]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11467/shard-kbl3/igt@kms_flip@[email protected]
[136]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-kbl1/igt@kms_flip@[email protected]

* igt@kms_flip@flip-vs-wf_vblank-interruptible@a-dp1:
- shard-kbl: [DMESG-WARN][137] ([i915#1982] / [i915#62] / [i915#92]) -> [PASS][138]
[137]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11467/shard-kbl6/igt@kms_flip@[email protected]
[138]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-kbl3/igt@kms_flip@[email protected]

* igt@kms_flip@plain-flip-ts-check@a-edp1:
- shard-skl: [FAIL][139] ([i915#2122]) -> [PASS][140]
[139]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11467/shard-skl10/igt@kms_flip@[email protected]
[140]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-skl6/igt@kms_flip@[email protected]

* igt@kms_flip_scaled_crc@flip-32bpp-ytileccs-to-64bpp-ytile-upscaling:
- shard-glk: [FAIL][141] ([i915#4911]) -> [PASS][142]
[141]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11467/shard-glk8/igt@kms_flip_scaled_crc@flip-32bpp-ytileccs-to-64bpp-ytile-upscaling.html
[142]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-glk2/igt@kms_flip_scaled_crc@flip-32bpp-ytileccs-to-64bpp-ytile-upscaling.html

* igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-16bpp-ytile-upscaling:
- {shard-rkl}: [INCOMPLETE][143] ([i915#3701]) -> [PASS][144]
[143]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11467/shard-rkl-2/igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-16bpp-ytile-upscaling.html
[144]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-rkl-6/igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-16bpp-ytile-upscaling.html

* igt@kms_frontbuffer_tracking@fbc-1p-primscrn-pri-shrfb-draw-pwrite:
- shard-glk: [FAIL][145] ([i915#2546]) -> [PASS][146]
[145]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11467/shard-glk4/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-pri-shrfb-draw-pwrite.html
[146]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/shard-glk6/ig

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22799/index.html

#3 lore raw
In reply to Vinod Govindapillai
Quoted 12 lines · Vinod Govindapillai

In configurations with single DRAM channel, for usecases like 4K 60 Hz, FIFO underruns are observed quite frequently. Looks like the wm0 watermark values need to bumped up because the wm0 memory latency calculations are probably not taking the DRAM channel's impact into account.

As per the Bspec 49325, if the ddb allocation can hold at least one plane_blocks_per_line we should have selected method2. Assuming that modern HW versions have enough dbuf to hold at least one line, set the wm blocks to equivalent to blocks per line.

Quoted 6 lines

V2: styling and comments changes (Ville)
V3: Updated the reviewed-by tag

cc Ville Syrjälä <[email protected]>
cc Stanislav Lisovskiy <[email protected]>

Normally people put all the tags in one block, ie. no extra newlines like this. Also 'Cc:' is the normal form for these.

I was expecting to see gitlab issue links here. Maybe not Closes:
since this is not the final form I guess. But could slap them on here as References:.

Quoted 23 lines
---
 drivers/gpu/drm/i915/intel_pm.c | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
drivers/gpu/drm/i915/intel_pm.c +9 -0
index 8824f269e5f5..d284ec8aff21 100644
@@ -5475,6 +5475,25 @@ static void skl_compute_plane_wm(const struct intel_crtc_state *crtc_state,
 	}
 
 	blocks = fixed16_to_u32_round_up(selected_result) + 1;
+	/*
+	 * Lets have blocks at minimum equivalent to plane_blocks_per_line
+	 * as there will be at minimum one line for lines configuration. This
+	 * is a work around for FIFO underruns observed with resolutions like
+	 * 4k 60 Hz in single channel DRAM configurations.
+	 *
+	 * As per the Bspec 49325, if the ddb allocation can hold at least
+	 * one plane_blocks_per_line, we should have selected method2 in
+	 * the above logic. Assuming that modern versions have enough dbuf

drivers/gpu/drm/i915/intel_pm.c static void skl_compute_plane_wm(const struct intel_crtc_state *crtc_state, · line 5496

Quoted 10 lines
drivers/gpu/drm/i915/intel_pm.c +10 -0
+	 * and method2 guarantees blocks equivalent to at least 1 line,
+	 * select the blocks as plane_blocks_per_line.
+	 *
+	 * TODO: Revisit the logic when we have better understanding on DRAM
+	 * channels' impact on the level 0 memory latency and the relevant
+	 * wm calculations.
+	 */
+	if (skl_wm_has_lines(dev_priv, level))
+		blocks = max_t(u32, blocks,
+			       fixed16_to_u32_round_up(wp->plane_blocks_per_line));

A simple max() should do since the types are the same.

Quoted 5 lines
drivers/gpu/drm/i915/intel_pm.c +0 -0
 	lines = div_round_up_fixed16(selected_result,
 				     wp->plane_blocks_per_line);
 
Signature · 1 line
2.25.1
Signature · 2 lines
Ville Syrjälä
Intel
#4 lore raw
Quoted 55 lines · Ville Syrjälä
Quoted 12 lines · Vinod Govindapillai

In configurations with single DRAM channel, for usecases like 4K 60 Hz, FIFO underruns are observed quite frequently. Looks like the wm0 watermark values need to bumped up because the wm0 memory latency calculations are probably not taking the DRAM channel's impact into account.

As per the Bspec 49325, if the ddb allocation can hold at least one plane_blocks_per_line we should have selected method2. Assuming that modern HW versions have enough dbuf to hold at least one line, set the wm blocks to equivalent to blocks per line.

Quoted 6 lines

V2: styling and comments changes (Ville)
V3: Updated the reviewed-by tag

cc Ville Syrjälä <[email protected]>
cc Stanislav Lisovskiy <[email protected]>

Normally people put all the tags in one block, ie. no extra newlines like this. Also 'Cc:' is the normal form for these.

I was expecting to see gitlab issue links here. Maybe not Closes:
since this is not the final form I guess. But could slap them on here as References:.

Quoted 28 lines
---
 drivers/gpu/drm/i915/intel_pm.c | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
drivers/gpu/drm/i915/intel_pm.c +13 -0
index 8824f269e5f5..d284ec8aff21 100644
@@ -5475,6 +5475,25 @@ static void skl_compute_plane_wm(const struct intel_crtc_state
 *crtc_state,
 	}
 
 	blocks = fixed16_to_u32_round_up(selected_result) + 1;
+	/*
+	 * Lets have blocks at minimum equivalent to plane_blocks_per_line
+	 * as there will be at minimum one line for lines configuration. This
+	 * is a work around for FIFO underruns observed with resolutions like
+	 * 4k 60 Hz in single channel DRAM configurations.
+	 *
+	 * As per the Bspec 49325, if the ddb allocation can hold at least
+	 * one plane_blocks_per_line, we should have selected method2 in
+	 * the above logic. Assuming that modern versions have enough dbuf
+	 * and method2 guarantees blocks equivalent to at least 1 line,
+	 * select the blocks as plane_blocks_per_line.
+	 *
+	 * TODO: Revisit the logic when we have better understanding on DRAM
Quoted 8 lines

drivers/gpu/drm/i915/intel_pm.c static void skl_compute_plane_wm(const struct intel_crtc_state *crtc_state, · line 5496

Quoted 6 lines
drivers/gpu/drm/i915/intel_pm.c +6 -0
+	 * channels' impact on the level 0 memory latency and the relevant
+	 * wm calculations.
+	 */
+	if (skl_wm_has_lines(dev_priv, level))
+		blocks = max_t(u32, blocks,
+			       fixed16_to_u32_round_up(wp->plane_blocks_per_line));

A simple max() should do since the types are the same.

Thanks! I updated that.

Quoted 6 lines
Quoted 6 lines
drivers/gpu/drm/i915/intel_pm.c +0 -0
 	lines = div_round_up_fixed16(selected_result,
 				     wp->plane_blocks_per_line);
Signature · 2 lines
-- 
2.25.1

V4 Sent.

BR
Vinod