Skip to contentSkip to conversation

drm/dp/dsc: Add Support for all BPCs supported by TGL

PATCH In review Anusha Srivatsa 3 participants 6 messages Jul 15, 2019 – Jul 16, 2019

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

PATCH 1/1 drm/dp/dsc: Add Support for all BPCs supported by TGL

DSC engine on ICL supports only 8 and 10 BPC as the input BPC. But DSC engine in TGL supports 8, 10 and 12 BPC. Add 12 BPC support for DSC while calculating compression configuration.

v2: Remove the separate define TGL_DP_DSC_MAX_SUPPORTED_BPC and use the value directly.(More such defines can be removed as part of future patches). (Ville)

Cc Ville Syrjälä <[email protected]>
Cc Manasi Navare <[email protected]>
---
 drivers/gpu/drm/i915/display/intel_dp.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/display/intel_dp.c +6 -2
index 0eb5d66f87a7..aa8bfb754fc1 100644
@@ -1914,8 +1914,12 @@ static int intel_dp_dsc_compute_config(struct intel_dp *intel_dp,
 	if (!intel_dp_supports_dsc(intel_dp, pipe_config))
 		return -EINVAL;
 
-	dsc_max_bpc = min_t(u8, DP_DSC_MAX_SUPPORTED_BPC,
-			    conn_state->max_requested_bpc);
+	/* Max DSC Input BPC for TGL+ is 12 */
+	if (INTEL_GEN(dev_priv) >= 12)
+		dsc_max_bpc = min_t(u8, 12, conn_state->max_requested_bpc);
+	else
+		dsc_max_bpc = min_t(u8, DP_DSC_MAX_SUPPORTED_BPC,
+				    conn_state->max_requested_bpc);
 
 	pipe_bpp = intel_dp_dsc_compute_bpp(intel_dp, dsc_max_bpc);
 	if (pipe_bpp < DP_DSC_MIN_SUPPORTED_BPC * 3) {
Signature · 6 lines
2.21.0

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#1 lore raw

✗ Fi.CI.SPARSE: warning for drm/dp/dsc: Add Support for all BPCs supported by TGL (rev2)

== Series Details ==

== Series Details ==

Series: drm/dp/dsc: Add Support for all BPCs supported by TGL (rev2)
URL : https://patchwork.freedesktop.org/series/63526/
State : warning

== Summary ==

$ dim sparse origin/drm-tip
Sparse version: v0.5.2
Commit: drm/dp/dsc: Add Support for all BPCs supported by TGL
-O:drivers/gpu/drm/i915/display/intel_dp.c:1917:23: warning: expression using sizeof(void)
+drivers/gpu/drm/i915/display/intel_dp.c:1919:31: warning: expression using sizeof(void)
+drivers/gpu/drm/i915/display/intel_dp.c:1921:31: warning: expression using sizeof(void)

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#2 lore raw

✗ Fi.CI.BAT: failure for drm/dp/dsc: Add Support for all BPCs supported by TGL (rev2)

In reply to Anusha Srivatsa
== Series Details ==

== Series Details ==

Series: drm/dp/dsc: Add Support for all BPCs supported by TGL (rev2)
URL : https://patchwork.freedesktop.org/series/63526/
State : failure

== Summary ==

CI Bug Log - changes from CI_DRM_6488 -> Patchwork_13663
====================================================

Summary
-------

**FAILURE**

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

If you think the reported changes have nothing to do with the changes introduced in Patchwork_13663, 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_13663/

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

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

### IGT changes ###

#### Possible regressions ####

* igt@kms_chamelium@hdmi-hpd-fast:
- fi-kbl-7500u: [PASS][1] -> [FAIL][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6488/fi-kbl-7500u/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13663/fi-kbl-7500u/igt@[email protected]

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

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

### IGT changes ###

#### Issues hit ####

* igt@kms_chamelium@dp-edid-read:
- fi-cml-u2: [PASS][3] -> [FAIL][4] ([fdo#109483])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6488/fi-cml-u2/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13663/fi-cml-u2/igt@[email protected]

* igt@kms_pipe_crc_basic@suspend-read-crc-pipe-a:
- fi-apl-guc: [PASS][5] -> [DMESG-WARN][6] ([fdo#108529] / [fdo#108566])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6488/fi-apl-guc/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13663/fi-apl-guc/igt@[email protected]

#### Possible fixes ####

* igt@gem_ctx_exec@basic:
- fi-icl-u3: [DMESG-WARN][7] ([fdo#107724]) -> [PASS][8]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6488/fi-icl-u3/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13663/fi-icl-u3/igt@[email protected]

* igt@i915_selftest@live_execlists:
- fi-skl-gvtdvm: [DMESG-FAIL][9] ([fdo#111108]) -> [PASS][10]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6488/fi-skl-gvtdvm/igt@i915_selftest@live_execlists.html
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13663/fi-skl-gvtdvm/igt@i915_selftest@live_execlists.html

* igt@kms_chamelium@dp-crc-fast:
- fi-icl-u2: [FAIL][11] ([fdo#109635 ]) -> [PASS][12]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6488/fi-icl-u2/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13663/fi-icl-u2/igt@[email protected]
- fi-cml-u2: [FAIL][13] ([fdo#110627]) -> [PASS][14]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6488/fi-cml-u2/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13663/fi-cml-u2/igt@[email protected]

* igt@prime_vgem@basic-fence-flip:
- fi-ilk-650: [DMESG-WARN][15] ([fdo#106387]) -> [PASS][16] +1 similar issue
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6488/fi-ilk-650/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13663/fi-ilk-650/igt@[email protected]

[fdo#106387]: https://bugs.freedesktop.org/show_bug.cgi?id=106387
[fdo#107724]: https://bugs.freedesktop.org/show_bug.cgi?id=107724
[fdo#108529]: https://bugs.freedesktop.org/show_bug.cgi?id=108529
[fdo#108566]: https://bugs.freedesktop.org/show_bug.cgi?id=108566
[fdo#109483]: https://bugs.freedesktop.org/show_bug.cgi?id=109483
[fdo#109635 ]: https://bugs.freedesktop.org/show_bug.cgi?id=109635
[fdo#110627]: https://bugs.freedesktop.org/show_bug.cgi?id=110627
[fdo#111108]: https://bugs.freedesktop.org/show_bug.cgi?id=111108

Participating hosts (54 -> 47)
------------------------------

Missing (7): fi-ilk-m540 fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-icl-y fi-byt-clapper fi-bdw-samus

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

* Linux: CI_DRM_6488 -> Patchwork_13663

CI_DRM_6488: bbf4d95db6732b16547dc9d849701ccf4189aa0d @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5098: 41ff022b62b45a5b84504daa3537fa1b295b97c9 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_13663: 7c8d95a6b3868325cf536693d28417b244281c23 @ git://anongit.freedesktop.org/gfx-ci/linux

== Linux commits ==

7c8d95a6b386 drm/dp/dsc: Add Support for all BPCs supported by TGL

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13663/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#3 lore raw
In reply to Anusha Srivatsa
Quoted 8 lines · Anusha Srivatsa

DSC engine on ICL supports only 8 and 10 BPC as the input BPC. But DSC engine in TGL supports 8, 10 and 12 BPC. Add 12 BPC support for DSC while calculating compression configuration.

v2: Remove the separate define TGL_DP_DSC_MAX_SUPPORTED_BPC and use the value directly.(More such defines can be removed as part of future patches). (Ville)

IMO what Ville asked to do in his comment was to remove all the #defines for the max DSC BPC so remove the ones for 8 and 10 also to mak eit more readable and that user does not have to hunt for the #defines for either of these.

Quoted 14 lines
Cc Ville Syrjälä <[email protected]>
Cc Manasi Navare <[email protected]>
---
 drivers/gpu/drm/i915/display/intel_dp.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/display/intel_dp.c +0 -0
index 0eb5d66f87a7..aa8bfb754fc1 100644
@@ -1914,8 +1914,12 @@ static int intel_dp_dsc_compute_config(struct intel_dp *intel_dp,
 	if (!intel_dp_supports_dsc(intel_dp, pipe_config))

drivers/gpu/drm/i915/display/intel_dp.c static int intel_dp_dsc_compute_config(struct intel_dp *intel_dp, · line 1922

Quoted 10 lines
drivers/gpu/drm/i915/display/intel_dp.c +6 -2
 		return -EINVAL;
 
-	dsc_max_bpc = min_t(u8, DP_DSC_MAX_SUPPORTED_BPC,
-			    conn_state->max_requested_bpc);
+	/* Max DSC Input BPC for TGL+ is 12 */
+	if (INTEL_GEN(dev_priv) >= 12)
+		dsc_max_bpc = min_t(u8, 12, conn_state->max_requested_bpc);
+	else
+		dsc_max_bpc = min_t(u8, DP_DSC_MAX_SUPPORTED_BPC,
+				    conn_state->max_requested_bpc);

Use 10 here directly

drivers/gpu/drm/i915/display/intel_dp.c static int intel_dp_dsc_compute_config(struct intel_dp *intel_dp, · line 1925

Quoted 3 lines
drivers/gpu/drm/i915/display/intel_dp.c +0 -0
 	pipe_bpp = intel_dp_dsc_compute_bpp(intel_dp, dsc_max_bpc);
 	if (pipe_bpp < DP_DSC_MIN_SUPPORTED_BPC * 3) {

Use 8 here directly

Manasi

Quoted 3 lines
Signature · 1 line
2.21.0

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#4 lore raw
Quoted 15 lines

-----Original Message-----
From: Navare, Manasi D
Sent: Tuesday, July 16, 2019 11:15 AM
To: Srivatsa, Anusha <[email protected]>
Cc: [email protected]; Ville Syrjälä <[email protected]>
Subject: Re: [PATCH] drm/dp/dsc: Add Support for all BPCs supported by TGL

Quoted 5 lines · Anusha Srivatsa

DSC engine on ICL supports only 8 and 10 BPC as the input BPC. But DSC engine in TGL supports 8, 10 and 12 BPC.
Add 12 BPC support for DSC while calculating compression configuration.

Quoted 7 lines
Quoted 3 lines

v2: Remove the separate define TGL_DP_DSC_MAX_SUPPORTED_BPC and use the value directly.(More such defines can be removed as part of future patches). (Ville)

IMO what Ville asked to do in his comment was to remove all the #defines for the max DSC BPC so remove the ones for 8 and 10 also to mak eit more readable and that user does not have to hunt for the #defines for either of these.

Yes those changes can be part of a following patch. This is TGL specific.

Anusha

Quoted 30 lines

drivers/gpu/drm/i915/display/intel_dp.c static int intel_dp_dsc_compute_config(struct

Quoted 14 lines
Cc Ville Syrjälä <[email protected]>
Cc Manasi Navare <[email protected]>
---
 drivers/gpu/drm/i915/display/intel_dp.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/display/intel_dp.c +0 -0
index 0eb5d66f87a7..aa8bfb754fc1 100644
@@ -1914,8 +1914,12 @@ static int intel_dp_dsc_compute_config(struct

intel_dp *intel_dp,

drivers/gpu/drm/i915/display/intel_dp.c static int intel_dp_dsc_compute_config(struct intel_dp *intel_dp, · line 1922

Quoted 11 lines
drivers/gpu/drm/i915/display/intel_dp.c +6 -2
 	if (!intel_dp_supports_dsc(intel_dp, pipe_config))
 		return -EINVAL;
 
-	dsc_max_bpc = min_t(u8, DP_DSC_MAX_SUPPORTED_BPC,
-			    conn_state->max_requested_bpc);
+	/* Max DSC Input BPC for TGL+ is 12 */
+	if (INTEL_GEN(dev_priv) >= 12)
+		dsc_max_bpc = min_t(u8, 12, conn_state->max_requested_bpc);
+	else
+		dsc_max_bpc = min_t(u8, DP_DSC_MAX_SUPPORTED_BPC,
+				    conn_state->max_requested_bpc);

Use 10 here directly

Quoted 1 line
Quoted 9 lines

drivers/gpu/drm/i915/display/intel_dp.c static int intel_dp_dsc_compute_config(struct intel_dp *intel_dp, · line 1925

Quoted 2 lines
drivers/gpu/drm/i915/display/intel_dp.c +0 -0
 	pipe_bpp = intel_dp_dsc_compute_bpp(intel_dp, dsc_max_bpc);
 	if (pipe_bpp < DP_DSC_MIN_SUPPORTED_BPC * 3) {

Use 8 here directly

Manasi

Quoted 3 lines

--
2.21.0

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#5 lore raw
Quoted 19 lines · Anusha
Quoted 19 lines

-----Original Message-----
From: Navare, Manasi D
Sent: Tuesday, July 16, 2019 11:15 AM
To: Srivatsa, Anusha <[email protected]>
Cc: [email protected]; Ville Syrjälä <[email protected]>
Subject: Re: [PATCH] drm/dp/dsc: Add Support for all BPCs supported by TGL

Quoted 8 lines · Anusha Srivatsa

DSC engine on ICL supports only 8 and 10 BPC as the input BPC. But DSC engine in TGL supports 8, 10 and 12 BPC.
Add 12 BPC support for DSC while calculating compression configuration.

v2: Remove the separate define TGL_DP_DSC_MAX_SUPPORTED_BPC and use the value directly.(More such defines can be removed as part of future patches). (Ville)

Quoted 5 lines
Quoted 3 lines

IMO what Ville asked to do in his comment was to remove all the #defines for the max DSC BPC so remove the ones for 8 and 10 also to mak eit more readable and that user does not have to hunt for the #defines for either of these.

Yes those changes can be part of a following patch. This is TGL specific.

IMO, you could just make them in the same patch since they are minor changes happening because of diferent max limits for TGL, so just say in the commit message while at it also remove the #defines and use the values directly for ICL limits as well.

Manasi

Quoted 41 lines

Anusha

Quoted 39 lines

drivers/gpu/drm/i915/display/intel_dp.c static int intel_dp_dsc_compute_config(struct

Quoted 14 lines
Cc Ville Syrjälä <[email protected]>
Cc Manasi Navare <[email protected]>
---
 drivers/gpu/drm/i915/display/intel_dp.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/display/intel_dp.c +0 -0
index 0eb5d66f87a7..aa8bfb754fc1 100644
@@ -1914,8 +1914,12 @@ static int intel_dp_dsc_compute_config(struct

intel_dp *intel_dp,

drivers/gpu/drm/i915/display/intel_dp.c static int intel_dp_dsc_compute_config(struct intel_dp *intel_dp, · line 1922

Quoted 11 lines
drivers/gpu/drm/i915/display/intel_dp.c +6 -2
 	if (!intel_dp_supports_dsc(intel_dp, pipe_config))
 		return -EINVAL;
 
-	dsc_max_bpc = min_t(u8, DP_DSC_MAX_SUPPORTED_BPC,
-			    conn_state->max_requested_bpc);
+	/* Max DSC Input BPC for TGL+ is 12 */
+	if (INTEL_GEN(dev_priv) >= 12)
+		dsc_max_bpc = min_t(u8, 12, conn_state->max_requested_bpc);
+	else
+		dsc_max_bpc = min_t(u8, DP_DSC_MAX_SUPPORTED_BPC,
+				    conn_state->max_requested_bpc);

Use 10 here directly

drivers/gpu/drm/i915/display/intel_dp.c static int intel_dp_dsc_compute_config(struct intel_dp *intel_dp, · line 1925

Quoted 3 lines
drivers/gpu/drm/i915/display/intel_dp.c +0 -0
 	pipe_bpp = intel_dp_dsc_compute_bpp(intel_dp, dsc_max_bpc);
 	if (pipe_bpp < DP_DSC_MIN_SUPPORTED_BPC * 3) {

Use 8 here directly

Manasi

Quoted 3 lines
drivers/gpu/drm/i915/display/intel_dp.c +0 -1
--

2.21.0

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx