All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@intel.com>
To: Ankit Nautiyal <ankit.k.nautiyal@intel.com>,
	intel-gfx@lists.freedesktop.org
Subject: Re: [Intel-gfx] [PATCH 1/4] drm/i915/dp: Simplify checks for helper intel_dp_dsc_max_src_input_bpc
Date: Tue, 07 Nov 2023 11:58:03 +0200	[thread overview]
Message-ID: <877cmtzxzo.fsf@intel.com> (raw)
In-Reply-To: <20231107041740.3718419-2-ankit.k.nautiyal@intel.com>

On Tue, 07 Nov 2023, Ankit Nautiyal <ankit.k.nautiyal@intel.com> wrote:
> Return 0 if platform doesn't support DSC, and return 12 for Display ver
> 12+.

This just describes the diff in English. I'd be more interested in
reading e.g. whether there's a functional change here.

BR,
Jani.

>
> Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
> ---
>  drivers/gpu/drm/i915/display/intel_dp.c | 7 ++++---
>  1 file changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
> index 1891c0cc187d..d9e1d15a386e 100644
> --- a/drivers/gpu/drm/i915/display/intel_dp.c
> +++ b/drivers/gpu/drm/i915/display/intel_dp.c
> @@ -1569,13 +1569,14 @@ intel_dp_compute_link_config_wide(struct intel_dp *intel_dp,
>  static
>  u8 intel_dp_dsc_max_src_input_bpc(struct drm_i915_private *i915)
>  {
> +	if (!HAS_DSC(i915))
> +		return 0;
> +
>  	/* Max DSC Input BPC for ICL is 10 and for TGL+ is 12 */
> -	if (DISPLAY_VER(i915) >= 12)
> -		return 12;
>  	if (DISPLAY_VER(i915) == 11)
>  		return 10;
>  
> -	return 0;
> +	return 12;
>  }
>  
>  int intel_dp_dsc_compute_max_bpp(const struct intel_connector *connector,

-- 
Jani Nikula, Intel

  reply	other threads:[~2023-11-07  9:58 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-07  4:17 [Intel-gfx] [PATCH 0/4] DP DSC min/max src bpc fixes Ankit Nautiyal
2023-11-07  4:17 ` [Intel-gfx] [PATCH 1/4] drm/i915/dp: Simplify checks for helper intel_dp_dsc_max_src_input_bpc Ankit Nautiyal
2023-11-07  9:58   ` Jani Nikula [this message]
2023-11-08  4:02     ` Nautiyal, Ankit K
2023-11-16 14:54   ` Ankit Nautiyal
2023-11-07  4:17 ` [Intel-gfx] [PATCH 2/4] drm/i915/dp: Fix the max DSC bpc supported by source Ankit Nautiyal
2023-11-07  4:17 ` [Intel-gfx] [PATCH 3/4] drm/i915/dp_mst: Use helpers to get dsc min/max input bpc Ankit Nautiyal
2023-11-09  6:36   ` Kandpal, Suraj
2023-11-07  4:17 ` [Intel-gfx] [PATCH 4/4] drm/i915/dp: Ignore max_requested_bpc if its too low for DSC Ankit Nautiyal
2023-11-09  6:49   ` Kandpal, Suraj
2023-11-15  9:01     ` Nautiyal, Ankit K
2023-11-07  5:01 ` [Intel-gfx] ✗ Fi.CI.SPARSE: warning for DP DSC min/max src bpc fixes (rev2) Patchwork
2023-11-07  5:08 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2023-11-07 14:09 ` [Intel-gfx] ✗ Fi.CI.IGT: failure " Patchwork
2023-11-16 20:08 ` [Intel-gfx] ✗ Fi.CI.BUILD: failure for DP DSC min/max src bpc fixes (rev4) Patchwork
  -- strict thread matches above, loose matches on Subject: below --
2023-11-23  4:27 [Intel-gfx] [PATCH 0/4] DP DSC min/max src bpc fixes Ankit Nautiyal
2023-11-23  4:27 ` [Intel-gfx] [PATCH 1/4] drm/i915/dp: Simplify checks for helper intel_dp_dsc_max_src_input_bpc Ankit Nautiyal
2023-11-08 15:15 Ankit Nautiyal
2023-10-25 12:13 [Intel-gfx] [PATCH 0/4] DP DSC min/max src bpc fixes Ankit Nautiyal
2023-10-25 12:13 ` [Intel-gfx] [PATCH 1/4] drm/i915/dp: Simplify checks for helper intel_dp_dsc_max_src_input_bpc Ankit Nautiyal

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=877cmtzxzo.fsf@intel.com \
    --to=jani.nikula@intel.com \
    --cc=ankit.k.nautiyal@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.