From patchwork Sun Jan 1 15:59:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Grodzovsky X-Patchwork-Id: 9492899 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 01DAA60416 for ; Sun, 1 Jan 2017 16:32:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CCD53205AD for ; Sun, 1 Jan 2017 16:32:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AEB25223B2; Sun, 1 Jan 2017 16:32:54 +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=-1.8 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no 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 11738205AD for ; Sun, 1 Jan 2017 16:32:53 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 193C36E39C; Sun, 1 Jan 2017 16:32:47 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org X-Greylist: delayed 997 seconds by postgrey-1.35 at gabe; Sun, 01 Jan 2017 16:32:44 UTC Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0089.outbound.protection.outlook.com [104.47.38.89]) by gabe.freedesktop.org (Postfix) with ESMTPS id D2DB86E39C for ; Sun, 1 Jan 2017 16:32:44 +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=u+u9WqxLvcHw7EMr4y/CJvVlKHTuk6gjBvCj13aeF/8=; b=uCGQ6CGTVEM6jLaL1x18IMa01SYqSamsmZtd1KqwP/9VBVVW7uMWXJe4x26c9so9okS932f9llyeYQtV+14ak4MD4sZHY/hGtGuTUpVnx+hQxjW/0kUSXrN5bNTEky4/yx/ngACTToBuS+BTuJ+dC3qL7osj8CetysqYwBcs+58= Received: from BY2PR12CA0019.namprd12.prod.outlook.com (10.160.121.29) by SN1PR12MB0541.namprd12.prod.outlook.com (10.162.1.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.817.10; Sun, 1 Jan 2017 15:59:56 +0000 Received: from DM3NAM03FT041.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e49::205) by BY2PR12CA0019.outlook.office365.com (2a01:111:e400:2c84::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.817.10 via Frontend Transport; Sun, 1 Jan 2017 15:59:55 +0000 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; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) Received: from SATLEXCHOV02.amd.com (165.204.84.17) by DM3NAM03FT041.mail.protection.outlook.com (10.152.83.207) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.803.8 via Frontend Transport; Sun, 1 Jan 2017 15:59:55 +0000 Received: from SATLEXDAG04.amd.com (10.181.40.9) by SATLEXCHOV02.amd.com (10.181.40.72) with Microsoft SMTP Server (TLS) id 14.3.319.2; Sun, 1 Jan 2017 09:59:54 -0600 Received: from SCYBEXDAG01.amd.com (10.34.11.11) by satlexdag04.amd.com (10.181.40.9) with Microsoft SMTP Server (TLS) id 14.3.319.2; Sun, 1 Jan 2017 10:59:53 -0500 Received: from agrodzovsky-All-Series.amd.com (172.29.227.109) by SCYBEXDAG01.amd.com (10.34.11.11) with Microsoft SMTP Server id 14.3.319.2; Sun, 1 Jan 2017 23:59:49 +0800 From: Andrey Grodzovsky To: Subject: [PATCH 1/2] drm: Add target_vblank member to drm_crtc_state Date: Sun, 1 Jan 2017 10:59:39 -0500 Message-ID: <1483286380-15865-2-git-send-email-Andrey.Grodzovsky@amd.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1483286380-15865-1-git-send-email-Andrey.Grodzovsky@amd.com> References: <1483286380-15865-1-git-send-email-Andrey.Grodzovsky@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)(39840400002)(39850400002)(39860400002)(39450400003)(39410400002)(2980300002)(428002)(189002)(199003)(305945005)(50466002)(36756003)(5660300001)(81156014)(4326007)(81166006)(626004)(450100001)(38730400001)(8676002)(86362001)(77096006)(97736004)(48376002)(50226002)(8936002)(68736007)(53416004)(110136003)(189998001)(54906002)(101416001)(2906002)(47776003)(50986999)(2950100002)(2351001)(76176999)(105586002)(356003)(6916009)(6666003)(92566002)(5003940100001)(106466001); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR12MB0541; H:SATLEXCHOV02.amd.com; FPR:; SPF:None; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; DM3NAM03FT041; 1:mPiJPtzBMtdFnAb+E9zyWpTDgkiTkK+3BtK/swDa6ElE+bhCwhJktNLGi96JoJk53Tern7lm0k0QJuBIH96jS6EGp9iF7z5Hok6PLF2fpbiT7j80pMPO5LqoZBxEGZq+ChLr7/pZr1fZiLTA1dcFmUocAxJqnTwRcMfyZYKEfDpykrMDAPImgSoskpkmjf8VFY4Ar1xxnSLU/syuVPCgc7Ag2p5sPL+9LcV07ipPdBGLtk5rq+CKrGTjVVY381JxBoTvvVK33DTDQ/mBqIRbMG0v57zgKMs+oQQ57D1DID7euri7/KH/wWLpkzPIqwt1/HQFwwieLxDOivtuQr8BZ18yKWtFXJemV6WubJMg843db/gq57ytQ1rDDeg5rGoYKbRbI/Qsu0LLcqjx+vaKtaTYlXFJlVrpV4CgMQf3VzLEcu0XKS+j6eturZb0OXy3Shg1igG2GXEE/ZpQUzt8KLdLnuheSs+FIwu3qXtbAPlOsE1EF3vKRedKMUb/YrGu X-MS-Office365-Filtering-Correlation-Id: 7aac747b-917a-41fb-cf1e-08d4325f3a8a X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:SN1PR12MB0541; X-Microsoft-Exchange-Diagnostics: 1; SN1PR12MB0541; 3:fuGyF3zZMWuDpmEaeQwEYg5zXZ3r8pSg4szBlnbcyq+v6Fd3Fy1w+QqBCS0NFzGfiQ0UL+77D8S5LCVuDQJO+2+3nSu1HMACUTKWSmZM2RkcKXYTdq+pchHFk12m8IPGwzGvDMfHZY/ZpyEyG0KnzJ5BQlXQWqRfQ2Xdbt44jHCt53ObgmH6gIoEdL9ejqRd0LAHTv2PE4xW4IymZxZzH28SDf8wwq3hEjVdac01GnxF+Ajz9J3lu9XDjYv9NWWyzbkeaAq1n/ApXrhAbVUN+JGV2SkDjL651+xlrlJJTWN/fpCqZqIwo7/jtz3pjMKrdWVTroC71rTgnhcA26/gi9KfE/+gBzA4hg/UIUbPAPNH4SmnOsaghQAAalA8zy5N; 25:cjOgSQjEB/oWEh0c6QuDw+ru7DhK7cONYBwg8fEDFuG8sbv2XfxwOToyqzksj3d0dBTxg5lGBshtXaMhhPeoyNi/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YVz/K1HM8xw/DKODBGRe2X5mmM1TuZXfnYyYhY4V3WGU8HUgQtWVdzjIYm6j0KlhZB86R5BBGDyotAWj0g7R9sTtoHlho2eaXcwEh+z7AhnT13V0GVa3TZ88czJkb+iqbwhuis/HNHMEX 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)(20161123564025)(20161123562025)(20161123555025)(20161123560025)(6072148); SRVR:SN1PR12MB0541; BCL:0; PCL:0; RULEID:; SRVR:SN1PR12MB0541; X-Microsoft-Exchange-Diagnostics: 1; SN1PR12MB0541; 4:5jy64sSNpuLpXeTnKngZpOTJyjLqaRVcRDRxTHya/WSjNAkN3lVUiDvRONlEi09A/kBGljfV0k1HwCx5ynlzxsezaddNx7piSyizN8e2zHlvy+9wR788H5o6khk8W0tBSjfVeCn+mbcYrUWa9HVhdXsLi0XPnr8PMeGa4uNZDVf0VnnhkDNlOk7MqYCTudty5VLalBuWrtvys+O1Ir1Qjfe89SwaeTjB/WLUfvWRJmoemKBsLpKTEJFhE67oKKIz75SyKAK9+uRUqP1yw6N0MFSFGXBYiehE9YH5svEMTmzneabNwGsOw2BBquRexERYBIuVktzxbvlYgwyU6TyylhIpFt9PAaNMH0zYFXvq/2pYiux8L4smnmcApH1ee9HBvt07eCc+dAtiHh/4oPyl/Q3lHQT26XvXIh/DaUJ9rddu2n2nox64KiD5iZYxGVGk4RIqfZymAg/j+ScmuBKKp4n/r76QsgiYJ5Z3fF3EljreNu0cb3sw//vqQ9tpVaLkQIH1amFiXj+2drjlw2bOs7cD0KPQbZs6xQpLzODG80EiP1gGLeoiKazGF+YmbCHP4q9IV9GVzplfn6Yi0nrilDdqlDUgnviCNikyB0PO85910EWZMH9jc5ZDxvdE2OkZg+4aXfmG/pVLhKcIGpyRi5f2alu6Fjb64a8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Op+HIQyCoVF9tStG21I8Jl/O1v2yui+gh2jQWZ0bw8gTIV267yKhL/Ypup9Q=; 24:dGqnB4ORGjsXC6DqTR8roYGKOgg2gVz3wKwmuXEQi35oBcilumLUiQi3qHrPZK+6PSpiiapOUKq36iZJCwAXB7aX8k1U6mBOxnbJzvKKhwI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SN1PR12MB0541; 7:Z/Yvc6xIfinBThU5wzA8dSSbCnheNH0ebkFf7yJw6xokbu5OA7PSdCyjf7KRE9OijXxIuZOguyMsFEgofxX5eeD9hWwK4JhsCI0PtqdkE3+9FqmcOrcR8222cTkGbJ92vAcCAB2yIXDYrFJ9vM4OtJx8og7NNaxoO/6hq4nWxMyd0f1HbFTtDMq8H7qdiGakwP7HyMPkYDNk9jRxHfMQ1eGNQmHHWgnE4tRas0HBsj6K76TGs3fEePDbW9CtrPY6cBCtgCclWsqshgx8Mko2yHPAw7WNOSRv2vJ8l0I6kZY+6FOjr55ZuuMlEl0w1Gj/2rS3yNzqiNxLRRwYT9C/+JXHLM2qRswe++juOynqn4vN51aW9KQVf341LSY0zEYeWqSMU9atGvaTG4D1bRcLsssQX96/RFG4eMgwJZyI1VSP7KTErSS3oMNdr9OzrBugf0JVTMv/0QEP94v6fZwWxg==; 20:bk/INqa24v4QZGEV6vBmWv9cTPg+EdbKfZVwYAnO83xgAMGXc1LVG1Q+RCSWwzKLs4fnqacqDbajOIKEJlvk03rEZeUujXLSkJ7UE68yL3dWL54Uc5JHCRk4MqGNW5Tc8qomJd5Yu4VUKlohrvp3AKYO7nBvGbKQICAmzJchE4Hx54gDvYM2EpcsPlb1uZHv5m3d7qy91PSmY/4ryumYZdEO3jnCrOqwz+TDuS0F1KoAbVSG3I8upGx3KJtD9Gi0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jan 2017 15:59:55.0276 (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: SN1PR12MB0541 Cc: Alexander.Deucher@amd.com, Michel.Daenzer@amd.com, Andrey Grodzovsky 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 This change allows usage of the new page_flip_target hook for drivers implementing the atomic path. Signed-off-by: Andrey Grodzovsky Reviewed-by: Harry Wentland Reviewed-by: Alex Deucher --- include/drm/drm_crtc.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index 946672f..3a7685f 100644 --- a/include/drm/drm_crtc.h +++ b/include/drm/drm_crtc.h @@ -156,6 +156,9 @@ struct drm_crtc_state { struct drm_property_blob *ctm; struct drm_property_blob *gamma_lut; + /* target vblank count to do a flip */ + u32 target_vblank; + /** * @event: *