From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751571AbcGPMJ6 (ORCPT ); Sat, 16 Jul 2016 08:09:58 -0400 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:35612 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751447AbcGPMJz (ORCPT ); Sat, 16 Jul 2016 08:09:55 -0400 Message-ID: <1468670981.4174.89.camel@decadent.org.uk> Subject: Re: [PATCH] lib/bitmap.c: enhance map pattern From: Ben Hutchings To: Noam Camus , decot@googlers.com Cc: davem@davemloft.net, akpm@linux-foundation.org, xinhuix.pan@intel.com, linux-kernel@vger.kernel.org Date: Sat, 16 Jul 2016 13:09:41 +0100 In-Reply-To: <1468655843-13697-1-git-send-email-noamca@mellanox.com> References: <1468655843-13697-1-git-send-email-noamca@mellanox.com> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-Nz/11iO9ArP6PRQ8LP4n" X-Mailer: Evolution 3.20.3-1 Mime-Version: 1.0 X-SA-Exim-Connect-IP: 2a02:8011:400e:2:6f00:88c8:c921:d332 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-Nz/11iO9ArP6PRQ8LP4n Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, 2016-07-16 at 10:57 +0300, Noam Camus wrote: > From: Noam Camus >=20 > Today there are platforms with many CPUs (up to 4K). > Trying to boot only part of the CPUs may result in too long string. >=20 > For example lets take NPS platform that is part of arch/arc. > This platform have SMP system with 256 cores each with > 16 HW threads (SMT machine) where HW thread appears as CPU to the kernel. > In this example there is total of 4K CPUs. > When one tries to boot only part of the HW threads from each core the > string representing the map may be long... > For example if for sake of performance we decided to boot only first half > of HW threads of each core the map will look like: > 0-7,16-23,32,39,...,4080-4087 >=20 > This patch introduce new format to accommodate with such use case. > I added an optional postfix to a range of CPUs which will choose > according to given modulo the desired range of reminders i.e.: > %modulo=3D This is a fairly awful syntax, and I question whether it belongs in this generic code. [...] > + * Optionally each range can be postfixed to denote that only parts of i= t > + * should be set. The parts are the range of reminders modulo some value= . > + * i.e. range%mod=3Drem_range e.g. 0-1023%256=3D0-2 =3D=3D> 0,1,256,257,= 512,513,768,769 [...] This example seems to be wrong - did you mean '=3D0-1'? Ben. --=20 Ben Hutchings Once a job is fouled up, anything done to improve it makes it worse. --=-Nz/11iO9ArP6PRQ8LP4n Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAABCgAGBQJXiiQGAAoJEOe/yOyVhhEJLtAQAKR/jvnm30Yz4eSSWNCuUGIn K8F2or2vE2PgNNrJKNjRmHvKSie+sQgvWC+dW4NB7B+tP7ZYD74SPv0G4vr/0XTz dr/hoFmZllNmtOapscUbXua6iN8VsNbGycXcjbH7jw0hKlAeSIzoe1ucuR70v3EK JCJw6gKz4GtJc8JB7BuuPxNnZg6iWvsGlvLh0gBnW8zJsU7D08gYB33myd5XardG 1JNlx/ZeriM8OtzXHIHh8bpMt9ndHqg+ddhAQr2OF2g6nF0E7xgI/cwzc7E4jKyO GNu4Osyiym1A3j4gvAT9NUUOBAL4O3Ix4YAW72DEJyceAOci00xJor9OTM7p7K5V 4QWF6zwBXbd4LP+Xdoqz9iKf7z2mlF5Oc24fqMq/JBxivFBOFsLxKyBKAplE0oEB I/VKKk9BnKOHIBSp1RZaQfjqjWLfcohKhV8XH7//av3QxNFpz9hp7MPj1oFctlGw jBtEorM/FTnQkdNiz+k1r/kZudMqPuS+0wcKGL+r3vaBIxPgEi9/PqMaggVXDGUo MReGtcr5p8Ej7kShBjP0AWettcNQ2zfB+CSQJv+EhT4KgE97r8darNCspt2/qBXb vssALdCAqKyLWgBRq8qxh0HZWMchqeddsPEm1h68JHBRvhFYsFhMzhZAhqaG4arR 2D73+AgtFUyZeGRYmmO3 =r3QL -----END PGP SIGNATURE----- --=-Nz/11iO9ArP6PRQ8LP4n--