From patchwork Mon Jan 16 15:44:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Grodzovsky X-Patchwork-Id: 9519003 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 43635601C3 for ; Mon, 16 Jan 2017 15:45:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3279E284CE for ; Mon, 16 Jan 2017 15:45:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2755A284D3; Mon, 16 Jan 2017 15:45:14 +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 C4C00284CE for ; Mon, 16 Jan 2017 15:45:13 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C495F6E37D; Mon, 16 Jan 2017 15:45:12 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0057.outbound.protection.outlook.com [104.47.38.57]) by gabe.freedesktop.org (Postfix) with ESMTPS id 559716E37F for ; Mon, 16 Jan 2017 15:45:11 +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=f5cjMm7n9F3HkhjTaSlGRRQ9JQKscfNiOjOWELGMNy0=; b=FUUnAY2pZvzL6BCRYx+Lh3BLlEQL8Op89FXpmmqD0MwNyFUbjpQFpzr2O0u+MMdwB/eV60+MbKlOekkh0PigOs6k57SZH74yFm0I5nBBQJW1Y9sfw6kh6I1gPLkyzkdD+tH004VaMmO8jIBfSBD+bwZ47jkbbcnKoTQVxtb+QmE= Received: from CY1PR1201CA0008.namprd12.prod.outlook.com (10.169.17.146) by DM5PR12MB1242.namprd12.prod.outlook.com (10.168.237.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.845.12; Mon, 16 Jan 2017 15:45:07 +0000 Received: from CO1NAM03FT049.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e48::204) by CY1PR1201CA0008.outlook.office365.com (2a01:111:e400:5b9a::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.845.12 via Frontend Transport; Mon, 16 Jan 2017 15:45:07 +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 CO1NAM03FT049.mail.protection.outlook.com (10.152.81.161) 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; Mon, 16 Jan 2017 15:45:06 +0000 Received: from SCYBEXDAG01.amd.com (10.34.11.11) by SATLEXCHOV02.amd.com (10.181.40.72) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 16 Jan 2017 09:45:05 -0600 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; Mon, 16 Jan 2017 23:45:02 +0800 From: Andrey Grodzovsky To: Subject: [PATCH 1/4] drm/atomic: Save flip flags in drm_plane_state Date: Mon, 16 Jan 2017 10:44:55 -0500 Message-ID: <1484581498-32309-2-git-send-email-Andrey.Grodzovsky@amd.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1484581498-32309-1-git-send-email-Andrey.Grodzovsky@amd.com> References: <1484581498-32309-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)(39410400002)(39840400002)(39450400003)(39850400002)(39860400002)(2980300002)(428002)(189002)(199003)(27001)(101416001)(76176999)(5003940100001)(97736004)(189998001)(356003)(305945005)(2906002)(68736007)(4326007)(81156014)(81166006)(50466002)(54906002)(8936002)(50226002)(48376002)(8676002)(2351001)(86362001)(92566002)(5660300001)(110136003)(626004)(6666003)(38730400001)(2950100002)(50986999)(6916009)(77096006)(53416004)(106466001)(105586002)(47776003)(36756003); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR12MB1242; H:SATLEXCHOV02.amd.com; FPR:; SPF:None; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM03FT049; 1:ItjVSaPXVxs9LnvQ1U2uZlNyc3KNmqLyLRyX8fKKwHZMYGmRQkFwL6HezpBGLY3avI7JWXtfJLsC14R2y3wIgT3tJxnE+C7qdqN4PTRUOZVwZC2CXAFWjZyp4INGv04lnvLnVdxZswdh3pes332JyrcEzhAt6O6kF6QOUpJlkmy8vSME0eaZLiydLps3DeSLJzPjHxt9yxPls2KKpjLlkWv70YU+pjQLJBmPdRxgIE3JVC/dKqs8JySKEDVIuKYTmqptZwKtHuTle9Qdb0exLFpKrgEeavodLaLtYK8bmya4cmqs72Mu77Xtd54sxPlTkp+91X4Gry3cSKGMrBxQPdeiEpmTiWIy08P5dIK+1cZ2ATwb50B8zdebgJlW5g3OzVy4wGfKeO1cOVX+bXlbiLouXPbH5G9kc9NCTiK+FtvsPdJ5bM2gTnC2KkbbJ0xd4fx1hAoeSq5tMgheCWlIE1DB2DlUA2OnIUb/3RJ2aEQNZ0grDVBddUUurejY/n+s X-MS-Office365-Filtering-Correlation-Id: bf95d57b-58a4-4f71-e843-08d43e26a51e X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:DM5PR12MB1242; X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1242; 3:6ggGwjO9IoGM+7ApNxhKoSZD6t0jRf8lrskLtQfVJRzFicc29VSKWH4Vll11INiCcK9X7VC2WC6YcKuqYKW5Fs5kzAO+QVGyWf7Us+bWpJqNapVDDiyFkNpnQIp8SxF41kL2/lZ6zGbuB0qlyaRLWj0zAUnb02xtR4G/4Gzr0xVg4tooWTnmCMPXyFxbfNfSqIY5U/8EcQMKLjgz5VLnMq0FfeT6dnVRtFPNf5XLkCYPsDhwBCsjntRcI+wokgTQOjurkan9aDeF6iM8RggrC3mfvK8KFVKH9wbZcm5Eu+pT32Wpk1WBxoblpLYF/7Zg+c16JGdbO0gxrz7tb3gBOJ0+QUZ239bRJ2GylAxaXQjrIttp0xhiEfO28IqqC673; 25:Y+G7ZG0uwU2/l3U6yWOaWMb29WEdUvV6vhsH75kMpSKj4J17rvXuC4GjaM5xs9n9GJzKyK84cpkqyCivG4bK1cxw5vix3HgOxgaO/A+7uJW6bRmuDk2pao5fdP7oT+qNfsOcPA9D20IRa2zMQtzxG8DPugz4XSx1ru4VTpHkSI862pBc4DyrpdWRvpwl/v5V14fXqcgcsSsW6XB2CE+O5Kwgh0f/Mwxw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McB+lL1D0wpG4dV 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)(5005006)(8121501046)(3002001)(10201501046)(6055026)(6041248)(20161123562025)(20161123555025)(20161123564025)(20161123560025)(6072148); SRVR:DM5PR12MB1242; BCL:0; PCL:0; RULEID:; SRVR:DM5PR12MB1242; X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1242; 4:9xF0wZdgzYs8W1eXNkM2sUjvP6sMHXmoU5oyaNnKgjSIGWtdmyL0wNeIg+cMVz0cY9yVN7Kc7FnlNLDXHsz3rCwVqrID6hIs/XC3esQ+xqkG8MqRHsrXdawKW8hw9aimtrJMw/rCs91Bk+slb8nwD6/cx66tjQ2qH0Hd/j48Lf55Ggbs7YalrBba8KwdXqo9/sE73xtT3uwP9ErPajs1fQkrHlXZ7f3W8hCHC/01i0JwagCYLpkZ28aRx3Hu+jTDS8fSu2PUay4JGleIT7coazuz/oFOmk+5b90TT2B7Ao76xjB2pRQu/zmZ0JlDtL/5viw4XRgkGOXQTgib89LWp7a4X9ITHZHHEm+M1uzrPPUgyzRJAsGGVIECqBBq9ncqzQMqUhbTF354hnbzPrykEd55MIhy3hOR0Qy7o2lRoLw0QwAEaieulRRTGizl2yujwisZiKHZhAlam4Zl8PNM4vrlfsy8cV3A0IzijgIH2Fh3lQQ0XlHTPkoXAuC6ifNeYOtkk9ZNzgjJWnsBFhfw+cIMJ8VKYgQAMX8S3ls4h91pBRh8Aap57PpfldQoPBv/HNycLu6CKwhgZRaU5Ly9GR9Culw8m0zhADaIC09BryyajVHJh921kUAaD2H5yS5xaSYiOVmmNM7atHVqw53EPCmgVs24zpOgt2zqInqQNrc= X-Forefront-PRVS: 01894AD3B8 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR12MB1242; 23:h6xiCPA2m4P4hJ+TqyLy7oNawJEQ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bgRoaGik= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1242; 7:Povm1BSCIw4ERsftNZBQaUQaHMjLWPIQ8jlgo+d8KmBBxb+WBzv1OJrG/KqCE2YhhyKYhJF2IWhlF3XwGhIE1ClkpOe6R38ChNYARyVUtIRyFeeuu9d+VUU0vIu4Woq5Uc5jmEKR7DbzEnmF5SJcb696fK5yoMF35jkmhO/fICS6NTFG3YxeaNW5PAHPTyQPJlxu4vdgoRKnMl01OY5pkZiPyqf5TSwVtoFBcIsdD4I2R9RTAkBb+Xth9p0KPkk6QG6OS/d84TodTut6vm7geABD3UD/xXT8EpqrgRAa/M8r7lsecHAfuJXo+iocBxkpQojrnsZywN3wnoKpBRF+P3T5hY+GE/wTWCqIGMqeZhm6pMdCS0PjNhTx8ymOJ3T7err268cfbpYAKjGUR9FqTfWYYc7ViDt1GKQ0ptrtrqYStlQrsqErEG0s5uGie8ZLadGWsmFtsVyNcp4yG1IFfA==; 20:zjfTKkns/XW9c86X809LCCAVh5zWoW7j9CO71/s2GLlHb+Opl10CFmaIbZmjgKRse28DBaIlh7cafZDl6AIWcB1emSRZO3cLowZFP0puZW3Wk6fWUFZw/hs0hFMxT20qxubxhDVAj8te5Ux669xtGSiee5lVvIVPsIi/+tbdB/h9yByRitKP3kMT5lm0gqI+kdGI9iNq+GWi5VPz/mrsB0s1Z1PCTZWMF77BgsmocEQm3UFD5iAz8hlGhbl2McLQ X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jan 2017 15:45:06.2902 (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: DM5PR12MB1242 Cc: nouveau@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, Alexander.Deucher@amd.com, daniel.vetter@intel.com 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 Allows using atomic flip helpers for drivers using ASYNC flip. Remove ASYNC_FLIP restriction in helpers and caches the page flip flags in drm_plane_state to be used in the low level drivers. Signed-off-by: Andrey Grodzovsky --- drivers/gpu/drm/drm_atomic_helper.c | 10 +++------- include/drm/drm_plane.h | 8 ++++++++ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/drm_atomic_helper.c b/drivers/gpu/drm/drm_atomic_helper.c index a4e5477..f83dc43 100644 --- a/drivers/gpu/drm/drm_atomic_helper.c +++ b/drivers/gpu/drm/drm_atomic_helper.c @@ -2737,7 +2737,8 @@ static int page_flip_common( struct drm_atomic_state *state, struct drm_crtc *crtc, struct drm_framebuffer *fb, - struct drm_pending_vblank_event *event) + struct drm_pending_vblank_event *event, + uint32_t flags) { struct drm_plane *plane = crtc->primary; struct drm_plane_state *plane_state; @@ -2754,6 +2755,7 @@ static int page_flip_common( if (IS_ERR(plane_state)) return PTR_ERR(plane_state); + plane_state->pflip_flags = flags; ret = drm_atomic_set_crtc_for_plane(plane_state, crtc); if (ret != 0) @@ -2800,9 +2802,6 @@ int drm_atomic_helper_page_flip(struct drm_crtc *crtc, struct drm_atomic_state *state; int ret = 0; - if (flags & DRM_MODE_PAGE_FLIP_ASYNC) - return -EINVAL; - state = drm_atomic_state_alloc(plane->dev); if (!state) return -ENOMEM; @@ -2865,9 +2864,6 @@ int drm_atomic_helper_page_flip_target( struct drm_crtc_state *crtc_state; int ret = 0; - if (flags & DRM_MODE_PAGE_FLIP_ASYNC) - return -EINVAL; - state = drm_atomic_state_alloc(plane->dev); if (!state) return -ENOMEM; diff --git a/include/drm/drm_plane.h b/include/drm/drm_plane.h index db3bbde..86d8ffc 100644 --- a/include/drm/drm_plane.h +++ b/include/drm/drm_plane.h @@ -122,6 +122,14 @@ struct drm_plane_state { */ bool visible; + + /** + * @pflip_flags: + * + * Flip related config options + */ + u32 pflip_flags; + struct drm_atomic_state *state; };