Message ID | 20191203143530.27262-10-mikita.lipski@amd.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=JyLx=ZZ=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 AC51B184E for <patchwork-dri-devel@patchwork.kernel.org>; Tue, 3 Dec 2019 14:36:21 +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 94DA32073F for <patchwork-dri-devel@patchwork.kernel.org>; Tue, 3 Dec 2019 14:36:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 94DA32073F 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 5323A6E7D2; Tue, 3 Dec 2019 14:35:56 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from NAM04-BN3-obe.outbound.protection.outlook.com (mail-eopbgr680052.outbound.protection.outlook.com [40.107.68.52]) by gabe.freedesktop.org (Postfix) with ESMTPS id 93E0A6E7A0; Tue, 3 Dec 2019 14:35:49 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cVR9i5vSfWZaaVoNs4kyTLz9tbn3YNC+kOqqBEMXz4r603D0Hh8lnTPv3PxyNHFF9sfUrpQPNAoDAMjVP+2nVpP+xeS74i0ZnLnnuSqjttcvolit2uHfdae/zVWHtosHy6oFE8bNGRseorkqhRh4S6ZtUU/9lLd06bgfkB3ugkNBVZxZ1JI84xXBGYiQHXen+B8igfCSRP7CCFa7zjHRv8MWi+k9FF5OmF2z7fkj5/uGdfby3UhifRJAIDpKiB5Lq4elOnjPMgzKYNirrv+2ru1Dkd1L5m1H5AeDLnO6QTEl4Ly0AmQ8wN0uI90/qOhrQjEJv3sfsJdUxz31SbdQSQ== 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=DwO0sQyjbN5sx0iMvIDZRf/m44LrGdLPWKmPK9uYBZTEfQD1IDDp/26ycoLFv0Vt8rni5+iRWLIA8Igt20Xwc5R+HVkiBTBEEZ1wVMx71rIhdRa9puc2g0EfqSLOWa+PXZW1nAZBkqYLubFH9WwaFN/i4Fv2MkJk1P3JsSsFmQwgbG0tkdOGmo5rkjp4ANwJs0FTO0RL+BiOknAjRSXnS4UIiH9SkoQivfn2wGWl52WmdrsXmZgYIpInQBdiZJD7cyjoe8yLmmSNEB5WBqhJmnTYwXOnBf80m/HDknm/xiCgj6HOu1xf8hNK44FfsHc/u/fuNhwa+hhQVYpnuu+gHg== 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 DM6PR12CA0027.namprd12.prod.outlook.com (2603:10b6:5:1c0::40) by BL0PR12MB2466.namprd12.prod.outlook.com (2603:10b6:207:4e::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2495.22; Tue, 3 Dec 2019 14:35:47 +0000 Received: from DM6NAM11FT054.eop-nam11.prod.protection.outlook.com (2a01:111:f400:7eaa::202) by DM6PR12CA0027.outlook.office365.com (2603:10b6:5:1c0::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.2495.18 via Frontend Transport; Tue, 3 Dec 2019 14:35:47 +0000 Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) Received: from SATLEXMB02.amd.com (165.204.84.17) by DM6NAM11FT054.mail.protection.outlook.com (10.13.173.95) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.2451.23 via Frontend Transport; Tue, 3 Dec 2019 14:35:47 +0000 Received: from SATLEXMB01.amd.com (10.181.40.142) by SATLEXMB02.amd.com (10.181.40.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 3 Dec 2019 08:35:44 -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; Tue, 3 Dec 2019 08:35:44 -0600 From: <mikita.lipski@amd.com> To: <amd-gfx@lists.freedesktop.org> Subject: [PATCH v8 09/17] drm/amd/display: Write DSC enable to MST DPCD Date: Tue, 3 Dec 2019 09:35:22 -0500 Message-ID: <20191203143530.27262-10-mikita.lipski@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191203143530.27262-1-mikita.lipski@amd.com> References: <20191203143530.27262-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)(396003)(136003)(346002)(376002)(39860400002)(428003)(189003)(199004)(86362001)(26005)(6916009)(36756003)(450100002)(6666004)(70206006)(305945005)(11346002)(1076003)(14444005)(50466002)(478600001)(70586007)(356004)(48376002)(76176011)(4326008)(51416003)(316002)(446003)(7696005)(2616005)(2906002)(16586007)(186003)(5660300002)(50226002)(8936002)(8676002)(81166006)(81156014)(2876002)(54906003)(53416004)(336012)(2351001)(426003)(16060500001); DIR:OUT; SFP:1101; SCL:1; SRVR:BL0PR12MB2466; H:SATLEXMB02.amd.com; FPR:; SPF:None; LANG:en; PTR:InfoDomainNonexistent; MX:1; A:1; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 67bd2ebc-f88a-48a3-2a41-08d777fe1619 X-MS-TrafficTypeDiagnostic: BL0PR12MB2466: X-Microsoft-Antispam-PRVS: <BL0PR12MB24664978B5B47FCAE781DFB6E4420@BL0PR12MB2466.namprd12.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:1360; X-Forefront-PRVS: 02408926C4 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: hMiABIwxVqjAB+zySdfR2vqM0NryrrRzbUuLaq5srxhlbu6jqi2hZo4k45UHcwtKwZRfq3W0ImzJLreUSXFXwqJ0HU8U268SNi0/Kni2GNid3iVbVGPPIfTRDpT3oVZKPDNvKMQ/XsnXtZdZb0x+HpQMVlkxSbYFqtjEf4T7yXAyADzxf0tFqXPZGmHJ2uQtF13w2ieqsjIBqqrlPWLgCrK0Vp4Fmvh+PNOR8Dm4NHUOKBCzOTyJPMFaJojnxIlCnudiFu+WBZLS3NYI8jcTE3sP8jJHGCDi9S2I8FVDM4/1V953w9i0eIEVc43y//XIKAOzFxB9JLOm1+kNtMGD/m6dxIxlK1aNe2aokPp2OVoHT+t9sXR6D0MBFjGABu76ljK06LC53z4goeWUylB763yXXQuNeYrzZ1FvfW2qat5/I+FgneWjlnF+5L83PcBp X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Dec 2019 14:35:47.1530 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 67bd2ebc-f88a-48a3-2a41-08d777fe1619 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=[SATLEXMB02.amd.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR12MB2466 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=vK8GmBQAthbNFpAd4sVVOZApgGXfD9YNcqgO0vzJZ/V6OBeMCX5OvRqQWvZ1m8YUcg8swpprCN76wgRnfSAEvH3ag+A/o8CUR8E5KvzvWfLqbS5FMviTUJR8ZkL59ci8fEbFSl+FtrUkpR2EzvA6l5yfQ+Rt1o7VcLaXf5I/nB0= 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)