Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752224AbdGDNTW (ORCPT ); Tue, 4 Jul 2017 09:19:22 -0400 Received: from mail-by2nam01on0078.outbound.protection.outlook.com ([104.47.34.78]:19757 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751852AbdGDNTU (ORCPT ); Tue, 4 Jul 2017 09:19:20 -0400 Authentication-Results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=vmware.com; Date: Tue, 4 Jul 2017 15:19:04 +0200 From: Sinclair Yeh To: Arvind Yadav Cc: linux-graphics-maintainer@vmware.com, thellstrom@vmware.com, airlied@linux.ie, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drm: ttm: vmwgfx: dma-buf: Constify ttm_place structures. Message-ID: <20170704131903.GB23574@pc24.home> References: <0ddb7e25e1b2584c62726afb4d087e2039d12639.1498981853.git.arvind.yadav.cs@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0ddb7e25e1b2584c62726afb4d087e2039d12639.1498981853.git.arvind.yadav.cs@gmail.com> User-Agent: Mutt/1.8.2 (2017-04-18) X-Originating-IP: [86.218.208.84] X-ClientProxiedBy: VI1PR0802CA0046.eurprd08.prod.outlook.com (10.172.253.32) To DM5PR05MB3292.namprd05.prod.outlook.com (10.174.191.31) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: efc2db5a-302e-4c90-ccc3-08d4c2df4673 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:DM5PR05MB3292; X-Microsoft-Exchange-Diagnostics: 1;DM5PR05MB3292;3:rvgit20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vA8h38hcI3PEDtjZZQjK4ExtNMnqrqdH+n0trY+Z88nZpn0Uas857EMMTIM2/oVQezU2ozDK/w/cBUPqCeggtutFUWItDuzJkRpv3UZr2J4h/ertZL4Rm0X5YMyC9xQZpPgDIqfjaV3JU1J/PLGj8a8xx14KifYgekoEM83yrGU9cx/99AOgF55f90wnB4f/cTiGABbXeo5+7JJADYeHlYeNKpRSh0KLAGr9PMKd89C+00gekAcZAcWz+3Q6b5f0VpmOBZlMDy0WDxlPLMRiJtB4KUt2fDMqqobK94nPXwrqAM05FK9QbRZMm9n+1bVM+Ms7NK2slsgqo= X-Microsoft-Exchange-Diagnostics: 1;DM5PR05MB3292;20:JvBnmun04cbGAeYg+a6XbUYWJgBRM6TINjOSKBgglX5WQieYbkdxajqpPxvi/Cjg2EgQYOSOZlcYWBe+M27JM9NiJY7dFKiOo2fXB5VjQNJvtbAZR9cXLHtru927x8X3D+EhxAXMCChY58dtwtSks4uW5PlIK/Q/Hi+o8SeKuYkXWl2hg5dJhzsFB2OIP2CHxVTYqbmuAQbxDRJLKN0PjjgDK1QMWbEIJHvVsYTgsOO6sdPN6qjas/NkYnz8kG9KnY32EpWVQzeA+5/Vx07UOhlw5kpbbIAKcqvKQRrs0sHSiSooRSzhmFX67/AWnpax27O8vQ1FRO8d23Sio7+LwaLhMXi+mU3XbdZAgjgeUQHrqEFKjspT04IVOvRFB4JA3yhdNoroJRxbBBbEUIPYc+zFqx/pgKOvnLPUfRTJZy2YrVqGyMKf24LWpYeMQVvDh5hnuBNABTmVPfkCKMwOjsEKskQqetfwZfnrUrfm8Hg4n6aXQfWB8JtNUq5Io75l X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(236129657087228); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(2017060910033)(8121501046)(93006095)(93001095)(3002001)(10201501046)(100000703101)(100105400095)(6041248)(20161123560025)(20161123562025)(20161123555025)(20161123564025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:DM5PR05MB3292;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:DM5PR05MB3292; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;DM5PR05MB3292;4:8ZUwyyotAglH/5iC+Ex4ykyjjAXSzZulod1ocY0Ebs?= =?us-ascii?Q?lbhDiEs/xHOdo4rms8ipi810InnUrDWQv3y9Bbs0HRIQ1NkjZFs72rW2Fvhp?= =?us-ascii?Q?n3/ZkHDKyhS7En5eHvoP2AIcOrny+7/of6p6rhBFnW+dxF2dpP8r2Jwj+Pe+?= =?us-ascii?Q?V8QjVkZxgieqhqE64LuehcOSjvQBIKpgThKwb1kmOuLEUjVOobg2RUZMmTg+?= =?us-ascii?Q?0zuOL/N+LhupQd5I1Hbh6eio3ahsIT2tpeRrGY63qIlmfuC59RHkN6/TxeNo?= =?us-ascii?Q?yVEOEdk+HFFHO9id84Qu4W1WmMEsflgCPtkf0VY1QXoYXTU3lLa7nLLIKiAr?= =?us-ascii?Q?UtqB4u6wcM5wX6XabPLja4NZ/z9A6ljgJE/7lB69IM2J4W1cnTfQI8QFl5gu?= =?us-ascii?Q?d1BK+x8cNyWIRK8rqcr5Dgq89qtZjr/EDEPdNu1ydMYxOIuMRhit95PZ8hOK?= =?us-ascii?Q?1KNBJ+jWrEgSb3j6/Ec9i8b+EMNQKfN9Qoj0EoBxmca2Zw9DH0V2oftyLDYV?= =?us-ascii?Q?alHXCgx70h/FnqrGNlxqGva7lJCYZK2ox7qiXxydwQ5TPGV8ttWVparfUeIo?= =?us-ascii?Q?ikrjDdpzzV44BiqioXIq9j/+wgqcm2Y0pXlkXtvgC8V5b2KyorPc7gGrRgR7?= =?us-ascii?Q?q4zlnjS2xRsKgQRE+ko71XF7qsiLHgROPtU89Lbusu4scE9+/WJBklmwo6tR?= =?us-ascii?Q?EZvp8K7XnQRbmgflxxo/q5s7i3a631w8aN5uWC/33nx+4ckgKTzrbdCEmG8Z?= =?us-ascii?Q?UjAj0aoUFBGwEChawrtFvGvepxR14YGD+jwGuvYm7k/3v9OsJ8BkIMl3zZcs?= =?us-ascii?Q?BCEPksacuQFl4XYTgu9Iod8lxOuSavbOT/T7YoInLoex7Ujogbe5QIuUWx3V?= =?us-ascii?Q?MYvro8NHNbYdtDdGiPHS+XvcWN6nk2njwoH+s3p7OPpvACHicbWeGb4hhu7b?= =?us-ascii?Q?zxacmXM36wXxpEPyfZdGLTUYQRBbKneEqmufibCauh9HwCf8BywmURnFTC4U?= =?us-ascii?Q?Kqs49/8KnkdynmbXxk551kT0RsxWv+/XXsnAJM1xLwKxlnN7ZTWp3FfZKoqY?= =?us-ascii?Q?OSfqZfeSVN4BmkpsEd2nxbBT2Ip5ALjk7qA0N1mipqEo9QvCroTrO1Fik5I7?= =?us-ascii?Q?/bgil0kLLSXoFeGv+gsrsdL/sFsXXaWjJ7XZpg9Dr1XV4p08dly8yRgwyPGo?= =?us-ascii?Q?l0Nazra1se3nda1zwe3cCM3P7KrpUTwGXJzd/+3AvDlZ3a8Y9g+XEKMg=3D?= =?us-ascii?Q?=3D?= X-Forefront-PRVS: 0358535363 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6009001)(39450400003)(39410400002)(39400400002)(39850400002)(39840400002)(24454002)(42186005)(38730400002)(110136004)(6506006)(4326008)(189998001)(5660300001)(229853002)(36756003)(2950100002)(55016002)(53936002)(6246003)(2906002)(4001350100001)(86362001)(50466002)(6916009)(6666003)(9686003)(66066001)(23726003)(47776003)(6116002)(478600001)(3846002)(25786009)(76176999)(7736002)(50986999)(54356999)(1076002)(81166006)(8676002)(305945005)(33656002)(18370500001);DIR:OUT;SFP:1101;SCL:1;SRVR:DM5PR05MB3292;H:pc24.home;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;DM5PR05MB3292;23:6NPmrI0ITzz8aLaE5hLgnbSuGgumUiBuqvtuX2+RG?= =?us-ascii?Q?L/w5n48g8WveniPWzEUWcFMlhT3NbocdYjNURruDfxOox1jf7K42MVE6vmB1?= =?us-ascii?Q?JlNy6m7qBE72reHS52qzot4HQVL1ktgobyz+orNmIrHNQLu7fLjnOU1AlpZC?= =?us-ascii?Q?GqnX+8J00TLvYBfA7EVcfAUmakf2KHyTxjAUhmOzC80R2yIPSy77aTVzPKhB?= =?us-ascii?Q?XFvkWhI+wx91tMsmQjFNZbjd9zhyZtzc6RWl9dRXc0BQ82Nqu9fhEWTFFMqK?= =?us-ascii?Q?tDMKVRfHB3p99l/X8evCBjS8St8+aRMJNZf8pne76rw3LJJBuG53Fimw1Nhh?= =?us-ascii?Q?4Kf8M4WBWtYwvwcGmoIbGERVKfhrY9ib0ACrv/GTh2d879HFNZ08Y0b/pXOg?= =?us-ascii?Q?pvJVCCtaY1mgmwwmcQn9I2Y6/kKXEKq4ePrIaMQP38eZlzCgGrKXv/pfkFqb?= =?us-ascii?Q?ZHkJwS+789Sk4OBLLD07IW6ijkc5T9E8PFswYiUH12ROL7ajfKMEellGPQdj?= =?us-ascii?Q?Fj55Eg3C64MZoIpwVqdHl0wiRH5ODXaHlkPG6kFNC3HbiEPlh9FMTvP+6rfw?= =?us-ascii?Q?IBrNZ7DGfZth6eHlc8UC2Pkscmx9LW61ySxXSZvbZvhD82CdmsJPt/YQUBVq?= =?us-ascii?Q?pHDryk54BuWJ015/Dbq0XbyWfO98pU2IJeVT2agEBp6pnUCyFHuNeLO13GGU?= =?us-ascii?Q?Z0HRyOU+buYbsX6OjrHmXTfWXihDpqwPx34p42S7aVwAoWf/SHMh+mAxDqrK?= =?us-ascii?Q?UEw7W9R1x8ytjiVpeOvCMMNSGi4ScPjli14ongZs3GaOkdiYL3c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AMuHxTr9JJNtRE= X-Microsoft-Exchange-Diagnostics: 1;DM5PR05MB3292;20:EmXC423Vqx/w8WgHqKyOB8BuElyNa0b3bcMmmyjHOApVTejVj8MMeABXkPKiffALnN9sbuWkCn8mmvHyxsiFXpVk9J4+sxBcdgScVhZRk70FbKztwoaOAEVjeJWSnqp1UYJsdX+AC79gDE3xYMlap4fCMB1e8hY8N1oqBfCk2bQ= X-OriginatorOrg: vmware.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2017 13:19:16.5322 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR05MB3292 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3991 Lines: 123 Looks good. Thanks. I've queued this for my next pull request. On Sun, Jul 02, 2017 at 01:26:55PM +0530, Arvind Yadav wrote: > ttm_place are not supposed to change at runtime. All functions > working with ttm_place provided by work > with const ttm_place. So mark the non-const structs as const. > > File size before: > text data bss dec hex filename > 3172 796 16 3984 f90 drivers/gpu/drm/vmwgfx/vmwgfx_buffer.o > > File size After adding 'const': > text data bss dec hex filename > 3456 512 16 3984 f90 drivers/gpu/drm/vmwgfx/vmwgfx_buffer.o > > Signed-off-by: Arvind Yadav > --- > drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c | 24 ++++++++++++------------ > 1 file changed, 12 insertions(+), 12 deletions(-) > > diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c b/drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c > index 35bf781..c705632 100644 > --- a/drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c > +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c > @@ -30,49 +30,49 @@ > #include > #include > > -static struct ttm_place vram_placement_flags = { > +static const struct ttm_place vram_placement_flags = { > .fpfn = 0, > .lpfn = 0, > .flags = TTM_PL_FLAG_VRAM | TTM_PL_FLAG_CACHED > }; > > -static struct ttm_place vram_ne_placement_flags = { > +static const struct ttm_place vram_ne_placement_flags = { > .fpfn = 0, > .lpfn = 0, > .flags = TTM_PL_FLAG_VRAM | TTM_PL_FLAG_CACHED | TTM_PL_FLAG_NO_EVICT > }; > > -static struct ttm_place sys_placement_flags = { > +static const struct ttm_place sys_placement_flags = { > .fpfn = 0, > .lpfn = 0, > .flags = TTM_PL_FLAG_SYSTEM | TTM_PL_FLAG_CACHED > }; > > -static struct ttm_place sys_ne_placement_flags = { > +static const struct ttm_place sys_ne_placement_flags = { > .fpfn = 0, > .lpfn = 0, > .flags = TTM_PL_FLAG_SYSTEM | TTM_PL_FLAG_CACHED | TTM_PL_FLAG_NO_EVICT > }; > > -static struct ttm_place gmr_placement_flags = { > +static const struct ttm_place gmr_placement_flags = { > .fpfn = 0, > .lpfn = 0, > .flags = VMW_PL_FLAG_GMR | TTM_PL_FLAG_CACHED > }; > > -static struct ttm_place gmr_ne_placement_flags = { > +static const struct ttm_place gmr_ne_placement_flags = { > .fpfn = 0, > .lpfn = 0, > .flags = VMW_PL_FLAG_GMR | TTM_PL_FLAG_CACHED | TTM_PL_FLAG_NO_EVICT > }; > > -static struct ttm_place mob_placement_flags = { > +static const struct ttm_place mob_placement_flags = { > .fpfn = 0, > .lpfn = 0, > .flags = VMW_PL_FLAG_MOB | TTM_PL_FLAG_CACHED > }; > > -static struct ttm_place mob_ne_placement_flags = { > +static const struct ttm_place mob_ne_placement_flags = { > .fpfn = 0, > .lpfn = 0, > .flags = VMW_PL_FLAG_MOB | TTM_PL_FLAG_CACHED | TTM_PL_FLAG_NO_EVICT > @@ -85,7 +85,7 @@ struct ttm_placement vmw_vram_placement = { > .busy_placement = &vram_placement_flags > }; > > -static struct ttm_place vram_gmr_placement_flags[] = { > +static const struct ttm_place vram_gmr_placement_flags[] = { > { > .fpfn = 0, > .lpfn = 0, > @@ -97,7 +97,7 @@ static struct ttm_place vram_gmr_placement_flags[] = { > } > }; > > -static struct ttm_place gmr_vram_placement_flags[] = { > +static const struct ttm_place gmr_vram_placement_flags[] = { > { > .fpfn = 0, > .lpfn = 0, > @@ -116,7 +116,7 @@ struct ttm_placement vmw_vram_gmr_placement = { > .busy_placement = &gmr_placement_flags > }; > > -static struct ttm_place vram_gmr_ne_placement_flags[] = { > +static const struct ttm_place vram_gmr_ne_placement_flags[] = { > { > .fpfn = 0, > .lpfn = 0, > @@ -165,7 +165,7 @@ struct ttm_placement vmw_sys_ne_placement = { > .busy_placement = &sys_ne_placement_flags > }; > > -static struct ttm_place evictable_placement_flags[] = { > +static const struct ttm_place evictable_placement_flags[] = { > { > .fpfn = 0, > .lpfn = 0, > -- > 2.7.4 >