Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp249087rdh; Thu, 23 Nov 2023 03:03:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IFzoZam/8PlYBBqPuDRAk9Oivvyy8cpRAFR3hd8MwrA45foVmJH69xmtMzzZex1zRxYue9d X-Received: by 2002:a17:90b:4c87:b0:282:ec92:3752 with SMTP id my7-20020a17090b4c8700b00282ec923752mr5470438pjb.8.1700737395029; Thu, 23 Nov 2023 03:03:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700737395; cv=none; d=google.com; s=arc-20160816; b=n9cgMZZ4gEaYS6tSHSWo3WvQuwzM4390wlkmsNoX8kIwcDdwRHonBLjWpzp37M4hCx f0WW5mgAfgtGo7D5ftiuldwfmJ63mepST6UDFbm8VW62QXie7ttdDGYCZovzirZIH/Bv DlOE1iFLjC3OdZGKYRxXP9yS1M20pxUVHa3DZbGcZPPzm8xYjFWiFUxhWhAAPLDzrbA2 6ZLS1qFGdbHWDQeORmY0CDyLdeh8qxO+ZwRWpc3oGweIi0J58fX3VHlW/af9cdSM+DbR Idar3zge2SBavHaIm8mzvx5Kvlh7AL/CtUBQuuJiwnrOfwbKWGhcgXYL2c9uhQAbxjrA XQIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=uqbk3lyeqSjwPRhuNVxLOm4uc+e6PUbNsNGKGUbeIeg=; fh=zTYj5PRNPJSYKun04T4Ie3og0fugt5BZ0XxDO7oLbrk=; b=v4d3GE6am3c4hs26ymdY6wYkQYadIP7+0LZzoJYzY69EOxMwYM9AJOToy8Eed6G/Gk +m7DLPrS4FvrJQqal5Jd8NS6FMl+b2EY9Wt3Ms9vrxIU54C1CX8TQnWY13qte8SvwU9D ULmCLaJguWk1Q9P+cTLKSmOlkCP48p1yceckwaFA6wXS+LFwA0H6UJU+lNZ6VPaV6/3N LCGQGkNfPODdsZA/4oel1cfdyKoasbfZepj2Lqf3MKvdMYdSsNZqtbCYlkISf+QFi6VL smzBnPZr9Lwf20Kb6263WeWBXf9MT09UNHDBL9ZOTIYFwuN791pTP66X9ITUubRVFp/2 AyIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=iyceZfyQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id k32-20020a634b60000000b005bd335981e2si1048872pgl.678.2023.11.23.03.03.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 03:03:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=iyceZfyQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 54D708260C12; Thu, 23 Nov 2023 03:03:12 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229542AbjKWLC4 (ORCPT + 99 others); Thu, 23 Nov 2023 06:02:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235229AbjKWLCw (ORCPT ); Thu, 23 Nov 2023 06:02:52 -0500 Received: from gandalf.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C6C6D67; Thu, 23 Nov 2023 03:02:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ellerman.id.au; s=201909; t=1700737362; bh=uqbk3lyeqSjwPRhuNVxLOm4uc+e6PUbNsNGKGUbeIeg=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=iyceZfyQVViQ82WYOcVcZ3y8up/cjELd3RnGCnxCtDVEh/Zdegj+Tdx+Q6R9CdMR2 ufdh6WYHbLsidP6MHaX27LNzygxAa4UQG3lxH0RJrtLXsxNggd3NFS67DNAra/5yzJ KtKZLWiLvuPFOaEQkqAZPXsfRceh7q/qS5GjjygijnLUR8AJgn++JFpcba1aH+Lp4x Kvgnz9wzcGN5Jff6NgAhZ/Gn2c1ZnP34y/764x88gSJC9YFj4o9kPHjN2KmXTmrpow HxbkjRbzEXlnzxSSvNVHJFxcL8aZ1mW9BoNz0iKYg0a1gnQBAoJv0ivTtNGxXgXByd 0dtv+xpjv7WHA== Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4SbZvh2jNPz4xRn; Thu, 23 Nov 2023 22:02:40 +1100 (AEDT) From: Michael Ellerman To: Greg KH , Zhao Ke Cc: npiggin@gmail.com, christophe.leroy@csgroup.eu, fbarrat@linux.ibm.com, ajd@linux.ibm.com, arnd@arndb.de, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, shenghui.qu@shingroup.cn, luming.yu@shingroup.cn, dawei.li@shingroup.cn Subject: Re: [PATCH v1] powerpc: Add PVN support for HeXin C2000 processor In-Reply-To: <2023112317-ebook-dreamless-0cfe@gregkh> References: <20231123093611.98313-1-ke.zhao@shingroup.cn> <2023112317-ebook-dreamless-0cfe@gregkh> Date: Thu, 23 Nov 2023 22:02:35 +1100 Message-ID: <871qcgspf8.fsf@mail.lhotse> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Thu, 23 Nov 2023 03:03:12 -0800 (PST) Greg KH writes: > On Thu, Nov 23, 2023 at 05:36:11PM +0800, Zhao Ke wrote: >> HeXin Tech Co. has applied for a new PVN from the OpenPower Community >> for its new processor C2000. The OpenPower has assigned a new PVN >> and this newly assigned PVN is 0x0066, add pvr register related >> support for this PVN. >> >> Signed-off-by: Zhao Ke >> Link: https://discuss.openpower.foundation/t/how-to-get-a-new-pvr-for-processors-follow-power-isa/477/10 >> --- >> v0 -> v1: >> - Fix .cpu_name with the correct description >> --- >> --- >> arch/powerpc/include/asm/reg.h | 1 + >> arch/powerpc/kernel/cpu_specs_book3s_64.h | 15 +++++++++++++++ >> arch/powerpc/kvm/book3s_pr.c | 1 + >> arch/powerpc/mm/book3s64/pkeys.c | 3 ++- >> arch/powerpc/platforms/powernv/subcore.c | 3 ++- >> drivers/misc/cxl/cxl.h | 3 ++- >> 6 files changed, 23 insertions(+), 3 deletions(-) >> >> diff --git a/arch/powerpc/include/asm/reg.h b/arch/powerpc/include/asm/reg.h >> index 4ae4ab9090a2..7fd09f25452d 100644 >> --- a/arch/powerpc/include/asm/reg.h >> +++ b/arch/powerpc/include/asm/reg.h >> @@ -1361,6 +1361,7 @@ >> #define PVR_POWER8E 0x004B >> #define PVR_POWER8NVL 0x004C >> #define PVR_POWER8 0x004D >> +#define PVR_HX_C2000 0x0066 >> #define PVR_POWER9 0x004E >> #define PVR_POWER10 0x0080 >> #define PVR_BE 0x0070 > > Why is this not in sorted order? It's semantically sorted :D ie. HX_C2000 is most similar to POWER8, but is newer than it. PVR_BE is out of place, I'll fix that. cheers