Message ID | 20191116220128.16598-10-mikita.lipski@amd.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=wd+x=ZI=lists.freedesktop.org=dri-devel-bounces@kernel.org> Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5A161913 for <patchwork-dri-devel@patchwork.kernel.org>; Sat, 16 Nov 2019 22:02:06 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 418492071E for <patchwork-dri-devel@patchwork.kernel.org>; Sat, 16 Nov 2019 22:02:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 418492071E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=amd.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7959C6E1ED; Sat, 16 Nov 2019 22:01:44 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-eopbgr770041.outbound.protection.outlook.com [40.107.77.41]) by gabe.freedesktop.org (Postfix) with ESMTPS id 11AE86E1BD; Sat, 16 Nov 2019 22:01:41 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=G146EOiOldQdFPUhR4bQg/JdmGmg9sPQqNpSiwYww79ykXFT3fihAOYz1xfrWYWiaPRC+53OUmhCmLeMuy7XhNbgkD2Pj+EnpdG8U6SlDP6/aJlVTbdumT7KakNYReFOmCztldtfPmK9B6+HBtLxE0plP3k3yJGioyoL2M3VfgLXncPfzC/xEClJgCxlXRSQq6b73gFTpwfn0NoVfZzmD++YN5goebqJNy9Nb7rJI1K2BtM59QIkaMHxRVe0SdjvznCgyTmbuZO5WX4P+A940mDRCdlUY9ZZzAljKpyoSAjoUe8D3EVSLWjiMBrB+fVjRdmeoThEWpPv3KQmuaO68Q== 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-SenderADCheck; bh=gTodLTZAP+8jfwQY0weyYwS8j96zYlC2FWxnAFndJHg=; b=k3uPMUjWf9SndLdce78W4VdnJc+taUABs//5FTSKyI0flqjSN7FpOf/D+8IZi6FVTAjM8PuUQwPBy4qtbbw7s/TTNZoOg7cWGu/lLYGEKGfNuWAJaTmZCMLF1yptqnLkSRmlTtMfAyNSvLGG8MJ59ZecXC2OlOUg48wHFgdQSFFiHONF+SNY8aYvuT/lGhHL9KjsuKwnIEmf623SSDAYhrXTRdAFDAafq4pZMAfTcRLub0pmhM6d6AnwqT5nNCMElXryuyc5kzzElt6XbFzp1S+EZIhxfeYB3EHeW+3VWDrrIylDMMDJiTyLO0PYV6oscuvwg3hKTQHKTXkc7LBe6g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.freedesktop.org smtp.mailfrom=amd.com; dmarc=permerror action=none header.from=amd.com; dkim=none (message not signed); arc=none Received: from CY4PR1201CA0008.namprd12.prod.outlook.com (2603:10b6:910:16::18) by BY5PR12MB4050.namprd12.prod.outlook.com (2603:10b6:a03:207::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2451.23; Sat, 16 Nov 2019 22:01:38 +0000 Received: from CO1NAM11FT010.eop-nam11.prod.protection.outlook.com (2a01:111:f400:7eab::209) by CY4PR1201CA0008.outlook.office365.com (2603:10b6:910:16::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.2451.23 via Frontend Transport; Sat, 16 Nov 2019 22:01:38 +0000 Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) Received: from SATLEXMB01.amd.com (165.204.84.17) by CO1NAM11FT010.mail.protection.outlook.com (10.13.175.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.2451.23 via Frontend Transport; Sat, 16 Nov 2019 22:01:37 +0000 Received: from SATLEXMB05.amd.com (10.181.40.146) by SATLEXMB01.amd.com (10.181.40.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Sat, 16 Nov 2019 16:01:36 -0600 Received: from SATLEXMB01.amd.com (10.181.40.142) by SATLEXMB05.amd.com (10.181.40.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Sat, 16 Nov 2019 16:01:36 -0600 Received: from mlipski-pc.amd.com (10.180.168.240) by SATLEXMB01.amd.com (10.181.40.142) with Microsoft SMTP Server id 15.1.1713.5 via Frontend Transport; Sat, 16 Nov 2019 16:01:36 -0600 From: <mikita.lipski@amd.com> To: <amd-gfx@lists.freedesktop.org> Subject: [PATCH v7 09/17] drm/amd/display: Write DSC enable to MST DPCD Date: Sat, 16 Nov 2019 17:01:20 -0500 Message-ID: <20191116220128.16598-10-mikita.lipski@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191116220128.16598-1-mikita.lipski@amd.com> References: <20191116220128.16598-1-mikita.lipski@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:165.204.84.17; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(4636009)(136003)(376002)(346002)(396003)(39860400002)(428003)(199004)(189003)(11346002)(2351001)(26005)(2616005)(86362001)(426003)(36756003)(48376002)(446003)(53416004)(51416003)(336012)(5660300002)(6666004)(50466002)(356004)(8936002)(70586007)(70206006)(50226002)(305945005)(186003)(7696005)(47776003)(81166006)(81156014)(8676002)(478600001)(76176011)(1076003)(2906002)(6916009)(2876002)(16586007)(54906003)(476003)(14444005)(126002)(486006)(316002)(4326008)(16060500001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY5PR12MB4050; H:SATLEXMB01.amd.com; FPR:; SPF:None; LANG:en; PTR:InfoDomainNonexistent; A:1; MX:1; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 43221a70-b290-49af-4daf-08d76ae08dbf X-MS-TrafficTypeDiagnostic: BY5PR12MB4050: X-Microsoft-Antispam-PRVS: <BY5PR12MB40505FE5C82363649851B603E4730@BY5PR12MB4050.namprd12.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:1360; X-Forefront-PRVS: 02234DBFF6 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: M7c8TwKgrMmCVBsZZmZTYBxan+XjOtokMrsLgbahRCiI3yHM0hPXTJfrN0oUX0uitTM4KaxnzaQqBAvsYdeodacBYuFbDzxm8091UpWVucejbTd0JF0XpPmXuI5+SMRJ2pOuC/qDLUeF99AJSgHZYDdJBb04uIENe/Er6Wdh8GQH3X7rGfo1WT7mrqMVhyUVG4VKhE7LWvMmNZcOpnSozxPvDwVfXgpMtvLQ6L9DVOatC0gefFk0GTjNAP32/cFZmvT4YtFsM6djQKwCW+pIdiWGgUwzfzAXqxwacpNp1tqTZ96lBMDNn2GAW9hH/NNdRHULyT3Osi+oLUKvXH8oas75SP5iMxRrb5B7Z5HFvT530yiMTOn/DjNgCVe5y3CIpKkT4ehWh8qBtp64CqxVieeEC7D1r6ueHLoo3BZsLhWNj6UstF0JcztCFr7Q8V87 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Nov 2019 22:01:37.7966 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 43221a70-b290-49af-4daf-08d76ae08dbf 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=[SATLEXMB01.amd.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR12MB4050 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector2-amdcloud-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gTodLTZAP+8jfwQY0weyYwS8j96zYlC2FWxnAFndJHg=; b=SfKXv2o7bKpK6MTPGVBAhGqlELvjsFU8YwrXdup/HRs7iynm5I/9idKYsrfJYNDV3PNjjfYD2IfawXqpXXgcK5OFKODyP7WEfdlarnATh9L6FbSswBfL1PfiHsJtJecssUJO4WdGWe/JgMhMirFTMNZbJPO2AWsTxJttb6QOpg8= X-Mailman-Original-Authentication-Results: spf=none (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; lists.freedesktop.org; dkim=none (message not signed) header.d=none;lists.freedesktop.org; dmarc=permerror action=none header.from=amd.com; X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development <dri-devel.lists.freedesktop.org> List-Unsubscribe: <https://lists.freedesktop.org/mailman/options/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=unsubscribe> List-Archive: <https://lists.freedesktop.org/archives/dri-devel> List-Post: <mailto:dri-devel@lists.freedesktop.org> List-Help: <mailto:dri-devel-request@lists.freedesktop.org?subject=help> List-Subscribe: <https://lists.freedesktop.org/mailman/listinfo/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=subscribe> Cc: David Francis <David.Francis@amd.com>, Mikita Lipski <mikita.lipski@amd.com>, dri-devel@lists.freedesktop.org Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" <dri-devel-bounces@lists.freedesktop.org> |
Series |
DSC MST support for DRM and AMDGPU
|
expand
|
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c index 66f266a5e10b..069b7a6f5597 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c @@ -37,6 +37,7 @@ #include "dc.h" #include "amdgpu_dm.h" #include "amdgpu_dm_irq.h" +#include "amdgpu_dm_mst_types.h" #include "dm_helpers.h" @@ -516,8 +517,24 @@ bool dm_helpers_dp_write_dsc_enable( ) { uint8_t enable_dsc = enable ? 1 : 0; + struct amdgpu_dm_connector *aconnector; + + if (!stream) + return false; + + if (stream->signal == SIGNAL_TYPE_DISPLAY_PORT_MST) { + aconnector = (struct amdgpu_dm_connector *)stream->dm_stream_context; + + if (!aconnector->dsc_aux) + return false; + + return (drm_dp_dpcd_write(aconnector->dsc_aux, DP_DSC_ENABLE, &enable_dsc, 1) >= 0); + } + + if (stream->signal == SIGNAL_TYPE_DISPLAY_PORT) + return dm_helpers_dp_write_dpcd(ctx, stream->link, DP_DSC_ENABLE, &enable_dsc, 1); - return dm_helpers_dp_write_dpcd(ctx, stream->sink->link, DP_DSC_ENABLE, &enable_dsc, 1); + return false; } bool dm_helpers_is_dp_sink_present(struct dc_link *link)