All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Lee Shawn C <shawn.c.lee@intel.com>
Cc: intel-gfx@lists.freedesktop.org,
	Shankar Uma <uma.shankar@intel.com>,
	Jani Nikula <jani.nikula@linux.intel.com>
Subject: Re: [PATCH] drm/i915/dp: Enable DSC on external DP display if VBT allows
Date: Wed, 28 May 2025 13:59:43 +0300	[thread overview]
Message-ID: <aDbsn22a2u-kWqpi@intel.com> (raw)
In-Reply-To: <20250527075906.65542-1-shawn.c.lee@intel.com>

On Tue, May 27, 2025 at 07:59:06AM +0000, Lee Shawn C wrote:
> A DSC setting has been available in VBT since version 251, which allows
> users to enable or disable the DSC feature based on their system design.
> With this in mind, DP driver should reference this setting and avoid
> enabling DSC if this value is not allowed.
> 
> Cc: Shankar Uma <uma.shankar@intel.com>
> Cc: Jani Nikula <jani.nikula@linux.intel.com>
> Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
> Signed-off-by: Lee Shawn C <shawn.c.lee@intel.com>
> ---
>  drivers/gpu/drm/i915/display/intel_bios.c   |  8 ++++++++
>  drivers/gpu/drm/i915/display/intel_bios.h   |  1 +
>  drivers/gpu/drm/i915/display/intel_dp.c     | 12 +++++++++---
>  drivers/gpu/drm/i915/display/intel_dp.h     |  2 +-
>  drivers/gpu/drm/i915/display/intel_dp_mst.c |  2 +-
>  5 files changed, 20 insertions(+), 5 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/display/intel_bios.c b/drivers/gpu/drm/i915/display/intel_bios.c
> index ba7b8938b17c..f08dd54fe4d4 100644
> --- a/drivers/gpu/drm/i915/display/intel_bios.c
> +++ b/drivers/gpu/drm/i915/display/intel_bios.c
> @@ -3548,6 +3548,14 @@ bool intel_bios_get_dsc_params(struct intel_encoder *encoder,
>  	return false;
>  }
>  
> +bool intel_bios_encoder_ext_display_dsc_disabled(const struct intel_bios_encoder_data *devdata)
> +{
> +	if (!devdata || devdata->display->vbt.version < 251)
> +		return false;
> +
> +	return devdata->child.disable_compression_for_ext_disp;

Windows doesn't actually use that bit, so we probably shouldn't either.

-- 
Ville Syrjälä
Intel

  parent reply	other threads:[~2025-05-28 10:59 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-27  7:59 [PATCH] drm/i915/dp: Enable DSC on external DP display if VBT allows Lee Shawn C
2025-05-27  8:20 ` Jani Nikula
2025-05-27  8:46   ` Lee, Shawn C
2025-05-27  9:04     ` Jani Nikula
2025-05-27 10:37 ` ✗ Fi.CI.BUILD: failure for " Patchwork
2025-05-27 15:18 ` [v2] " Lee Shawn C
2025-05-27 16:57 ` ✗ Fi.CI.CHECKPATCH: warning for drm/i915/dp: Enable DSC on external DP display if VBT allows (rev2) Patchwork
2025-05-27 17:21 ` ✓ i915.CI.BAT: success " Patchwork
2025-05-27 19:59 ` ✗ i915.CI.Full: failure " Patchwork
2025-05-28 10:59 ` Ville Syrjälä [this message]
2025-05-28 13:24   ` [PATCH] drm/i915/dp: Enable DSC on external DP display if VBT allows Lee, Shawn C

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=aDbsn22a2u-kWqpi@intel.com \
    --to=ville.syrjala@linux.intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=jani.nikula@linux.intel.com \
    --cc=shawn.c.lee@intel.com \
    --cc=uma.shankar@intel.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 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.