From patchwork Mon Jul 4 07:40:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ying Liu X-Patchwork-Id: 9211859 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 9FC6760571 for ; Mon, 4 Jul 2016 08:14:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 911B9284BC for ; Mon, 4 Jul 2016 08:14:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 85FCD28522; Mon, 4 Jul 2016 08:14:39 +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.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 38E02284BC for ; Mon, 4 Jul 2016 08:14:39 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1AED96E3C8; Mon, 4 Jul 2016 08:14:38 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org X-Greylist: delayed 1104 seconds by postgrey-1.35 at gabe; Mon, 04 Jul 2016 08:14:36 UTC Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0078.outbound.protection.outlook.com [104.47.40.78]) by gabe.freedesktop.org (Postfix) with ESMTPS id 154B66E3C8 for ; Mon, 4 Jul 2016 08:14:36 +0000 (UTC) Received: from DM2PR03CA0010.namprd03.prod.outlook.com (10.141.96.20) by BLUPR03MB247.namprd03.prod.outlook.com (10.255.213.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.523.12; Mon, 4 Jul 2016 07:41:17 +0000 Received: from BN1AFFO11FD042.protection.gbl (2a01:111:f400:7c10::149) by DM2PR03CA0010.outlook.office365.com (2a01:111:e400:2428::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.534.14 via Frontend Transport; Mon, 4 Jul 2016 07:41:17 +0000 Authentication-Results: spf=softfail (sender IP is 192.88.158.2) smtp.mailfrom=gmail.com; ffwll.ch; dkim=none (message not signed) header.d=none; ffwll.ch; dmarc=fail action=none header.from=gmail.com; Received-SPF: SoftFail (protection.outlook.com: domain of transitioning gmail.com discourages use of 192.88.158.2 as permitted sender) Received: from az84smr01.freescale.net (192.88.158.2) by BN1AFFO11FD042.mail.protection.outlook.com (10.58.52.253) with Microsoft SMTP Server (TLS) id 15.1.534.7 via Frontend Transport; Mon, 4 Jul 2016 07:41:16 +0000 Received: from victor.ap.freescale.net (victor.ap.freescale.net [10.192.241.62]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id u647ep0Z026135; Mon, 4 Jul 2016 00:41:14 -0700 From: Liu Ying To: Subject: [PATCH v3 10/10] drm/imx: atomic phase 3 step 3: Advertise DRIVER_ATOMIC Date: Mon, 4 Jul 2016 15:40:39 +0800 Message-ID: <1467618039-7457-11-git-send-email-gnuiyl@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1467618039-7457-1-git-send-email-gnuiyl@gmail.com> References: <1467618039-7457-1-git-send-email-gnuiyl@gmail.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131120916770938159; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.158.2; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(189002)(199003)(76176999)(2906002)(81442002)(69596002)(48376002)(73392002)(104016004)(73972006)(106466001)(8936002)(50986999)(19580395003)(586003)(68736007)(11100500001)(19580405001)(33646002)(189998001)(5003940100001)(50226002)(50466002)(2351001)(7846002)(81166006)(305945005)(97736004)(61266001)(87936001)(83322999)(82202001)(87572001)(6260500002)(92566002)(55446002)(6806005)(105596002)(76482005)(8676002)(36756003)(229853001)(4326007)(2950100001)(86362001)(356003)(110136002)(77096005)(47776003)(81156014); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR03MB247; H:az84smr01.freescale.net; FPR:; SPF:SoftFail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD042; 1:IjwvnXs1mYDeu3Em/qpKNRVl1uiBtnlDWtiJaLfV46NoWrIX5GgXMJiLU5X/DkLfr0yYFfAKJvcn8++JDF03PKO4buFDjR+k+Jlo9Qq5lkd6V7toY1/0mrqclECR+i35o+edGWK2S9Rf9wgTDhkPEjnevBdfqi0XaPOhBUSO+rLowRTY7KL4fkihB+wOllzFqP3prqm/ammSt8D4zmzNk/EnSJFvJN6qmDA3qLb0PnH3CgE80SSUqo+nr/IRFQRMGnigpL4QB2tWgXjMGn+nkbTd3q/Y+4UTEZFmjkjmr2KzirvKXaK8qz1LA/GJhstzmj0yY/Qu9BDe2pL0Ot0Lp6yF4Q6p6ey7bRcjUNQbmSJ7RR6vvZ9+0BHV1Pwb6qdz5sEBX6Y/97vP3YLxsh5oNCEq67yCNHWgbXAYyi/VhqqWFEEF6FG9N4kHniSVXq+J01uaBah4QvTAWHyUqjVSt4n8PFRoJFXygjyXwk7zcGnNksey4M2G00OQUrOv1v81rgHAGfZr2B9xLIswN5CdwMqE9T6fwFdnm9AfISKsoQgoUYFOYZnEDpUJ8zx+HnIlvhgdcfhM9eCobnRNRoPXeA== MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: eea7fb08-a813-40b0-5d2f-08d3a3de9538 X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB247; 2:BcbQDL43Q2Q5BmqAGYoSTu1E1ch4BYQNOuaOxAAtcWYSZtrFsOuacd0kJ8sgYkb3THtzSFwdGuwyFQcsLZvv4P8UWhxZHZXhtkh8nFid9z1fS6ZMu6P7sGe+iLgACXs8aYEpNNTyxfig+gg7Niig93aSLtplWIFV/QK+6U8+MJSpUr5tTEtNmgE1AQoNj7HO; 3:VUMv8rIiDuqnfYrn1LNmeIYJlAZ2NifFRMV+bEDsG22bEnqqgLq3k/bGOnnV431FVqYvQOfqkcr+YsVyPUHhxEcLzcZLHHphAkLLh6fg+1uSSfrgzWqVFYWtwscIhG/53Bv/P2ar6TxVr9JmUXr/A/hPg9Gbe6hz1PZa5z/dTZNRtBXbbEtIUN1v/9wW0UddVAwmLyZT3tsRxH/H/a2HUnnThmdKyvoGEnIbf9kmVIE=; 25:nCRJI1ov2LB4twkmWgSsVjS/VLOWBcMY7n5KkmSbYS55vugBEpkDhn+Z0C7Iw11p7ObSD3oZAiVkI3rbPw541rDom7NIITUYxprvY8Hm0jiNYX7cydMNbKyoZTa13WN7qOu4A+4LvO5W50B5FA3jXheVbIXvTS1tu7R0ieI7qwjWgADUk90XtOSIdHj/6hsEJmqpac+2AdMA8ikshMmHRyBzCB74eO71Ru3NB8MCEKiH9/G4A5WFQuGcJR3pnD8JZw98pLkh0ce3XS2mMb2tj2UxiBNR5NP7SgHsO/xQI+HG+PSRO2vGXEKYdBDHaSrT2OKeJ0ryPUr4uIfJv71YmFhLJtHnwvt9PZSzJ23hIGH5rabsmnefCkNDYHTZDLqFMrwQ56bxptSL/7Dg0Ald5Q61wHPp6WNmQSPfTVLglsw= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR03MB247; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(13017025)(5005006)(13018025)(13024025)(13015025)(13023025)(3002001)(10201501046)(6055026); SRVR:BLUPR03MB247; BCL:0; PCL:0; RULEID:(400006); SRVR:BLUPR03MB247; X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB247; 4:us/sul1a+hDkPqvhEI8TLaO/r5PKrkVf7j3vHcHbbfGEzGiOE1AL3kzZocu0DiW21eae2qWM0XZG/NZYgvMST/nnRwbjswoHo0PyFU7nlsqCBWb0BqgOwQwhupg8qJTK22tn/1hgJiHSjIi6RQB2kUGes1Vb9I3s0oLWAtnRKHQ6NtAuDQHFMCKwxsh6YW2TG4M1ITJGoeX8UXVJXeMFAE7DH5BL9Dfj/KoVZ1qL/sDlFFBf/KqtH143Ww7N+SgQ52PBsaqHfMIbSrJm1Ppakbk9aXkO4S+HYubM83sM8vagDVZSHq2dRu/Veh+tUKJvT5gdqQgW8U6mJkRkdKf8iFh/NoXhx5ajPM6gRehz8bSOu1rZTExtBNNeTynpOQ+Z7WYgdJjaQLcdSM0x1VhQVXYUdoDzLYpCbg4y5sEEzrykkRNBU+I6uLoXUf3or+qhAdW/eWmvchdpZ8OePcSp1fD3oMrjSR1CBTPCYk1kOtQ= X-Forefront-PRVS: 0993689CD1 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR03MB247; 23:AIqjM4rHXAjlAomjaeYYg6qcm3cZI072Xip0hVd79N?= =?us-ascii?Q?MYvLUOTBdZC5ALsfhpMEF/kxNYAnCAoobG4RRc48PVDbdoBUONSrCkJ8SDPu?= =?us-ascii?Q?aT+/CKzdwvGmXRUK9F4gfgMr7QBYnG1WLRPRu5sRMWrfvisXHq5YI6P+zOJJ?= =?us-ascii?Q?v/sFq24hBC6/njbgD9339bCXw9PdQ3L3bguwIghjkaVv/IdYgKCwfncxkgTr?= =?us-ascii?Q?0LB8uekguk0zeq2Ge1e7Cmcb1xxZfqox7V70X9mnVrAtmddLxHidw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/QybjDKpPmVb0Q== SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2016 07:41:16.8754 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR03MB247 Cc: Russell King , Daniel Vetter 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 With all the beforehand phases and steps done, we can adverstise DRIVER_ATOMIC. Signed-off-by: Liu Ying --- v2->v3: * None. v1->v2: * None. drivers/gpu/drm/imx/imx-drm-core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/imx/imx-drm-core.c b/drivers/gpu/drm/imx/imx-drm-core.c index f14ad2b..9f7dafc 100644 --- a/drivers/gpu/drm/imx/imx-drm-core.c +++ b/drivers/gpu/drm/imx/imx-drm-core.c @@ -428,7 +428,8 @@ static const struct drm_ioctl_desc imx_drm_ioctls[] = { }; static struct drm_driver imx_drm_driver = { - .driver_features = DRIVER_MODESET | DRIVER_GEM | DRIVER_PRIME, + .driver_features = DRIVER_MODESET | DRIVER_GEM | DRIVER_PRIME | + DRIVER_ATOMIC, .load = imx_drm_driver_load, .unload = imx_drm_driver_unload, .lastclose = imx_drm_driver_lastclose,