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 A83FFC79F89 for ; Mon, 7 Sep 2026 04:46:42 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1D51A10E62D; Mon, 7 Sep 2026 04:46:42 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="ZJNIzfMc"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.14]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1930610E629 for ; Mon, 7 Sep 2026 04:46:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1788756400; x=1820292400; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=pioSbD2s/+M7BbkAj2hC03O9yt2dCo68AHfkzH+u+vk=; b=ZJNIzfMciy6jhm9ZfRc9GYSN4S6BE3YxaYP/I4JGGecbRwIBIgApqptQ BZtAhpazg3tAeVLL5NWTWHEhCD+3bJj2xDmFBsAXGCUCIoPMLg8VG9CTY PKHA3NqOXp2CCgoJHfCCOQ5sVu+QkPeE2cuinbXBCR9f6/TxyBjFyvfMP YKqeyyRTOejUIhCUGWln49LE4ZojQG+Ip0kq6XYyPNXoDv7h3j7kmAvPn uHAFdmOaMmWPY4DaZHPfli0cmmaTzZnlPXGHYFfRO6fMqAJJJ5thbUEg9 1nnmnvz1pmWPuPWl/jGHSUfSZvnmEQz8fv2JYMH6+mCioORjgcl0QY529 g==; X-CSE-ConnectionGUID: xC6pINeXRSGvAGVpwn1kjw== X-CSE-MsgGUID: bBdcyjixRHewpxz4evZnQQ== X-IronPort-AV: E=McAfee;i="6800,10657,11898"; a="93022690" X-IronPort-AV: E=Sophos;i="6.25,266,1779174000"; d="scan'208";a="93022690" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by orvoesa106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Sep 2026 21:46:40 -0700 X-CSE-ConnectionGUID: iJbpNVhSREqdq0xreeb1Jw== X-CSE-MsgGUID: Zn5fFqH0SWKExOoLxtTFkw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.25,266,1779174000"; d="scan'208";a="267352153" Received: from xiaolu.sh.intel.com ([10.239.146.103]) by fmviesa007.fm.intel.com with ESMTP; 06 Sep 2026 21:46:38 -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 v5 1/2] drm/dp/mst: recognize DP-to-HDMI PCON as virtual DPCD in DP-to-DP topology Date: Mon, 7 Sep 2026 12:44:09 +0800 Message-ID: <20260907044410.1368008-2-xiaolu.xie@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260907044410.1368008-1-xiaolu.xie@intel.com> References: <20260906094156.1057767-1-xiaolu.xie@intel.com> <20260907044410.1368008-1-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