From patchwork Wed May 8 21:45:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mario Limonciello X-Patchwork-Id: 13659196 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 4B3C4C04FFE for ; Wed, 8 May 2024 21:46:03 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2C85910FB87; Wed, 8 May 2024 21:46:02 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (1024-bit key; unprotected) header.d=amd.com header.i=@amd.com header.b="VxzklLl9"; dkim-atps=neutral Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam04on2071.outbound.protection.outlook.com [40.107.100.71]) by gabe.freedesktop.org (Postfix) with ESMTPS id 621AD10FE91; Wed, 8 May 2024 21:46:01 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OcfJq6ECr3cnM5tBIxsiJ5h6+s90GdipxNSjniGvjPUVc2ENc5mOTOMUd/Snd5bVwNFO0QLlzqF42GJabCoBFoejKpR5BP5xp++NQr3tunSONt0vO2ma9jrQCEKpbCt8748biqB1TpoLvpQAR0yKICHn8EZPZdV4ym2nzoK8YdKExOKMaue0iQ4In01g/ByG3E9V1s11dxz0P1s25tdjgw1EYABkr3wAtzzB91L/DesAvAD77Sa96Y5mIitKE/b0/Uy7o6L9XX8GzrXn1VXyxJpJAxra5JaHAvP4hdIZNLxhuEXEB+mrQJL633YV36jRM1bRW6aUylKSNMFoqjbfJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=7igv+HwvqcHayPwa2WpYbYYtnoemNpLM3K5dnjJ1Vv8=; b=E4RMbG9Fn8u57RBl3eYoA0UG7+5mkG0Yx7bjyBZycsofXCv2qLw+LzUhSe1w5A81FIfJwGzM3Ryya1QL+Cc9oGwbFyBGbjfCGyT06m0xHx5C2RAZMBsufHuAG+MehfXYeVaFSTqIO/ScC8hUqgthKUKqKo14dDxicG0YSObI1aP5XmD2NucMF3QKucglwnIA5WQvAsxE8hF5bpNeL7yvlh0z+2StXJpkyQBd3asyLmPTQgjRQL9ci603sCwnxKaB14XUaigeseHV2jlmfV3+d5u5kt+V1n3Ds+nURFhMwC9ge2RIwbtFn+5OgEgcCPImXILZf3uru5IBnctSst+OZA== 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=7igv+HwvqcHayPwa2WpYbYYtnoemNpLM3K5dnjJ1Vv8=; b=VxzklLl9NNWKf444m7LArscRty8SKjr2RLgICCHkkoSsGgLtbRDqtOyx6nKggXQ2xHvNWwD89irM9C8SZvNFYX4Pu+kLt6ysRk7IKDxT3xc4ukfoHSfxg6+t3MyAQp+fWh+/wExxfF9eLlTxIcxYtAJudjFRJtHE48qkjYVFIwA= Received: from BL0PR02CA0056.namprd02.prod.outlook.com (2603:10b6:207:3d::33) by PH8PR12MB7158.namprd12.prod.outlook.com (2603:10b6:510:22a::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.41; Wed, 8 May 2024 21:45:55 +0000 Received: from MN1PEPF0000ECD6.namprd02.prod.outlook.com (2603:10b6:207:3d:cafe::94) by BL0PR02CA0056.outlook.office365.com (2603:10b6:207:3d::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.46 via Frontend Transport; Wed, 8 May 2024 21:45:55 +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=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by MN1PEPF0000ECD6.mail.protection.outlook.com (10.167.242.135) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7544.18 via Frontend Transport; Wed, 8 May 2024 21:45:55 +0000 Received: from AUS-P9-MLIMONCI.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Wed, 8 May 2024 16:45:52 -0500 From: Mario Limonciello To: , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter CC: , , "Aurabindo Pillai" , Daniel Wheeler , Fangzhi Zuo , Mario Limonciello , =?utf-8?b?VmlsbGUgU3lyasOk?= =?utf-8?b?bMOk?= , Tyler Schneider Subject: [PATCH v2] drm/amd/display: Enable colorspace property for MST connectors Date: Wed, 8 May 2024 16:45:35 -0500 Message-ID: <20240508214535.356-1-mario.limonciello@amd.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN1PEPF0000ECD6:EE_|PH8PR12MB7158:EE_ X-MS-Office365-Filtering-Correlation-Id: 735b1263-f0f7-4b7c-95df-08dc6fa83d40 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230031|82310400017|376005|1800799015|36860700004; X-Microsoft-Antispam-Message-Info: =?utf-8?q?GAd7sRgddgeDHaKJwg/IoApGHjNhtz7?= =?utf-8?q?8g5190KHdvGBMiXu4Faek366k3tHPFp4ovV/PXeLVIxXGxY6DadgE3qs8V8HjxC8a?= =?utf-8?q?Lf2BMh8hoYGLZUjL9LO3ymqCTb6Bmbjt1OPDNJLZpEU6spTFppftowePQ523qmm5G?= =?utf-8?q?XMyFwOO4UcNWDe0ahx7ODFgMQMkzPwM6QkMfC4oUnGIY3pck/upBHZD/bewES7GFm?= =?utf-8?q?f2GPxVXNsaQgwvCbAz64XqZ5yBQiI0juSUh4EWdUuYB8pgCgKzUvpoMhIXaKcmNWS?= =?utf-8?q?6rSooIGR3QPxzYbCmjV7mtEzpvkURa95x4WH41Zh5G8voYFUkwMDJH797ylbyMbDt?= =?utf-8?q?lEXxB0usodcpBYgqvpATXDvWvbUVKzAHKrN95MsxgTGqG0IJEVqjgIOe25illQL8s?= =?utf-8?q?2j5zcEHgKZK7nwxxGcdbCcsZ6FhykzVO+GYsQDpsXULZXSH/vVVWKtBY6rQjY751c?= =?utf-8?q?QY9tp77q1eudfyExu+ooivy82f6tQIgissY4qnx9lzXSHxJHQ0xJrVP4LZWP3A7gd?= =?utf-8?q?w6Y7qQswoYQ/fdF8GrSeCdqAflDVox6UIINBaoA4ifi7NP9wAsh5dUrJcl1p1auq+?= =?utf-8?q?mbvBS4oK2r7nhOi8PmxyzRgjBi4sdthIzVnJG0FYqdMZ0W1dtFjOTzyohhD3ddFCq?= =?utf-8?q?T0ZrkWXrlcB/FqlgO6t/rHJ7JEXuldp8qqEBAyODVqDa1DqRkLbF7y1qWvmfW7US/?= =?utf-8?q?oR9LokQEhGTStwo5IVyabFvwcFCZRTJmZsg7WRO/1/yOV/qfOpio9NhSDVGuIt7dx?= =?utf-8?q?WR5IUyYPFI7WnbmBejrWTM3ej53CpCcmsyJ+Tr4vLv/4ZYYpv9XNMTzz42SYwNwza?= =?utf-8?q?fZvxsSY6PSmAYXAbzbdnIQquTGXxdOv3+/irrRoHJ5jdvUEkSvOWgDzKa7IannK0r?= =?utf-8?q?koK+4Ddxwx/9+nLnbg2363rQVSf06JRpPv7yb/aghOlkrXkl/9MatVrJN/dkaUz0Z?= =?utf-8?q?EMIacaMBNpWZdgnvYk4hD2ConHphhkcR+i+0ZgH50XswSkR5Baal9CDWTbKt9kmJG?= =?utf-8?q?2ywhRduTw7NuY5VqFfnez7ZfD44eypXqEpY+Ikyq2UqvuNkuO3RQOeQjY7rWj7VFQ?= =?utf-8?q?QGRbgRO7wM7r7d90Ti1w22rRHLhwbljfxasfXMdHzt+mpUUpNSb+G4NFFmeywgwc5?= =?utf-8?q?inF7ouov7w98OuSB37MWMksp27i3tNWjX5O5VINBfTW2fAq4n+27UPRNCeZH8O0wt?= =?utf-8?q?sF0WvW+P10vYGk2fEWW3Zk0Ruj6bxGWX6y1hI4XQzrKYnYlT/zDwJgQzNlv+up+vJ?= =?utf-8?q?PbejWSIxTGVta?= X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB04.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230031)(82310400017)(376005)(1800799015)(36860700004); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 May 2024 21:45:55.2130 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 735b1263-f0f7-4b7c-95df-08dc6fa83d40 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=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: MN1PEPF0000ECD6.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH8PR12MB7158 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" MST colorspace property support was disabled due to a series of warnings that came up when the device was plugged in since the properties weren't made at device creation. Create the properties in advance instead. Suggested-by: Ville Syrjälä Fixes: 69a959610229 ("drm/amd/display: Temporary Disable MST DP Colorspace Property"). Reported-and-tested-by: Tyler Schneider Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3353 Signed-off-by: Mario Limonciello Reviewed-by: Harry Wentland --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c index 941e96f100f4..12b036d511d0 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c @@ -613,6 +613,9 @@ dm_dp_add_mst_connector(struct drm_dp_mst_topology_mgr *mgr, &connector->base, dev->mode_config.tile_property, 0); + connector->colorspace_property = master->base.colorspace_property; + if (connector->colorspace_property) + drm_connector_attach_colorspace_property(connector); drm_connector_set_path_property(connector, pathprop);