Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934054AbdLSK2e (ORCPT ); Tue, 19 Dec 2017 05:28:34 -0500 Received: from mail-sn1nam02on0040.outbound.protection.outlook.com ([104.47.36.40]:60174 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751107AbdLSK23 (ORCPT ); Tue, 19 Dec 2017 05:28:29 -0500 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@cavium.com; Date: Tue, 19 Dec 2017 13:28:13 +0300 From: Yury Norov To: Philippe Ombredanne Cc: LKML , kvm@vger.kernel.org, "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , Andrew Morton , Ashish Kalra , Christoffer Dall , Geert Uytterhoeven , Konrad Rzeszutek Wilk , Linu Cherian , Shih-Wei Li , Sunil Goutham , Aleksey Makarov Subject: Re: [PATCH v2] IPI performance benchmark Message-ID: <20171219102813.73fjhlde3t5nw6ee@yury-thinkpad> References: <20171219085010.4081-1-ynorov@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) X-Originating-IP: [115.113.156.2] X-ClientProxiedBy: HE1P191CA0011.EURP191.PROD.OUTLOOK.COM (2603:10a6:3:cf::21) To DM5PR0701MB3829.namprd07.prod.outlook.com (2603:10b6:4:7f::27) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 792edc3e-41c7-47b6-e5a7-08d546cb3db1 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(5600026)(4604075)(4534020)(4602075)(7168020)(4627115)(201703031133081)(201702281549075)(2017052603307);SRVR:DM5PR0701MB3829; X-Microsoft-Exchange-Diagnostics: 1;DM5PR0701MB3829;3:ROm4ZzAXKDmuzOS9xu1Qn6DatFrDVTcf/F0+RQkY5EkXI6Td/T8IHBV0ElOaQ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qZ9QCtGfbK111AUYTiDk6xsHOG2dXg4zA4O4qn3Iu1tlTfnygNuJQkBAzo5QZ1T/mk8kABj0vKZhInGFymjwNSBopuZx9FUdZAFmBSXzXsnHwXDWVmBYx54c7K5veDaSffFgO61IWR/JTZBelDZ176INE+7ol8+r7inNLqnjiG9ovfCRPp2y2o5WLV42nIfP6ULMWMXj7Rlj8FB4LP5oqxGAsWo6RFs0V71q3iYVZ61bWjazjHLv+tjbeyFXrmyTso0hj1Ar6dPgaboLaa2jlkGbqicT3xiGV4+aVT1ZT/C1gkUdDpkyrf10XC7Vk6pQcNq3D+l/YCUaEFLJOLHi0Nrbq7c04oHKa6UGHFaDBJuCNiTaPkPEvHCNLNIPtGB0j9GzvahelR5PGLUbMhMmNPrcIik7wUA7xNbQ+LVij8v1A=;4:RmrZTIuFeeAPbz2qsr0/LLRqR+mSR5unex4jFmL8+w/NUALPzWBwGVcUcEUFfZYGphgzwbu09bf6g+oyeUmJQpUA+Z6jcqBcaEgzaUjhFlHHHrbj4Eova3eqziiiD78vyoDWh0934ob33Asrd7sNJGDcY4a0dVlnC27s0FLpbQEFxZYDJj00zLqUhns0POkyCXZbEqFLJD9YuXxeeTugRi6fLZ29du421/5uthqu2wMOMMjq01aiDtIa6k2VTorc8cghYempK8wA8GWKC4cxYg== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040450)(2401047)(5005006)(8121501046)(3002001)(10201501046)(93006095)(3231023)(6041248)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123564025)(20161123560025)(20161123558100)(6072148)(201708071742011);SRVR:DM5PR0701MB3829;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:DM5PR0701MB3829; X-Forefront-PRVS: 052670E5A4 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6069001)(7916004)(396003)(346002)(376002)(366004)(39860400002)(189003)(199004)(24454002)(478600001)(53936002)(7736002)(6306002)(305945005)(72206003)(966005)(413944005)(25786009)(6246003)(4326008)(107886003)(47776003)(66066001)(50466002)(8936002)(68736007)(33716001)(2906002)(1076002)(76506005)(8676002)(106356001)(105586002)(16526018)(58126008)(54906003)(316002)(16586007)(83506002)(97736004)(81156014)(9686003)(55236004)(53546011)(33896004)(386003)(76176011)(229853002)(59450400001)(52116002)(3846002)(23726003)(6496006)(6116002)(6916009)(42882006)(5660300001)(6486002)(81166006)(2950100002)(6666003)(2004002);DIR:OUT;SFP:1101;SCL:1;SRVR:DM5PR0701MB3829;H:localhost;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;DM5PR0701MB3829;23:vqbBvVxRWa5rc7iXsNj7mEkaQuqTvj0HhjHQEPM?= =?us-ascii?Q?ki1cpAWb9AD6yViB0DzHKI/4I775qf3SHdqfHG9FcjrabqIhdtJwqIzfYDNa?= =?us-ascii?Q?fZ16lp2MUgDr4qzahrlC6gaHqCfrzyNEfSrhkaDicYK4rfGJNuXAUiNTIycs?= =?us-ascii?Q?+D4ctirnBP0qfEy+Eh6o1b3gtdl7IPriP6mLYt8PjDfTqie83mt/8TA7fSsF?= =?us-ascii?Q?3OxTDYc3krTvliji0k7Sac6EGMSETXFEh1g7ZnFvTYk9DFhSwTBLgD/jTSOQ?= =?us-ascii?Q?q0HEW5gk/peBUiWSjTlDLxPGdwa8jV/kPm3AoEwCMSb2KJQ9iMqYak06S3Ow?= =?us-ascii?Q?Ow9PVD+cAsd5DwGS4j7PzGOI1mO5qfB3/vrWIL5kdSD7NaQVwra5CuRq0SyI?= =?us-ascii?Q?AaZt7GGPzd3diuUwxkRQDWt7OMEeUuiZCBLJPK9uFJy1IG4J5NOSuxIeZvbX?= =?us-ascii?Q?El2Fxkls0qLIKNfAJgNcGKkjQNfRhhQNUR5DUyhubdVwpwvw2a8euUWwKaKI?= =?us-ascii?Q?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-CrossTenant-OriginalArrivalTime: 19 Dec 2017 10:28:26.3604 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 792edc3e-41c7-47b6-e5a7-08d546cb3db1 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR0701MB3829 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2250 Lines: 60 On Tue, Dec 19, 2017 at 10:26:02AM +0100, Philippe Ombredanne wrote: > Dear Yury, > > On Tue, Dec 19, 2017 at 9:50 AM, Yury Norov wrote: > > This benchmark sends many IPIs in different modes and measures > > time for IPI delivery (first column), and total time, ie including > > time to acknowledge the receive by sender (second column). > > > > > --- /dev/null > > +++ b/kernel/ipi_benchmark.c > > @@ -0,0 +1,153 @@ > > +/* > > + * Performance test for IPI on SMP machines. > > + * > > + * Copyright (c) 2017 Cavium Networks. > > + * > > + * This program is free software; you can redistribute it and/or > > + * modify it under the terms of version 2 of the GNU General Public > > + * License as published by the Free Software Foundation. > > + * > > + * This program is distributed in the hope that it will be useful, but > > + * WITHOUT ANY WARRANTY; without even the implied warranty of > > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU > > + * General Public License for more details. > > + */ > > Would you mind using the new SPDX tags documented in Thomas patch set > [1] rather than this fine but longer legalese? Of course. I'll collect more comments, if any, and send v3 soon. > Each time long > legalese is added as a comment to a kernel file, there is a whole star > system that dies somewhere in the universe, which is not a good thing. You can save all that stars and hours of your time if add corresponding rule to checkpatch. ;) > SPDX tags eschew this problem by using a simple one line comment and > this has been proven to be mostly harmless. And if you could spread > the word to others in your team this would be very nice. I recently > nudged Aleksey who nicely updated his patches a short while ago. > > > +MODULE_LICENSE("GPL"); > > There is a problem here: your MODULE_LICENSE tag means GPL-2.0 or > later versions as documented in module.h. This is not consistent with > your top level license notice. You should make this consistent IMHO > .... and use SPDX tags for the top level notice of course! > > Thank you! > > [1] https://lkml.org/lkml/2017/12/4/934 > > CC: Aleksey Makarov > -- > Cordially > Philippe Ombredanne