From: Imre Deak <imre.deak@intel.com>
To: Chaitanya Kumar Borah <chaitanya.kumar.borah@intel.com>
Cc: <intel-xe@lists.freedesktop.org>,
<intel-gfx@lists.freedesktop.org>,
<dibin.moolakadan.subrahmanian@intel.com>,
<ankit.k.nautiyal@intel.com>
Subject: Re: [PATCH v2] drm/xe/display: read PCON capability only when present
Date: Thu, 19 Jun 2025 15:15:42 +0300 [thread overview]
Message-ID: <aFP_bn-KyZQvkKd_@ideak-desk> (raw)
In-Reply-To: <20250619042629.3980244-1-chaitanya.kumar.borah@intel.com>
On Thu, Jun 19, 2025 at 09:56:29AM +0530, Chaitanya Kumar Borah wrote:
> Avoid reading the PCON capabilities redundantly on non-branch devices.
>
> v2:
> - Make commit description more accurate. (Imre)
> - Clear intel_dp->pcon_dsc_dpcd irrespective of presense of PCON. (Imre)
>
> Signed-off-by: Chaitanya Kumar Borah <chaitanya.kumar.borah@intel.com>
Reviewed-by: Imre Deak <imre.deak@intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_dp.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
> index 277b40b13948..f48912f308df 100644
> --- a/drivers/gpu/drm/i915/display/intel_dp.c
> +++ b/drivers/gpu/drm/i915/display/intel_dp.c
> @@ -3726,6 +3726,9 @@ static void intel_dp_get_pcon_dsc_cap(struct intel_dp *intel_dp)
>
> memset(intel_dp->pcon_dsc_dpcd, 0, sizeof(intel_dp->pcon_dsc_dpcd));
>
> + if (!drm_dp_is_branch(intel_dp->dpcd))
> + return;
> +
> if (drm_dp_dpcd_read(&intel_dp->aux, DP_PCON_DSC_ENCODER,
> intel_dp->pcon_dsc_dpcd,
> sizeof(intel_dp->pcon_dsc_dpcd)) < 0)
> --
> 2.25.1
>
next prev parent reply other threads:[~2025-06-19 12:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-19 4:26 [PATCH v2] drm/xe/display: read PCON capability only when present Chaitanya Kumar Borah
2025-06-19 7:43 ` ✓ i915.CI.BAT: success for drm/xe/display: read PCON capability only when present (rev2) Patchwork
2025-06-19 12:15 ` Imre Deak [this message]
2025-06-19 18:00 ` ✗ i915.CI.Full: failure " Patchwork
2025-06-20 5:38 ` ✓ i915.CI.Full: success " 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=aFP_bn-KyZQvkKd_@ideak-desk \
--to=imre.deak@intel.com \
--cc=ankit.k.nautiyal@intel.com \
--cc=chaitanya.kumar.borah@intel.com \
--cc=dibin.moolakadan.subrahmanian@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox