From patchwork Fri Feb 10 16:26:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Harry Wentland X-Patchwork-Id: 9567079 Return-Path: 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 21032601EA for ; Fri, 10 Feb 2017 16:26:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0F5D328573 for ; Fri, 10 Feb 2017 16:26:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0296D285A5; Fri, 10 Feb 2017 16:26:48 +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 D3AB528573 for ; Fri, 10 Feb 2017 16:26:47 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id EC70A89133; Fri, 10 Feb 2017 16:26:44 +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-sn1nam01on0081.outbound.protection.outlook.com [104.47.32.81]) by gabe.freedesktop.org (Postfix) with ESMTPS id 900606ED58; Fri, 10 Feb 2017 16:26:43 +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=G8MwfHGeBoQE4WTLYpPGHUgXNLgw6ADAHKQaOY0FFQQ=; b=ukJMpUQE4KY2uXkgzGqP7M4nHU1iPSss4bchz7D+MyLGAHVRYGVCuhwbrq4utvq6mJ/Z1IU74Y44ocHPTRMvRHgHZnnciLeRFYMFHbnSU4apPhCK/Fa9u6a5rZJR04j9oHoERbRPXmWvoCNHrGJPU3GayO7/RDfncL4TwcENCIE= Received: from MWHPR12CA0033.namprd12.prod.outlook.com (10.172.49.19) 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:42 +0000 Received: from DM3NAM03FT010.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e49::204) by MWHPR12CA0033.outlook.office365.com (2603:10b6:301:2::19) 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:41 +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 SATLEXCHOV02.amd.com (165.204.84.17) by DM3NAM03FT010.mail.protection.outlook.com (10.152.82.65) 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:41 +0000 Received: from SATLEXDAG01.amd.com (10.181.40.3) by SATLEXCHOV02.amd.com (10.181.40.72) with Microsoft SMTP Server (TLS) id 14.3.319.2; Fri, 10 Feb 2017 10:26:40 -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:38 -0500 From: Harry Wentland To: , , , Subject: [PATCH 1/8] drm/amdgpu: Expose mode_config functions for DM Date: Fri, 10 Feb 2017 11:26:23 -0500 Message-ID: <20170210162630.18157-2-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:SATLEXCHOV02.amd.com; FPR:; SPF:None; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; DM3NAM03FT010; 1:sDcXaGgGVr3G5ORonE2piJWtH2C3Nq3qYHAao0yxANF3RMWJBxqItfXUrM2ieBZ3w9C9EgoTMIWM91Elt0Avo0RMTGhybBnFQwkI4nely08VjGDJOjx3w4Svonv8vcqMwSUj00SeDUcctMBuEt4NstqgTalnIwChH5AIBOu//c4GTRgW0SKQ6V0I4yOlrII48sNVjIVJAHGVNRE9LjZxxnAlbZjxMk4Un5JD5wCYzXtWg0rFCjokzAQg5ASCJeI+4I+fhp1oL5sGjUu1hNaYJEgCk2JvUVQbzQofnYRm94RKF3WI1Fe94YERWUJRorj36GbmlfDzLi1ul/W3nEAdO9v36GZofhoEYe2unsWdeWIG3NJvoKFcLRTF3PAzTG9zfyZ+RzzFNUVaOaIlrRWtzTc3q+I9EFzkwK6wffJv20DbXkLihcl9IxkAOVd8Q7lqKP7B04Gj+ck6b1PR/1TS3g== X-MS-Office365-Filtering-Correlation-Id: 2adca6f9-ca06-4031-985b-08d451d198cd X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:CY4PR12MB1783; X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1783; 3:x3GokXVaipaW1RWgx8m64PR3Lk9zpXoMoRDKq7xsgjEJCcNbMfQCOlqgQA55TS7mm4pJ/Yv+1r/e6kaKv4LJAEEfC1YS6EPzkUIMEIstm1VFBhOpBnTnKrZJ4y+QvJqgCTrkDrTFrsQMA9utr9xhVnYAX0IvrdYG/Q4zWiF/cscNPpk6au6QiU8XrX8Tn5+EQckcYYk5Bl9OEW6L6OwR2Wsb1lwhFqCT4Ej5fECL9G3TMsDfOrbTx2wMaM2VkaDgNmF3Nimta1qr+G5CTCA77GYR3IZ6J5iYvkWd/lukTwTXkD8OH+1LjsRFuvriabWc2CHUwA8Q9kd5hnIdVfQaa/K10z7VreLWHXtY0KCRgAM3+8WRYyj1GarpivxB93yo; 25:Xu6nVpOBP0j0YInLAIghYJffxPhAt3o4PlEbTGxQSbDylrsXYPFqIzMe7y0e6ifyYX6MqOf0Qhr2X+fxzxqYXuh5N3YIVSbvcC6enqPjLTk+Ov6L4j186Kl37XzT/s+4OFUwZU9k+OSRD+LLLjF8SCOZ+nSL7ENT4j7dix8tWiwdCGSN2bXpmDH41jmGWtlo4EbrP+KjTkCmZCUa9+dhzjyYfbjTsfJQiYalw5S3RHbrpbyXzwa1FdbXelloshDpljCTR92/N6SXo39pGbGy0/uvxQ308DFDlSpkldoc8iJBBK68q9EeoiPXYxWg078+m1/ME5yn/U9YY34aXOouMutCR2MgY+qhdh+9a/w+BdZigI2dfMFixW7yqnpIWDem6HEiArDstBW8aeERaMIUh8YQ7psiatVPX0Z/RSih2qoc4tPrOomw5M7nh/zxd1SZtjauFw4d1abO7k+o9b3fVw== X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1783; 31:X5GaVJZ1QPaiHDfQgcWYicf3aBhdsMCv/etdNGVhenf4wwBfMx+vaDdfCcWm0mMCQzv9qjB8trIrgve8DyJ3kniTeRfR0Tg6a9Ve0qBsbMBpZUbm5TAIppbDhVGzXyTuxtLlj8PlaDUe5eVHFFRSvmoKLIeMvNmGuDY5uLjmIePHMPn+6TlFhc9DcTY0nzbCbdneidRtBfSwo+OSqEAkqpHF3vvkPhV1+gaKCfqRBWv8fO5zZRELxHPDbMVNzmbvkledlYffK+3uJ3rHKwsw01XmuB8kMPyBFVHXLvrZVjY=; 20:BO67IIE8Z6d6bib12UjMQw/iiHZ0c+3yxNHV0/kk6qw6jb68GuA9GHI+PUhfk5AaaLM0v7ZFvm8bzcempN2nUujb6gPvUTFchH1VbboPsfLhks7/tYJHU4WOCe2/9ngrqAR9oJGO83SyxEU0iuemV2DTY0yudy+b2YHkutnMHqeV+LW3mmSvh4z/epdm9/FKy2RR33WngxFEjXnQX7jC7rS9dZZJr2b9oFs9uPywgXZpjCvBXIJLPmURaU+ffsmb1YLQvMD+lsE08WN3ZeL8vEG4/gRNcgesvYs6xM6GPcggCsW1eN3Iegg4fWmgP/rPBXPIsNHOgDvsOegEG7GsPhNRwzk+6OCJSn7bQnlcBc/Tta2MdcSDFOY+FNsN2vqCI6dsVrdZXfHFDBkYKJ9bC3e05Zf+QXtmFBla+bIemG6ba6xC7Ghb4IpfS0tm/aI7+sSoqo0b96TPvJKfo1Io6zUsKjoplng9O1Fyd6QevCUZQyMhEAf+iyYJNrmnrwxp X-Microsoft-Antispam-PRVS: 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:Mr4TKLe9zHLqoHUzXC8kJXpLSvbZtKDkDnLpR5wvb76xfFi3iFBrLT+pggwees98zdsnlUv5bBa6bACkV3/gMyKeQjHclWmfhIsaSLWTsQIRVCVLo4uT+r9PXd4oIaJ8Czbt3tQRF4LVSkr5i7MME8M2UWc882LbccF6QPu1xE2dpeGHnOe5Upe1OypAROS/EOtFWMV8DHQ71uBXWMTLhg8OK1/XvZFZHcZsN5KlHb0FVqMU1vvXRoirT7OjFV26T3FS0+df/G/HGBPN9AmFXmUfKt0rPrQ3gfZdolUes3StGOWLo150umkfsvarUuPi+isSOLY/7vG3nNa6Ltb67AzzMzdN2ttn3fmqEExirYDbwUk5AyjZgf22fygEdOR+rk5h5Y+v4Ah8P8IOfjnLOpWux1wcA+yFQz505QLQWadEm+cN/CfKTqNVwBtJIaxNXoRddOodAgoVIfSsdBJ2GCTqTRYxpo3ScKvT5pIfB+UmrQtfy9hCdc38DLZf4FHeDcrXbKGYnR3/2HUb5LrN7GECq8oX9T6YIV7n5c+RTYqY6oOvskGJ0JUnatIfE7uE/V0u6KWlnX3WLBmBOpZLT+qIzCzeyzTfwraypzRpgfanhoM6LzjsrZZuZ8aeKHM+maipjtat7RJ25ATxDPoBFIdhyunH4eyFUUdCvF5fsQWG0evKnwNR8oG8Z6RkuKMPfL0RKeLehuitnRUr4WAMeQ== X-Forefront-PRVS: 0214EB3F68 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR12MB1783; 23:OgqvaWVy5YqVT/+DQhWC+vDMuqbKVO2p08+9hdlK+?= =?us-ascii?Q?fTpkD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W1WszoQ3QwQRKm5jurTN8Xv5ciHodwnldxTxmZcuTUr3lGR/AJHDi4aRRXIo= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1783; 7:Kqwcp4HHDCzJP0pjsz/c6sIHHr1jkeUt4sQu8jaG+jCBMIKIJVUNzP/ASmtbwERNfzwe/MjsdoiyPuAQLCz/OG8DkxJGSTnEbDlk+qr/3VUUiYT171Lj94nAL2NJAWg01+2grWDh+S346fChH/9sw/u52ovLMjRZoxZz2OgUG9yRqtXAdtedO73rHnM1s6aaDGbw+4S3o6Zwhyf4H2Hpuu1w0ih1m/WMgbuPluUBzEuN+CY1C4GdXVeatOzPkbMXbfc59rTgRrOue7s/PWL7mejvqcbb1zppuFVzrRVDI1yjvxTnFUu/blZ4vLtTsi/fRqIqz5eaAvPiSDaC3vx335Zx+C6zY5gU84eYbOPNj7JgAlLmy0nXSUdjSHjZCVleHf1IG6VpEkgChXjUOI3g7Q+VSRpEGK2MDtObAXkJmV0Q9GRfjALySrKzKCkkMCEDspQSFEpRiFOqBGMGX3pWjxPit5I0CtFiznzVdcoUjpXqkcXO/wPTt4Nykg0O3EUZYVv5mAZjNnXq1MW6Y7WYUA==; 20:3WQjcM2M84DLiIvMZ+jzsRlO9UP29SjQOlyhfOFQW1p3wFDv4OtF24K5718E8GV0hDyFfwmubP1wcs4swJby28rpASF+65H4li4Zb8uWmcd9i99PiXSuRHrXZnW+SliqBBk1kbnfLPPPRQY5nnlxruxTK2wtCVEKfEH3vJQUX3Cv064KWIQB0vf7aL0F5thiXBiEUag5nB8gmwkdJWMaTtZggtrVYsGsS6CAtt+YHgtQiNKXLDtvZpIi/HL6/NHn X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Feb 2017 16:26:41.7676 (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=[SATLEXCHOV02.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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Harry Wentland --- drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 4 ++-- drivers/gpu/drm/amd/amdgpu/amdgpu_display.h | 33 +++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 drivers/gpu/drm/amd/amdgpu/amdgpu_display.h diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c index a7d3a3943e56..a6000ce6ff43 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c @@ -596,7 +596,7 @@ amdgpu_framebuffer_init(struct drm_device *dev, return 0; } -static struct drm_framebuffer * +struct drm_framebuffer * amdgpu_user_framebuffer_create(struct drm_device *dev, struct drm_file *file_priv, const struct drm_mode_fb_cmd2 *mode_cmd) @@ -628,7 +628,7 @@ amdgpu_user_framebuffer_create(struct drm_device *dev, return &amdgpu_fb->base; } -static void amdgpu_output_poll_changed(struct drm_device *dev) +void amdgpu_output_poll_changed(struct drm_device *dev) { struct amdgpu_device *adev = dev->dev_private; amdgpu_fb_output_poll_changed(adev); diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_display.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_display.h new file mode 100644 index 000000000000..3cc0ef0c055e --- /dev/null +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_display.h @@ -0,0 +1,33 @@ +/* + * Copyright 2017 Advanced Micro Devices, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR + * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, + * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + */ +#ifndef __AMDGPU_DISPLAY_H__ +#define __AMDGPU_DISPLAY_H__ + +struct drm_framebuffer * +amdgpu_user_framebuffer_create(struct drm_device *dev, + struct drm_file *file_priv, + const struct drm_mode_fb_cmd2 *mode_cmd); + +void amdgpu_output_poll_changed(struct drm_device *dev); + +#endif