Skip to contentSkip to conversation

drm/i915/dsc: Change rc parameters calculation for DSC 1.1

PATCH Superseded William Tseng 3 participants 9 messages Feb 20, 2025 – Feb 21, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/i915/dsc: Change rc parameters calculation for DSC 1.1

When calculating dsc parameters, the rc parameters calculated by calculate_rc_params() may be incorrect in the case of DSC 1.1 and DISPLAY_VER(dev_priv) >= 13 and cause noise-like lines displayed on a MIPI DSI panel supporting DSC 1.1. The calculation seems for DSC 1.2 only. So, instead of calculate_rc_params(), calculate the rc paramerters with the function drm_dsc_setup_rc_params() for DSC 1.1.

Cc Suraj Kandpal <[email protected]>
Cc Juha-Pekka Heikkil <[email protected]>
---
 drivers/gpu/drm/i915/display/intel_vdsc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/display/intel_vdsc.c +1 -1
index b355c479eda3..e3443a1d12e0 100644
@@ -320,7 +320,7 @@ int intel_dsc_compute_params(struct intel_crtc_state *pipe_config)
 	 * upto uncompressed bpp-1, hence add calculations for all the rc
 	 * parameters
 	 */
-	if (DISPLAY_VER(dev_priv) >= 13) {
+	if (DISPLAY_VER(dev_priv) >= 13 && vdsc_cfg->dsc_version_minor == 2) {
 		calculate_rc_params(vdsc_cfg);
 	} else {
 		if ((compressed_bpp == 8 ||
Signature · 1 line
2.34.1
#1 lore raw

✗ i915.CI.BAT: failure for drm/i915/dsc: Change rc parameters calculation for DSC 1.1

== Series Details ==

== Series Details ==

Series: drm/i915/dsc: Change rc parameters calculation for DSC 1.1
URL : https://patchwork.freedesktop.org/series/145136/
State : failure

== Summary ==

CI Bug Log - changes from CI_DRM_16161 -> Patchwork_145136v1
====================================================

Summary
-------

**FAILURE**

Serious unknown changes coming with Patchwork_145136v1 absolutely need to be verified manually.

If you think the reported changes have nothing to do with the changes
introduced in Patchwork_145136v1, 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_145136v1/index.html

Participating hosts (43 -> 42)
------------------------------

Additional (1): bat-arlh-2
Missing (2): fi-glk-j4005 fi-snb-2520m

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

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

### IGT changes ###

#### Possible regressions ####

* igt@kms_dsc@dsc-basic@pipe-a-dp-1:
- bat-dg2-9: [PASS][1] -> [FAIL][2] +1 other test fail
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16161/bat-dg2-9/igt@kms_dsc@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145136v1/bat-dg2-9/igt@kms_dsc@[email protected]
- bat-dg2-8: [PASS][3] -> [FAIL][4] +1 other test fail
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16161/bat-dg2-8/igt@kms_dsc@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145136v1/bat-dg2-8/igt@kms_dsc@[email protected]

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

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

### IGT changes ###

#### Issues hit ####

* igt@debugfs_test@basic-hwmon:
- bat-arlh-2: NOTRUN -> [SKIP][5] ([i915#11346] / [i915#9318])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145136v1/bat-arlh-2/igt@[email protected]

* igt@fbdev@eof:
- bat-arlh-2: NOTRUN -> [SKIP][6] ([i915#11345] / [i915#11346]) +3 other tests skip
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145136v1/bat-arlh-2/igt@[email protected]

* igt@fbdev@info:
- bat-arlh-2: NOTRUN -> [SKIP][7] ([i915#11346] / [i915#1849])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145136v1/bat-arlh-2/igt@[email protected]

* igt@gem_lmem_swapping@basic:
- bat-arlh-2: NOTRUN -> [SKIP][8] ([i915#10213] / [i915#11346] / [i915#11671]) +3 other tests skip
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145136v1/bat-arlh-2/igt@[email protected]

* igt@gem_mmap@basic:
- bat-arlh-2: NOTRUN -> [SKIP][9] ([i915#11343] / [i915#11346])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145136v1/bat-arlh-2/igt@[email protected]

* igt@gem_render_tiled_blits@basic:
- bat-arlh-2: NOTRUN -> [SKIP][10] ([i915#10197] / [i915#10211] / [i915#11346] / [i915#11725])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145136v1/bat-arlh-2/igt@[email protected]

* igt@gem_tiled_blits@basic:
- bat-arlh-2: NOTRUN -> [SKIP][11] ([i915#11346] / [i915#12637]) +4 other tests skip
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145136v1/bat-arlh-2/igt@[email protected]

* igt@gem_tiled_pread_basic:
- bat-arlh-2: NOTRUN -> [SKIP][12] ([i915#10206] / [i915#11346] / [i915#11724])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145136v1/bat-arlh-2/igt@gem_tiled_pread_basic.html

* igt@i915_pm_rpm@module-reload:
- bat-dg1-7: [PASS][13] -> [FAIL][14] ([i915#13633])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16161/bat-dg1-7/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145136v1/bat-dg1-7/igt@[email protected]

* igt@i915_pm_rps@basic-api:
- bat-arlh-2: NOTRUN -> [SKIP][15] ([i915#10209] / [i915#11346] / [i915#11681])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145136v1/bat-arlh-2/igt@[email protected]

* igt@i915_selftest@live:
- bat-arlh-2: NOTRUN -> [DMESG-FAIL][16] ([i915#12061] / [i915#12435])
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145136v1/bat-arlh-2/igt@[email protected]

* igt@i915_selftest@live@workarounds:
- bat-arlh-2: NOTRUN -> [DMESG-FAIL][17] ([i915#12061])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145136v1/bat-arlh-2/igt@i915_selftest@[email protected]
- bat-mtlp-9: [PASS][18] -> [DMESG-FAIL][19] ([i915#12061])
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16161/bat-mtlp-9/igt@i915_selftest@[email protected]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145136v1/bat-mtlp-9/igt@i915_selftest@[email protected]
- bat-arls-6: [PASS][20] -> [DMESG-FAIL][21] ([i915#12061]) +1 other test dmesg-fail
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16161/bat-arls-6/igt@i915_selftest@[email protected]
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145136v1/bat-arls-6/igt@i915_selftest@[email protected]

* igt@kms_addfb_basic@addfb25-y-tiled-small-legacy:
- bat-arlh-2: NOTRUN -> [SKIP][22] ([i915#10200] / [i915#11346] / [i915#11666] / [i915#12203])
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145136v1/bat-arlh-2/igt@[email protected]

* igt@kms_addfb_basic@basic-x-tiled-legacy:
- bat-arlh-2: NOTRUN -> [SKIP][23] ([i915#10200] / [i915#11346] / [i915#11666]) +8 other tests skip
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145136v1/bat-arlh-2/igt@[email protected]

* igt@kms_pipe_crc_basic@nonblocking-crc-frame-sequence:
- bat-dg2-11: [PASS][24] -> [SKIP][25] ([i915#9197]) +2 other tests skip
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16161/bat-dg2-11/igt@[email protected]
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145136v1/bat-dg2-11/igt@[email protected]

* igt@kms_psr@psr-primary-page-flip:
- bat-arlh-2: NOTRUN -> [SKIP][26] ([i915#11346]) +32 other tests skip
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145136v1/bat-arlh-2/igt@[email protected]

* igt@kms_setmode@basic-clone-single-crtc:
- bat-arlh-2: NOTRUN -> [SKIP][27] ([i915#10208] / [i915#11346] / [i915#8809])
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145136v1/bat-arlh-2/igt@[email protected]

* igt@prime_vgem@basic-fence-read:
- bat-arlh-2: NOTRUN -> [SKIP][28] ([i915#10212] / [i915#11346] / [i915#11726])
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145136v1/bat-arlh-2/igt@[email protected]

* igt@prime_vgem@basic-read:
- bat-arlh-2: NOTRUN -> [SKIP][29] ([i915#10214] / [i915#11346] / [i915#11726])
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145136v1/bat-arlh-2/igt@[email protected]

* igt@prime_vgem@basic-write:
- bat-arlh-2: NOTRUN -> [SKIP][30] ([i915#10216] / [i915#11346] / [i915#11723])
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145136v1/bat-arlh-2/igt@[email protected]

[i915#10197]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10197
[i915#10200]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10200
[i915#10206]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10206
[i915#10208]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10208
[i915#10209]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10209
[i915#10211]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10211
[i915#10212]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10212
[i915#10213]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10213
[i915#10214]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10214
[i915#10216]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10216
[i915#11343]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11343
[i915#11345]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11345
[i915#11346]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11346
[i915#11666]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11666
[i915#11671]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11671
[i915#11681]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11681
[i915#11723]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11723
[i915#11724]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11724
[i915#11725]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11725
[i915#11726]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11726
[i915#12061]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12061
[i915#12203]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12203
[i915#12435]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12435
[i915#12637]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12637
[i915#13633]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13633
[i915#1849]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/1849
[i915#8809]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/8809
[i915#9197]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9197
[i915#9318]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9318

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

* Linux: CI_DRM_16161 -> Patchwork_145136v1

CI-20190529: 20190529
CI_DRM_16161: e19eb43c82480789a93ce0c452e22bbd851b93c6 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_8238: 7df82badac410a7ce2505df6064d44f0e094650c @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_145136v1: e19eb43c82480789a93ce0c452e22bbd851b93c6 @ git://anongit.freedesktop.org/gfx-ci/linux

== Logs ==

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

#2 lore raw
In reply to William Tseng
Quoted 11 lines

-----Original Message-----
From: Tseng, William <[email protected]>
Sent: Thursday, February 20, 2025 8:56 AM
To: [email protected]
Cc: Tseng, William <[email protected]>; Kandpal, Suraj <[email protected]>; Heikkila, Juha-pekka <juha- [email protected]>
Subject: [PATCH] drm/i915/dsc: Change rc parameters calculation for DSC 1.1

So to start with this needs to be sent intel-xe mailing list too

Quoted 2 lines

When calculating dsc parameters, the rc parameters calculated by calculate_rc_params() may be incorrect in the case of DSC 1.1 and

"Maybe" does not work to get the patch merged we need specifically what param does not work in calculate rc params so needs some more debug before sending a patch over.
You can compare the dsc param dump when we use calculate rc params vs when we Use the tables

Quoted 18 lines

DISPLAY_VER(dev_priv) >= 13 and cause noise-like lines displayed on a MIPI DSI panel supporting DSC 1.1. The calculation seems for DSC 1.2 only. So, instead of calculate_rc_params(), calculate the rc paramerters with the function drm_dsc_setup_rc_params() for DSC 1.1.

Cc Suraj Kandpal <[email protected]>
Cc Juha-Pekka Heikkil <[email protected]>
---
 drivers/gpu/drm/i915/display/intel_vdsc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/display/intel_vdsc.c +0 -0
index b355c479eda3..e3443a1d12e0 100644

drivers/gpu/drm/i915/display/intel_vdsc.c int intel_dsc_compute_params(struct intel_crtc_state · line 323

Quoted 4 lines
drivers/gpu/drm/i915/display/intel_vdsc.c +0 -0
@@ -320,7 +320,7 @@ int intel_dsc_compute_params(struct intel_crtc_state
 *pipe_config)
 	 * upto uncompressed bpp-1, hence add calculations for all the rc
 	 * parameters
 	 */

You need to amend to comment explain the additional conditions

drivers/gpu/drm/i915/display/intel_vdsc.c int intel_dsc_compute_params(struct intel_crtc_state · line 325

Quoted 3 lines
drivers/gpu/drm/i915/display/intel_vdsc.c +1 -1
-	if (DISPLAY_VER(dev_priv) >= 13) {
+	if (DISPLAY_VER(dev_priv) >= 13 && vdsc_cfg->dsc_version_minor ==
 2) {

Needs to be >= 2

Regards,
Suraj Kandpal

Quoted 5 lines
drivers/gpu/drm/i915/display/intel_vdsc.c +0 -0
 		calculate_rc_params(vdsc_cfg);
drivers/gpu/drm/i915/display/intel_vdsc.c +0 -1
 	} else {
 		if ((compressed_bpp == 8 ||
--

2.34.1

#3 lore raw
Quoted 27 lines

-----Original Message-----
From: Kandpal, Suraj <[email protected]>
Sent: Thursday, February 20, 2025 2:01 PM
To: Tseng, William <[email protected]>; [email protected]
Cc: Heikkila, Juha-pekka <[email protected]>; Nautiyal, Ankit K <[email protected]>
Subject: RE: [PATCH] drm/i915/dsc: Change rc parameters calculation for DSC 1.1

Quoted 10 lines

-----Original Message-----
From: Tseng, William <[email protected]>
Sent: Thursday, February 20, 2025 8:56 AM
To: [email protected]
Cc: Tseng, William <[email protected]>; Kandpal, Suraj <[email protected]>; Heikkila, Juha-pekka <juha- [email protected]>
Subject: [PATCH] drm/i915/dsc: Change rc parameters calculation for DSC 1.1

So to start with this needs to be sent intel-xe mailing list too

Quoted 9 lines
Quoted 2 lines

When calculating dsc parameters, the rc parameters calculated by calculate_rc_params() may be incorrect in the case of DSC 1.1 and

"Maybe" does not work to get the patch merged we need specifically what param does not work in calculate rc params so needs some more debug before sending a patch over.
You can compare the dsc param dump when we use calculate rc params vs when we Use the tables

Thanks, Suraj. The wording should be changed.

Quoted 13 lines
Quoted 13 lines

DISPLAY_VER(dev_priv) >= 13 and cause noise-like lines displayed on a MIPI DSI panel supporting DSC 1.1. The calculation seems for DSC 1.2 only. So, instead of calculate_rc_params(), calculate the rc paramerters with the function
drm_dsc_setup_rc_params() for DSC 1.1.

Cc Suraj Kandpal <[email protected]>
Cc Juha-Pekka Heikkil <[email protected]>
---
 drivers/gpu/drm/i915/display/intel_vdsc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 14 lines

drivers/gpu/drm/i915/display/intel_vdsc.c int intel_dsc_compute_params(struct intel_crtc_state *pipe_config) · line 322

Quoted 11 lines
drivers/gpu/drm/i915/display/intel_vdsc.c +0 -0
index b355c479eda3..e3443a1d12e0 100644
@@ -320,7 +320,7 @@ int intel_dsc_compute_params(struct

intel_crtc_state
*pipe_config)

drivers/gpu/drm/i915/display/intel_vdsc.c +0 -0
 	 * upto uncompressed bpp-1, hence add calculations for all the rc
 	 * parameters
 	 */

You need to amend to comment explain the additional conditions

According to test result, the different parameters are listed below, comparing the results from calculate_rc_params for DSC 1.2 and drm_dsc_setup_rc_params for DSC 1.1.

first_line_bpg_offset (14 vs 12), vdsc_cfg->rc_range_params[1].range_max_qp (5 vs 4), vdsc_cfg->rc_range_params[2].range_min_qp (2 vs 1), vdsc_cfg->rc_range_params[2].range_max_qp (7 vs 5) vdsc_cfg->rc_range_params[3].range_min_qp (2 vs 1), vdsc_cfg->rc_range_params[3].range_max_qp (7 vs 6) vdsc_cfg->rc_range_params[4].range_min_qp (4 vs 3), vdsc_cfg->rc_range_params[4].range_max_qp (8 vs 7)...
...
and so on.
That is why the additional condition is needed for the issue.

Quoted 6 lines
Quoted 3 lines
drivers/gpu/drm/i915/display/intel_vdsc.c +1 -1
-	if (DISPLAY_VER(dev_priv) >= 13) {
+	if (DISPLAY_VER(dev_priv) >= 13 && vdsc_cfg->dsc_version_minor ==

2) {

Needs to be >= 2

Yes. It should be >= 2.

Please let me know if you have any questions.
Thank you.

Regards
William

Quoted 8 lines

Regards,
Suraj Kandpal

Quoted 5 lines
drivers/gpu/drm/i915/display/intel_vdsc.c +0 -1
 		calculate_rc_params(vdsc_cfg);
 	} else {
 		if ((compressed_bpp == 8 ||
--

2.34.1

#4 lore raw

PATCH v2 1/1 drm/i915/dsc: Change rc parameters calculation for DSC 1.1

In reply to William Tseng

When calculating dsc parameters, the rc parameters calculated by calculate_rc_params() is incorrect in the case of DSC 1.1 and DISPLAY_VER(dev_priv) >= 13. It turns out to be some noise-like lines are displayed on a MIPI DSI panel supporting DSC 1.1.

The function calculate_rc_params() is implemented by following the Table E-2 in DSC 1.2a and creates incorrect rc parameters for DSC 1.1. As a result, add the additional condition (vdsc_cfg->dsc_version_minor >= 2) to get the right function to calculate rc parameters for DSC 1.1.

v1: initial version.
v2: modify the commit comment and change the condition
regarding DSC version checking.

Cc Suraj Kandpal <[email protected]>
Cc Juha-Pekka Heikkil <[email protected]>
---
 drivers/gpu/drm/i915/display/intel_vdsc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/display/intel_vdsc.c +1 -1
index b355c479eda3..b0a7a2179844 100644
@@ -320,7 +320,7 @@ int intel_dsc_compute_params(struct intel_crtc_state *pipe_config)
 	 * upto uncompressed bpp-1, hence add calculations for all the rc
 	 * parameters
 	 */
-	if (DISPLAY_VER(dev_priv) >= 13) {
+	if (DISPLAY_VER(dev_priv) >= 13 && vdsc_cfg->dsc_version_minor >= 2) {
 		calculate_rc_params(vdsc_cfg);
 	} else {
 		if ((compressed_bpp == 8 ||
Signature · 1 line
2.34.1
#5 lore raw
Quoted 10 lines

-----Original Message-----
From: Tseng, William <[email protected]>
Sent: Friday, February 21, 2025 7:27 AM
To: [email protected]
Cc: Tseng, William <[email protected]>; Kandpal, Suraj <[email protected]>; Heikkila, Juha-pekka <juha- [email protected]>
Subject: [PATCH v2] drm/i915/dsc: Change rc parameters calculation for DSC 1.1

I think you missed one of my previous comments in which I asked you to send it to the intel-xe mailing list So that the CI can test more thoroughly.
Also this patch is causing a regression on DG2 + DSC 1.1 config my guess is it would cause a issue on any Machine 13 and above with DSC 1.1 when input bpp is 24 and compressed bpp is 18

Quoted 11 lines

When calculating dsc parameters, the rc parameters calculated by calculate_rc_params() is incorrect in the case of DSC 1.1 and DISPLAY_VER(dev_priv) >= 13. It turns out to be some noise-like lines are displayed on a MIPI DSI panel supporting DSC 1.1.

The function calculate_rc_params() is implemented by following the Table E-2 in DSC 1.2a and creates incorrect rc parameters for DSC 1.1. As a result, add the additional condition (vdsc_cfg->dsc_version_minor >= 2) to get the right function to calculate rc parameters for DSC 1.1.

Quoted 7 lines

v1: initial version.
v2: modify the commit comment and change the condition
regarding DSC version checking.

Cc Suraj Kandpal <[email protected]>
Cc Juha-Pekka Heikkil <[email protected]>

Needs a closes-by tag

Regards,
Suraj Kandpal

Quoted 22 lines
---
 drivers/gpu/drm/i915/display/intel_vdsc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/display/intel_vdsc.c +1 -1
index b355c479eda3..b0a7a2179844 100644
@@ -320,7 +320,7 @@ int intel_dsc_compute_params(struct intel_crtc_state
 *pipe_config)
 	 * upto uncompressed bpp-1, hence add calculations for all the rc
 	 * parameters
 	 */
-	if (DISPLAY_VER(dev_priv) >= 13) {
+	if (DISPLAY_VER(dev_priv) >= 13 && vdsc_cfg->dsc_version_minor >=
 2) {
 		calculate_rc_params(vdsc_cfg);
drivers/gpu/drm/i915/display/intel_vdsc.c +0 -1
 	} else {
 		if ((compressed_bpp == 8 ||
--

2.34.1

#6 lore raw
Quoted 22 lines

-----Original Message-----
From: Kandpal, Suraj <[email protected]>
Sent: Friday, February 21, 2025 11:43 AM
To: Tseng, William <[email protected]>; [email protected]
Cc: Heikkila, Juha-pekka <[email protected]>
Subject: RE: [PATCH v2] drm/i915/dsc: Change rc parameters calculation for DSC 1.1

Quoted 9 lines

-----Original Message-----
From: Tseng, William <[email protected]>
Sent: Friday, February 21, 2025 7:27 AM
To: [email protected]
Cc: Tseng, William <[email protected]>; Kandpal, Suraj <[email protected]>; Heikkila, Juha-pekka <juha- [email protected]>
Subject: [PATCH v2] drm/i915/dsc: Change rc parameters calculation for DSC 1.1

Quoted 6 lines

I think you missed one of my previous comments in which I asked you to send it to the intel-xe mailing list So that the CI can test more thoroughly. Also this patch is causing a regression on DG2 + DSC 1.1 config my guess is it would cause a issue on any Machine 13 and above with DSC 1.1 when input bpp is 24 and compressed bpp is 18

Sorry for missing the comment about the mailing list intel-xe. I will send the revised patch to it next time.

As to the regression concern, I think it won't happen if DSC 1.1 does not support the case of input bpp is 24 and compressed bpp is 18. What do you think of it?

Quoted 15 lines
Quoted 15 lines

When calculating dsc parameters, the rc parameters calculated by calculate_rc_params() is incorrect in the case of DSC 1.1 and DISPLAY_VER(dev_priv) >= 13. It turns out to be some noise-like lines are displayed on a MIPI DSI panel supporting DSC 1.1.

The function calculate_rc_params() is implemented by following the Table E-2 in DSC 1.2a and creates incorrect rc parameters for DSC 1.1. As a result, add the additional condition (vdsc_cfg->dsc_version_minor

Quoted 1 line

= 2) to get the right function to calculate rc parameters for DSC 1.1.

v1: initial version.
v2: modify the commit comment and change the condition
regarding DSC version checking.

Quoted 6 lines
Quoted 3 lines
Cc Suraj Kandpal <[email protected]>
Cc Juha-Pekka Heikkil <[email protected]>

Needs a closes-by tag

Will add closes-by as the line. Is it correct?
closes-by : https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13719

Regards
William

Quoted 26 lines

Regards,
Suraj Kandpal

Quoted 23 lines
---
 drivers/gpu/drm/i915/display/intel_vdsc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/display/intel_vdsc.c +0 -0
index b355c479eda3..b0a7a2179844 100644
@@ -320,7 +320,7 @@ int intel_dsc_compute_params(struct

intel_crtc_state
*pipe_config)

drivers/gpu/drm/i915/display/intel_vdsc.c +1 -1
 	 * upto uncompressed bpp-1, hence add calculations for all the rc
 	 * parameters
 	 */
-	if (DISPLAY_VER(dev_priv) >= 13) {
+	if (DISPLAY_VER(dev_priv) >= 13 && vdsc_cfg->dsc_version_minor >=

2) {

drivers/gpu/drm/i915/display/intel_vdsc.c +0 -1
 		calculate_rc_params(vdsc_cfg);
 	} else {
 		if ((compressed_bpp == 8 ||
--

2.34.1

#7 lore raw
Quoted 41 lines

-----Original Message-----
From: Tseng, William <[email protected]>
Sent: Friday, February 21, 2025 12:53 PM
To: Kandpal, Suraj <[email protected]>; [email protected]; [email protected]
Cc: Heikkila, Juha-pekka <[email protected]>
Subject: RE: [PATCH v2] drm/i915/dsc: Change rc parameters calculation for DSC 1.1

Quoted 21 lines

-----Original Message-----
From: Kandpal, Suraj <[email protected]>
Sent: Friday, February 21, 2025 11:43 AM
To: Tseng, William <[email protected]>; [email protected]
Cc: Heikkila, Juha-pekka <[email protected]>
Subject: RE: [PATCH v2] drm/i915/dsc: Change rc parameters calculation for DSC 1.1

Quoted 9 lines

-----Original Message-----
From: Tseng, William <[email protected]>
Sent: Friday, February 21, 2025 7:27 AM
To: [email protected]
Cc: Tseng, William <[email protected]>; Kandpal, Suraj <[email protected]>; Heikkila, Juha-pekka <juha- [email protected]>
Subject: [PATCH v2] drm/i915/dsc: Change rc parameters calculation for DSC 1.1

Quoted 6 lines

I think you missed one of my previous comments in which I asked you to send it to the intel-xe mailing list So that the CI can test more thoroughly. Also this patch is causing a regression on DG2 + DSC 1.1 config my guess is it would cause a issue on any Machine 13 and above with DSC 1.1 when input bpp is 24 and compressed bpp is 18

Quoted 6 lines

Sorry for missing the comment about the mailing list intel-xe. I will send the revised patch to it next time.

As to the regression concern, I think it won't happen if DSC 1.1 does not support the case of input bpp is 24 and compressed bpp is 18.
What do you think of it?

DSC 1.1 does support input bpc uptil 12 so it should support input bpp of 24 and compressed bpp of 18 I don't see anywhere in the spec where it says otherwise.

Quoted 21 lines
Quoted 21 lines
Quoted 20 lines

When calculating dsc parameters, the rc parameters calculated by calculate_rc_params() is incorrect in the case of DSC 1.1 and DISPLAY_VER(dev_priv) >= 13. It turns out to be some noise-like lines are displayed on a MIPI DSI panel supporting DSC 1.1.

The function calculate_rc_params() is implemented by following the Table E-2 in DSC 1.2a and creates incorrect rc parameters for DSC 1.1. As a result, add the additional condition (vdsc_cfg->dsc_version_minor

Quoted 1 line

= 2) to get the right function to calculate rc parameters for DSC 1.1.

v1: initial version.
v2: modify the commit comment and change the condition
regarding DSC version checking.

Cc Suraj Kandpal <[email protected]>
Cc Juha-Pekka Heikkil <[email protected]>
Quoted 5 lines
Quoted 2 lines

Needs a closes-by tag

Will add closes-by as the line. Is it correct?
closes-by : https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13719

It should be Closes:
My bad
Also lets refrain from sending new patches/ revisions till we root cause this.

Regards,
Suraj Kandpal

Quoted 30 lines

Regards
William

Quoted 26 lines

Regards,
Suraj Kandpal

Quoted 23 lines
---
 drivers/gpu/drm/i915/display/intel_vdsc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/display/intel_vdsc.c +0 -0
index b355c479eda3..b0a7a2179844 100644
@@ -320,7 +320,7 @@ int intel_dsc_compute_params(struct

intel_crtc_state
*pipe_config)

drivers/gpu/drm/i915/display/intel_vdsc.c +1 -1
 	 * upto uncompressed bpp-1, hence add calculations for all the rc
 	 * parameters
 	 */
-	if (DISPLAY_VER(dev_priv) >= 13) {
+	if (DISPLAY_VER(dev_priv) >= 13 && vdsc_cfg->dsc_version_minor >=

2) {

drivers/gpu/drm/i915/display/intel_vdsc.c +0 -1
 		calculate_rc_params(vdsc_cfg);
 	} else {
 		if ((compressed_bpp == 8 ||
--

2.34.1

#8 lore raw

✗ i915.CI.BAT: failure for drm/i915/dsc: Change rc parameters calculation for DSC 1.1 (rev2)

In reply to William Tseng
== Series Details ==

== Series Details ==

Series: drm/i915/dsc: Change rc parameters calculation for DSC 1.1 (rev2)
URL : https://patchwork.freedesktop.org/series/145136/
State : failure

== Summary ==

CI Bug Log - changes from CI_DRM_16166 -> Patchwork_145136v2
====================================================

Summary
-------

**FAILURE**

Serious unknown changes coming with Patchwork_145136v2 absolutely need to be verified manually.

If you think the reported changes have nothing to do with the changes
introduced in Patchwork_145136v2, 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_145136v2/index.html

Participating hosts (41 -> 42)
------------------------------

Additional (2): fi-glk-j4005 bat-arlh-2
Missing (1): fi-snb-2520m

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

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

### IGT changes ###

#### Possible regressions ####

* igt@kms_dsc@dsc-basic@pipe-a-dp-1:
- bat-dg2-9: [PASS][1] -> [FAIL][2] +1 other test fail
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16166/bat-dg2-9/igt@kms_dsc@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145136v2/bat-dg2-9/igt@kms_dsc@[email protected]
- bat-dg2-8: [PASS][3] -> [FAIL][4] +1 other test fail
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16166/bat-dg2-8/igt@kms_dsc@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145136v2/bat-dg2-8/igt@kms_dsc@[email protected]

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

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

### IGT changes ###

#### Issues hit ####

* igt@debugfs_test@basic-hwmon:
- bat-arlh-2: NOTRUN -> [SKIP][5] ([i915#11346] / [i915#9318])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145136v2/bat-arlh-2/igt@[email protected]

* igt@fbdev@eof:
- bat-arlh-2: NOTRUN -> [SKIP][6] ([i915#11345] / [i915#11346]) +3 other tests skip
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145136v2/bat-arlh-2/igt@[email protected]

* igt@fbdev@info:
- bat-arlh-2: NOTRUN -> [SKIP][7] ([i915#11346] / [i915#1849])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145136v2/bat-arlh-2/igt@[email protected]

* igt@gem_huc_copy@huc-copy:
- fi-glk-j4005: NOTRUN -> [SKIP][8] ([i915#2190])
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145136v2/fi-glk-j4005/igt@[email protected]

* igt@gem_lmem_swapping@basic:
- bat-arlh-2: NOTRUN -> [SKIP][9] ([i915#10213] / [i915#11346] / [i915#11671]) +3 other tests skip
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145136v2/bat-arlh-2/igt@[email protected]

* igt@gem_lmem_swapping@parallel-random-engines:
- fi-glk-j4005: NOTRUN -> [SKIP][10] ([i915#4613]) +3 other tests skip
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145136v2/fi-glk-j4005/igt@[email protected]

* igt@gem_mmap@basic:
- bat-arlh-2: NOTRUN -> [SKIP][11] ([i915#11343] / [i915#11346])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145136v2/bat-arlh-2/igt@[email protected]

* igt@gem_render_tiled_blits@basic:
- bat-arlh-2: NOTRUN -> [SKIP][12] ([i915#10197] / [i915#10211] / [i915#11346] / [i915#11725])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145136v2/bat-arlh-2/igt@[email protected]

* igt@gem_tiled_blits@basic:
- bat-arlh-2: NOTRUN -> [SKIP][13] ([i915#11346] / [i915#12637]) +4 other tests skip
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145136v2/bat-arlh-2/igt@[email protected]

* igt@gem_tiled_pread_basic:
- bat-arlh-2: NOTRUN -> [SKIP][14] ([i915#10206] / [i915#11346] / [i915#11724])
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145136v2/bat-arlh-2/igt@gem_tiled_pread_basic.html

* igt@i915_pm_rpm@module-reload:
- bat-adls-6: [PASS][15] -> [FAIL][16] ([i915#13633])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16166/bat-adls-6/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145136v2/bat-adls-6/igt@[email protected]

* igt@i915_pm_rps@basic-api:
- bat-arlh-2: NOTRUN -> [SKIP][17] ([i915#10209] / [i915#11346] / [i915#11681])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145136v2/bat-arlh-2/igt@[email protected]

* igt@i915_selftest@live@gt_timelines:
- bat-twl-2: NOTRUN -> [ABORT][18] ([i915#12919])
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145136v2/bat-twl-2/igt@i915_selftest@live@gt_timelines.html

* igt@i915_selftest@live@workarounds:
- bat-mtlp-9: [PASS][19] -> [DMESG-FAIL][20] ([i915#12061])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16166/bat-mtlp-9/igt@i915_selftest@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145136v2/bat-mtlp-9/igt@i915_selftest@[email protected]

* igt@kms_addfb_basic@addfb25-y-tiled-small-legacy:
- bat-arlh-2: NOTRUN -> [SKIP][21] ([i915#10200] / [i915#11346] / [i915#11666] / [i915#12203])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145136v2/bat-arlh-2/igt@[email protected]

* igt@kms_addfb_basic@basic-x-tiled-legacy:
- bat-arlh-2: NOTRUN -> [SKIP][22] ([i915#10200] / [i915#11346] / [i915#11666]) +8 other tests skip
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145136v2/bat-arlh-2/igt@[email protected]

* igt@kms_pipe_crc_basic@nonblocking-crc-frame-sequence:
- bat-dg2-11: [PASS][23] -> [SKIP][24] ([i915#9197]) +3 other tests skip
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16166/bat-dg2-11/igt@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145136v2/bat-dg2-11/igt@[email protected]

* igt@kms_psr@psr-primary-page-flip:
- fi-glk-j4005: NOTRUN -> [SKIP][25] +10 other tests skip
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145136v2/fi-glk-j4005/igt@[email protected]
- bat-arlh-2: NOTRUN -> [SKIP][26] ([i915#11346]) +32 other tests skip
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145136v2/bat-arlh-2/igt@[email protected]

* igt@kms_setmode@basic-clone-single-crtc:
- bat-arlh-2: NOTRUN -> [SKIP][27] ([i915#10208] / [i915#11346] / [i915#8809])
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145136v2/bat-arlh-2/igt@[email protected]

* igt@prime_vgem@basic-fence-read:
- bat-arlh-2: NOTRUN -> [SKIP][28] ([i915#10212] / [i915#11346] / [i915#11726])
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145136v2/bat-arlh-2/igt@[email protected]

* igt@prime_vgem@basic-read:
- bat-arlh-2: NOTRUN -> [SKIP][29] ([i915#10214] / [i915#11346] / [i915#11726])
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145136v2/bat-arlh-2/igt@[email protected]

* igt@prime_vgem@basic-write:
- bat-arlh-2: NOTRUN -> [SKIP][30] ([i915#10216] / [i915#11346] / [i915#11723])
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145136v2/bat-arlh-2/igt@[email protected]

#### Possible fixes ####

* igt@i915_selftest@live@gt_engines:
- bat-twl-2: [ABORT][31] ([i915#12919]) -> [PASS][32]
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16166/bat-twl-2/igt@i915_selftest@live@gt_engines.html
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145136v2/bat-twl-2/igt@i915_selftest@live@gt_engines.html

* igt@i915_selftest@live@workarounds:
- bat-arls-5: [DMESG-FAIL][33] ([i915#12061]) -> [PASS][34] +1 other test pass
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16166/bat-arls-5/igt@i915_selftest@[email protected]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145136v2/bat-arls-5/igt@i915_selftest@[email protected]
- bat-arls-6: [DMESG-FAIL][35] ([i915#12061]) -> [PASS][36] +1 other test pass
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16166/bat-arls-6/igt@i915_selftest@[email protected]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145136v2/bat-arls-6/igt@i915_selftest@[email protected]

* igt@kms_flip@basic-flip-vs-wf_vblank:
- fi-bsw-n3050: [DMESG-WARN][37] -> [PASS][38] +1 other test pass
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16166/fi-bsw-n3050/igt@kms_flip@basic-flip-vs-wf_vblank.html
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145136v2/fi-bsw-n3050/igt@kms_flip@basic-flip-vs-wf_vblank.html

[i915#10197]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10197
[i915#10200]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10200
[i915#10206]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10206
[i915#10208]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10208
[i915#10209]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10209
[i915#10211]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10211
[i915#10212]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10212
[i915#10213]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10213
[i915#10214]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10214
[i915#10216]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10216
[i915#11343]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11343
[i915#11345]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11345
[i915#11346]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11346
[i915#11666]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11666
[i915#11671]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11671
[i915#11681]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11681
[i915#11723]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11723
[i915#11724]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11724
[i915#11725]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11725
[i915#11726]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11726
[i915#12061]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12061
[i915#12203]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12203
[i915#12637]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12637
[i915#12919]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12919
[i915#13633]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13633
[i915#1849]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/1849
[i915#2190]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/2190
[i915#4613]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4613
[i915#8809]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/8809
[i915#9197]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9197
[i915#9318]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9318

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

* Linux: CI_DRM_16166 -> Patchwork_145136v2

CI-20190529: 20190529
CI_DRM_16166: 773b5639a9ff0a33feccb29de7f2d852c6d7f221 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_8245: 822e95b2560133bc21aa3065f70d7148f23f87cf @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_145136v2: 773b5639a9ff0a33feccb29de7f2d852c6d7f221 @ git://anongit.freedesktop.org/gfx-ci/linux

== Logs ==

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