Message ID | 20180926161839.4549-6-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-2.web.codeaurora.org (Postfix) with ESMTP id 6DE28913 for <patchwork-dri-devel@patchwork.kernel.org>; Wed, 26 Sep 2018 16:19:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 61A942B3D2 for <patchwork-dri-devel@patchwork.kernel.org>; Wed, 26 Sep 2018 16:19:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 559632B3D9; Wed, 26 Sep 2018 16:19:35 +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 0C7032B3D2 for <patchwork-dri-devel@patchwork.kernel.org>; Wed, 26 Sep 2018 16:19:35 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D9CC66E4A0; Wed, 26 Sep 2018 16:19:18 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from NAM04-BN3-obe.outbound.protection.outlook.com (mail-bn3nam04on0621.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe4e::621]) by gabe.freedesktop.org (Postfix) with ESMTPS id AC6116E499 for <dri-devel@lists.freedesktop.org>; Wed, 26 Sep 2018 16:19:13 +0000 (UTC) Received: from localhost.localdomain (155.4.205.56) by DM6PR05MB4588.namprd05.prod.outlook.com (2603:10b6:5:9f::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1185.14; Wed, 26 Sep 2018 16:19:11 +0000 From: Thomas Hellstrom <thellstrom@vmware.com> To: dri-devel@lists.freedesktop.org Subject: [PATCH -next 06/18] drm/vmwgfx: Reduce the size of buffer object relocations Date: Wed, 26 Sep 2018 18:18:27 +0200 Message-Id: <20180926161839.4549-6-thellstrom@vmware.com> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180926161839.4549-1-thellstrom@vmware.com> References: <20180926161839.4549-1-thellstrom@vmware.com> MIME-Version: 1.0 X-Originating-IP: [155.4.205.56] X-ClientProxiedBy: VI1PR0601CA0020.eurprd06.prod.outlook.com (2603:10a6:800:1e::30) To DM6PR05MB4588.namprd05.prod.outlook.com (2603:10b6:5:9f::25) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5c44f780-d337-496e-ed56-08d623cbcbe5 X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534165)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:DM6PR05MB4588; X-Microsoft-Exchange-Diagnostics: 1; DM6PR05MB4588; 3:kQOh33bV6EzUZTLbE2UanxZ5Mmog5fWDlXL6FJ4cIQiWUInQZBQrrPtAwEbM98f5SxmPTsdJp9fHZx70dioJEjL2iOdvHmL7M3LnvXhiRk+6uCjFKKHTP74dthr3EzY+glGOL5jIow7tGYQzTsB3i2r2D19RIQItFcuBT3KpgCFcSTu2ryZ1GJ1yUGtvXP3GByabwRu6wsi0uWH++UZZZyRWcUviQRTpb79di1cbUEQaPEPZCuAfmUn7PAVWHX03; 25:ru7v/odnqsMIbpjjojg6nTFtfF+KN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laKQYF6hUvl9WgQe1bWna2eEWbq7VMDc5DlKM2Xfd6M0Ky7olaeByuCl5aQMkqXlNZiljhToGpW0ZpGDnjh7ob3OhBnPpdQkgmYxUIXYo+I4ZP60C6jH9z09TMP/mY1R6guC39lj+WZ1vSKN6ph8GGuTJyN7x/T/xo=; 4:VnHMjOr52gUcQm6wjwuMxq59Fzq9RngchX/iwk9boDFQNgGLjKsasbGcWmtysMw5Z/FTFiqun24j/eglHuEIuYglwdxqi2r7aawitLM4t0c9gfwdIHHQcU6hWhpYzNPtyoE9PGW0mXEJkZVfImsI899DQSM9kRRBSEy4C3Nt4fDMsNolNND8KE0TkHa4gEkydt9TL2mViLPLTuryhLYnfxbSCLA3ZcyXnhcMSLsNTKezKZOQmZw/a1U5KJVTQiNj+ounSGXwBL90LYScfstspANLUPyP85JvjQm62ITrkTSLjmvWAUdsJw1rpPdwspyE X-Microsoft-Antispam-PRVS: <DM6PR05MB4588771DA38341A5A2CE8D0FA1150@DM6PR05MB4588.namprd05.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(61668805478150); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(93006095)(93001095)(3231355)(944501410)(52105095)(3002001)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123558120)(20161123560045)(20161123562045)(201708071742011)(7699051)(76991041); SRVR:DM6PR05MB4588; BCL:0; PCL:0; RULEID:; SRVR:DM6PR05MB4588; X-Forefront-PRVS: 08076ABC99 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(346002)(376002)(366004)(396003)(136003)(39860400002)(199004)(189003)(11346002)(186003)(105586002)(36756003)(47776003)(26005)(66066001)(6512007)(2351001)(305945005)(446003)(2361001)(486006)(16526019)(106356001)(7736002)(5660300001)(476003)(6666003)(53936002)(86362001)(6486002)(97736004)(69590400006)(478600001)(68736007)(50466002)(25786009)(8936002)(316002)(16586007)(48376002)(956004)(2616005)(386003)(76176011)(6506007)(3846002)(6916009)(51416003)(1076002)(4326008)(8676002)(81166006)(50226002)(6116002)(107886003)(2906002)(81156014)(52116002)(34290500001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM6PR05MB4588; 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; DM6PR05MB4588; 23:FtSKkOJl6rJUZ3voOxHR9a2DLYf3uIqK19GflFtlB?= YiceOKFPwCK4Lu3xTRIrW7PwMKDwOWbdfex/KS0GKM7WBAEUyrEGuUEPmedBgyuy0n7JJe8p0X9rE0W13vdftNVirT/4p1nF1rd6gMxio+Tt+zndZ/HsX/G6D7ihnTSOWrBPO2oI+SUQt1Szgf1Q8p1UgACre/p+TVSUn5u5RFURDE6w1sK18iv2ZjdVMBoUwORyo2fnGBHjbQDmhwnNsC3Pcg0aESXLhAvVxB1XKVtLQ+R9QN8D9hSuomD4L6iE4wXZTfisaDPYmBrZdCr9L5NezTLnSuRmGO9UUB8+sWj6S0EPRXMhiqedvssKSBr2I3bOkBrQIQ6PWzPNv6ejs53tWpW8H0mO7Gdv3FtHVoTlDMw01cxhM7Doetz2Klx0VVm26yCKYyyYYnqMhAxqilYQ5p5WxeSE2HVG+fYjo6shvlE/XmeDSLEeLpXX2DA33Bg7O0tTVIYW90wnVhpT8E5wk5zhBv/FbOmOPHKgzVcuo+5+ROoy1XosJsNNT1lpHSDyZA4uuS6IJ2pYOO2mzn+OzYEfm8ZOo2LziR2U82B84VHJ48rxmCTWeGNbjPsvO+v8SPg0nCK1m+OTfQI4QVapLZ2m66hkJn1gTp59Zm1t1EyBEkBJHAzKMoBx14dkxlPxMmhb3Kk4h0+yRmNU37b7fTStaPCVxn8PDa+XbFWEvnqQGI6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7oR1teLKzLJdcfrs= X-OriginatorOrg: vmware.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Sep 2018 16:19:11.7324 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5c44f780-d337-496e-ed56-08d623cbcbe5 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b39138ca-3cee-4b4a-a4d6-cd83d9dd62f0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR05MB4588 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>, linux-graphics-maintainer@vmware.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 |
[-next,01/18] drm/vmwgfx: Add a validation module v2
|
expand
|
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c b/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c index da341cc6ff47..641b75110dc6 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c @@ -39,15 +39,17 @@ * struct vmw_relocation - Buffer object relocation * * @head: List head for the command submission context's relocation list + * @vbo: Non ref-counted pointer to buffer object * @mob_loc: Pointer to location for mob id to be modified * @location: Pointer to location for guest pointer to be modified - * @vbo: Non ref-counted pointer to buffer object */ struct vmw_relocation { struct list_head head; - SVGAMobId *mob_loc; - SVGAGuestPtr *location; struct vmw_buffer_object *vbo; + union { + SVGAMobId *mob_loc; + SVGAGuestPtr *location; + }; }; /** @@ -1167,7 +1169,6 @@ static int vmw_translate_mob_ptr(struct vmw_private *dev_priv, goto out_no_reloc; reloc->mob_loc = id; - reloc->location = NULL; reloc->vbo = vmw_bo; ret = vmw_validation_add_bo(sw_context->ctx, vmw_bo, true, false);