* [Intel-gfx] [PATCH] drm/i915/display/dsc: Clamp the max DSC input BPP to connector's max bpp
@ 2021-11-11 23:09 Manasi Navare
2021-11-11 23:14 ` [Intel-gfx] ✗ Fi.CI.DOCS: warning for " Patchwork
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Manasi Navare @ 2021-11-11 23:09 UTC (permalink / raw)
To: intel-gfx; +Cc: Jani Nikula
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 <jani.nikula@intel.com>
Cc: Vandita Kulkarni <vandita.kulkarni@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Manasi Navare <manasi.d.navare@intel.com>
---
drivers/gpu/drm/i915/display/intel_dp.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
index 45373c213d9e..82209d995969 100644
--- a/drivers/gpu/drm/i915/display/intel_dp.c
+++ b/drivers/gpu/drm/i915/display/intel_dp.c
@@ -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) {
--
2.19.1
^ permalink raw reply related [flat|nested] 5+ messages in thread* [Intel-gfx] ✗ Fi.CI.DOCS: warning for drm/i915/display/dsc: Clamp the max DSC input BPP to connector's max bpp 2021-11-11 23:09 [Intel-gfx] [PATCH] drm/i915/display/dsc: Clamp the max DSC input BPP to connector's max bpp Manasi Navare @ 2021-11-11 23:14 ` Patchwork 2021-11-11 23:41 ` [Intel-gfx] ✗ Fi.CI.BAT: failure " Patchwork 2021-11-18 22:47 ` [Intel-gfx] [PATCH] " Navare, Manasi 2 siblings, 0 replies; 5+ messages in thread From: Patchwork @ 2021-11-11 23:14 UTC (permalink / raw) To: Manasi Navare; +Cc: intel-gfx == 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' ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915/display/dsc: Clamp the max DSC input BPP to connector's max bpp 2021-11-11 23:09 [Intel-gfx] [PATCH] drm/i915/display/dsc: Clamp the max DSC input BPP to connector's max bpp Manasi Navare 2021-11-11 23:14 ` [Intel-gfx] ✗ Fi.CI.DOCS: warning for " Patchwork @ 2021-11-11 23:41 ` Patchwork 2021-11-18 22:47 ` [Intel-gfx] [PATCH] " Navare, Manasi 2 siblings, 0 replies; 5+ messages in thread From: Patchwork @ 2021-11-11 23:41 UTC (permalink / raw) To: Manasi Navare; +Cc: intel-gfx [-- Attachment #1: Type: text/plain, Size: 3230 bytes --] == 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@core_hotunplug@unbind-rebind.html [2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21567/fi-blb-e6850/igt@core_hotunplug@unbind-rebind.html 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@runner@aborted.html #### 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@kms_frontbuffer_tracking@basic.html [5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21567/fi-cml-u2/igt@kms_frontbuffer_tracking@basic.html {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 [-- Attachment #2: Type: text/html, Size: 3829 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Intel-gfx] [PATCH] drm/i915/display/dsc: Clamp the max DSC input BPP to connector's max bpp 2021-11-11 23:09 [Intel-gfx] [PATCH] drm/i915/display/dsc: Clamp the max DSC input BPP to connector's max bpp Manasi Navare 2021-11-11 23:14 ` [Intel-gfx] ✗ Fi.CI.DOCS: warning for " Patchwork 2021-11-11 23:41 ` [Intel-gfx] ✗ Fi.CI.BAT: failure " Patchwork @ 2021-11-18 22:47 ` Navare, Manasi 2021-11-19 9:37 ` Jani Nikula 2 siblings, 1 reply; 5+ messages in thread From: Navare, Manasi @ 2021-11-18 22:47 UTC (permalink / raw) To: intel-gfx; +Cc: Jani Nikula @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 On Thu, Nov 11, 2021 at 03:09:49PM -0800, Manasi Navare wrote: > 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 <jani.nikula@intel.com> > Cc: Vandita Kulkarni <vandita.kulkarni@intel.com> > Cc: Ville Syrjälä <ville.syrjala@linux.intel.com> > Signed-off-by: Manasi Navare <manasi.d.navare@intel.com> > --- > drivers/gpu/drm/i915/display/intel_dp.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c > index 45373c213d9e..82209d995969 100644 > --- a/drivers/gpu/drm/i915/display/intel_dp.c > +++ b/drivers/gpu/drm/i915/display/intel_dp.c > @@ -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) { > -- > 2.19.1 > ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Intel-gfx] [PATCH] drm/i915/display/dsc: Clamp the max DSC input BPP to connector's max bpp 2021-11-18 22:47 ` [Intel-gfx] [PATCH] " Navare, Manasi @ 2021-11-19 9:37 ` Jani Nikula 0 siblings, 0 replies; 5+ messages in thread From: Jani Nikula @ 2021-11-19 9:37 UTC (permalink / raw) To: Navare, Manasi, intel-gfx On Thu, 18 Nov 2021, "Navare, Manasi" <manasi.d.navare@intel.com> wrote: > @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: ? > > Manasi > > On Thu, Nov 11, 2021 at 03:09:49PM -0800, Manasi Navare wrote: >> 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 <jani.nikula@intel.com> >> Cc: Vandita Kulkarni <vandita.kulkarni@intel.com> >> Cc: Ville Syrjälä <ville.syrjala@linux.intel.com> >> Signed-off-by: Manasi Navare <manasi.d.navare@intel.com> >> --- >> drivers/gpu/drm/i915/display/intel_dp.c | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c >> index 45373c213d9e..82209d995969 100644 >> --- a/drivers/gpu/drm/i915/display/intel_dp.c >> +++ b/drivers/gpu/drm/i915/display/intel_dp.c >> @@ -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) { >> -- >> 2.19.1 >> -- Jani Nikula, Intel Open Source Graphics Center ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-11-19 9:37 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2021-11-11 23:09 [Intel-gfx] [PATCH] drm/i915/display/dsc: Clamp the max DSC input BPP to connector's max bpp Manasi Navare 2021-11-11 23:14 ` [Intel-gfx] ✗ Fi.CI.DOCS: warning for " Patchwork 2021-11-11 23:41 ` [Intel-gfx] ✗ Fi.CI.BAT: failure " Patchwork 2021-11-18 22:47 ` [Intel-gfx] [PATCH] " Navare, Manasi 2021-11-19 9:37 ` Jani Nikula
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox