Received: by 10.213.65.68 with SMTP id h4csp2114620imn; Sun, 8 Apr 2018 20:04:57 -0700 (PDT) X-Google-Smtp-Source: AIpwx48/7LcA8f8Ys1NQ/lDMiKeSIhr0USdIyY9aFmVEA6QnCw4v0rQuQznEJtCFg3bn5qajQNiF X-Received: by 10.99.126.92 with SMTP id o28mr13821019pgn.50.1523243097500; Sun, 08 Apr 2018 20:04:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523243097; cv=none; d=google.com; s=arc-20160816; b=EZ1Ow1tvqdMftlPPoX6WCOBq9p7RGZ7XuRvLyKaOtVZ0Bu3eD9GdsIu6ASTkg9fTK+ AiwB+48fRwSlC03eQXIcSg7GS5qEKPAzgJJt8QbyX7CQ5rBhSIlW4RQykNHgoMsIquCt 1G/oR1UNB4Xwje+yOoNDe8wfLL2mFv9kKpMML336rdarOnFh+AXJw82FILys+YG3XOll Lk7rs0DracquvPFVADOwXuRUaoYXuU6OOmj6Ieh2oKM08LzxvkDoGGIkiW8P4PcVcfXh hmJtHYSkP2UsCJh6TbDcRZ7HXLGt6FtXuIcbMTxxgGibI6jDO5298tD7W3GNtCPyXm0r Gndg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=jlOrgaBwJHv4ger84Xtq5fixr0gtR0eHmcwMpmziERk=; b=tmM0ulYCViPYt6GDwduLPLHexiaSQAypC5Q9sNPTuvw38Omhod7mlRXMnxcBzNcUOQ 3COavt0CErcXLdSUSyjT6Diq8uyJLA7IO9FQcOlKmybYTqCokkcU10osCL2q9I+aP1LN dIK1bdWS2fksN+pRjsX9H5T0nFI7+vFt27ke5HvU73xlNr0xZ/usmdXeG1Kk4429lDwW hRYMLxPUu8FRw9wvdqhMW7H20Z8Uo+nd/JKVq2U9RpLel9uNuwc0O+63MY6XtoP3VfXF 5lPlmGwpWIV2elM85zZzpmuE5tIoYHfQn5E00E5LXMaXnxPA8UcF+ZNuLa74MDUpALuB +grg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=oo0brOBH; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z2si10462908pgz.328.2018.04.08.20.04.20; Sun, 08 Apr 2018 20:04:57 -0700 (PDT) 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; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=oo0brOBH; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932743AbeDIAhG (ORCPT + 99 others); Sun, 8 Apr 2018 20:37:06 -0400 Received: from mail-sn1nam02on0113.outbound.protection.outlook.com ([104.47.36.113]:53303 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932682AbeDIAhD (ORCPT ); Sun, 8 Apr 2018 20:37:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=jlOrgaBwJHv4ger84Xtq5fixr0gtR0eHmcwMpmziERk=; b=oo0brOBH4s1NHkQlGA4B7hd3dcO9ktuuG+2zh7VcEzKI/ATwIwUcwxmqvPVYjRDVrHyR2DCNNb/wG1SMF+nFkR6CAhwjV9jszVyXTIiMqDAULxFjgyJGQNWGZfmX7H+OxaGK2kiJmdkkXanPnx8w3LsDbaz/db2WiH97MqwmeHo= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB0885.namprd21.prod.outlook.com (52.132.132.154) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.696.0; Mon, 9 Apr 2018 00:36:58 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059%2]) with mapi id 15.20.0696.003; Mon, 9 Apr 2018 00:36:58 +0000 From: Sasha Levin To: "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: Michael Neuling , Michael Ellerman , Sasha Levin Subject: [PATCH AUTOSEL for 4.4 075/162] powerpc: Fix /proc/cpuinfo revision for POWER9 DD2 Thread-Topic: [PATCH AUTOSEL for 4.4 075/162] powerpc: Fix /proc/cpuinfo revision for POWER9 DD2 Thread-Index: AQHTz5m0Y5JR5QKmJk67UVhmcMYXCw== Date: Mon, 9 Apr 2018 00:28:38 +0000 Message-ID: <20180409002738.163941-75-alexander.levin@microsoft.com> References: <20180409002738.163941-1-alexander.levin@microsoft.com> In-Reply-To: <20180409002738.163941-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR2101MB0885;7:Uaza0B8h9ZxSUtg+gqFfYI+OaQGfAdqYjZhLetZJg2FdifjcP39Lw599j7/m82XKzdP6ysYg1MvgynNkhZd9ZUYUabWHjhvx8wD4ljlIKBVvJ9l+ZZ4HlEsP5YfX2XV+u9RAoReVav6TcgCMRf6aRGL/H/mYtNm4D09dWKcwYfvISOnB/8Ye2j7a+UCN6W4OZ+lrQgg5sOo1UJ081/5U+U9O8Sw5i6wcLOcLwVkXEfvYaWzg9RlXl5bAPgG430O4;20:F6RlYJeLtp/j7pgF0YVYb5+osW3zWbGe9zEgW7kKEMYmAqKS9NL9EpSDphajnGNPyK5oAPgo1lxWYlrpXfHuFQuUhNDrj0i8J1XsmGcCU8BXsy6UYjvm6LXf8qi0O3P8/zITY7kG0snb3/7qmGCNC+fgShbeNGb5+RT2B6O9l2I= x-ms-office365-filtering-ht: Tenant X-MS-Office365-Filtering-Correlation-Id: 93961f7a-1c76-4b16-387a-08d59db200e2 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB0885; x-ms-traffictypediagnostic: DM5PR2101MB0885: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(3231221)(944501327)(52105095)(3002001)(10201501046)(6055026)(61426038)(61427038)(6041310)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(20161123560045)(6072148)(201708071742011);SRVR:DM5PR2101MB0885;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB0885; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39380400002)(396003)(376002)(39860400002)(366004)(346002)(199004)(189003)(66066001)(575784001)(3846002)(6116002)(86362001)(305945005)(10290500003)(6436002)(5250100002)(3280700002)(10090500001)(3660700001)(6506007)(2501003)(107886003)(446003)(53936002)(11346002)(2616005)(26005)(76176011)(7736002)(478600001)(476003)(81156014)(25786009)(8676002)(81166006)(186003)(8936002)(4326008)(97736004)(102836004)(99286004)(14454004)(36756003)(6512007)(316002)(2906002)(22452003)(68736007)(54906003)(110136005)(486006)(6486002)(6666003)(5660300001)(2900100001)(1076002)(72206003)(86612001)(105586002)(106356001)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB0885;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: LMiyOcvXcJvLg36dTSJ0GwwPwIl/tC0tGDaT7OxelctiWyNN1O5dBdBNLQTUjDwxGhKAbNBfYBoMFVB5aKyY4Knyqk4cXSvQcf4dOW9pF4kLq81+6nJR5AhroDE7HTyI1FyoTbsrxCRo4dvgI/rsjUOK25d/z5Kds2Tmx3iYyHgCNWlAN8t3nvE3cjYzNMZslBJK64dmih2YJBXjFNc0Q2q5tpVZxZVXWkTrUFTxEU7A8nhQpbuMC9F6znS7XE0N/T9hcMyfqXPmDp19GiYYC+aw7hApJq9ySWS4Hxl/bqRegg8/DLiJWgeQZRnq7RApDf/Cb9t2W7qV6/wLJtXTzWoozhwUj/zXLPQu/SZIDtf8yltpAy7uqGDU2aBeq847Exah7X4twDC72fRT1cFoAX0WOcJnSL0v6Sr/WP9bM1o= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 93961f7a-1c76-4b16-387a-08d59db200e2 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:28:38.6458 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB0885 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Michael Neuling [ Upstream commit 64ebb9a208c6e66316329a6d9101815d1ee06fa9 ] The P9 PVR bits 12-15 don't indicate a revision but instead different chip configurations. From BookIV we have: Bits Configuration 0 : Scale out 12 cores 1 : Scale out 24 cores 2 : Scale up 12 cores 3 : Scale up 24 cores DD1 doesn't use this but DD2 does. Linux will mostly use the "Scale out 24 core" configuration (ie. SMT4 not SMT8) which results in a PVR of 0x004e1200. The reported revision in /proc/cpuinfo is hence reported incorrectly as "18.0". This patch fixes this to mask off only the relevant bits for the major revision (ie. bits 8-11) for POWER9. Signed-off-by: Michael Neuling Signed-off-by: Michael Ellerman Signed-off-by: Sasha Levin --- arch/powerpc/kernel/setup-common.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/powerpc/kernel/setup-common.c b/arch/powerpc/kernel/setup= -common.c index 44c8d03558ac..aa25af44a971 100644 --- a/arch/powerpc/kernel/setup-common.c +++ b/arch/powerpc/kernel/setup-common.c @@ -310,6 +310,10 @@ static int show_cpuinfo(struct seq_file *m, void *v) maj =3D ((pvr >> 8) & 0xFF) - 1; min =3D pvr & 0xFF; break; + case 0x004e: /* POWER9 bits 12-15 give chip type */ + maj =3D (pvr >> 8) & 0x0F; + min =3D pvr & 0xFF; + break; default: maj =3D (pvr >> 8) & 0xFF; min =3D pvr & 0xFF; --=20 2.15.1