Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] drm/xe/display: read PCON capability only when present
@ 2025-06-19  4:26 Chaitanya Kumar Borah
  2025-06-19  7:43 ` ✓ i915.CI.BAT: success for drm/xe/display: read PCON capability only when present (rev2) Patchwork
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Chaitanya Kumar Borah @ 2025-06-19  4:26 UTC (permalink / raw)
  To: intel-xe, intel-gfx
  Cc: dibin.moolakadan.subrahmanian, ankit.k.nautiyal, imre.deak,
	chaitanya.kumar.borah

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>
---
 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


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-06-20  5:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` [PATCH v2] drm/xe/display: read PCON capability only when present Imre Deak
2025-06-19 18:00 ` ✗ i915.CI.Full: failure for drm/xe/display: read PCON capability only when present (rev2) Patchwork
2025-06-20  5:38 ` ✓ i915.CI.Full: success " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox