From patchwork Fri Feb 10 16:26:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Harry Wentland X-Patchwork-Id: 9567087 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 A490D601EA for ; Fri, 10 Feb 2017 16:27:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 90F9826E4D for ; Fri, 10 Feb 2017 16:27:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 836F927F4B; Fri, 10 Feb 2017 16:27:04 +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 1DE4726E4D for ; Fri, 10 Feb 2017 16:27:04 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2B9AE8936B; Fri, 10 Feb 2017 16:26:54 +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-sn1nam01on0062.outbound.protection.outlook.com [104.47.32.62]) by gabe.freedesktop.org (Postfix) with ESMTPS id C492A89A9F; Fri, 10 Feb 2017 16:26:52 +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=t2tZKWbkXfs/LJjL2CuAbCRPWK6vkl9HBIJ8b7TjECs=; b=UfDCzw2h8HIyIfZ0qLCJOZCF1BFVFHx/c/vjzhIFRUXo3pUZPiaHLfCi+M5rjBqH460M56r+kZhwLcSGUcMq1bYW93rDXxzE+aCqKBLlzJ00tkJ0itjpWWQOtw4zBXd3RYd9+sFw2BRbfLfjNEATZbu7yqBPCs+1Y1k7eMl3g4E= Received: from BY2PR12CA0023.namprd12.prod.outlook.com (10.160.121.33) by BN6PR12MB1778.namprd12.prod.outlook.com (10.175.101.139) 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:50 +0000 Received: from DM3NAM03FT032.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e49::203) by BY2PR12CA0023.outlook.office365.com (2a01:111:e400:2c84::33) 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:50 +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 DM3NAM03FT032.mail.protection.outlook.com (10.152.82.202) 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:49 +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:49 -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:48 -0500 From: Harry Wentland To: , , , Subject: [PATCH 5/8] drm/amdgpu: Add a few members to support DAL atomic refactor. Date: Fri, 10 Feb 2017 11:26:27 -0500 Message-ID: <20170210162630.18157-6-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)(39410400002)(39840400002)(39850400002)(2980300002)(428002)(199003)(189002)(77096006)(92566002)(39060400001)(50226002)(50466002)(53936002)(2201001)(105586002)(38730400002)(36756003)(6666003)(189998001)(48376002)(33646002)(54906002)(2950100002)(5660300001)(4326007)(305945005)(47776003)(1076002)(76176999)(68736007)(53416004)(2906002)(8676002)(81166006)(81156014)(106466001)(8936002)(86362001)(575784001)(5003940100001)(626004)(356003)(97736004)(101416001)(50986999)(2101003); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR12MB1778; H:SATLEXCHOV02.amd.com; FPR:; SPF:None; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; DM3NAM03FT032; 1:zwHuVb7AqAM8wI+IUfS+iubBAGMf9Cg9AUWNd17f3212mLoRYprM704S1TY6h31vbQLcL4icGMSK7FkP251IJZJNW9nHROAINMY96zPAZnjOJIFSXle3xCV6Fk2FsCwxJeTcwvszaiEWKnc3jQVJV+O1ib3eQrB9faRDvcfdt+fYoLDH9PP4RNp2BSjvIonnK8SoR8MvdOrS0kM84WVFJ7N348DHeBYla4pr/S7sjka/3NoEjLyzD87VnOoZ+bQzVu5rOaaok/dwDgjPZ8qHQpDm2mVRUKWYSglnpPsnXzWRFVZ7QhaqLaRLb1HcoCqIvPZB7nGY0ATHb2zcNi15Ell/rryF/kUf3Tjjil03RismJEDmysOw42NuQU1xgnJEMGr6QTaIW9wXymXn0o5Lm9y62yOp9XgdqJAdTbJ2QYlxLDvkBZW75K3xNBC1mekMSQT8v+5cEactv+JxoRaLFg== X-MS-Office365-Filtering-Correlation-Id: aeccb3a9-d3b3-4079-8aff-08d451d19da8 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BN6PR12MB1778; X-Microsoft-Exchange-Diagnostics: 1; BN6PR12MB1778; 3:XiqU7mifXeUXSeQmd/sbV5MxqizSxljzbwSyG7MEuu720lyzGdIi+61+HDZbQZnGgcTjHOwq8AaHupl5jcvbMoE+wJLDer7oUM3qW/yNG6uB076xWZTZ2Bgzq8JEmo2KLEvo9G0DSYxL2+lVMyFLNfFFCHrosoOcr3Lqe3PUzG02gfjlYI4kgc0zHsl0qfCvWqejUXmOGrmEteMtcGvFSkcO/ESCmEhx3y55GYSTnzOoGSkz8zawr5bpRL0rDTg8+gZf6zM/OCzG/wXtc9/WPf4+w/R+8A9IuUptkvO+6o9MmVq6PCMwbO0uwTZjYi8e5fusD4bkjz6jnuAr2d70XBRZsQol6jw4CTc+RisSTypRLB8ileywyeVmJAahmz/s; 25:X/9d/ShappVLSadKtgM+RzRttyCq1ilUNEmIRegE+c8Gw9UYQjsJb8Lp3649kk7t6pBcRrW72ngrgXZeXkxW9sxtrOvam1aFS2PIVNM7uDCAizooOBRRxonKZbUs9T1Opc7JjrUHGOXKrkOECi79sWo3mUnbp1fa0v7WWBNqCPT9bj+d0U0oIKov6dPuJOhbLOWUULjT5oZAGLXIGU1Q1ytA+D5kVJ8HKKG445anXMvWY8HdJsMOxl4laPtPZA/X5ZRpV6SGhzh76lA5FavFiwmtUtQ37QxkG44RIDx3jQLqni8KpgnpHbOki+hzw+H/LzyPAOuiAf7BxJ3lNzLUu1syMLf4RZROh1dlCWvHb6SUZBVdLPtL1SMkqvGSay1+rywhmWnZ3fV/bXEA7etJDi/s5RS7wuQKgZcUKaYpYAIrE+aLf7RyWHv6mypYTkWHYWC5c/suHn0rxKtBDP+iWg== X-Microsoft-Exchange-Diagnostics: 1; BN6PR12MB1778; 31:1K+flv6O9f2lJmGU+QO7e6yrcwkRCPEKAaWMQ57p2o9zsgT4upqGVjkFCGogSewEN1hc5Vf9w8Pas5yxpcn1tU57dKQdR4EqUQVWGeFpdMDLrw5+Gjghxk0b5OWrPp4DUlbYNUsDyJIPEgY0aLC6eJmmTrQFqphePln4YkJKcisbi6eIM84TztGt9SKkTJmVLYmVBANZGlt2krBU2zMZxKFd6kDN1w2evFRwzCYmtIIoqdVX7BFKc0J2HpzvE6Lwplr8uK71XujR09q+hpAzhg==; 20:IpUCPtBM+q2oq1msY67b0JLrzqmRVTbjhkJyH0Xm5RNkcAObsGHBK9Eo5v71n5jSexNKMZ0Ftme95tpf2ZuYARp7LBvst6CSuxXhYqHdqYDkf0eRUwgaeRwiv+VxtQbsU7iwz+747Do1Zl4X2e6fQVf3Wqa9AugtMF5OwRhWEP7bBjjFU11WarnXgrM4fLc0Cfxx7gq8opWEue1rrU5vYD2Y0eHO6dWJOpiZba+qJsSd0t5XT3H1tHJffgSW3FYuNlptiF3g0wd4iN24Q/dnwzG6PjZLd9+AOJmy3sknxO7aAKPPtN0C2itpiZXzhD3qNfWZ7JmgW+NdQZUSF7xRgrQQaR7pjGtWauvFHXNgxvhWCjmXrtD3B8S2F28OujxdnlF7IkdLcXjQti5bMZTWiJ+zDpaj14M1SS7rvRLKUmn3/prYF7y8VlR/JuqLK8RqbpCe512c7lTjEiyoxxXsQ1o1+Zeomv5FUrFBpQtparI8BmA5iUFmBYQyJJsxLd8y 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)(8121501046)(13018025)(13016025)(5005006)(3002001)(10201501046)(6055026)(6041248)(20161123555025)(20161123564025)(20161123560025)(20161123562025)(20161123558025)(6072148); SRVR:BN6PR12MB1778; BCL:0; PCL:0; RULEID:; SRVR:BN6PR12MB1778; X-Microsoft-Exchange-Diagnostics: 1; BN6PR12MB1778; 4:ZNOCYUZMzgM0VRIhWy5fxJxPv2Zy+vJIxTSZ+jl9A0g85tJFK4wstcbwbnzGWlRxmuzwew0NZxqTXIFgluKOtLDVDdBy3N0BvAK9UYqL2MKKspt/4JuE/J2r5Sc1VduEv5Lesrz16xjgk0qiAShcbgWYoGMgeOfoZawTdrgN3+i2gX1haYHR6ECa1tDvEN2YnORjx5ioovT6/vqG14RdhIqBBnl/b9Tda9Cwls+UwBSHM7F4e7iA20x4CGcaGbk2EhJ08EmC54LrerxPx4zk2FlQ48LhWIHOuH2sREotZGe5YImTFAwdxpiBoZIm17NeuqE2JmKXblcQe9TuN67Q8PuSRW7zBVXll8fXfTHcnRxy16zrPplriveGXR5g4r7YSHUu2hOiyRGpoHdX9sYBlrkYTiCBDd4JpONUvq7f9wL1q33SHKT0N3NtXZVjUjkiy0otNLUlZ+mTRGkTGNxLANS1DmMKNab2HXIwMTh5AcIRiB6FSVEQ6lYKcYLudqzPlrw/VT4DYHzPySecFC6aJIQvCj3xtBvIQ4h6OV6iqP9oCtxxKEx+pG63hxKyvOgjSFr1b+kYeWxp4ufi6uW0ToTpgNQ2MjSPPAfesh1vim8MiiUEsIhQHJ8jZ8QiOXyMB7esXkv8vBGRPmKONL8LO43G4zgv3TkAyrwCbTTfhu0r2NprI19mx9HS499MoRZX858PDTRmcATHIdqLMWBo0g== X-Forefront-PRVS: 0214EB3F68 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR12MB1778; 23:iOpNudQZHwvI3R7lAMV4SkABwNMHYUUI9fVdt3D+t?= =?us-ascii?Q?RhH2hS4cUWGfMwJBTTemlwdeOU8y+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 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN6PR12MB1778; 7:rXDPae3C4QgtH6YxJRdCInU1XS4rSZnEF2al6EU7mMWKPAuVxfa3v60RQTFoUTiNUA62MHK9eslnz83BDVHaub5JQTVuMPre9XEfSutQyY6tremDbnlzKryXVE6laKMcTnHd7FHju3edoQWp2iQ7+RgMU7rcxzDukeQY8mLw5b1zt/zjdXcRmH6x0jEs1QFzDENFMYh3Ue+3Hxk1mycweDGc1Cnl/L10lPzk01sw7/OL3kW5TTxWBppvdx0BWzAD8d++6SNVEK04oIs/Hn1dnc80WEhhQmNQszV63A3m7wdmhLKC2iC7CRTeW5wXOZs6zCas3A7IUtPetmaO1WdVPB/bXsS2wzHbgIj4iCpUBICrichjvCFwKzajin1/aiVbd+Z4wzbN4l+bcSr3IvwtdRvIYD7HFzFpLoK0IH1E+HYrX3g5rVCOV7tmxqI44uQcHWtzk2VL1J0zggRlPoQhUydYbP455qEk0rGe5rsR5t0LLpwJ4iK9gS2Du/uPJkCc4oZ4OnrEJFydR1iuysPEbg==; 20:6p00mr/Azvv++h4GWsC5n1pANT+5PGyPp8hYA36XdX+GDB84KfI+0maNIXM1Z4FJURLtBLILjGIErC4z699ZCxkRuWXqM25FQ8g8Sf21uZphwcjgBH+vu8DQYMdrN5kd03d+CCJ3/OG05wN0leurg/E8V2cCBnzh+iCeJ1K1e9eIHFF24HVkJ7oPaYkSz6E6C87E+3vJfkIouF9zF0OD1WqGq9L7/Q3OlpSDjddL8du0eOJkuiOff8PxtEQuyMvk X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Feb 2017 16:26:49.9134 (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: BN6PR12MB1778 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 From: Andrey Grodzovsky Signed-off-by: Andrey Grodzovsky --- drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h index fda53fa0313f..1e77136d6f0c 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h @@ -322,6 +322,9 @@ struct amdgpu_display_funcs { struct amdgpu_framebuffer { struct drm_framebuffer base; struct drm_gem_object *obj; + + /* caching for later use */ + uint64_t address; }; struct amdgpu_fbdev { @@ -447,6 +450,7 @@ struct amdgpu_crtc { uint32_t flip_flags; /* After Set Mode stream will be non-NULL */ const struct dc_stream *stream; + struct drm_pending_vblank_event *event; }; struct amdgpu_encoder_atom_dig {