Message ID | 20191116220128.16598-15-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 0062313B2 for <patchwork-dri-devel@patchwork.kernel.org>; Sat, 16 Nov 2019 22:02:14 +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 DBEE42071E for <patchwork-dri-devel@patchwork.kernel.org>; Sat, 16 Nov 2019 22:02:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DBEE42071E 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 3D6D66E223; Sat, 16 Nov 2019 22:01:47 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-eopbgr760080.outbound.protection.outlook.com [40.107.76.80]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0FF506E1DE; Sat, 16 Nov 2019 22:01:45 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GRNqrSUjJhkOPc2dwgaHCICglocxl9T8bOnkujVg4GbcBTnkLGYHUisNypALbFj9T2ysfB5D5NBJYKLklI0c78cNz8OU2bBLndmVw4CSLV5Fp5uSup2HP/GAWfnULklwZpkZWk6U/ubQ4QUHC8IpDT+KtdrCyJE+iuVfkKOZNb54B1wVXtcOFWXEdPL/tLCZPq9kkGFyevwTvyEKfbZ5XnxdJS3f4xQjbrEMVS4K4/xQFHqq7XbQFXygVBUc1ZrrWuaU/F3UHhUYzQ8qBJOXhvFEEeGQW9CI0xWcr3qGsUoZn/u4FDkanod5V0VVmgsT805Q7X93anVUActfU05M1A== 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=yqHHNxYBCvTm9oD7XSfDOGDFfZiXSZsCrFU0G9c5Q9E=; b=OkPI8Mk9pfcKM6+hxfhSdkEBpQKxJt/kwZzO/NWqqqL3HyHp5g1w/LyhtJoWCuCmuAYZX8MlTyFd9aoqjcwk/QsHw5CDtMZBJn04Ziqf73a7D9440DlLWQViNxffLcI/FXMXmgg9kT6Lse2uatsorKZpdL5EFsmiHLjJarBiASzpY3/mwg7VPrVLJLvU+LQIHfW37OjEwjMWwgN3WeIlkq7VDfbBJUr9gbxfM1cFxLaNwMc6e4IkQ9Mzl9gX0nXguhOdr1JFQo4E26oZzAZlTTiTD26REwCNsDH0yHZjHLPDDMxpBEwodgtATIjBTAw8b7NbXTo9sY8Xs+bJDO+QkA== 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 CY4PR1201CA0017.namprd12.prod.outlook.com (2603:10b6:910:16::27) by CY4PR12MB1784.namprd12.prod.outlook.com (2603:10b6:903:11e::19) 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:42 +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:42 +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:42 +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; Sat, 16 Nov 2019 16:01:39 -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:38 -0600 From: <mikita.lipski@amd.com> To: <amd-gfx@lists.freedesktop.org> Subject: [PATCH v7 14/17] drm/amd/display: Add PBN per slot calculation for DSC Date: Sat, 16 Nov 2019 17:01:25 -0500 Message-ID: <20191116220128.16598-15-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)(346002)(396003)(376002)(39860400002)(136003)(428003)(199004)(189003)(356004)(6666004)(446003)(476003)(2616005)(81156014)(81166006)(486006)(11346002)(478600001)(50466002)(336012)(1076003)(7696005)(8936002)(305945005)(48376002)(8676002)(2876002)(126002)(426003)(50226002)(36756003)(2906002)(51416003)(70586007)(70206006)(47776003)(316002)(76176011)(2351001)(4326008)(5660300002)(53416004)(186003)(6916009)(86362001)(26005)(14444005)(54906003)(16586007)(16060500001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR12MB1784; H:SATLEXMB02.amd.com; FPR:; SPF:None; LANG:en; PTR:InfoDomainNonexistent; A:1; MX:1; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9f076295-c4d6-40a8-d1fe-08d76ae09067 X-MS-TrafficTypeDiagnostic: CY4PR12MB1784: X-Microsoft-Antispam-PRVS: <CY4PR12MB1784043BEF26535A5A9A9D2DE4730@CY4PR12MB1784.namprd12.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:2733; X-Forefront-PRVS: 02234DBFF6 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: wb+tOdEARw0LpIbYNrvCpmEz865jX2WOkcqe78B9jCz0xiSmfK9NL1Kj3P/cbJUzMmOYibl9ZEFZ6eGYs7yyr5LEDF9ELM44fXzlcEwQLy8wKInVwKnPkzuSn3huMAwGd6zZzqUYMXvilYK44sH/Wfpt3FOYqhMTUIdDUM0otnBmlybwNPv941uaGdRp9dkGzAJitadkRulMHmFX6A7rEwoeXiqgY2FALakfeQGbPhTGPsaoEJPyUDEBwGgUuN3QkKKeTwyeTIX9X9OUznc4+x4/zg2lk1C7D4s3GNSd8kcTtpwWTS2B5gJqk6riR9+YTcZwA6E5G1sPKL0P7Pi7zMkJPhYkgTy57b2IUhtwrXBVWLC90J+djq3hl5TaKw3EWJ9gw1lQPNzkioCgJgN4oL8366l+vCRf1zOc2Ui16mWvvF1L5up50WyiDilrYHGZ X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Nov 2019 22:01:42.2565 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9f076295-c4d6-40a8-d1fe-08d76ae09067 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: CY4PR12MB1784 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=yqHHNxYBCvTm9oD7XSfDOGDFfZiXSZsCrFU0G9c5Q9E=; b=TwH12fHoSxue2J9/H86Da6QTyKOaMhtY/CBUHQFAejPOoFPgx9vvKJ7NFgWdx4aS4ymNtvYnUCqt4paCJpxcxH1Rsx1ZZHaMM8LXuP0a8nFPhkQQEDHK4eP+0akxnleCeu0uad2m9XPjgqxO11nO8Bix3gSR7+YtqQFdHM82sQU= 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: 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_mst_types.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c index 02f30742d1ee..e8a0ef883434 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 @@ -497,3 +497,11 @@ void amdgpu_dm_initialize_dp_connector(struct amdgpu_display_manager *dm, aconnector->connector_id); } +int dm_mst_get_pbn_divider(struct dc_link *link) +{ + if (!link) + return 0; + + return dc_link_bandwidth_kbps(link, + dc_link_get_link_cap(link)) / (8 * 1000 * 54); +} diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.h b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.h index 2da851b40042..a553ea046185 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.h +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.h @@ -29,6 +29,8 @@ struct amdgpu_display_manager; struct amdgpu_dm_connector; +int dm_mst_get_pbn_divider(struct dc_link *link); + void amdgpu_dm_initialize_dp_connector(struct amdgpu_display_manager *dm, struct amdgpu_dm_connector *aconnector);