Message ID | 20191116220128.16598-1-mikita.lipski@amd.com (mailing list archive) |
---|---|
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 9163113B2 for <patchwork-dri-devel@patchwork.kernel.org>; Sat, 16 Nov 2019 22:01:43 +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 735582071E for <patchwork-dri-devel@patchwork.kernel.org>; Sat, 16 Nov 2019 22:01:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 735582071E 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 405BD6E1B8; Sat, 16 Nov 2019 22:01:38 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-eopbgr790050.outbound.protection.outlook.com [40.107.79.50]) by gabe.freedesktop.org (Postfix) with ESMTPS id 148C56E054; Sat, 16 Nov 2019 22:01:36 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hZvXapIaVKHnNHyQSG9dEdyqvsIOVrXv05iOJpttWVIqZziPwEeY6ZWV8TWnQ977/0HqcVi1dI62KTEejs2wid7UPERQkP69rRqhyUcHV+yujCL+vjoJgBd/Z5yn0+zp4+GtWb1LtZXA6seUEunFqxtiOTGkKSjq023EvJUlu6/nKkNtx8u+CdgzQG2WSN0Q7wmYPLjxQxoJDRwBMmmj34kmyqvZmlWkERdGtKSprao55RVeAfIDyL/4ULXKJoO3ZXqw+qnE3WUC1gMH0D/5tpMXko2PtAFVMusKm6TbPz6Hz0CPVY0ASxjqKGDuql5T9tTqzh4wDBHS3d+GmaTTsQ== 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=CAYNxOnyzH6qFx4+yokhIpnQyKg7L05s06t7ATwH82E=; b=Mn1wMtayBarVtMWRhWTzRw+w99Seck8bT283hFMzgmJwmx1kUYJdXpO3JZVuXkAl/pYA2FNV3JYDcbcmKrUp6mm9/SvncwQ7HpAvPUbp+yzXa68LfXgph2wXOFmROvKx9Gxaps8KmXwhsN8F4CZXFnTcFaxyj1W3Wmn+BTDhSZUAUdZcRM+sVpO1rfScHKXALLg7H9sB6Dz0KPnhWZGAuk5XrXQAtuHPSV5V094soVgoAgreAXKVdjfZE5WXJRde/O651g7v+dqogvLTFC6dBr4HaeVe6N536Vui58UreVhBZUUQt8JYnO46LXuzcfl55zBIcfLSH9u8QX3nbMaIeg== 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=temperror action=none header.from=amd.com; dkim=none (message not signed); arc=none Received: from CY4PR1201CA0017.namprd12.prod.outlook.com (2603:10b6:910:16::27) by DM5PR1201MB2552.namprd12.prod.outlook.com (2603:10b6:3:e3::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2451.29; Sat, 16 Nov 2019 22:01:33 +0000 Received: from CO1NAM11FT025.eop-nam11.prod.protection.outlook.com (2a01:111:f400:7eab::200) by CY4PR1201CA0017.outlook.office365.com (2603:10b6:910:16::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2451.23 via Frontend Transport; Sat, 16 Nov 2019 22:01:33 +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 CO1NAM11FT025.mail.protection.outlook.com (10.13.175.232) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.2451.23 via Frontend Transport; Sat, 16 Nov 2019 22:01:31 +0000 Received: from SATLEXMB05.amd.com (10.181.40.146) 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; Sat, 16 Nov 2019 16:01:31 -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:30 -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:30 -0600 From: <mikita.lipski@amd.com> To: <amd-gfx@lists.freedesktop.org> Subject: [PATCH v7 00/17] DSC MST support for DRM and AMDGPU Date: Sat, 16 Nov 2019 17:01:11 -0500 Message-ID: <20191116220128.16598-1-mikita.lipski@amd.com> X-Mailer: git-send-email 2.17.1 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)(376002)(136003)(39860400002)(396003)(346002)(428003)(189003)(199004)(53416004)(70586007)(2906002)(47776003)(81156014)(81166006)(70206006)(8676002)(356004)(6666004)(50226002)(2876002)(8936002)(1076003)(6916009)(486006)(2616005)(126002)(476003)(336012)(26005)(426003)(7696005)(51416003)(186003)(5660300002)(478600001)(50466002)(48376002)(14444005)(4326008)(305945005)(86362001)(36756003)(16586007)(316002)(54906003)(2351001)(63370400001)(16060500001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR1201MB2552; H:SATLEXMB02.amd.com; FPR:; SPF:None; LANG:en; PTR:InfoDomainNonexistent; MX:1; A:3; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 85efeb72-799e-4cd0-d8dc-08d76ae08a40 X-MS-TrafficTypeDiagnostic: DM5PR1201MB2552: X-Microsoft-Antispam-PRVS: <DM5PR1201MB2552082FEAB525036EC308D5E4730@DM5PR1201MB2552.namprd12.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:8273; X-Forefront-PRVS: 02234DBFF6 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: QOvA8buReH/eYwOWQ/qiNG2EXFe7GsDfAmVxqdLRzwF9b67FBtfPGtXPCf54xw8ZuHXXThsUN2fb0RiI1UccEVxsyljbxotNENBYYI697o05k5m+7/oqdhvnORS5vaJ1jbtQhN1RW6dM+TkUVMb/e5LwYuAr9yyCwIr6UoQRfEYYOH6+h643kZsRfmWMmFlE0ynW7audajoHy6lWl4fWXp5aQf/12TxX6geLi9Mazo9IRMpJmTHBjf0pwIbyrzNBjCaZu7b6mvucgU2DloHe3m1tYL0NJ13h1vIfPFeVmcq3MNUhEZBYYtjQIZNgALtIft37g/FgiKpms25cy1ABhSMDRfcGs2eROkNvBNGPI2jY96yR83gwmIzZS9HPLxVtTVcdJvtv2X7bLJ4T0rDVgPrfAYmSitI4kiX7nQXJCqB4A5+3nj2jrbaK+6TS84ov X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Nov 2019 22:01:31.9357 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 85efeb72-799e-4cd0-d8dc-08d76ae08a40 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: DM5PR1201MB2552 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=CAYNxOnyzH6qFx4+yokhIpnQyKg7L05s06t7ATwH82E=; b=FHGl71ejdv3yuAGJwP8UDYMGW0cPXWYCNgEN4slUOwFOW4V2ZdB91K7VJR7VA7ZIohE7lSwOa0N9lQ/J2kSTQ3hdsuwUmqkHQpIABR0Z5P5bBrHsReUK7kr0NvcJrhY6EYzdgaoJqDKoz7xtgPMbo0BqZzjxhMTLidu2NOK0bqo= 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=temperror 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: 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
|
From: Mikita Lipski <mikita.lipski@amd.com> Patches are based of amd-staging-drm-next, the follow up set of patches will be sent for drm-tip This set of patches is a continuation of DSC enablement patches for AMDGPU. This set enables DSC on MST. It also contains implementation of both encoder and connector atomic check routines. These patches have been introduced in multiple iterations to the mailing list before. These patches were developed by David Francis as part of his work on DSC. v2: squashed previously 3 separate atomic check patches, separate atomic check for dsc connectors, track vcpi and pbn on connectors. v3: Moved modeset trigger on affected MST displays to DRM v4: Fix warnings, use current mode's bpc rather than display's maximum capable one v5: Moving branch's bandwidth validation to DRM, Added function to enable DSC per port in DRM v6: Compute fair share uses DRM helper for BW validation v7: Add helper to overwrite PBN divider per slot, Add helper function to trigger modeset on affected DSC connectors in DRM David Francis (9): drm/dp_mst: Add PBN calculation for DSC modes drm/dp_mst: Parse FEC capability on MST ports drm/dp_mst: Add MST support to DP DPCD R/W functions drm/dp_mst: Fill branch->num_ports drm/dp_mst: Add helpers for MST DSC and virtual DPCD aux drm/amd/display: Initialize DSC PPS variables to 0 drm/amd/display: Validate DSC caps on MST endpoints drm/amd/display: Write DSC enable to MST DPCD drm/amd/display: MST DSC compute fair share drm/dp_mst: Add new quirk for Synaptics MST hubs Mikita Lipski (8): drm/dp_mst: Manually overwrite PBN divider for calculating timeslots drm/dp_mst: Add DSC enablement helpers to DRM drm/dp_mst: Add branch bandwidth validation to MST atomic check drm/dp_mst: Add helper to trigger modeset on affected DSC MST CRTCs drm/amd/display: Add PBN per slot calculation for DSC drm/amd/display: Recalculate VCPI slots for new DSC connectors drm/amd/display: Trigger modesets on MST DSC connectors .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 117 ++++- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h | 1 + .../amd/display/amdgpu_dm/amdgpu_dm_helpers.c | 19 +- .../display/amdgpu_dm/amdgpu_dm_mst_types.c | 395 ++++++++++++++++- .../display/amdgpu_dm/amdgpu_dm_mst_types.h | 5 + .../drm/amd/display/dc/core/dc_link_hwss.c | 3 + .../gpu/drm/amd/display/dc/dcn20/dcn20_dsc.c | 3 + .../drm/amd/display/dc/dcn20/dcn20_resource.c | 7 +- .../drm/amd/display/dc/dcn20/dcn20_resource.h | 1 + drivers/gpu/drm/drm_dp_aux_dev.c | 12 +- drivers/gpu/drm/drm_dp_helper.c | 33 +- drivers/gpu/drm/drm_dp_mst_topology.c | 401 +++++++++++++++++- drivers/gpu/drm/i915/display/intel_dp_mst.c | 5 +- drivers/gpu/drm/nouveau/dispnv50/disp.c | 6 +- drivers/gpu/drm/radeon/radeon_dp_mst.c | 2 +- include/drm/drm_dp_helper.h | 7 + include/drm/drm_dp_mst_helper.h | 19 +- 17 files changed, 989 insertions(+), 47 deletions(-)