Message ID | 1476876303-18768-1-git-send-email-noamca@mellanox.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2001:1868:205::9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3szV4g6mScz9s9x for <incoming@patchwork.ozlabs.org>; Wed, 19 Oct 2016 22:26:11 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=Mellanox.com header.i=@Mellanox.com header.b=r+Wrd0Qe; dkim-atps=neutral Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bwp0b-0007dm-P6; Wed, 19 Oct 2016 11:26:09 +0000 Received: from mail-ve1eur01on0085.outbound.protection.outlook.com ([104.47.1.85] helo=EUR01-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bwp0Y-0007Zz-V3 for linux-snps-arc@lists.infradead.org; Wed, 19 Oct 2016 11:26:08 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=d4QagR2P9LGSo7fZgnnSS/ySzQIoKTVo8iSDV86+f1U=; b=r+Wrd0QeBmJPR0LfaAk4MlU2FIRsLaeTiuWw7rWRp0AXgdNbFQDZ/hNCuI7EXstS1YAO5TUDcwGLjVv7sHTwI4SVjKAqcRJHw6y9lXKkoRWy4N398ZlSyK7Eth38UZgE0u3xoCR3FysKderFaDomqAxspx/sSoISKh11dV0/Exg= Received: from AMXPR05CA0018.eurprd05.prod.outlook.com (10.242.9.146) by DB6PR0501MB2776.eurprd05.prod.outlook.com (10.172.226.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.659.11; Wed, 19 Oct 2016 11:25:43 +0000 Received: from AM1FFO11FD031.protection.gbl (2a01:111:f400:7e00::189) by AMXPR05CA0018.outlook.office365.com (2a01:111:e400:803c::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.669.16 via Frontend Transport; Wed, 19 Oct 2016 11:25:42 +0000 Authentication-Results: spf=pass (sender IP is 193.47.165.134) smtp.mailfrom=mellanox.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=pass action=none header.from=mellanox.com; Received-SPF: Pass (protection.outlook.com: domain of mellanox.com designates 193.47.165.134 as permitted sender) receiver=protection.outlook.com; client-ip=193.47.165.134; helo=mtlcas13.mtl.com; Received: from mtlcas13.mtl.com (193.47.165.134) by AM1FFO11FD031.mail.protection.outlook.com (10.174.64.220) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.669.7 via Frontend Transport; Wed, 19 Oct 2016 11:25:42 +0000 Received: from MTLCAS13.mtl.com (10.0.8.78) by mtlcas13.mtl.com (10.0.8.78) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Wed, 19 Oct 2016 14:25:41 +0300 Received: from MTLCAS01.mtl.com (10.0.8.71) by MTLCAS13.mtl.com (10.0.8.78) with Microsoft SMTP Server (TLS) id 15.0.1178.4 via Frontend Transport; Wed, 19 Oct 2016 14:25:41 +0300 Received: from ezex10.ezchip.com (10.0.13.1) by MTLCAS01.MTL.COM (10.0.8.71) with Microsoft SMTP Server (TLS) id 14.3.301.0; Wed, 19 Oct 2016 14:25:40 +0300 Received: from localhost.localdomain (10.1.3.58) by ezex10.ezchip.com (10.1.1.4) with Microsoft SMTP Server (TLS) id 14.3.224.2; Wed, 19 Oct 2016 14:25:37 +0300 From: Noam Camus <noamca@mellanox.com> To: <vgupta@synopsys.com> Subject: [PATCH v2] ARC: Adjust cpuinfo for non-continuous cpu ids Date: Wed, 19 Oct 2016 14:25:03 +0300 Message-ID: <1476876303-18768-1-git-send-email-noamca@mellanox.com> X-Mailer: git-send-email 1.7.1 MIME-Version: 1.0 X-TM-AS-Product-Ver: SMEX-11.0.0.1191-8.000.1202-22520.000 X-TM-AS-Result: No--6.606200-8.000000-31 X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No Received-SPF: None (MTLCAS01.mtl.com: noamca@mellanox.com does not designate permitted sender hosts) X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:193.47.165.134; IPV:NLI; CTRY:IL; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(438002)(189002)(199003)(110136003)(626004)(50466002)(6666003)(86362001)(19580405001)(586003)(36756003)(47776003)(19580395003)(33646002)(77096005)(2906002)(4326007)(50986999)(5003940100001)(87936001)(6916009)(7846002)(49486002)(8936002)(81156014)(92566002)(50226002)(107886002)(356003)(189998001)(8676002)(81166006)(305945005)(229853001)(11100500001)(4001430100002)(5660300001)(106466001)(2351001)(48376002); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR0501MB2776; H:mtlcas13.mtl.com; FPR:; SPF:Pass; PTR:mail13.mellanox.com; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; AM1FFO11FD031; 1:d/QXK3OHk41buV0wspuBf+yyEna8dNChw56XmPm8mMdGnOPBdbBVP/fT3CJOhIYrYiPaIS1h9+NuTty9DKDeK1/guyNT+rSej490P5IR5c0mzS1Y3s9CnEyciCdicDIgWFyR2gdml1pLVs0vJg7nIknlyM/KpbM82WOzq8FVhtwt9CRmaGhjcOrHHCymk38w0zK+KxtowCv+b605bef8XuIbh95Kp0Ri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aiG8cePEaFuDSkG4Gl72HGlB85QE5jiGHtDGfQwXaTGZj77Z+siixhVNXui99EUvTegGvELoQleFd9TxMHXXvQlC8iiVVgnFGZsMhuOmCKg7iNejtaI6MljLfbHs+M2aEVSFT/NE6W2SiI8 X-Microsoft-Antispam-PRVS: <DB6PR0501MB2776DA2DE9610DD167E10355AAD20@DB6PR0501MB2776.eurprd05.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(5005006)(13016025)(13018025)(8121501046)(10201501046)(3002001)(6055026); SRVR:DB6PR0501MB2776; BCL:0; PCL:0; RULEID:; SRVR:DB6PR0501MB2776; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0501MB2776; 4:56Iz2XDa/g8kTq+WfgcC28SHHYp3m4EUlcLqG3HYA3MOlrWGak1gCR4hOI6JsyQxEcaziMyYj/kwHMPom/1Q9uTRaJ+vuQtLHpU0wDROLMqEANRNzzJN1Jic6GFyJBxgY6ZC63tKoH6hkBCw2Wq/9cl/U0zGjSrqBp+2uRtkfj3+51qqw4PW2tcq10TySPh5AW5b3YIb3AHISEWQGV/qp0iyxQ0Ve/vQRX8NuMIup9ErznfJb5rCRbiP7UY1u8AAc0TqTKLEo5A1Yob6HDZQBcDxtIJoVHWXhHP7mtrd3VHA6IiGhVq/ykwcEdEnxQxKOMEhC/s4AXIkhgojmhip02lfF1cYLji1EdKMtEKdpyeZxtR0QrT6vE8WmluRsk6ys+EykPadPo7GmSRI+YUSZUbPzc/xlDPWSkYNo7rKVHe06MboF7w1srJKDPcjWXIr//qbnSWGyLj59dijaQXvQQ== X-Forefront-PRVS: 0100732B76 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DB6PR0501MB2776; 23:BDqd7NHymBG/xajlXjMiDqEUHr3FsYirND7d0Ow?= =?us-ascii?Q?dn7kqKzB+tP4k9N9KcHCrwAHUAT8vFd+ZChRNv5XSc+u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qnvhKoB+70IVqAm7v6f1ehj2gi96xtK6MVvLItOsVHdWgaaOhhZJ?= =?us-ascii?Q?qvZahVwB0b+vEHc5CyEx+QU6ajPw6Laey5Kh9Uv3cFrGkACvwof9I7GZzWtI?= =?us-ascii?Q?chHH1o67bXqRub7QPN52JHMQiCywXkLEl1J56AUddXktJmPasCg=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; DB6PR0501MB2776; 6:M//WbTAwFm8+EgltWHyx9CKSnxu1R/n17P0AzR2dHIcaR0cOYMuVb5MSQLxxXSJG8GSYlzr5eUTfJwPbFxPNNBhMkJPkAOJFyex7Ygd0FKChmaFu+SYLrjqkbbNyTlbfQUnU4CeJleSrsBCmrn4EL15lHmxMonxDWgPWbR5np86tOiVNoaYbmTV8F6mOKkEqw0Z3A55cezOehDlfAt5l+apQoQzBSnFiFi3S162PHvDFpQJE8F7VHWNuABizdr6MXqT33dtifKJYGlCUyFPo0ORZcpUHNkBOVP8wVvJZlNk8sTQIDLZ06v1Kg4YaVDk0+Xr2ClsRfj2n03j3E/aALQ==; 5:8M/tLP2nGEURjcGnn/YVkCYfyXCou7OE2qAAN5DP+7qgNIw+1A+qRd0rDJVq1DlS+Y92CqhsX4PLbV6veBMvVoxsQs14iuQ18OIVZPBjpGcnJWgc3Brb8aJOqnkZsBSwkxFSk/jgxwzHVVdMRAbsJBGBupbQHpMZS7kaz5pPAJc=; 24:WJkvsPpy1aC4GSZfAEEOzqFPyIJDgN8cuGr/ZuRHaiqyLbTfX8LCjKEN/wBY91JRfyqfhHs2wT+egpUjbTjV/tt30nS3DM5qJkzQpPc+TcQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DB6PR0501MB2776; 7:HZCrzBxJmgssppse5CY6EKu5LtKeG0Zwc8tAg24GXcaMU0wHg2xgMvnPShVGH9pK2YjdX7qG1p85f/3HjxsaHXgvEVg6ZzDJooq9JmhQU6wdYILfT1F3GQ5JJIKZ106DhJZ9N2zG/kJq6dBpvV52o+yq1ImrqI03e28buIdURnzeBq7yVHyBJd04G1xI8vgFPxLCdPqDLlekcomHpgcH/3VwxoTtM3tvZjc4j5wBvl7/+8hJ8eLHhON4wQnB91Qnnbpcp9UydcapkA5Tg/+dqwF/KrejjStpXNYxzDgWHLoBwZWoBt4x/psGWB2GI6MRrc9dtVgQz4ziixDUg/aFtpUqLbSzBMwRs4P3AtIn/nI= X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Oct 2016 11:25:42.4083 (UTC) X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=a652971c-7d2e-4d9b-a6a4-d149256f461b; Ip=[193.47.165.134]; Helo=[mtlcas13.mtl.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0501MB2776 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161019_042607_410098_07AE7403 X-CRM114-Status: UNSURE ( 9.73 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.0 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [104.47.1.85 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [104.47.1.85 listed in wl.mailspike.net] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Linux on Synopsys ARC Processors <linux-snps-arc.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-snps-arc>, <mailto:linux-snps-arc-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-snps-arc/> List-Post: <mailto:linux-snps-arc@lists.infradead.org> List-Help: <mailto:linux-snps-arc-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-snps-arc>, <mailto:linux-snps-arc-request@lists.infradead.org?subject=subscribe> Cc: linux-snps-arc@lists.infradead.org, Noam Camus <noamc@ezchip.com>, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-snps-arc" <linux-snps-arc-bounces@lists.infradead.org> Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org |
On 10/19/2016 04:25 AM, Noam Camus wrote: > From: Noam Camus <noamc@ezchip.com> > > num_possible_cpus() returns how many CPUs may be present on system. > However we want the highest possible CPU number. > This may be differ in a sparsed possible CPUs map. > Such map achived by OF for plat-eznps. > > For example if we have: > possible cpus mask 0,3 > > Then: > num_possible_cpus() is equal 2 > while > nr_cpu_ids is equal 4. > > Only for value 4 c_start() will provide correct cpuinfo at procfs. This is much much better. Applied to for-curr ! Thx, -Vineet > > Signed-off-by: Noam Camus <noamc@ezchip.com> > --- > arch/arc/kernel/setup.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/arch/arc/kernel/setup.c b/arch/arc/kernel/setup.c > index 64907de..bd2e3a4 100644 > --- a/arch/arc/kernel/setup.c > +++ b/arch/arc/kernel/setup.c > @@ -512,7 +512,7 @@ static void *c_start(struct seq_file *m, loff_t *pos) > * way to pass it w/o having to kmalloc/free a 2 byte string. > * Encode cpu-id as 0xFFcccc, which is decoded by show routine. > */ > - return *pos < num_possible_cpus() ? cpu_to_ptr(*pos) : NULL; > + return *pos < nr_cpu_ids ? cpu_to_ptr(*pos) : NULL; > } > > static void *c_next(struct seq_file *m, void *v, loff_t *pos)
diff --git a/arch/arc/kernel/setup.c b/arch/arc/kernel/setup.c index 64907de..bd2e3a4 100644 --- a/arch/arc/kernel/setup.c +++ b/arch/arc/kernel/setup.c @@ -512,7 +512,7 @@ static void *c_start(struct seq_file *m, loff_t *pos) * way to pass it w/o having to kmalloc/free a 2 byte string. * Encode cpu-id as 0xFFcccc, which is decoded by show routine. */ - return *pos < num_possible_cpus() ? cpu_to_ptr(*pos) : NULL; + return *pos < nr_cpu_ids ? cpu_to_ptr(*pos) : NULL; } static void *c_next(struct seq_file *m, void *v, loff_t *pos)