From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C0BBBC79FAD for ; Wed, 9 Sep 2026 03:37:49 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 11B4210E0EC; Wed, 9 Sep 2026 03:37:49 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="B6Yjyp4T"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.14]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4E14210E0EC for ; Wed, 9 Sep 2026 03:37:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1788925067; x=1820461067; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=pioSbD2s/+M7BbkAj2hC03O9yt2dCo68AHfkzH+u+vk=; b=B6Yjyp4Tjs1/JSGdngFFKtZsQ5OzQmEcvqwthlC03N9+J0dmY5a4/JOT U2tOtnvH9gf1/oWxr37h4T75fpScmwC6LzYdD/LyKpFN0SCnT3X2Plr9q 1rLrljB39TA1JgQ1d+W+16LH3pymxG8x/0845Q69iBZsKDAIWjHgqgf6m UjM68lxDBfWm9xQnILaQi7YxQaxMQ680pBnftKF+pzGUZigf5RWR341ma YUg/CPLlN6YmnREfx5+ENgxpXPPTR0poSWXCwmINoFn5e3KQ9wC3gMy79 wCUW+2pQdN0/4AECkYA1KoIOmPqd3R/hcxzPNjYMYHa/uZ/D6i+SoL+sy Q==; X-CSE-ConnectionGUID: OXKXvaQPRHGl2DU5Aw+XDg== X-CSE-MsgGUID: uDpbO4LjQEi89YSZFPU3Yw== X-IronPort-AV: E=McAfee;i="6800,10657,11900"; a="89358851" X-IronPort-AV: E=Sophos;i="6.25,270,1779174000"; d="scan'208";a="89358851" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Sep 2026 20:37:46 -0700 X-CSE-ConnectionGUID: pXEy45/7S2Sypp+WB9RA3Q== X-CSE-MsgGUID: Bbo67BukRJaWb7V3ICPi9Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.25,270,1779174000"; d="scan'208";a="270701194" Received: from xiaolu.sh.intel.com ([10.239.146.103]) by orviesa008.jf.intel.com with ESMTP; 08 Sep 2026 20:37:45 -0700 From: Xiao Lu To: intel-gfx@lists.freedesktop.org Cc: jani.nikula@linux.intel.com, ville.syrjala@linux.intel.com, imre.deak@intel.com, ankit.k.nautiyal@intel.com, Xiao Lu Subject: [PATCH v6 1/2] drm/dp/mst: recognize DP-to-HDMI PCON as virtual DPCD in DP-to-DP topology Date: Wed, 9 Sep 2026 11:35:17 +0800 Message-ID: <20260909033518.158995-1-xiaolu.xie@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260907044410.1368008-3-xiaolu.xie@intel.com> References: <20260907044410.1368008-3-xiaolu.xie@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" drm_dp_mst_is_virtual_dpcd() checks if a branch port qualifies as a virtual DPCD device by looking for a downstream port with Peer_Device_Type=3 (DP_PEER_DEVICE_SST_SINK). Some PCON devices advertise their downstream HDMI sink port using Peer_Device_Type=4 (DP_PEER_DEVICE_DP_LEGACY_CONV) with a non-zero DPCD_Revision in the link address reply, indicating a virtual DPCD is present (VESA SCR Option 2). The current check misses this case, so passthrough_aux is never set and DSC passthrough modes are rejected. Accept DP_PEER_DEVICE_DP_LEGACY_CONV as a valid downstream peer type in the DP-to-DP branch so these PCON topologies are correctly identified. Signed-off-by: Xiao Lu --- drivers/gpu/drm/display/drm_dp_mst_topology.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/display/drm_dp_mst_topology.c b/drivers/gpu/drm/display/drm_dp_mst_topology.c index 4de36fda0..7d1128bcd 100644 --- a/drivers/gpu/drm/display/drm_dp_mst_topology.c +++ b/drivers/gpu/drm/display/drm_dp_mst_topology.c @@ -6045,7 +6045,8 @@ static bool drm_dp_mst_is_virtual_dpcd(struct drm_dp_mst_port *port) port->mstb && port->mstb->num_ports == 2) { list_for_each_entry(downstream_port, &port->mstb->ports, next) { - if (downstream_port->pdt == DP_PEER_DEVICE_SST_SINK && + if ((downstream_port->pdt == DP_PEER_DEVICE_SST_SINK || + downstream_port->pdt == DP_PEER_DEVICE_DP_LEGACY_CONV) && !downstream_port->input) { mutex_unlock(&port->mgr->lock); return true; -- 2.43.0