Skip to contentSkip to conversation

drm/i915/display/dsc: Clamp the max DSC input BPP to connector's max bpp

PATCH In review Manasi Navare 3 participants 5 messages Nov 11, 2021 – Nov 19, 2021

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

PATCH 1/1 drm/i915/display/dsc: Clamp the max DSC input BPP to connector's max bpp

Pipe_bpp limits are decided by connectors max bpp as computed in compute_sink_pipe_bpp() before computing link and DSC config. Currently dsc_compute_config() sets the max input bpp only based on DSC Input BPPs supported and max bpc requested for the connector but does not clamp it based on connector's max bpp.
This patch fixes that.

Cc Jani Nikula <[email protected]>
Cc Vandita Kulkarni <[email protected]>
Cc Ville Syrjälä <[email protected]>
---
 drivers/gpu/drm/i915/display/intel_dp.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/i915/display/intel_dp.c +1 -0
index 45373c213d9e..82209d995969 100644
@@ -1400,6 +1400,7 @@ static int intel_dp_dsc_compute_config(struct intel_dp *intel_dp,
 		return -EINVAL;
 
 	pipe_bpp = intel_dp_dsc_compute_bpp(intel_dp, conn_state->max_requested_bpc);
+	pipe_bpp = min(pipe_bpp, limits->max_bpp);
 
 	/* Min Input BPC for ICL+ is 8 */
 	if (pipe_bpp < 8 * 3) {
Signature · 1 line
2.19.1
#1 lore raw

[Intel-gfx] ✗ Fi.CI.DOCS: warning for drm/i915/display/dsc: Clamp the max DSC input BPP to connector's max bpp

== Series Details ==

== Series Details ==

Series: drm/i915/display/dsc: Clamp the max DSC input BPP to connector's max bpp
URL : https://patchwork.freedesktop.org/series/96832/
State : warning

== Summary ==

$ make htmldocs 2>&1 > /dev/null | grep i915
./drivers/gpu/drm/i915/display/intel_fbc.c:635: warning: Excess function parameter 'i915' description in 'intel_fbc_is_active'
./drivers/gpu/drm/i915/display/intel_fbc.c:1638: warning: Excess function parameter 'i915' description in 'intel_fbc_handle_fifo_underrun_irq'
./drivers/gpu/drm/i915/display/intel_fbc.c:635: warning: Function parameter or member 'fbc' not described in 'intel_fbc_is_active'
./drivers/gpu/drm/i915/display/intel_fbc.c:635: warning: Excess function parameter 'i915' description in 'intel_fbc_is_active'
./drivers/gpu/drm/i915/display/intel_fbc.c:1638: warning: Function parameter or member 'fbc' not described in 'intel_fbc_handle_fifo_underrun_irq'
./drivers/gpu/drm/i915/display/intel_fbc.c:1638: warning: Excess function parameter 'i915' description in 'intel_fbc_handle_fifo_underrun_irq'
#2 lore raw

[Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915/display/dsc: Clamp the max DSC input BPP to connector's max bpp

In reply to Manasi Navare
== Series Details ==

== Series Details ==

Series: drm/i915/display/dsc: Clamp the max DSC input BPP to connector's max bpp
URL : https://patchwork.freedesktop.org/series/96832/
State : failure

== Summary ==

CI Bug Log - changes from CI_DRM_10872 -> Patchwork_21567
====================================================

Summary
-------

**FAILURE**

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

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

Participating hosts (29 -> 24)
------------------------------

Missing (5): fi-kbl-soraka bat-dg1-6 bat-dg1-5 fi-bsw-cyan bat-adlp-4

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

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

### IGT changes ###

#### Possible regressions ####

* igt@core_hotunplug@unbind-rebind:
- fi-blb-e6850: [PASS][1] -> [FAIL][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10872/fi-blb-e6850/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21567/fi-blb-e6850/igt@[email protected]

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

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

### IGT changes ###

#### Issues hit ####

* igt@runner@aborted:
- fi-bdw-5557u: NOTRUN -> [FAIL][3] ([i915#1602] / [i915#2426] / [i915#4312])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21567/fi-bdw-5557u/igt@[email protected]

#### Possible fixes ####

* igt@kms_frontbuffer_tracking@basic:
- fi-cml-u2: [DMESG-WARN][4] ([i915#4269]) -> [PASS][5]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10872/fi-cml-u2/igt@[email protected]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21567/fi-cml-u2/igt@[email protected]

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

[i915#1602]: https://gitlab.freedesktop.org/drm/intel/issues/1602
[i915#2426]: https://gitlab.freedesktop.org/drm/intel/issues/2426
[i915#3303]: https://gitlab.freedesktop.org/drm/intel/issues/3303
[i915#4269]: https://gitlab.freedesktop.org/drm/intel/issues/4269
[i915#4312]: https://gitlab.freedesktop.org/drm/intel/issues/4312

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

* Linux: CI_DRM_10872 -> Patchwork_21567

CI-20190529: 20190529
CI_DRM_10872: 50c74a91cbcff9d1ca50d3774391c4757e9816b8 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_6279: 1c70b17877974491273ac3fb1de93ba75309df79 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_21567: 708ee9debb6c11531bbf0a359abbd226cc198d93 @ git://anongit.freedesktop.org/gfx-ci/linux

== Linux commits ==

708ee9debb6c drm/i915/display/dsc: Clamp the max DSC input BPP to connector's max bpp

== Logs ==

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

#3 lore raw
In reply to Manasi Navare

@Jani , @Ville, can you take a look at this, this was how the original DSC patches clamped the max bpp, but with latest DSC changes looks like this is not obeyed anymore and needs to be fixed.

Manasi

Quoted 30 lines · Manasi Navare

Pipe_bpp limits are decided by connectors max bpp as computed in compute_sink_pipe_bpp() before computing link and DSC config. Currently dsc_compute_config() sets the max input bpp only based on DSC Input BPPs supported and max bpc requested for the connector but does not clamp it based on connector's max bpp.
This patch fixes that.

Cc Jani Nikula <[email protected]>
Cc Vandita Kulkarni <[email protected]>
Cc Ville Syrjälä <[email protected]>
---
 drivers/gpu/drm/i915/display/intel_dp.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/i915/display/intel_dp.c +1 -0
index 45373c213d9e..82209d995969 100644
@@ -1400,6 +1400,7 @@ static int intel_dp_dsc_compute_config(struct intel_dp *intel_dp,
 		return -EINVAL;
 
 	pipe_bpp = intel_dp_dsc_compute_bpp(intel_dp, conn_state->max_requested_bpc);
+	pipe_bpp = min(pipe_bpp, limits->max_bpp);
 
 	/* Min Input BPC for ICL+ is 8 */
 	if (pipe_bpp < 8 * 3) {
Signature · 1 line
2.19.1
#4 lore raw
Quoted 3 lines · Manasi

@Jani , @Ville, can you take a look at this, this was how the original DSC patches clamped the max bpp, but with latest DSC changes looks like this is not obeyed anymore and needs to be fixed.

When was this changed?

Fixes ?
Quoted 34 lines

Manasi

Quoted 30 lines · Manasi Navare

Pipe_bpp limits are decided by connectors max bpp as computed in compute_sink_pipe_bpp() before computing link and DSC config. Currently dsc_compute_config() sets the max input bpp only based on DSC Input BPPs supported and max bpc requested for the connector but does not clamp it based on connector's max bpp.
This patch fixes that.

Cc Jani Nikula <[email protected]>
Cc Vandita Kulkarni <[email protected]>
Cc Ville Syrjälä <[email protected]>
---
 drivers/gpu/drm/i915/display/intel_dp.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/i915/display/intel_dp.c +1 -0
index 45373c213d9e..82209d995969 100644
@@ -1400,6 +1400,7 @@ static int intel_dp_dsc_compute_config(struct intel_dp *intel_dp,
 		return -EINVAL;
 
 	pipe_bpp = intel_dp_dsc_compute_bpp(intel_dp, conn_state->max_requested_bpc);
+	pipe_bpp = min(pipe_bpp, limits->max_bpp);
 
 	/* Min Input BPC for ICL+ is 8 */
 	if (pipe_bpp < 8 * 3) {
Signature · 1 line
2.19.1
Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center