Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp775113lqo; Wed, 8 May 2024 14:46:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXJC+5mR9Qe/x9dna/9xvtrf5yISSxY1Jcc56DFfM18Wqdb0+uBGuJdNJv89HcW+9sMnm7HhfzB9s0/hIpqfr+W+xgPAvGZlf/kj552kg== X-Google-Smtp-Source: AGHT+IE0RHljrY9tJ3NBbo1obuCv86t0n5klhBO0OwkSq2mpV/v5SOOuiqhdBEG+eSvlEk61J/JR X-Received: by 2002:ac2:4ece:0:b0:51e:11d5:bca5 with SMTP id 2adb3069b0e04-5217cc4f620mr2111481e87.54.1715204768061; Wed, 08 May 2024 14:46:08 -0700 (PDT) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a179463a1si4436366b.27.2024.05.08.14.46.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 14:46:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-173855-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=VxzklLl9; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-173855-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173855-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 9BCD71F222FB for ; Wed, 8 May 2024 21:46:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6C2AE131E41; Wed, 8 May 2024 21:46:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="VxzklLl9" Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam04on2069.outbound.protection.outlook.com [40.107.100.69]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C227A1DFCF for ; Wed, 8 May 2024 21:45:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.100.69 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715204760; cv=fail; b=QWU7XhBA/Rxf8UcD4mPNuzmbI+MwvkJtJJtLX0CjocHXzbI2ZY1yWu934hwaNblu0GF06oaWTbqtJGSPmsE3JyqK33BE3+nMeqfQ9hMN1ZuVta4DKME9+V4ycBawgcZ+GLHxZZa4XRiMu1F0aWQag8ht1XuW4Bdy0axAcOlc+QI= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715204760; c=relaxed/simple; bh=onVKEPXNBWoyYsWfWU0goaYcA1LB/XMuIT8QlgonskU=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=kTx4U1tpgIi7kMOtl3fXpTPwSMoX2etYEN6sO+9WwBPKzy+pcb2bgxMXhkxfG15SClMv0PdqQUKjYjASUfDwaVqW0SdfGRmDq2RYzKMzF7GZ+BDpfKZcrppj7CbpS+SYsF/rryWTJqpRcz19tHIerWJOyGuZVdNfMYoFutOUnoM= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=VxzklLl9; arc=fail smtp.client-ip=40.107.100.69 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com 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?q?Ville=20Syrj=C3=A4l=C3=A4?= , 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 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit 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?B?R0FkN3NSZ2RkZ2VESGFLSndnL0lvQXBHSGpOaHR6NzhnNTE5MEtIZHZHQ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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 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 --- 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); -- 2.43.0