Message ID | 20170210162630.18157-3-harry.wentland@amd.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <dri-devel-bounces@lists.freedesktop.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4C8D7601EA for <patchwork-dri-devel@patchwork.kernel.org>; Fri, 10 Feb 2017 16:26:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3AFF028573 for <patchwork-dri-devel@patchwork.kernel.org>; Fri, 10 Feb 2017 16:26:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2FE42285A5; Fri, 10 Feb 2017 16:26:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D7F0928573 for <patchwork-dri-devel@patchwork.kernel.org>; Fri, 10 Feb 2017 16:26:49 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 14E0289581; Fri, 10 Feb 2017 16:26:47 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0064.outbound.protection.outlook.com [104.47.32.64]) by gabe.freedesktop.org (Postfix) with ESMTPS id 891DE891B3; Fri, 10 Feb 2017 16:26:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=6JFwRqFitdlgsp2Au4+3ORDMWMT/9RJ2a501Ny2LpCM=; b=AUNAOSTrfL+vJ+VmH1WwPoa52SLmhlFTaR9i5NmTPV6PYmZNv/LnR1KTOPHEafhhQAK+2cjDxhOydlcPBOgNzyw9ezN37EBmqOrOycACpDYR7uUw24GBf0ivFHssOgyUPvaHvQpZKU6qC+3+4DLeDQdnlA5kPwE0B2OS+Z1Fw+Y= Received: from MWHPR12CA0026.namprd12.prod.outlook.com (10.172.49.12) by CY4PR12MB1783.namprd12.prod.outlook.com (10.175.63.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.16; Fri, 10 Feb 2017 16:26:44 +0000 Received: from DM3NAM03FT022.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e49::201) by MWHPR12CA0026.outlook.office365.com (2603:10b6:301:2::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.16 via Frontend Transport; Fri, 10 Feb 2017 16:26:43 +0000 Authentication-Results: spf=none (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; gmail.com; dkim=none (message not signed) header.d=none; gmail.com; dmarc=permerror action=none header.from=amd.com; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) Received: from SATLEXCHOV01.amd.com (165.204.84.17) by DM3NAM03FT022.mail.protection.outlook.com (10.152.82.180) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.904.16 via Frontend Transport; Fri, 10 Feb 2017 16:26:43 +0000 Received: from SATLEXDAG01.amd.com (10.181.40.3) by SATLEXCHOV01.amd.com (10.181.40.71) with Microsoft SMTP Server (TLS) id 14.3.319.2; Fri, 10 Feb 2017 10:26:42 -0600 Received: from hwentlanhp.amd.com (10.180.168.240) by SATLEXDAG01.amd.com (10.181.40.3) with Microsoft SMTP Server id 14.3.319.2; Fri, 10 Feb 2017 11:26:41 -0500 From: Harry Wentland <harry.wentland@amd.com> To: <airlied@gmail.com>, <daniel.vetter@ffwll.ch>, <dc_upstream@amd.com>, <amd-gfx@lists.freedesktop.org> Subject: [PATCH 2/8] drm/amd/display: Use amdgpu mode funcs statically Date: Fri, 10 Feb 2017 11:26:24 -0500 Message-ID: <20170210162630.18157-3-harry.wentland@amd.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170210162630.18157-1-harry.wentland@amd.com> References: <20170210162630.18157-1-harry.wentland@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)(6009001)(7916002)(39450400003)(39840400002)(39410400002)(39850400002)(39860400002)(2980300002)(428002)(189002)(199003)(305945005)(81166006)(33646002)(101416001)(8676002)(76176999)(86362001)(50986999)(53416004)(2201001)(106466001)(575784001)(1076002)(92566002)(8936002)(68736007)(36756003)(105586002)(50466002)(53936002)(48376002)(47776003)(50226002)(4326007)(5003940100001)(54906002)(81156014)(356003)(2906002)(189998001)(97736004)(38730400002)(2950100002)(6666003)(39060400001)(5660300001)(626004)(77096006)(2101003); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR12MB1783; H:SATLEXCHOV01.amd.com; FPR:; SPF:None; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; DM3NAM03FT022; 1:M8bO0E5k6WqmASZiNcOSKW8xbhoVD8XJG5ZdpBWb0thkZIojuymvxaQZIbu3xtnksDXaaa2vcKzkAzlmytsiC39pC66Wk7+cnzsUCJ83SQGJ9cBDhdhDTSCo5D/k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72Tx5H+JWBRpzE518fprcFujaHxwdbD++hXEirJaIzpe X-Microsoft-Antispam-PRVS: <CY4PR12MB1783F209C2BB7A8B25BF23F98C440@CY4PR12MB1783.namprd12.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(13016025)(13018025)(8121501046)(5005006)(3002001)(10201501046)(6055026)(6041248)(20161123555025)(20161123560025)(20161123564025)(20161123562025)(20161123558025)(6072148); SRVR:CY4PR12MB1783; BCL:0; PCL:0; RULEID:; SRVR:CY4PR12MB1783; X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1783; 4:WCUSLTNs8cD+PRI6LKa1yV0TSB2YOfiidz+vKlpBYS3Dm2UxW71g9DhA7tAilrajZBu5OSS9mluhpJ6PLoLPLSMnxo356BnJTxyvY+b6Ojq/a9Dtj8ohHYbMlFREaK82vR/HrYdxKuY2tPn5HOIYs4LdEo9FA1HrfLYsRIBK4ZMxxJ5Puxe+ndR7YwkTApm1SG1nMHzAdADl5ICxeKGQs1lkiwZUKuHv0yXoxFEtiRUy9upGOWqZWVpgH4Ok2adJtzektUJym0YyoYgZu1rTAz8hoc9pCpE8aMebWDglpGr3dr5AJMKNKcw2BC0c++HBQjZ6gMoNzdBlDhex8t3sxPGo1Fl3fHuyo6+seiSvWO2PmieqQpYi8AlZykgcykSOZ6F9tf5OY/PAF/UrdbGZ4bmw+7lrpyPSH9iXjncwSQAV/MUehaaDNRiz2k2KZmejApeG3jqaozZJY0GpNsPuigyGstMgo5Gv6WH8Vs4m2mJA17HLNV546ngjSWIa55QpQ9LsQnvFQQ2Gy19EjzFtbI6hm1sp4iW5kUY48PYpmJuCfzSYobEoyyQMrDGQsAxVtZfR34Nk1eAeJfBhPE3076j/ZRoNfZPe/MxaB7jP6j+S7VElOKvDDlYCGCohKcWxY/qsnCtISIkS8lrncaYx60VBDAjqhRBklUQgs3hXVcnAN6E113Z/iAHpHVMcexh6Pf5uVnd8aMgRcnXkFH3aDw== X-Forefront-PRVS: 0214EB3F68 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR12MB1783; 23:KYy5scqj4Szo/S4akkkza+zENC09tgfcIS5HefnnL?= =?us-ascii?Q?q2NjIUhw6FCpmRzumZRc6YzG1zcQRtvXl3T53gYpWKygKVdtzbxiSBh7FfoZ?= =?us-ascii?Q?vevDhMqCBbm39iJ95AbuOc/a2QsEmpxAEdTha/xO3idB2onlIJojYnBy+IGS?= =?us-ascii?Q?NpVFnkvFcHasphjqXjbI2e0c/alx0t08O25I5Terikie0uZTFm1gXRVe1ior?= =?us-ascii?Q?X/dMr545XrsNdcPThfRZlw1EntJCLyuiRNfdOyHob62+WwG2Xjqae2KF715O?= =?us-ascii?Q?8Ekm4fyfdYsnciDofqc8/gROx110B455ODVa1fuiS2tCyV8WO17NCiOvRsPs?= =?us-ascii?Q?kOoBPh6ZxKbuCAXrmyaJLJxKR4/SV6FZZE+s94GOkYQLEmF6rrp8VWmUuufE?= =?us-ascii?Q?WIfNpROQT/n/hhzmBbkp1mPW114NsZC1WGlexH6TT5Axhcn2UzfBHk/kzHfu?= =?us-ascii?Q?i6yZHMry/s3p64nQfNfcijS8pnX5x9Isn3QIJwIbW7EUu+faqDcxPu3bYrpk?= =?us-ascii?Q?GmXmbYk8ZkUVF5isZ9opCbAk1soofTWqD72v+ZdFXh99evOEJu9impejJs+D?= =?us-ascii?Q?GNnmiWcPcBsG4jlD2sJ0CLO8b843vypIs+0yM7Waok+lNSwPIFlO3mXs5zeg?= =?us-ascii?Q?p/Z0ECt7wkavfPrURLjhc9jWlPlaoUl3hyBX8XDJswnWLkry1VWoUPt3rM96?= =?us-ascii?Q?LOSA4YvAKCa98mMNlaaf4Gvs9+pdPazzoFFhsIdDATaaBr6MfiK/e0xMdKjt?= =?us-ascii?Q?hYgJt+CUI/JK6qjs6rFVs3HDNBym/I/iz13n6D+IPm71cnEpctvjPDj+D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orOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Feb 2017 16:26:43.7067 (UTC) 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=[SATLEXCHOV01.amd.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1783 Cc: dri-devel@lists.freedesktop.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 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> 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> X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c index 5a2ed49c0b8a..b259867364fa 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -28,6 +28,7 @@ #include "vid.h" #include "amdgpu.h" +#include "amdgpu_display.h" #include "atom.h" #include "amdgpu_dm.h" #include "amdgpu_dm_types.h" @@ -727,6 +728,8 @@ const struct amdgpu_ip_block_version dm_ip_block = /* TODO: it is temporary non-const, should fixed later */ static struct drm_mode_config_funcs amdgpu_dm_mode_funcs = { + .fb_create = amdgpu_user_framebuffer_create, + .output_poll_changed = amdgpu_output_poll_changed, .atomic_check = amdgpu_dm_atomic_check, .atomic_commit = amdgpu_dm_atomic_commit }; @@ -1102,11 +1105,6 @@ static int amdgpu_dm_mode_config_init(struct amdgpu_device *adev) adev->mode_info.mode_config_initialized = true; - amdgpu_dm_mode_funcs.fb_create = - amdgpu_mode_funcs.fb_create; - amdgpu_dm_mode_funcs.output_poll_changed = - amdgpu_mode_funcs.output_poll_changed; - adev->ddev->mode_config.funcs = (void *)&amdgpu_dm_mode_funcs; adev->ddev->mode_config.max_width = 16384;
No need to assign them dynamically. This is much more readable. Change-Id: I2d8a356e8d916800c4553c4e9b19ce42f7f1c391 Signed-off-by: Harry Wentland <harry.wentland@amd.com> --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-)