Received: by 10.213.65.68 with SMTP id h4csp2113894imn; Sun, 8 Apr 2018 20:03:59 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/2uqWWmnOaNmWuZqEHnI+MHbWXuypwW1g4kfMOl/mmWG3uEL9b3Pz6bV+9XnHVLdJN2E8m X-Received: by 10.98.141.78 with SMTP id z75mr27912869pfd.174.1523243038927; Sun, 08 Apr 2018 20:03:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523243038; cv=none; d=google.com; s=arc-20160816; b=rMLnUCKzhAdSFGTIZXFWThUELVv69g2E/56ur2KMEueHeaFaz4AGmUmtEcRUct7lWn Js+8rDey2YNNyMaVi0wGKxQ5QVW43H4Gt9vOf/sNvgEi76mi8aZWJo9Buvb8rfNBkSEp V4RNhtMYQohxXjbrwI8iPy6fkzYYuP9oWwKqD/VZ7a6OTFsv4L1bbmOLE0ViruOtNQlb fe91+sAm4Ubk+SB52JrHrVQAaW4oLyv2NHKx5ED741k7hNhniq4eNE51eCxrZY8ikGwa +vverMLwJMPUMev1o2DMe7ir1rFjJQE/lbBG9XF9C1JXEbptC10HeHjP998n1GPMVagd n8vQ== 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=YbjxocVPs9oD4Ep9oO9gr1v2MfZhOHHU4bgXL/00JGc=; b=WbOnCZ4/PsXK8q26dHpzoGojjKQEkElHxQLQAKtmk8UX5pJlA5UPi7IE0w2V9uwk3Y YdeUYSDrrJiHFNqYPPaBi/VUq+E+mEEv/LVjHWf5DncOm0QPdMZgOnMELej1B9SgJNor SSbT8eum5Az38iPRbj1oNLwsrhcAbtRnSv+0L2tdncYJITztfe919DkeaS2LK9kONoPc +Pl2DDd0NfWq8Q2tJKqsE3/foUUeVoP4N058oYa9vNb0WvqIE+Ga+jQjqEEYlKk7wzvw Fv/ja4cfsiHWGj0vnj76MmyyWJHLeNwCraUaONYmGMREFF423WJw7J+ShSqxpTbIY0JI aLWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=Uz+w58mY; 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 b9-v6si8245802plb.160.2018.04.08.20.03.22; Sun, 08 Apr 2018 20:03:58 -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=Uz+w58mY; 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 S1756147AbeDIAap (ORCPT + 99 others); Sun, 8 Apr 2018 20:30:45 -0400 Received: from mail-dm3nam03on0104.outbound.protection.outlook.com ([104.47.41.104]:17478 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755318AbeDIAai (ORCPT ); Sun, 8 Apr 2018 20:30:38 -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=YbjxocVPs9oD4Ep9oO9gr1v2MfZhOHHU4bgXL/00JGc=; b=Uz+w58mYMUxpu5Naro6s1WeuuX3iRb4OhV0HdtIBAnTBqXfNJRfPZgBC1uTrqw7is1ASUpStP3WQHHT/0e5UWcf1b2f5pjp3Zf2t2lsFMCpkfbL26GCiI1ZCbLko8UV/poqZcVsmm6jOzpZSh8YapK9Lwxe+W5if6R9eo5K61yY= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB0807.namprd21.prod.outlook.com (10.167.110.154) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.696.3; Mon, 9 Apr 2018 00:30:33 +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:30:33 +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.9 149/293] powerpc: Fix /proc/cpuinfo revision for POWER9 DD2 Thread-Topic: [PATCH AUTOSEL for 4.9 149/293] powerpc: Fix /proc/cpuinfo revision for POWER9 DD2 Thread-Index: AQHTz5kstkOxvEBRfE2Gm8ySPf7jUg== Date: Mon, 9 Apr 2018 00:24:50 +0000 Message-ID: <20180409002239.163177-149-alexander.levin@microsoft.com> References: <20180409002239.163177-1-alexander.levin@microsoft.com> In-Reply-To: <20180409002239.163177-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;DM5PR2101MB0807;7:OPCdhs9X0BQv7YLut6ycq8wI1dkhEJBJuZBkSn/mdfUbtId17TtSJBG/oC6/NgKh5gaIGr1GWE9NG3Yq9QhsX5bpKQWeyyYu2wJY8JwzdOsa2k0V9TGNm5mPmjbbpx+VNHE8QSW3dR1i6XqTXYJIHMLE/6Td5plsAGWURlpz/eK88j6DHrlq0o0rQ6n4HoY2hG73GmCWwLPwKPYSrGZHC4KlXs28/xk+BBDXNc2h+I+2lAy1rlrUPGhgToTFvRGZ;20:dckChLgwgl1f7a+JKP7qh2uUjDk06ZjxgtNHtX8DIBYceM9koJIyJp81IUmfCniBxvHNfZUoz3FRwp2yyy8M2IM1PMSu7FHVKObogiaHTM3RHdDZpi/gYAjSxTut5cS4qJQf6X8Bjz+jxNrO8zypAFfEbmkUyuUnGJcVUu0YTkA= x-ms-office365-filtering-ht: Tenant X-MS-Office365-Filtering-Correlation-Id: 88b99fc5-26fb-4572-a21b-08d59db11b2a x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB0807; x-ms-traffictypediagnostic: DM5PR2101MB0807: 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)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3231221)(944501327)(52105095)(3002001)(6055026)(61426038)(61427038)(6041310)(20161123562045)(20161123558120)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:DM5PR2101MB0807;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB0807; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39380400002)(39860400002)(396003)(366004)(376002)(346002)(199004)(189003)(14454004)(4326008)(54906003)(25786009)(53936002)(2900100001)(1076002)(3280700002)(6486002)(186003)(2616005)(68736007)(110136005)(11346002)(10090500001)(6116002)(107886003)(3846002)(36756003)(8676002)(72206003)(22452003)(66066001)(26005)(6512007)(478600001)(3660700001)(81156014)(86362001)(81166006)(86612001)(7736002)(305945005)(8936002)(10290500003)(6436002)(105586002)(6666003)(316002)(575784001)(76176011)(5660300001)(476003)(106356001)(2906002)(6506007)(446003)(2501003)(99286004)(5250100002)(486006)(102836004)(97736004)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB0807;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: lUIuORH2QcbSJcZMnZwzHXcOT4VcuqWjYtxXgXMNEEsz2iwzQWB4aXWpcXb46b/cKQnB3VQ4SD17CC6PzWn/RVxhUU+ha10EQR7KVioOKDpedegOFLu4hkm6XnhQ3W37Fjj4diZjBRHbCVDfbIJV0Imv1JAzHPWMqDkyssgAPMYuZJBrJ/Zpl16O7885pxDP+WwckS1Kzswv4eyrpoXKfJEAdPBgwe67CHMSvg4YA4blRs4J+KVJhoTOJyAipyBaxQzmdsMX31KS1u3bLIYIBHJ/Pxp8K2r8PMnv+c+bg1jZgdq5l1b39fo66Ht2ArMK7Lh8aex5dsf+QNmIu+TlKkQHW8/An+FvmNK7axNb82wGwZieuqcaje5/fuPgO/b6DbN9sk//74m28J6lP8jT9D1cTq+XZwkmkC9RvuLlizc= 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: 88b99fc5-26fb-4572-a21b-08d59db11b2a X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:24:50.0188 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB0807 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 f516ac508ae3..319a886b1098 100644 --- a/arch/powerpc/kernel/setup-common.c +++ b/arch/powerpc/kernel/setup-common.c @@ -321,6 +321,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