public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: "Nautiyal, Ankit K" <ankit.k.nautiyal@intel.com>
To: Manasi Navare <navaremanasi@google.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [Intel-gfx] [PATCH v11 08/11] drm/i915/dp: Avoid DSC with output_format YCBCR420
Date: Thu, 16 Mar 2023 16:50:18 +0530	[thread overview]
Message-ID: <15d32e96-6468-901d-b78a-bdbd402ef163@intel.com> (raw)
In-Reply-To: <CAMNLLoSvJ1i0JyzLK8k-jy7Nih8DFrpYJ=fPqLbKToTTA4dVGw@mail.gmail.com>

Hi Manasi,

I just realized that there is a newer version of the patch in another 
series for DSC 420 support [1].

I added this patch when I was debugging an issue with PCON + 8k YCbCr420 
only mode, and noticed that we set the output_format first and then 
check for DSC.

Later this patch was pulled in DSC420 series and then got some comments 
and modifications.

So, to avoid having similar change in 2 places, perhaps will drop this 
patch from this series, and collect reviews in [1] for the change.

Currently on [1], the check is outside of intel_dp_supports_dsc(), as a 
separate function explicitly checking for the given output_format, but 
we can discuss and have this inside the mentioned function.

Apologies for the inconvenience.

[1] https://patchwork.freedesktop.org/patch/525903/?series=114246&rev=3 
<https://patchwork.freedesktop.org/patch/525903/?series=114246&rev=3>

Thanks & Regards,

Ankit


On 3/14/2023 11:03 PM, Manasi Navare wrote:
> Since we cannot do DSC with this output format currently, can this 
> check be added as part of the intel_dp_supports_dsc() ?
>
> Regards
> Manasi
>
>
> On Tue, Mar 14, 2023 at 4:07 AM Ankit Nautiyal 
> <ankit.k.nautiyal@intel.com> wrote:
>
>     Currently, DSC with YCBCR420 is not supported.
>     Return -EINVAL when trying with DSC with output_format as YCBCR420.
>
>     Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
>     ---
>      drivers/gpu/drm/i915/display/intel_dp.c | 4 ++++
>      1 file changed, 4 insertions(+)
>
>     diff --git a/drivers/gpu/drm/i915/display/intel_dp.c
>     b/drivers/gpu/drm/i915/display/intel_dp.c
>     index b1431ed175bc..99a5cd370c1f 100644
>     --- a/drivers/gpu/drm/i915/display/intel_dp.c
>     +++ b/drivers/gpu/drm/i915/display/intel_dp.c
>     @@ -1602,6 +1602,10 @@ int intel_dp_dsc_compute_config(struct
>     intel_dp *intel_dp,
>             if (!(intel_dp, pipe_config))
>                     return -EINVAL;
>
>     +       /* Currently DSC with YCBCR420 format is not supported */
>     +       if (pipe_config->output_format ==
>     INTEL_OUTPUT_FORMAT_YCBCR420)
>     +               return -EINVAL;
>     +
>             if (compute_pipe_bpp)
>                     pipe_bpp = intel_dp_dsc_compute_bpp(intel_dp,
>     pipe_config->output_format,
>     conn_state->max_requested_bpc);
>     -- 
>     2.25.1
>

  reply	other threads:[~2023-03-16 11:20 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-14 11:04 [Intel-gfx] [PATCH v11 00/11] Handle BPC for HDMI2.1 PCON without DSC1.2 sink and other fixes Ankit Nautiyal
2023-03-14 11:04 ` [Intel-gfx] [PATCH v11 01/11] drm/i915/display: Add new member to configure PCON color conversion Ankit Nautiyal
2023-03-17  0:24   ` Ville Syrjälä
2023-03-17 10:07     ` Nautiyal, Ankit K
2023-03-17 11:39       ` Ville Syrjälä
2023-03-14 11:04 ` [Intel-gfx] [PATCH v11 02/11] drm/i915/display: Add new member in intel_dp to store ycbcr420 passthrough cap Ankit Nautiyal
2023-03-14 11:04 ` [Intel-gfx] [PATCH v11 03/11] drm/i915/dp: Replace intel_dp.dfp members with the new crtc_state sink_format Ankit Nautiyal
2023-03-16 23:46   ` Ville Syrjälä
2023-03-17 10:48     ` Nautiyal, Ankit K
2023-03-14 11:04 ` [Intel-gfx] [PATCH v11 04/11] drm/i915/display: Use sink_format instead of ycbcr420_output flag Ankit Nautiyal
2023-03-17  0:25   ` Ville Syrjälä
2023-03-17 11:10     ` Nautiyal, Ankit K
2023-03-14 11:04 ` [Intel-gfx] [PATCH v11 05/11] drm/i915/dp: Rearrange check for illegal mode and comments in mode_valid Ankit Nautiyal
2023-03-17  0:28   ` Ville Syrjälä
2023-03-14 11:04 ` [Intel-gfx] [PATCH v11 06/11] drm/i915/dp: Consider output_format while computing dsc bpp for mode_valid Ankit Nautiyal
2023-03-17  1:00   ` Ville Syrjälä
2023-03-20  3:36     ` Nautiyal, Ankit K
2023-03-20  8:26       ` Ville Syrjälä
2023-03-14 11:04 ` [Intel-gfx] [PATCH v11 07/11] drm/i915/display: Add helper function to check if sink_format is 420 Ankit Nautiyal
2023-03-14 11:04 ` [Intel-gfx] [PATCH v11 08/11] drm/i915/dp: Avoid DSC with output_format YCBCR420 Ankit Nautiyal
2023-03-14 17:33   ` Manasi Navare
2023-03-16 11:20     ` Nautiyal, Ankit K [this message]
2023-03-14 11:04 ` [Intel-gfx] [PATCH v11 09/11] drm/i915/dp: Handle BPP where HDMI2.1 DFP doesn't support DSC Ankit Nautiyal
2023-03-14 11:04 ` [Intel-gfx] [PATCH v11 10/11] drm/i915/dp: Fix FRL BW check for HDMI2.1 DFP Ankit Nautiyal
2023-03-14 11:04 ` [Intel-gfx] [PATCH v11 11/11] drm/i915/dp: Add a wrapper to check frl/tmds downstream constraints Ankit Nautiyal
2023-03-14 15:41 ` [Intel-gfx] ✓ Fi.CI.BAT: success for Handle BPC for HDMI2.1 PCON without DSC1.2 sink and other fixes (rev12) Patchwork
2023-03-15 19:31 ` [Intel-gfx] ✓ Fi.CI.IGT: " Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=15d32e96-6468-901d-b78a-bdbd402ef163@intel.com \
    --to=ankit.k.nautiyal@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=navaremanasi@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox