Message ID | 20180726161756.1794-11-alexandru-cosmin.gheorghe@arm.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <dri-devel-bounces@lists.freedesktop.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E1973112E for <patchwork-dri-devel@patchwork.kernel.org>; Thu, 26 Jul 2018 16:19:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D0C022B418 for <patchwork-dri-devel@patchwork.kernel.org>; Thu, 26 Jul 2018 16:19:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C337F2B88E; Thu, 26 Jul 2018 16:19:19 +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 742D92B418 for <patchwork-dri-devel@patchwork.kernel.org>; Thu, 26 Jul 2018 16:19:19 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 00EB76E7C4; Thu, 26 Jul 2018 16:19:08 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-eopbgr10086.outbound.protection.outlook.com [40.107.1.86]) by gabe.freedesktop.org (Postfix) with ESMTPS id E8B5F6E7D2 for <dri-devel@lists.freedesktop.org>; Thu, 26 Jul 2018 16:18:56 +0000 (UTC) Received: from e114479-lin.cambridge.arm.com (217.140.96.140) by DB6PR0802MB2552.eurprd08.prod.outlook.com (2603:10a6:4:a1::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.973.20; Thu, 26 Jul 2018 16:18:53 +0000 From: Alexandru Gheorghe <alexandru-cosmin.gheorghe@arm.com> 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 v2 10/10] drm/vmwgfx: Use __drm_atomic_helper_plane_reset instead of copying the logic Date: Thu, 26 Jul 2018 17:17:56 +0100 Message-Id: <20180726161756.1794-11-alexandru-cosmin.gheorghe@arm.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180726161756.1794-1-alexandru-cosmin.gheorghe@arm.com> References: <20180726161756.1794-1-alexandru-cosmin.gheorghe@arm.com> MIME-Version: 1.0 X-Originating-IP: [217.140.96.140] X-ClientProxiedBy: AM0PR07CA0031.eurprd07.prod.outlook.com (2603:10a6:208:ac::44) To DB6PR0802MB2552.eurprd08.prod.outlook.com (2603:10a6:4:a1::22) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3f69fe89-f1ff-4773-8ec4-08d5f3137b9e X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600073)(711020)(4618075)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020); SRVR:DB6PR0802MB2552; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0802MB2552; 3:UScYIkrFbOHwud1NcWbdsEHd/RJggF1rOjMqWX1XWGpV6qEUPTEs7mv2wVz1LoCU58gYszvg1v/M5NyzRKS84HuqtQzNcoLrUSb2EQTjZ6Q3WhHfXKzbFNnwFTu6FjGAD1nANFXeKtgLNKaQyJWIQqVVdGZEeXOfyJi98P04ay5C4pcuTrdArZYYD6YxaaVwYjGA2mobVHHtKPikjB2b8xClge/77XiPI/ylFx7zW6mjU1l1cPsUaMTUV+HW3sT9; 25:gzK6S0AIfMtqsG5JzyEJl6YZ5UllxyJB4/lPEcZh14xKc1PcL0xSLbmM87din+WGbHgip/pKKpJipKT8KG3d6zu5+C9vA82Evkl+KoYO9RG1HHtrwZbiWhHw07YjpVvFns94EEBZ3PCbXpIKmk+PwEhOksuxEM1hkx+sBru6X9StaRz0dAPdxjy45pXCA1UfzL0HPN1K9o2jWsJqByvC+2pK/Qj+RXY9dZ8ojgwq3i25s7nVFtsJLFrPMln1Gnb6dsHYtPHK4nyXjDDNQbjLp3HfXwO5396+UiuJdcU+GE4GuwFCLKESEQ9Q6dlleBrfcp9XJFexhX375HZLIp8kmA==; 31:fDvbgv1WbsvJa5XkdWhOI3Lga4StgAkhMSsGUyTl/DLNT5F8lshFtp9m9K+Z3N+ULRzxAFK5Tqq0cpNtVbI9S0cP+Pm+H8L1IcLhnSLmL/AFlWPh6gFnMVkt+v6Wubd2MidtkW8Olkc8Ti+ogmx4ciGuhOAUNi5ZCCKmTr6GCxd+bggbidGM6r/bKDYyWnDewuy2LjSWDTzeL0zADib7lUTuIVP8JwQZpdv5bRoLYiA= X-MS-TrafficTypeDiagnostic: DB6PR0802MB2552: NoDisclaimer: True X-Microsoft-Exchange-Diagnostics: 1; DB6PR0802MB2552; 20:16Bg8ojFgmjp8rTHFM0mlHR/HZW2bbqqsbZvoZSBM00mGgS+Mb1fcSqpgIcGPbsFmOMvQ5AytF8v7UK9sVQ+uCMMuI9RePblv67EFR/fPpguf6pxqltYjTOgqDil3K+CCHO/yopxCC22AR4Vj80Rb0aVSZl7+1nW+1UHG3KIqct+PAuyZeloRS6ZHJRqIM6KkMB2DmJ6UXHOD9cmg0rD0X4Tb43PTn/osYTLSoohZUl1LQIn67wZSkc/nvAOTz98Z1jEzLO5siTIddphHUDcK9iLczxw71UhUU2N/UDO+SG5VLigCR338EbIp1WDTaGHMFekr+VJ2S0awrYB/M6Yrg==; 4:LzFIoUWeBVxnVv4cVyykz24Et90gcmK5NcO9yPXef6o45dKS7qqbyVACvhfqpNQ5Fl9OsWSpY3sU4CIZ2gxsk+XP+216tpTER6IcgZH98yh7LCC8kV2ksnJ5Um0I/tzLsLcNJmynhIB4cbguX0DP4hBcv5ncE6+AYXwH8R2J7L/v1+zPMTjAyTORHXi3wOa4gYJbTQHrTgWjzWKMchRSUAP4/TdsXArjr3Z1ZZ97sy+Dk0fbwtZHGsYtIHJFHHuDjmZ4K0CI4mBg1aNqRShrL0GSEiNzbg4rxe2ErB8eFPlTjyH6I3+dJC3DhVsLE0K6VEVdlULGOTboH93UoJCtCDdu458lJy/Zukutq8B8ZcY= X-Microsoft-Antispam-PRVS: <DB6PR0802MB255263311BF03F6C9ABECB8EBC2B0@DB6PR0802MB2552.eurprd08.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(61668805478150)(180628864354917); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(93006095)(93001095)(3231311)(944501410)(52105095)(3002001)(6055026)(149027)(150027)(6041310)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016); SRVR:DB6PR0802MB2552; BCL:0; PCL:0; RULEID:; SRVR:DB6PR0802MB2552; X-Forefront-PRVS: 07459438AA X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(1496009)(39860400002)(136003)(346002)(396003)(376002)(366004)(189003)(199004)(105586002)(305945005)(36756003)(8676002)(478600001)(476003)(2616005)(81156014)(81166006)(486006)(97736004)(50226002)(16586007)(68736007)(316002)(72206003)(956004)(25786009)(7736002)(66066001)(106356001)(47776003)(6486002)(52116002)(2906002)(86362001)(446003)(1076002)(575784001)(50466002)(7406005)(11346002)(7696005)(3846002)(51416003)(48376002)(53936002)(6116002)(386003)(26005)(8936002)(5660300001)(4326008)(76176011)(16526019)(7416002)(186003)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR0802MB2552; 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; DB6PR0802MB2552; 23:KaGmsFPv9y91y3pE15T6Owy7DC7OAwKQOR9ms5C?= qdWM2AC7f1QEWYQd9OljvaNp558aeJ+m0CWRHnKacgrbnGhVWXPaGJl7IpF0lGz/4i6TAkRZogIi2cxai085bJ+FvCurYMwGuk2aZRk69hwiDhDwrEpy+SGSb+Usn6eBN/CgWO6vz97Vl4L6FcRzZo8UGDgaXy2aL0TxGSz6t5RegOP8I3n0MMq3LaPTi6psG81l/9L/PjEtB8fmYYWM3P2xts5NdE1oCvIPmWPf3hSdThm/UAAy6Hd654mX48+rodpZfgNQLl5xRdiUIec/EMppGDjkNZJmQY1Ww5xa2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lHAvsMNE4x6DMRXuXudQTwDQMgAvgsDDwmSqMp0TPkPCPD5+54fFOqMGcFp5vbkb9Q3YRiBvLt1YTupvX/kk3Xcsgmft/Urx+42WrW/mHfkhXFQJnVLAX1U SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jul 2018 16:18:53.2338 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3f69fe89-f1ff-4773-8ec4-08d5f3137b9e X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0802MB2552 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development <dri-devel.lists.freedesktop.org> List-Unsubscribe: <https://lists.freedesktop.org/mailman/options/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=unsubscribe> List-Archive: <https://lists.freedesktop.org/archives/dri-devel> List-Post: <mailto:dri-devel@lists.freedesktop.org> List-Help: <mailto:dri-devel-request@lists.freedesktop.org?subject=help> List-Subscribe: <https://lists.freedesktop.org/mailman/listinfo/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=subscribe> Cc: nd@arm.com, Alexandru Gheorghe <alexandru-cosmin.gheorghe@arm.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" <dri-devel-bounces@lists.freedesktop.org> X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
Add helper for plane reset
|
expand
|
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c index 4a0f0f41afa1..61824e360619 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); }