Message ID | 20191001161721.13793-12-mikita.lipski@amd.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=YK2K=X2=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 F070E1709 for <patchwork-dri-devel@patchwork.kernel.org>; Tue, 1 Oct 2019 16:18:10 +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 D856421783 for <patchwork-dri-devel@patchwork.kernel.org>; Tue, 1 Oct 2019 16:18:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D856421783 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 484036E85D; Tue, 1 Oct 2019 16:17:55 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-eopbgr810087.outbound.protection.outlook.com [40.107.81.87]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2C9016E85D; Tue, 1 Oct 2019 16:17:52 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=a22KC4EjSBruv+7qLH4L49k9V+3vGm2VHuWdbtz0fyQ1wwSFJOBWT9/va7vvNZ098mBwAFMjN9rSLXP5+u5ZbQujjOe8MDCaGKlkEi7uIPHlgo+G4v3r0dGH3um+G7H48ENAChEAPBU19GUQaMqa8toAvhQNXRcP2UYi0O3XAsnRh36VrH+gB6K4I/FHVfY66koMe+ILTqFPmkARjwRRnI7RdZEe0BS27n20FKMaL6lRJTlm/bZXLUPrO9IUzTtSm8moIF4C28Pf3BrPsAA2MNnRHIPuxTXqIzi9EVKF7TNNJBUSGQ99jH/OGainGOssDrJfXdx1qhPxwENQX2CNGg== 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=zFI8dwOAXIyxzqrG2zQrictp2X9M0Vha2J2j662sJJs=; b=WBhZgPZSyMbWzQ8nA1UKYugc3jPc2iCp38uTa4VJUD5vqhrqGHY23znNEKVop/NNbj7bttcnkGBpPcqRIZfGvWJwvbGuZJqy6gHQuW3D7sqRGezCJrio/0l4BrNWwtMUys3FuhVLDsavVEwOz2w5habf0uCM415T5J79hN/Cu46b8Fouo+hPxHVeeEQ5weupuReiNpYz39OJkFTpmNt8iQs8aLVgeZLO4qAP8dIhfOaNE/OQpvhm/rYiaMnAVN8sKFLys1xebHmoSBTOF2JxfCX5uaXUb+Z4SF36HaC7xDAY74lW2GKzqcHkLsnHTcUP8kEL8OOw8NijkW5jIHSSsg== 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 BN8PR12CA0030.namprd12.prod.outlook.com (2603:10b6:408:60::43) by MN2PR12MB3582.namprd12.prod.outlook.com (2603:10b6:208:cd::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2305.20; Tue, 1 Oct 2019 16:17:47 +0000 Received: from CO1NAM03FT027.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e48::209) by BN8PR12CA0030.outlook.office365.com (2603:10b6:408:60::43) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.2263.20 via Frontend Transport; Tue, 1 Oct 2019 16:17:45 +0000 Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) Received: from SATLEXCHOV02.amd.com (165.204.84.17) by CO1NAM03FT027.mail.protection.outlook.com (10.152.80.161) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.2305.15 via Frontend Transport; Tue, 1 Oct 2019 16:17:44 +0000 Received: from mlipski-pc.amd.com (10.180.168.240) by SATLEXCHOV02.amd.com (10.181.40.72) with Microsoft SMTP Server id 14.3.389.1; Tue, 1 Oct 2019 11:17:37 -0500 From: <mikita.lipski@amd.com> To: <amd-gfx@lists.freedesktop.org> Subject: [PATCH 11/14] drm/amd/display: Write DSC enable to MST DPCD Date: Tue, 1 Oct 2019 12:17:18 -0400 Message-ID: <20191001161721.13793-12-mikita.lipski@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191001161721.13793-11-mikita.lipski@amd.com> References: <20191001161721.13793-1-mikita.lipski@amd.com> <20191001161721.13793-2-mikita.lipski@amd.com> <20191001161721.13793-3-mikita.lipski@amd.com> <20191001161721.13793-4-mikita.lipski@amd.com> <20191001161721.13793-5-mikita.lipski@amd.com> <20191001161721.13793-6-mikita.lipski@amd.com> <20191001161721.13793-7-mikita.lipski@amd.com> <20191001161721.13793-8-mikita.lipski@amd.com> <20191001161721.13793-9-mikita.lipski@amd.com> <20191001161721.13793-10-mikita.lipski@amd.com> <20191001161721.13793-11-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)(346002)(376002)(396003)(136003)(39860400002)(428003)(199004)(189003)(76176011)(36756003)(336012)(450100002)(53416004)(7696005)(14444005)(5660300002)(51416003)(26005)(1076003)(47776003)(186003)(2351001)(50226002)(86362001)(305945005)(356004)(2906002)(81166006)(81156014)(4326008)(48376002)(70206006)(50466002)(70586007)(54906003)(8676002)(446003)(11346002)(476003)(2616005)(6916009)(478600001)(426003)(316002)(2876002)(126002)(486006)(16586007)(6666004)(8936002)(16060500001); DIR:OUT; SFP:1101; SCL:1; SRVR:MN2PR12MB3582; H:SATLEXCHOV02.amd.com; FPR:; SPF:None; LANG:en; PTR:InfoDomainNonexistent; A:1; MX:1; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4033ff19-3a12-4046-3575-08d7468ae4e5 X-MS-TrafficTypeDiagnostic: MN2PR12MB3582: X-Microsoft-Antispam-PRVS: <MN2PR12MB3582B50A4344EC6A5B5DBEA2E49D0@MN2PR12MB3582.namprd12.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:1360; X-Forefront-PRVS: 0177904E6B X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: A1xm3H9uLZ/ERBh8TZnFs8k5FydsmdKDfQRD3gGAnbneCyoz02jk6awu+GO32DLuoAcpOPP0byzFtdCUQq4SbMSwHPd4Gp5M6aV+L0Ki7iITCir31LuKQjK0M5EpB9Z2LVTYYRG+BKwhzJl3no/ohGjsl+84/kce3nFB76y9taBK9h16ddlBCh+uRZaF+xESntD5JWPIg5VddjY9Ez0kMYSrZRXwUODHoDeWTUkoE/VbRXZTxo35UoMHdymzfiC53kA7TWerKekpFmWEX96lPovnpu1vWPs9w4FpjqL+eeeYDw51Pl985qBEvfB6hBtWgRQrkEiQeQzKuIsFa0Bd/1N5ng/CgrYH4pWBastFocWXy9rrWuh2i2WVdB6MTNfOpMRHVN+ZXAR3NZdpxKyEmIM2HOsGQuT7Sza/nBOOBkg= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Oct 2019 16:17:44.1560 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4033ff19-3a12-4046-3575-08d7468ae4e5 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=[SATLEXCHOV02.amd.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB3582 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=zFI8dwOAXIyxzqrG2zQrictp2X9M0Vha2J2j662sJJs=; b=XykyIERh9xI4u4rcewYqpMMD0z0RrXXBdz0aWoAycUeO9P1+pyTPllberUv+wT3Z6O92DkspUVpXyeO+2wdNY31Hm46cCtP9u1cF2wyj73941ku8l6ZFGt+A0GPCbH7xOizz0HUTPczoB2JXtYA9y2jpTjNCoEb0yUjJatjwRDc= 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>, 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 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 fc537ae25eeb..bd694499e3de 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" @@ -518,8 +519,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; } #endif