From patchwork Tue Jan 17 05:16:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Grodzovsky X-Patchwork-Id: 9519987 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 66183601C3 for ; Tue, 17 Jan 2017 05:32:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4D13E28343 for ; Tue, 17 Jan 2017 05:32:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 41658283F4; Tue, 17 Jan 2017 05:32:15 +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 6FC8E28343 for ; Tue, 17 Jan 2017 05:32:13 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9944D6E3E7; Tue, 17 Jan 2017 05:32:11 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0087.outbound.protection.outlook.com [104.47.36.87]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0FC666E3E7 for ; Tue, 17 Jan 2017 05:32:10 +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=j9AHRg/yW8fQoDgCl4K0X1unXokO7YLFAhZwTM7SOsc=; b=r5Y1e/q9NDGRuSYoHuMyl78SuQyIzzLd2B6w4ZqlFUueBzBTpIKnEpkqsNQ36/pJL9A6QyO3wJ7YW0ThrUUarwBYtaM2hB4/X+9YBqPSCPxh7SIwyRqhfG40SI6Fcw8j9NTEYxWys11bO3PjP1MqmEBn5wzXvlvAd9Sch7u/bqg= Received: from BN1PR12CA0007.namprd12.prod.outlook.com (10.160.77.17) by DM2PR12MB0078.namprd12.prod.outlook.com (10.160.99.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.845.12; Tue, 17 Jan 2017 05:17:40 +0000 Received: from BY2NAM03FT030.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e4a::205) by BN1PR12CA0007.outlook.office365.com (2a01:111:e400:49::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.860.13 via Frontend Transport; Tue, 17 Jan 2017 05:17:39 +0000 Authentication-Results: spf=none (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; intel.com; dkim=none (message not signed) header.d=none; intel.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 BY2NAM03FT030.mail.protection.outlook.com (10.152.84.214) 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; Tue, 17 Jan 2017 05:17:39 +0000 Received: from SATLEXDAG04.amd.com (10.181.40.9) by SATLEXCHOV01.amd.com (10.181.40.71) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 16 Jan 2017 23:17:27 -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; Tue, 17 Jan 2017 00:17:27 -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; Tue, 17 Jan 2017 13:17:15 +0800 From: Andrey Grodzovsky To: Subject: [PATCH v2 1/3] drm/atomic: Save flip flags in drm_plane_state Date: Tue, 17 Jan 2017 00:16:45 -0500 Message-ID: <1484630207-27366-2-git-send-email-Andrey.Grodzovsky@amd.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1484630207-27366-1-git-send-email-Andrey.Grodzovsky@amd.com> References: <1484630207-27366-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)(39410400002)(39850400002)(39450400003)(39860400002)(2980300002)(428002)(3190300001)(189002)(199003)(189998001)(626004)(86362001)(2950100002)(6666003)(110136003)(6916009)(54906002)(97736004)(5660300001)(81156014)(50466002)(105586002)(4326007)(68736007)(8936002)(81166006)(2351001)(8676002)(50226002)(76176999)(101416001)(106466001)(50986999)(92566002)(36756003)(2906002)(47776003)(305945005)(77096006)(48376002)(38730400001)(5003940100001)(53416004)(356003)(30001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR12MB0078; H:SATLEXCHOV01.amd.com; FPR:; SPF:None; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2NAM03FT030; 1:aO8d8FKyUQMYqQ1yWs/yQK5aXzQ2Np5tH7lITVsJxFic0mZ3MzjPaqomEBsRZ5BGrTu+O8ZrC+Fr1JSYjNr+jdZN/Tz0hvT3BnOIYM0+wr4rETRCgfgJ33ZPgLzr0DOD3pEWi/S81b1d+DVhRXlV4Hd9kPeMdt3B8uqpMjWg/K7v61UqfZ2a9dnzDj/0DAfL4Ds99ajzL4wnuMju13XQIN36WZ5PCC4KeUU1ADw3zj8IuvJWyaDc8urPazwfhlahcUN+phdoWPGJVePAvHhRyEvBzGkcNLUeUhdI3bQ9byvk3o6E6IA4Z4spJq+EvSMqO2Q7ZAw4N+3bE5XYC18S9fIyWlkxjesOZIFrf31B30V4otE/u93BBhpJIMALbNDwvZU5gy5K+OsJNKfSO1PiAtQ2uqU/Otj+kTjj/VKFdRiFSag9uI9COCxIyI1bBUEb8uy3rH9ZXt/g4V07JBxcOZBB2UF+Xcpv0IFtxeL4uGB+KzdLDTB79POAW3dTFGI/EZe6ItetWoeyjP7AiiXJCxzBLkRe5mk9kngyWw72vYiNRpW0/D84ROz9f3ZR0Wmm X-MS-Office365-Filtering-Correlation-Id: b728dee4-8f5b-4d0b-f4c8-08d43e9827f1 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:DM2PR12MB0078; X-Microsoft-Exchange-Diagnostics: 1; DM2PR12MB0078; 3:KJj8pKTZclaS2U2RsheAVD2eLT7WLsAaYbijnnuc+dR9P1qMca99iNKOVpWc7qvTGxjET44EttCnBY37v9zn/IE5umxyA74iQmO/aL9yPhn74FxN5BbOYHyce5b4nRJ+GTb2RTFo3b6BR7IpcKAWHdMB0bUR2WY5q9chkWTyFVsA+Zbuf+jL4F0gHR6ky+twTJQvEVKRQjVg5mfQ2XUzKbDCpiWltDuedkdyncl265agJTPRnfjI8Dbwea4ci/YeEV0a/qLToXprlV4vWOBTVbK4zXxex+I5phD3W7zadp0+OI2Coz4wtqiNFiss/eQwSCf4C8ZXeb/cMUnu2XtLsiKvOoFIMEquJkmT7LMkMqHNiH+tsH7l9CJKMQxWSlVO X-Microsoft-Exchange-Diagnostics: 1; DM2PR12MB0078; 25:jzt3krg4842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sNuspQDgrqYqwMOPnni+OO7NSkeLbAjhwJFoWuNSWfZxs/pBEQrT90uf+8WPS8O/ttneWTzuPKpreYFMftH3T2osIY8NjClfLrA==; 20:Lfi053JdrMLeJ2FjbzlJ1iy5QV44QXC/E5pMY/d9rIPg4I7b5OhZ/uOAVJXmRNZQx98HstCdaTH/eseyPVWusH8gpkTGFJ+yB/CYbFcQsOKe2rqGJ8JrBitLKAJoDWlrs1tv26r/r3m3tSNqwliH80nSuxKUkzdPLad+GE8tWHWHjbDzwDAQTlrDt05w1+8bhHU121ZT2SrY2k202ryzsYvfl87DptQh5X0Bu+pWuhzvzENFlEaY48QYmXMAhpFgjw3PZ36+DsXIl9VHZEDhdKvZ+gX8GdgEvvDy2QMw5D/07eFNEiIOtgJC+xz387pcfJ5nHkusp2RBQa5Ms7Jtd4ZoXLrz+50Cii6xz1RS2g7F3dZofU2/+faZiUWZsvKcs+O/H6AjmPEEKN3nTagVeulAjadzaFkRL/x9PtQ1s4iFxxhS3N8au+nHPb+zJ1DxIgk7nDoofZtlCnjZt9wJIS7hnqOejDxLnj4gB52W36yph+MtgwCis8yIWv/nYUEC 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)(5005006)(8121501046)(13016025)(13018025)(10201501046)(3002001)(6055026)(6041248)(20161123555025)(20161123560025)(20161123564025)(20161123562025)(6072148); SRVR:DM2PR12MB0078; BCL:0; PCL:0; RULEID:; SRVR:DM2PR12MB0078; X-Microsoft-Exchange-Diagnostics: 1; DM2PR12MB0078; 4:WaPcbz04EIDuvJc1C7v83yMCC3Okk97+gDQM2dySb+gUeIuvCxVlCn8VHAkJH6sttwcO4nwH/7sXx5TqOhaalvvqlRvy2d38W5a6MknFw+fZTBho36+YNSxNdT2G24wofJNe1eEYgbtR7ne1F+3PkiMqfdpT1AVXuQFrBzVFAo85qN/wIhxzKQdm55MRtfJ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xZcfnCVg/w+GhP7j50hP6hJr3YDPbhxlAesKjfbSyJ7civH+Usn3UAOQiGbyKydmN4Wiw+reHvPAvcwxtaf+VVHQ4d3Qp2uleV1vrb4bCcyTTyA9z4BlXnr8AWxlOjvynMTTa8kw==; 20:XNXXSDUpvpYJLrbHdv76bcEFyOm/yj8J61oNY2u0W25a1b1gG+QWe1Wq2fcK9g+dCbrINcu7C8yQ/WvkDtVeUj3fMRbqvivS5SHgzCcUvMpF4zBSSdxadrPRG/npN+s56UmyxaCS0v5q283jtSCpXpP7F6NBgLegHYBOQhzPm/D82N25Ib+u8zL5yzgkq6LAgeJcgaDR5yk3wTzCMFWNpprgUqQ7BvpCDpJkY55sbqjnPy9IFs8zjkFkYhGx+1Yg X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jan 2017 05:17:39.0639 (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: DM2PR12MB0078 Cc: nouveau@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, laurent.pinchart@ideasonboard.com, 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. v2: Resending the patch since the original was broken. Remove comment about not supporting ASYNC flips. Change-Id: I0219c3ec3ecceb82143ee176d30cb50d9aa76bf0 Signed-off-by: Andrey Grodzovsky --- drivers/gpu/drm/drm_atomic_helper.c | 18 +++++------------- include/drm/drm_plane.h | 8 ++++++++ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/drivers/gpu/drm/drm_atomic_helper.c b/drivers/gpu/drm/drm_atomic_helper.c index a4e5477..12f70f2 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) @@ -2781,10 +2783,6 @@ static int page_flip_common( * Provides a default &drm_crtc_funcs.page_flip implementation * using the atomic driver interface. * - * Note that for now so called async page flips (i.e. updates which are not - * synchronized to vblank) are not supported, since the atomic interfaces have - * no provisions for this yet. - * * Returns: * Returns 0 on success, negative errno numbers on failure. * @@ -2800,9 +2798,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; @@ -2810,7 +2805,7 @@ int drm_atomic_helper_page_flip(struct drm_crtc *crtc, state->acquire_ctx = drm_modeset_legacy_acquire_ctx(crtc); retry: - ret = page_flip_common(state, crtc, fb, event); + ret = page_flip_common(state, crtc, fb, event, flags); if (ret != 0) goto fail; @@ -2865,9 +2860,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; @@ -2875,7 +2867,7 @@ int drm_atomic_helper_page_flip_target( state->acquire_ctx = drm_modeset_legacy_acquire_ctx(crtc); retry: - ret = page_flip_common(state, crtc, fb, event); + ret = page_flip_common(state, crtc, fb, event, flags); if (ret != 0) goto fail; 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; };