Message ID | 20180516060258.8190-1-thellstrom@vmware.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.web.codeaurora.org (Postfix) with ESMTP id 53096601D2 for <patchwork-dri-devel@patchwork.kernel.org>; Wed, 16 May 2018 06:03:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 42A362873E for <patchwork-dri-devel@patchwork.kernel.org>; Wed, 16 May 2018 06:03:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3746128767; Wed, 16 May 2018 06:03:42 +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.1 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, MAILING_LIST_MULTI, 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 A4F5E2873E for <patchwork-dri-devel@patchwork.kernel.org>; Wed, 16 May 2018 06:03:41 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D11746E314; Wed, 16 May 2018 06:03:40 +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-sn1nam02on0085.outbound.protection.outlook.com [104.47.36.85]) by gabe.freedesktop.org (Postfix) with ESMTPS id 796666E314 for <dri-devel@lists.freedesktop.org>; Wed, 16 May 2018 06:03:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=onevmw.onmicrosoft.com; s=selector1-vmware-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=H8KBf4jaBHrJT/VAlsxaYMS5HUlWsU2mqAZtX0fe0J4=; b=J+ttNWOB0mVQ2Q62DEXSd9Gfb8T2EMqIPvFzpO81XmYz0ikQEZy7O/oPc5kzqMQuGGs3beMQngp4OXmQLzyiw+hMxqySI23RVXxG4P+SFqNceg59FE3NnUfu7jZuK6sg5oynXfQ4UQX3DeUovNmCO5vr47OEgDZoHM5IwO6f0E0= Received: from localhost.localdomain (155.4.205.56) by BN7PR05MB4580.namprd05.prod.outlook.com (2603:10b6:406:f2::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.776.4; Wed, 16 May 2018 06:03:36 +0000 From: Thomas Hellstrom <thellstrom@vmware.com> To: dri-devel@lists.freedesktop.org Subject: [PATCH] drm/vmwgfx: Set dmabuf_size when vmw_dmabuf_init is successful Date: Wed, 16 May 2018 08:02:58 +0200 Message-Id: <20180516060258.8190-1-thellstrom@vmware.com> X-Mailer: git-send-email 2.14.3 MIME-Version: 1.0 X-Originating-IP: [155.4.205.56] X-ClientProxiedBy: HE1P190CA0043.EURP190.PROD.OUTLOOK.COM (2603:10a6:7:52::32) To BN7PR05MB4580.namprd05.prod.outlook.com (2603:10b6:406:f2::14) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:BN7PR05MB4580; X-Microsoft-Exchange-Diagnostics: 1; BN7PR05MB4580; 3:CNOqIKHnz9lcR4nyYDRaGXsLAFVIRsOaJ6FN5OwHIv42LZCNpO3vIxdpk9WF+WICIkmhtfaKjAKXQWAdnvozw2wk+jy3i7OqeJYSyfF0dm61IRseUXKNLNAuV3/D3s1g71nyQ9gc2dt1gLnz/W7zimtL97r8Ve4zMW5SCCtSZr5MuABtxx9z/IL06XhttqRfPEn5naHwOHPDMF/SgghpUi2b/f91bVTYFubNbRwWnvdolB+r+wJzq7yAuEy07VIm; 25:jMTYsTcPofHK79ITJV6JgC0L0B2UvQIi0oIrS2XXLfo9tj/DZSFv9ZkyPkQDKtNtLPJAAaqRY1ROmiYNORmik/n8GwT2R7B8yYVhlTsDYWgxDYoCyNMFN7CIT3f/uvVCQtrz662SKIPmU0ndyMrWvzFNTl2gW4eyeOA/jh1us9se8amI8UiiEo3I+FAFguY4xClsvO7Brnup0u5zt0X8NRlcJkRz2EfwKKpCCnIeEU+69RMTY+JRHYO3MVsCnV6lwkcPt10/fJUzbKBZXZguTm1xS4uYyuocIfto5jFzje76jJ5JJVCWEQLnRWn/ZAfJSujoXtWBRl5Y36vYhGth7A==; 31:V0beJH83CpimGG5q+n5JUHAh2kSlW4DqNpThX4veuGnWMW/0mtp3C5ivXicj6i8F5of0Z//8QKmHLY7iQ+IEPav1X+Skwm3afc41mlUEze4QGeNp1ALZCFKiYwF1Pu+f11A7Lq6vLfm6kkQaUWOZjJJTQHtmAOWWGsTNJ5V3KxbiFfrOjRVXkKEdtmmx21/rZdmQW85Lvv99A92chp/1DXRam9gFR5Br8GyqOTwBAUA= X-MS-TrafficTypeDiagnostic: BN7PR05MB4580: Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=thellstrom@vmware.com; X-Microsoft-Exchange-Diagnostics: 1; BN7PR05MB4580; 20:Bby+Hu77kBMz+I17ryiZ9M/dseM5jYRcMl/wCgrsiUBpAtM/Ec1CakhC9fO7d1iEQ7zmTrQMIFX1SrnkIuT7DbGatzDSIyJlly/WB2DWZpHB5sbTgVmK2y8Et3CSmCXrVf4tYuUMnsbJ3MUvJlTRrPV0NGPP1uXa7jwgSyfep0vPqtxXPaCY2wtoO6MG2tJ0/C1T6U8Vs25KhuKdgVLT9Bxt/ljAXQc0A2c1lvSRnuYo+8IqRED5CRQ66wn3cGrhFRjGyNZDqzy04umwxQFhd8IggnfSNJr61Vl80SR523b3ynWI4WIlRev8lXy8/DWQq26MvTNC69r6aKDE4KAO5KX2wAJUekcsRxOoaX4VyqqlDye3aanoXGmxQTdRoCqi+UyAyi7KjeLOXLYLUV7XhEQHO6ST5wmV0xmn5G5pAN3T6ga8ltM11ve3NepBdwPWcvv8AXi/iGhwsjSWpvKV8S2M0eNlqwebCRcrjfpp6Z21NklL5g4eCuTS2uVbwhUR; 4:YktBa475m0quAgKPpMLHQvjkCrgbgPTf3nMKrkQUSjn2OVRP/4vNT4q0qEh2syrs6DmQ5lZU/SXw82+jeP7cst++At+I6RLjF+S97ykskVEqkyzumdorXayUp7rzOePR5elip1YIUMfyy9nClH8wrLqP3G7umPlyrNgvVc8WicEFKiLtK6vTN1Fkhec97Zw9au799dz3GaCfpJBAD1GwhVlN/0JutkxGODFiKTlZjwWJJKdnqzGO0uEamj9nHgTFF3vNXpa1U5fNVkIFGQw1cz3gFvEvmuCXAft37eG9A3u1YSQ6GS8FSdp5vhm5Lu0LIitB8HgsuEoOhbXA5Ha0h5cniGWnWzCMwRzaCHgRnuo= X-Microsoft-Antispam-PRVS: <BN7PR05MB4580FF0EE47FC3959D7DADBFA1920@BN7PR05MB4580.namprd05.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(61668805478150)(9452136761055); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(3231254)(944501410)(52105095)(10201501046)(93006095)(93001095)(149027)(150027)(6041310)(20161123560045)(20161123558120)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:BN7PR05MB4580; BCL:0; PCL:0; RULEID:; SRVR:BN7PR05MB4580; X-Forefront-PRVS: 0674DC6DD3 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(366004)(376002)(396003)(346002)(39860400002)(39380400002)(199004)(189003)(8936002)(6486002)(316002)(54906003)(25786009)(53936002)(6512007)(106356001)(6116002)(47776003)(105586002)(66066001)(48376002)(3846002)(16526019)(2361001)(2351001)(186003)(68736007)(26005)(50466002)(1857600001)(8676002)(81156014)(16586007)(51416003)(52116002)(6666003)(81166006)(6506007)(386003)(6916009)(1076002)(59450400001)(7736002)(97736004)(2906002)(50226002)(5660300001)(956004)(36756003)(107886003)(86362001)(575784001)(2616005)(478600001)(476003)(4326008)(486006)(305945005); DIR:OUT; SFP:1101; SCL:1; SRVR:BN7PR05MB4580; H:localhost.localdomain; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: vmware.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN7PR05MB4580; 23:fso0/3Hs+RMkAHSR51oXrNG7IGtMM9iTTD4pPKvNN?= =?us-ascii?Q?JpGQtXYnBpfJWLE/DKX2h+FkeQyr008wtEmtziMImu4pHOOJ/izJHYb547BY?= =?us-ascii?Q?tPm8L03d1HlfwBXjmfJscvCsSb1B95CrzyaFK341WCHMZvtrZhrro7YceX6P?= =?us-ascii?Q?cWcfFw7Q6JNfPVtiilaKmK9AbyQ3NNcfkpYGBJbPzh0Nt9w2JH5e8KvG0doZ?= =?us-ascii?Q?sekuCPTpaY4fpobVjAZh7DsMwXauE7VR7B0qRw+rKlweAK+1FO6YYPU5gxxq?= =?us-ascii?Q?rBmSs15Qu2s0FaN62k1IeVsGuwcwemc6YvVE1l2DaJ/2+PzR5TrGiHFFyoFH?= =?us-ascii?Q?PQPH/yRwd9Fryo5J0KdY3dP9e3hkdT4x7v6nD/t0YkzMg7hBNvPKGtuWMX0d?= =?us-ascii?Q?4U5EjRdjKJaqETlv/e3GxWZM179Htx+PbOVV0vlGioaKD+eD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?= X-Microsoft-Antispam-Message-Info: kVB4xw9IIa0PPrF65uNTUSHQow871jR09dkbUEObLSAYVQypxv9YFcbrVLjfwidNyX+TOrPUOw5qltvEobP9dGN1Qg12v8IuAf511dkKFoJiexi4JqDrTQLhh/AgX+z/vlXK2iKxuY8aZUCp9qV88gSRzhOPs5uisZJqo3JXGdTyoxDmBnZtNpcX1cI3JDdj X-Microsoft-Exchange-Diagnostics: 1; BN7PR05MB4580; 6:yfMzsewmy5qc+ziqHvZeJTvEnsyHlobNq2QsYR9n/5bvoNbRUk7tJZ42/Hw4XanypDDgTG29kQ+m8uN/A2lVzkCBawzuqPKZ/Q5BaNrwciE5ZcLYlY/gM5zrdASiw9fTi0Z5CjbiUAm26tN81gA5me61edqruMACYL2GWPDOuRyepEoyEUJD7GDpJKDOLYxLnbE7Md9vIIXXRXbnnzXEmHZulXfPMH/d+c91ZaD4FSwraL+0KsME14rE/maaBI5hWZ2btPZOntB3wctujelR1wAD/mleYkA6LGivvLyrx+7dY3IJ03jnLhbV2LS8tXB+SRlha+TdWUNs9FFvTMwhDMgBbQIZAxhN2PRvy4OzJftLtW3vWgScd3Y8KvTarrz7ecdAYKzt66krl8k+gMiAtpv8vtaiyt2f8IwZ+PDLJdP7oBpEFUV0TMVtY1L9jTb+1pWJpVpWtF2aoxBch2CROg==; 5:L5+A62mBQPlYXEaBu3Nj/p5y5c3LjCEQLiZAS99qyqjyU2Dqh075Uh+g0R40yBYeVB82BOvTeMFD/E5OJV11drUIpdI/NshKshJfnJEny2oWntgbn58MOAbSw+gfXIg72AP4MyIl9gS0T6PNLJzinryqMXhYPZ5XZXRQAXmqG9c=; 24:vnD7v4PaYSeqbCd8vdUlG06xVhQZSh29dNnlhkaUQW1+TmoZZ99p9U9jK1PQpHAosDtf2tQowi66s0Fqa9tAzbPaDyBM108WKenh6hO8Ec4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN7PR05MB4580; 7:JvRPRCsYTVmKE9e7gKDKvW2fpb+dOhIJHwTRk4jXRoGaPsRZIOnha0P5AWiemZUiAj9vMTLhc9Y2j93AdkSIuiwPfnfys8C80iPcZNHlg/BqGeNEp9fbgoNGUNzEtxH9IkY1J1ZofNMQEFVCMKqizOO8mycW+b5RIhbuljw3glGO4Hpui1B1HXCtuSwMo4PBOPdDcQFDAGDj+g5BjoE9Y12GAk1iQHimJ6iWhBQdCLpbvqH/wU1H0LEHOlqHWh1A; 20:rp6SPPqpR7GL8ldV+9pUrBiwShV9zVW6U+JL71L/4z9+be5EztkckP1rdMUNMMETGKFIuI/5cTqTYgpSQ6ozjZUvDld0PlHZiAi6SXSBcQ3gcydplVzj1oXxBGNbFr+drAJKiKFxBOWZCfP77tDZw/TM2HNyjjqLBzqjQoDMljo= X-MS-Office365-Filtering-Correlation-Id: 562fd361-9d83-48d8-62cf-08d5baf2c401 X-OriginatorOrg: vmware.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 May 2018 06:03:36.7475 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 562fd361-9d83-48d8-62cf-08d5baf2c401 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b39138ca-3cee-4b4a-a4d6-cd83d9dd62f0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR05MB4580 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: Thomas Hellstrom <thellstrom@vmware.com>, Deepak Rawat <drawat@vmware.com>, stable@vger.kernel.org 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 |
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c b/drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c index 648f8127f65a..3d667e903beb 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c @@ -482,6 +482,8 @@ vmw_sou_primary_plane_prepare_fb(struct drm_plane *plane, return ret; } + vps->dmabuf_size = size; + /* * TTM already thinks the buffer is pinned, but make sure the * pin_count is upped.