From patchwork Mon Dec 23 04:07:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Wayne Lin X-Patchwork-Id: 13918451 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 42733E7718B for ; Mon, 23 Dec 2024 04:07:43 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 67A6010E236; Mon, 23 Dec 2024 04:07:42 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (1024-bit key; unprotected) header.d=amd.com header.i=@amd.com header.b="0hJQOgkl"; dkim-atps=neutral Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2044.outbound.protection.outlook.com [40.107.237.44]) by gabe.freedesktop.org (Postfix) with ESMTPS id 516CC10E236 for ; Mon, 23 Dec 2024 04:07:40 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Sg+Dup895G3hLhY+skaqxBMcUsXdMf2N34B4AYMk5vDhcnPd2do7vf/juVfG90T6h/H79ylPNZHAyI8PidD5QEmsP+fN+ZQyMTVw6b8qLKmWJ+6PFRekLP8aESMSSKefqX5VUkNylk2jaRUuUxq4Quur4hLSThVBrNEwhrav71cFunIUWL1Asf4PTpSqfNIB116mPs8WwZd2KackvU3U3lwXTHHzO8RulDuUiZdy6f5w1t6MqQYwpefINOSvUkTI3peyIfHAXlS5tOE/GQqR6LAoEFU8QkyYPXHSvOG2I/rVl5ekzgcsx7TWiXxg1O+R0fLiuGaBwHzcxjO9NIVsAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=qNcaGbtiRNDJ8yqfZGrlIASRHHZj4/FqW2ee/DSy0Ak=; b=XXz+RcH1cVZckJ7N924oNZrIcMCQB7J01IUYtLoUUGlOPoy/VFlIvdZF66YwlyDcw7GxnbbG97GJOzVHe4crhTupeGmA8WJcxE6k5zgNyHpdW/+WAGwg8mRf8A4KG2OJWBe2FXGl3ndqFdic2Ru9otpltogNPNH4mWrUw1h5KwowtrIIPetAGxjXec4akkWyphmHQzh52jkOBvY8ibOW2DToBMZH4gfWP6fbKHRaumcjxVAc95+r6oOhJocwnwIcWHOp+wIr7WThpIS9VF5ldpKNzsNooesGAbV5286wWwNwzTdH89y3cjGBmmtmNV6HWjhneSwd5AMqTJzLLaWu8w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.freedesktop.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qNcaGbtiRNDJ8yqfZGrlIASRHHZj4/FqW2ee/DSy0Ak=; b=0hJQOgklPQ8nyrzkTuDItkQT81jKLJTdbYN4rnCEUIchfosJ1SBiFgd8EbbCzMwNQDdZyn5G8E8c0Vh+TIHWHvHg2QNglBqAf2vaYGZ9ppQ2QIUytu1JvQCWGrhwZKbZccOe8+r8RBVMhXwh0CQyo6mIlNXhFRj0rV6fLfNLzmA= Received: from CH0PR03CA0007.namprd03.prod.outlook.com (2603:10b6:610:b0::12) by MN0PR12MB6054.namprd12.prod.outlook.com (2603:10b6:208:3ce::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8272.18; Mon, 23 Dec 2024 04:07:33 +0000 Received: from DS3PEPF0000C37F.namprd04.prod.outlook.com (2603:10b6:610:b0:cafe::c6) by CH0PR03CA0007.outlook.office365.com (2603:10b6:610:b0::12) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8182.15 via Frontend Transport; Mon, 23 Dec 2024 04:07:32 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB03.amd.com; pr=C Received: from SATLEXMB03.amd.com (165.204.84.17) by DS3PEPF0000C37F.mail.protection.outlook.com (10.167.23.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.8293.12 via Frontend Transport; Mon, 23 Dec 2024 04:07:32 +0000 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Sun, 22 Dec 2024 22:07:31 -0600 Received: from localhost.localdomain (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server id 15.1.2507.39 via Frontend Transport; Sun, 22 Dec 2024 22:07:29 -0600 From: Wayne Lin To: CC: , , , , Wayne Lin Subject: [PATCH v2 0/2] Fix drm RAD print Date: Mon, 23 Dec 2024 12:07:24 +0800 Message-ID: <20241223040726.3985676-1-Wayne.Lin@amd.com> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Received-SPF: None (SATLEXMB03.amd.com: Wayne.Lin@amd.com does not designate permitted sender hosts) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS3PEPF0000C37F:EE_|MN0PR12MB6054:EE_ X-MS-Office365-Filtering-Correlation-Id: 984a90b9-1235-42bb-39c2-08dd23075353 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|1800799024|36860700013|82310400026; X-Microsoft-Antispam-Message-Info: =?utf-8?q?DkTo2A+jnyLOjUUf2FE7+HQ82xPJxWt?= =?utf-8?q?0I7A+AkcmXf3eL2rygTioBb5QdW2UXbHso+b9WP/lbqG5WKAWgg7QG0aBm8dKXSoM?= =?utf-8?q?l/xrad0rUJ5HvJnNEWbpmAbXNcSF0706CsLRgeAdKj7RhYnMw6RAHJ6ZJ+OZtJT7v?= =?utf-8?q?aLN31RCpyn45PqkpMyOqVwcejO5ZEghp24VZIkGbopvSYo45xoOq2JvChN+sH+8zC?= =?utf-8?q?ROY6XNqTps82VV2zBE1AMns7UTNgpEoLnrmcvp2fSBIaxDCQLcVPhsj+iOi9xwHIU?= =?utf-8?q?TKqKZvqf6tuh7X4NPsrTEwQpZ+gdnw3zrBCtJ0O+IF1yJtzWlHHTxTyJpVvhz2nIu?= =?utf-8?q?6rmai+1dU0JKJOa0I6a/tk4vSiSr2q2joK6/2d+kpBlj5/v37q7LlG4AdU0zynsjY?= =?utf-8?q?nFOmGS2lhTWanf1xwK31wh9Jd+QTmr9tAN2OYQv1MC6724a47JG4INrOdN7le2gkD?= =?utf-8?q?iVIf0me3s2mXFAq6iUFkRDhFyyw9I0LNFkb4V0tLhi1GGMS6B4liobazbzIVuRw4d?= =?utf-8?q?7jPYRZnrlQg0+WYt6Ergr8fDgqQ7uOcHlOZQngGNHG+IyBqWMqflO+qr/AgvLz3Hw?= =?utf-8?q?SYyKqb15RLdfdl0W3xsKOsapgdQ+2ZtLkONnTbTTGzn0hRY8ibNmskANHOxvyuc/i?= =?utf-8?q?00U5N/97JDX27HRD8iXD1gO4hfdAFY7PdJuh2fO7lva7ruz0ncsRTYgX02BfggBj9?= =?utf-8?q?mWq+Hz2Vtvb0nGIn0uuaIkzr909Nl1lCex4f6XUQ2TcU3ZHfqFhiNQkOr6XtIySco?= =?utf-8?q?4wOeKm6ybUOp8zuVhFO9XF8S6veGUtBGxDauw8WDEkRarKWNpCJmpaNc2CNUtY0fK?= =?utf-8?q?MWX8n82S6waLttuVrAmh4hMgLUiUvApw4i0yGR1vU9Uc9YgDapAlYhno0WYQYXwd5?= =?utf-8?q?6WfsKP82rpAIXMb/2EO9aGh7oW93cDXsg0+Bt3gU3gMfl7HuXCn2kMI0Xei7p+Z/v?= =?utf-8?q?udMIorypdX2Ct5qVqCFc/8ycKN4v2YuEauGDcBnhpR5jubZ0h/WXyQ80ngLlA4JK2?= =?utf-8?q?RuTEe7ojlDgNaw1SQHhEh5woKIKV443X2al2i0WWyMEjmvxY8YYZdDZHaVoPRviPW?= =?utf-8?q?M6nktqwJA+SvaiEGrbX9tYYfAMBTic3ZNmBA8oyraIL/h2E061R1ho0Uwnp+Oniuh?= =?utf-8?q?Lv/Zo2niruqYyd0SE1wW+SZqCQ9iEzw3gcnjBu45ly+jefukhylQPsHqBrTCQanOF?= =?utf-8?q?OEM967X2xCjTveD9HyqAuUpLqO/ZqEBXI9w2fcJyZLaB2MSoPkaQJvcNsfbGiFbW6?= =?utf-8?q?cg7fF6UpbHj04ZiNHX730mRLdBQZwWeiC1y5gcl3MN+ikpVxHVcIp0VDr83pK6GtZ?= =?utf-8?q?KoXQNDeZRQx9UT7VCzHm3TiCOguRag+gcBDvd9d4RPCZVs3NWSZKdsA=3D?= X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB03.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230040)(376014)(1800799024)(36860700013)(82310400026); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Dec 2024 04:07:32.5091 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 984a90b9-1235-42bb-39c2-08dd23075353 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: DS3PEPF0000C37F.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0PR12MB6054 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This is v2 of [1], with the following changes: - Document how RAD is constructed at drm_dp_mst_branch::rad[] (Imre) - Add a new helper drm_dp_mst_get_ufp_num_at_lct_from_rad() which can be leveraged by drm_dp_mst_rad_to_str() and drm_dp_get_mst_branch_device() (Imre) Cc: Imre Deak Cc: Ville Syrjälä Cc: Harry Wentland Cc: Lyude Paul [1] https://patchwork.freedesktop.org/series/141832/ Wayne Lin (2): drm/dp_mst: Fix drm RAD print drm/dp_mst: Add helper to get port number at specific LCT from RAD drivers/gpu/drm/display/drm_dp_mst_topology.c | 32 +++++++++++++------ include/drm/display/drm_dp_mst_helper.h | 7 ++++ 2 files changed, 29 insertions(+), 10 deletions(-)