Received: by 10.223.164.202 with SMTP id h10csp143909wrb; Thu, 9 Nov 2017 04:11:34 -0800 (PST) X-Google-Smtp-Source: ABhQp+S9i5+9WtIxBkkDMi9gKEIqH1zCdCDumDhdO1gJJDA5rBKhQRvuYXD3E/VAEzpBR33RngOv X-Received: by 10.99.127.78 with SMTP id p14mr289098pgn.176.1510229494623; Thu, 09 Nov 2017 04:11:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510229494; cv=none; d=google.com; s=arc-20160816; b=hBe1Hm/9/goXuXw/xpRF/GxYf7edMPfkWaRGEo0T/iP3p14/cFqAVRG4cu/NsG+H4I MMgTnmef9gi7fm3wBdUOxUxpn8YOm4zHcNcBEdK7uslrQklsCj7O8ugTL0r2YI6mwDNj JDEV0G/Ymc3hpvDzLhmKi7eTfA+AsvRKOVmvYxxWku8q+GJ2UznAMI7BzNWVqw92+eZ7 V2uIHgch+/q4AvEToh3Ap+BO8Vwc2B9LHIK485VxLl+qaDaZ/Lb4zKI8JBK6W6BN6c+8 UtxbY9QXfxu93YvzSFxf44jxvll0oIaeWaBcMaSTJ//dnSq7cojQBJ38skEIOMJP7qTS r5lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=Mv5u+9QoxOuNu2C7yEu/8SxdCg2v9l9HrX8b0BefYTU=; b=c9gyKrd+cMXeVM4Qnv4CiNVNTDzOH1tga22IEcVCQMe0HcaO3BMv23UZa0Q+b/6WmE FWGh4m62rnKIW/zrBlkmKlf8/Zambcw4MD6vadhOExOJ5a+lg30mv4rHbNvDAfw1xJq1 fuFNj7KBwmCaaheU6DUrifgN8s1JZsgU4Vi5M7iP/zHo+vA2Dvv5uMvxgnG82MEz29Qh RXxRuQ5omKWXcmxZj7PPwCmhDnpDVuaXwaVTuGggEHfeclFs4uiV9egkkXNUYuI3MktI qaJ/rULpOpuIdX2MYY6DnKvBF4SVD02cyujz0LD8i0Bq0XBeJQq2kITDI4yIln/O5SlX iTiQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y10si2381763pln.138.2017.11.09.04.11.23; Thu, 09 Nov 2017 04:11:34 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754228AbdKIMKf (ORCPT + 81 others); Thu, 9 Nov 2017 07:10:35 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:46810 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751338AbdKIMKe (ORCPT ); Thu, 9 Nov 2017 07:10:34 -0500 Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id vA9C96iZ059791 for ; Thu, 9 Nov 2017 07:10:33 -0500 Received: from e06smtp10.uk.ibm.com (e06smtp10.uk.ibm.com [195.75.94.106]) by mx0b-001b2d01.pphosted.com with ESMTP id 2e4mvjwte3-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Thu, 09 Nov 2017 07:10:33 -0500 Received: from localhost by e06smtp10.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 9 Nov 2017 12:10:32 -0000 Received: from b06cxnps4075.portsmouth.uk.ibm.com (9.149.109.197) by e06smtp10.uk.ibm.com (192.168.101.140) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 9 Nov 2017 12:10:29 -0000 Received: from d06av24.portsmouth.uk.ibm.com (d06av24.portsmouth.uk.ibm.com [9.149.105.60]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id vA9CATU634865326; Thu, 9 Nov 2017 12:10:29 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 59DA242049; Thu, 9 Nov 2017 12:05:31 +0000 (GMT) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1B39442047; Thu, 9 Nov 2017 12:05:30 +0000 (GMT) Received: from xenial-xerus.in.ibm.com (unknown [9.195.36.106]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTP; Thu, 9 Nov 2017 12:05:29 +0000 (GMT) From: Anju T Sudhakar To: mpe@ellerman.id.au Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, maddy@linux.vnet.ibm.com, anju@linux.vnet.ibm.com Subject: [PATCH] powerpc/powernv: Fix IMC_MAX_PMU macro Date: Thu, 9 Nov 2017 17:40:26 +0530 X-Mailer: git-send-email 2.7.4 X-TM-AS-GCONF: 00 x-cbid: 17110912-0040-0000-0000-000003EC65E3 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17110912-0041-0000-0000-000025EF0895 Message-Id: <1510229426-5547-1-git-send-email-anju@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-11-09_04:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1707230000 definitions=main-1711090173 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org IMC_MAX_PMU is used for static storage (per_nest_pmu_arr) which holds nest pmu information. Current value for the macro is 32 based on the initial number of nest pmu units supported by the nest microcode. Currently 29 nest units are enabled based on the system configuration. But going forward, microcode could support more nest units (max of 64 nest units). Hence fix the value for the macro. Fixes:8f95faaac56c1 ('powerpc/powernv: Detect and create IMC device') Signed-off-by: Anju T Sudhakar --- arch/powerpc/include/asm/imc-pmu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/include/asm/imc-pmu.h b/arch/powerpc/include/asm/imc-pmu.h index 7f74c28..f9f0f2e 100644 --- a/arch/powerpc/include/asm/imc-pmu.h +++ b/arch/powerpc/include/asm/imc-pmu.h @@ -23,7 +23,7 @@ /* * For static allocation of some of the structures. */ -#define IMC_MAX_PMUS 32 +#define IMC_MAX_PMUS 64 /* * Compatibility macros for IMC devices -- 2.7.4 From 1583399738880030237@xxx Tue Nov 07 09:41:03 +0000 2017 X-GM-THRID: 1583399738880030237 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread