drm/i915/xe2lpd: WA for underruns during FBC enable
Subsystems (3)
v3 cover drm/i915/xe2lpd: WA for underruns during FBC enable
Update the FBC enabling sequence. The plane binding register bits need to programmed before fbe enable bit.
v2: update the patch subject and description as this underrun is not
tied to PSR. FIFO underruns are observed when FBC is enabled on planes 2 or 3.
v2: Updated the comments and removed reference to PSR from the comments
Added reference to HSD
Vinod Govindapillai (1):
drm/i915/xe2lpd: implement WA for underruns while enabling FBC
drivers/gpu/drm/i915/display/intel_fbc.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-)
Signature · 1 line
2.34.1
PATCH v3 1/1 drm/i915/xe2lpd: implement WA for underruns while enabling FBC
FIFO underruns are observed when FBC is enabled on plane 2 or 3. This is root caused to a HW bug and the recommended WA is to update the FBC enabling sequence. The plane binding register bits need to be updated separately before programming the FBC enable bit.
HSD: 16021232047
--- drivers/gpu/drm/i915/display/intel_fbc.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/display/intel_fbc.c +12 -1
@@ -608,6 +608,7 @@ static u32 ivb_dpfc_ctl(struct intel_fbc *fbc)static void ivb_fbc_activate (struct intel_fbc *fbc) {struct drm_i915_private *i915 = fbc->i915; +u32 dpfc_ctl;if (DISPLAY_VER (i915) >=10 )glk_fbc_program_cfb_stride (fbc);
@@ -617,8 +618,18 @@ static void ivb_fbc_activate(struct intel_fbc *fbc)if (intel_gt_support_legacy_fencing (to_gt (i915)))snb_fbc_program_fence (fbc); +/* +* xe2lpd: WA for FIFO underruns while enabling FBC on planes 2 or 3 +* 1.Write FBC_CTL with Plane binding set correctly with FBC enable = 0 +* 2.Write FBC_CTL with Plane binding set correctly with FBC enable = 1 +* HSD: 16021232047 +*/ + dpfc_ctl =ivb_dpfc_ctl (fbc); +if (DISPLAY_VER (i915) >=20 ) +intel_de_write (i915,ILK_DPFC_CONTROL (fbc->id), dpfc_ctl); +intel_de_write (i915,ILK_DPFC_CONTROL (fbc->id), -DPFC_CTL_EN |ivb_dpfc_ctl (fbc)); +DPFC_CTL_EN | dpfc_ctl); }static bool ivb_fbc_is_compressing (struct intel_fbc *fbc)
Signature · 1 line
2.34.1
Re: [Intel-gfx] [PATCH v3 1/1] drm/i915/xe2lpd: implement WA for underruns while enabling FBC
Quoted 7 lines
-----Original Message-----
From: Intel-gfx <[email protected]> On Behalf Of Vinod Govindapillai
Sent: Thursday, November 9, 2023 12:25 AM
To: [email protected]
Cc: Syrjala, Ville <[email protected]>
Subject: [Intel-gfx] [PATCH v3 1/1] drm/i915/xe2lpd: implement WA for underruns while enabling FBC
Quoted 6 lines
FIFO underruns are observed when FBC is enabled on plane 2 or 3.
This is root caused to a HW bug and the recommended WA is to update the FBC enabling sequence. The plane binding register bits need to be updated separately before programming the FBC enable bit.HSD: 16021232047
Signed-off-by Vinod Govindapillai <[email protected]>
To me the patch seems to do what WA suggests.
Quoted 36 lines
--- drivers/gpu/drm/i915/display/intel_fbc.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-)drivers/gpu/drm/i915/display/intel_fbc.c +12
-2@@ -608,6 +608,7 @@ static u32 ivb_dpfc_ctl(struct intel_fbc *fbc) static void ivb_fbc_activate(struct intel_fbc *fbc) {struct drm_i915_private *i915 = fbc->i915; +u32 dpfc_ctl;if (DISPLAY_VER (i915) >=10 )glk_fbc_program_cfb_stride (fbc);@@ -617,8 +618,18 @@ static void ivb_fbc_activate(struct intel_fbc *fbc)if (intel_gt_support_legacy_fencing (to_gt (i915)))snb_fbc_program_fence (fbc); +/* +* xe2lpd: WA for FIFO underruns while enabling FBC on planes 2 or 3 +* 1.Write FBC_CTL with Plane binding set correctly with FBC enable = 0 +* 2.Write FBC_CTL with Plane binding set correctly with FBC enable = 1 +* HSD: 16021232047 +*/ + dpfc_ctl =ivb_dpfc_ctl (fbc); +if (DISPLAY_VER (i915) >=20 ) +intel_de_write (i915,ILK_DPFC_CONTROL (fbc->id), dpfc_ctl); +intel_de_write (i915,ILK_DPFC_CONTROL (fbc->id), -DPFC_CTL_EN |ivb_dpfc_ctl (fbc)); +DPFC_CTL_EN | dpfc_ctl); }static bool ivb_fbc_is_compressing (struct intel_fbc *fbc) --2.34.1
Patchwork
CI[Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915/xe2lpd: WA for underruns during FBC enable (rev2)
In reply to Vinod Govindapillai== Series Details ==
== Series Details ==
Series: drm/i915/xe2lpd: WA for underruns during FBC enable (rev2)
URL : https://patchwork.freedesktop.org/series/126143/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_13852 -> Patchwork_126143v2
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_126143v2 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes
introduced in Patchwork_126143v2, please notify your bug team ([email protected]) 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_126143v2/index.html
Participating hosts (34 -> 34)
------------------------------
Additional (1): bat-mtlp-8
Missing (1): fi-hsw-4770
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_126143v2:
### IGT changes ###
#### Possible regressions ####
* igt@i915_selftest@live@hangcheck:
- bat-adlm-1: [PASS][1] -> [INCOMPLETE][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13852/bat-adlm-1/igt@i915_selftest@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_126143v2/bat-adlm-1/igt@i915_selftest@[email protected]
Known issues
------------
Here are the changes found in Patchwork_126143v2 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@debugfs_test@basic-hwmon:
- bat-mtlp-8: NOTRUN -> [SKIP][3] ([i915#9318])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_126143v2/bat-mtlp-8/igt@[email protected]
* igt@gem_lmem_swapping@verify-random:
- bat-mtlp-8: NOTRUN -> [SKIP][4] ([i915#4613]) +3 other tests skip
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_126143v2/bat-mtlp-8/igt@[email protected]
* igt@gem_mmap@basic:
- bat-mtlp-8: NOTRUN -> [SKIP][5] ([i915#4083])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_126143v2/bat-mtlp-8/igt@[email protected]
* igt@gem_mmap_gtt@basic:
- bat-mtlp-8: NOTRUN -> [SKIP][6] ([i915#4077]) +3 other tests skip
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_126143v2/bat-mtlp-8/igt@[email protected]
* igt@gem_render_tiled_blits@basic:
- bat-mtlp-8: NOTRUN -> [SKIP][7] ([i915#4079]) +1 other test skip
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_126143v2/bat-mtlp-8/igt@[email protected]
* igt@i915_pm_rps@basic-api:
- bat-mtlp-8: NOTRUN -> [SKIP][8] ([i915#6621])
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_126143v2/bat-mtlp-8/igt@[email protected]
* igt@i915_suspend@basic-s3-without-i915:
- bat-mtlp-8: NOTRUN -> [SKIP][9] ([i915#6645])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_126143v2/bat-mtlp-8/igt@[email protected]
* igt@kms_addfb_basic@addfb25-y-tiled-small-legacy:
- bat-mtlp-8: NOTRUN -> [SKIP][10] ([i915#5190])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_126143v2/bat-mtlp-8/igt@[email protected]
* igt@kms_addfb_basic@basic-y-tiled-legacy:
- bat-mtlp-8: NOTRUN -> [SKIP][11] ([i915#4212]) +8 other tests skip
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_126143v2/bat-mtlp-8/igt@[email protected]
* igt@kms_cursor_legacy@basic-busy-flip-before-cursor-legacy:
- bat-mtlp-8: NOTRUN -> [SKIP][12] ([i915#4213]) +1 other test skip
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_126143v2/bat-mtlp-8/igt@[email protected]
* igt@kms_dsc@dsc-basic:
- bat-mtlp-8: NOTRUN -> [SKIP][13] ([i915#3555] / [i915#3840] / [i915#9159])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_126143v2/bat-mtlp-8/igt@[email protected]
* igt@kms_force_connector_basic@force-load-detect:
- bat-mtlp-8: NOTRUN -> [SKIP][14] ([fdo#109285])
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_126143v2/bat-mtlp-8/igt@[email protected]
* igt@kms_force_connector_basic@prune-stale-modes:
- bat-mtlp-8: NOTRUN -> [SKIP][15] ([i915#5274])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_126143v2/bat-mtlp-8/igt@[email protected]
* igt@kms_hdmi_inject@inject-audio:
- fi-kbl-guc: [PASS][16] -> [FAIL][17] ([IGT#3])
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13852/fi-kbl-guc/igt@[email protected]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_126143v2/fi-kbl-guc/igt@[email protected]
* igt@kms_pipe_crc_basic@nonblocking-crc-frame-sequence:
- bat-dg2-11: NOTRUN -> [SKIP][18] ([i915#1845] / [i915#9197]) +3 other tests skip
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_126143v2/bat-dg2-11/igt@[email protected]
* igt@kms_setmode@basic-clone-single-crtc:
- bat-mtlp-8: NOTRUN -> [SKIP][19] ([i915#3555] / [i915#8809])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_126143v2/bat-mtlp-8/igt@[email protected]
* igt@prime_vgem@basic-fence-mmap:
- bat-mtlp-8: NOTRUN -> [SKIP][20] ([i915#3708] / [i915#4077]) +1 other test skip
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_126143v2/bat-mtlp-8/igt@[email protected]
* igt@prime_vgem@basic-fence-read:
- bat-mtlp-8: NOTRUN -> [SKIP][21] ([i915#3708]) +2 other tests skip
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_126143v2/bat-mtlp-8/igt@[email protected]
[IGT#3]: https://gitlab.freedesktop.org/drm/igt-gpu-tools/issues/3
[fdo#109285]: https://bugs.freedesktop.org/show_bug.cgi?id=109285
[i915#1845]: https://gitlab.freedesktop.org/drm/intel/issues/1845
[i915#3555]: https://gitlab.freedesktop.org/drm/intel/issues/3555
[i915#3708]: https://gitlab.freedesktop.org/drm/intel/issues/3708
[i915#3840]: https://gitlab.freedesktop.org/drm/intel/issues/3840
[i915#4077]: https://gitlab.freedesktop.org/drm/intel/issues/4077
[i915#4079]: https://gitlab.freedesktop.org/drm/intel/issues/4079
[i915#4083]: https://gitlab.freedesktop.org/drm/intel/issues/4083
[i915#4212]: https://gitlab.freedesktop.org/drm/intel/issues/4212
[i915#4213]: https://gitlab.freedesktop.org/drm/intel/issues/4213
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#5190]: https://gitlab.freedesktop.org/drm/intel/issues/5190
[i915#5274]: https://gitlab.freedesktop.org/drm/intel/issues/5274
[i915#6621]: https://gitlab.freedesktop.org/drm/intel/issues/6621
[i915#6645]: https://gitlab.freedesktop.org/drm/intel/issues/6645
[i915#8809]: https://gitlab.freedesktop.org/drm/intel/issues/8809
[i915#9159]: https://gitlab.freedesktop.org/drm/intel/issues/9159
[i915#9197]: https://gitlab.freedesktop.org/drm/intel/issues/9197
[i915#9318]: https://gitlab.freedesktop.org/drm/intel/issues/9318
Build changes
-------------
* Linux: CI_DRM_13852 -> Patchwork_126143v2
CI-20190529: 20190529
CI_DRM_13852: 8040e9d346531d98ca164092c860c24c1dd6e845 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_7577: 303daa66145647680d8e817ff305f7f5d83843ee @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_126143v2: 8040e9d346531d98ca164092c860c24c1dd6e845 @ git://anongit.freedesktop.org/gfx-ci/linux
### Linux commits
8f2717da3780 drm/i915/xe2lpd: implement WA for underruns while enabling FBC
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_126143v2/index.html