From patchwork Fri Jul 20 21:15:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandru-Cosmin Gheorghe X-Patchwork-Id: 10538397 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 25B1E6053F for ; Fri, 20 Jul 2018 21:17:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 16391297DB for ; Fri, 20 Jul 2018 21:17:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0A1322980F; Fri, 20 Jul 2018 21:17:26 +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=-5.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED 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 AA6CD297DB for ; Fri, 20 Jul 2018 21:17:25 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 73B6A6F0D7; Fri, 20 Jul 2018 21:17:20 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20060.outbound.protection.outlook.com [40.107.2.60]) by gabe.freedesktop.org (Postfix) with ESMTPS id D1FBA6F0D5 for ; Fri, 20 Jul 2018 21:17:18 +0000 (UTC) Received: from e114479-lin.cambridge.arm.com (217.140.96.140) by VI1PR0802MB2557.eurprd08.prod.outlook.com (2603:10a6:800:ae::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.973.21; Fri, 20 Jul 2018 21:17:13 +0000 From: Alexandru Gheorghe To: seanpaul@chromium.org, airlied@linux.ie, dri-devel@lists.freedesktop.org, liviu.dudau@arm.com, brian.starkey@arm.com, malidp@foss.arm.com, ville.syrjala@linux.intel.com, daniel@ffwll.ch, gustavo@padovan.org, maarten.lankhorst@linux.intel.com, alexander.deucher@amd.com, christian.koenig@amd.com, David1.Zhou@amd.com, harry.wentland@amd.com, andrey.grodzovsky@amd.com, Tony.Cheng@amd.com, sunpeng.li@amd.com, shirish.s@amd.com, boris.brezillon@bootlin.com, nicolas.ferre@microchip.com, alexandre.belloni@bootlin.com, inki.dae@samsung.com, jy0922.shim@samsung.com, sw0312.kim@samsung.com, kyungmin.park@samsung.com, kgene@kernel.org, krzk@kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, p.zabel@pengutronix.de, laurent.pinchart@ideasonboard.com, maxime.ripard@bootlin.com, wens@csie.org, eric@anholt.net, linux-graphics-maintainer@vmware.com, syeh@vmware.com, thellstrom@vmware.com Subject: [PATCH 10/10] drm/vmwgfx: Use __drm_atomic_helper_plane_reset instead of copying the logic Date: Fri, 20 Jul 2018 22:15:09 +0100 Message-Id: <20180720211509.23605-11-alexandru-cosmin.gheorghe@arm.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180720211509.23605-1-alexandru-cosmin.gheorghe@arm.com> References: <20180713161407.GQ20303@art_vandelay> <20180720211509.23605-1-alexandru-cosmin.gheorghe@arm.com> MIME-Version: 1.0 X-Originating-IP: [217.140.96.140] X-ClientProxiedBy: VI1PR0601CA0017.eurprd06.prod.outlook.com (2603:10a6:800:1e::27) To VI1PR0802MB2557.eurprd08.prod.outlook.com (2603:10a6:800:ae::7) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: aa4ce323-b1ee-4aeb-4f76-08d5ee862ac4 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600067)(711020)(4618075)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020); SRVR:VI1PR0802MB2557; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0802MB2557; 3:WAI07xe5Dom93eN71jEdcPqKE5MFekjNb12UdYH0lSg+YVeF4klcso8LHkhQ0uYR3ErPq0dTVe7jxzr1kjZxI0DCxpLd7RiMjuXH3JE5N+hifyTa161F3kqq8FTtDa256tOHB+pQCE+B+lFijUCIrBFgOjnlaXAvkSo39Pph8V7DaJXQsGkeK6D2ZfHH40Is1TwvBt+q2JDmtp5apLlm+qFIHIQXrd5TydAxmh/qdQtCnRMXIwE/tgkXZ9BjaowJ; 25:HH4JY9gUnSiMgTexXJsgMCDocwW8DCOt37xUOFy9Fx5PuCC90V7Fq63FzLkKCqTrB06FrtdfQsDe0qyfJ1Y3BgVy+aLekUMcaE/KNsZ6YeOm7i1hfGpVK+dH3+EMBeAebtgHcSX7EBtAmfIGZazGB3MSFMlbS5uIu99waFVBwrt1Wc+0shO+4L4mdiqeTfN5lcR/8cm6WNETWDQR7S0wNs+PZInhzByxoPJw12EctZobtgKImJTfzPnI/x62AAl9weXeh7rUQSAwmQH15vi58WtLf6P9ay6WpZhcaocUCcFzSNUb49rqAQbHIS+nUtBhaKPyp3QaXprv1cFICkY2gA==; 31:pOJ0y/DE8HoV1ftEZ4y2uSpsLVS4CZsrX8cSrpLu87Pu6uHJisWYXANaMr0GdvJ9/k3GDaRQqOVQHH2BltzSdLLsIPPp79ZfKOmxNl/Zg1lb4+6OCXjKH7OBP4dw2TqJT04SprZwNapBPZ/8EBK/berWH5NHfVxyeHmm0Y0X/HyXxmnA81j+tSDd8QBmrtIodS01r9IMAco/YYi4RPmzUUs39c/uFZ7oTMf38dHcV8Q= X-MS-TrafficTypeDiagnostic: VI1PR0802MB2557: NoDisclaimer: True X-Microsoft-Exchange-Diagnostics: 1; VI1PR0802MB2557; 20:+r+XlqyxaIKT0fZGMb2olSFpNMToIS4HicOPqf5NIeECrAkWD+4p5BMToVmpACtqyUQVVhepGlWz9AS6yC+792vT1hj4YpTBhFgPqzsBmuecbPBxmDtudfM4KzIK/HFBq5cgmoTB1bzh55qFPDdWUmypgL3Iko8AxRB4nFM6LL1Tepauoq/t94gjXXXdqLWBJLw11b/9zOuRpT/KuiKoghdvqyhKsQs1JuIWGK+Sps3Klfl1rCyOZOdoPGi8c7wyb2+EVsgtYZZZqL38BW2vb9wFF3JQswL16b/aDDzOW9gRNF0qW0Xhh8zUH4im0XNKXaQcIdmsD4lxHQF5kpNXvQ==; 4:0lNe8qsLXh5ihrpAgCg+3HI4zALWjqGSCQ+HSDXRqMBm8W0ZD6DrFuFdSuv/UE1sATif1cDbXkptjjaXgFGDmKAUPpjRaFkCkTqR3jgYVDs1LpDERs2ODbOQi+RIwjK39lWLOQHHO4zAWCALyxfNgRWs2O4m8XrjL6rlDADT3YexNjiOXCcgFZ1LUynZ7e2uqdoyn5McfTC3wgjU5fZy7p/N8mPHw92ZAE5kL9avkhsbgJPIHkJqd8PVOE1wEIUbBT62A1JJnAkXR1tgMVVutSacWr7vGtNpP0GzSJfJqLX9rAflMxHw7OfRvYglwe+i X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(180628864354917); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231311)(944501410)(52105095)(93006095)(93001095)(3002001)(10201501046)(6055026)(149027)(150027)(6041310)(20161123564045)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(6072148)(201708071742011)(7699016); SRVR:VI1PR0802MB2557; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0802MB2557; X-Forefront-PRVS: 073966E86B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(1496009)(376002)(366004)(39860400002)(346002)(396003)(136003)(189003)(199004)(6116002)(316002)(305945005)(478600001)(25786009)(3846002)(53936002)(1076002)(7696005)(51416003)(52116002)(76176011)(7736002)(72206003)(4326008)(66066001)(6486002)(47776003)(68736007)(5660300001)(7416002)(7406005)(36756003)(8936002)(446003)(50226002)(50466002)(106356001)(16586007)(8676002)(81166006)(6666003)(81156014)(2906002)(48376002)(105586002)(26005)(86362001)(575784001)(186003)(16526019)(97736004)(486006)(11346002)(386003)(956004)(476003)(2616005)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0802MB2557; H:e114479-lin.cambridge.arm.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: arm.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0802MB2557; 23:ARpPQwgs6wXaQOH0AfMj+7blrU/Xp2CrgXJeKDw?= =?us-ascii?Q?U8Jqd0kjxmqC9abfJ8THFrMjV9eS4q9PUt7rTXl4FH1i7I8+KXFWGdz581Wi?= =?us-ascii?Q?a6QQRcd+0vd8VobUsSMOMqHNOKplUVU0gttXEOZ2I04JuKHi6SYnIFP4qiWH?= =?us-ascii?Q?5EYyWzNF2ZbfNEHm6Q1qey0uMCEroJ7C0yzC7YOBGBQNFm7Z30YWrnq6/Ixm?= =?us-ascii?Q?cJcmHbjT4201IIBmE7Gzfk0SoVR3ccCiNtXhwtkxoId5nLGK95o0P00MOIeC?= =?us-ascii?Q?Me6eE7YIhckHcH48XqFvd9c/K4fE1FJiaoHVgtekxRoGKH5Y3LkAcNCNwOQ5?= =?us-ascii?Q?Xs4pmAeLbSoEQuqiaDxku3UlXlsRNT5WtOGhqmh38FXGDnO0ykNsJZ6abNJQ?= =?us-ascii?Q?iVCT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AAtBNLcl0vqs8y6MwyWrTaLOzdjv6Yn+g=; 7:t5ZjYulCd+ThdCUeWz7tvZnV1/9Xwe0RTq0eRe+u6dBhDZZ3NftLSIDlN6xko93Z/xjaf+x1p48jTUGqoqQRKPqfWkKX9XcDIEnu16n/UpOHZChlJozGAzvKx3w50hXH45LyDEV9+Rb/LoT52jE68unPRdr6M25OYAk5YUCP1FKj1gRR/fqaQ8YmVSfPqHXFUWtQfSOIhsMoDbFP/38cXJZm0TPDlVJMTQVk4apJKDAdZQdOMd9UybwB1O+xbddm SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jul 2018 21:17:13.9423 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: aa4ce323-b1ee-4aeb-4f76-08d5ee862ac4 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0802MB2557 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: nd@arm.com, Alexandru Gheorghe Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Alexandru Gheorghe Reviewed-by: Deepak Rawat Reviewed-by: Sinclair Yeh --- drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c index 466336b34fff..1e0fb3c79b50 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c @@ -720,9 +720,7 @@ void vmw_du_plane_reset(struct drm_plane *plane) return; } - plane->state = &vps->base; - plane->state->plane = plane; - plane->state->rotation = DRM_MODE_ROTATE_0; + __drm_atomic_helper_plane_reset(plane, &vps->base); }