Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp917660rdh; Fri, 24 Nov 2023 00:40:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IG7jHQ7GlfSZG1gDRVWc/a77Rnj8RMz2pxDaLK+ryVW1edoedJQc7xV9izVJa5upLuOJkD7 X-Received: by 2002:a05:6a20:918e:b0:188:28e:5a75 with SMTP id v14-20020a056a20918e00b00188028e5a75mr2193262pzd.5.1700815226649; Fri, 24 Nov 2023 00:40:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700815226; cv=none; d=google.com; s=arc-20160816; b=KZ+BgtsTg5IeSqg7b3smivdu239Dis6tRxS7GCI5Mw7ldflnsxf+dred/xsq31d15G B3/cpMRq+ZrXYwWjwlpUTLG5uAV9OwUf8y+JG7gwgQqap1KUsYvL+t65r86VY+c5RwwN w/thsgjqcHCJQ3RQgYMkCNPSXQreeIib4KSebHTRxeaoYsU4q6sNwMLqWPiEjXFd7uRg Zs06iFA4Rv827urTPxR6+4g1ThF96FAC/GqChHZqMQUpAeRxFU1Iu98V22jt8yzyOyRT uK2fdLmZg5zwq6taD9O/BsLVCX9Q+pLJ4SlgVHxEYZfLOaFUtp4SkNlJt16LkFCbZ6Ny /MIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :in-reply-to:from:cc:content-language:references:to:subject :user-agent:mime-version:date:message-id; bh=lvnhmxwAJNmoesfoM2QhzUr5qV4Aa1DCWEGtMdsdtJ0=; fh=nPTjGfr+b/naKMw2/z04KKhrLVek0Ig+OrJEywZGikk=; b=rKi4YLdLNqYnATYBFOYugpxouoTwLsRuCAVtlyHqgRIDYByQHbUoZhY6AW/LX52zU+ lg2xjHOyP/yuYLpBalIO7/aRGY+oidhfNf41w4bc/bVnKNTIpFLt0Klu/HKfSBSif5kZ wlfDUaAcVnvQIct9oAH6ZvUXTnJcxS+ofwzP8HW4U0q2ERrGWsBFbQCG7aKOS8EP0UKQ oDmF/yCxYH8/kNN0ZAbappp5MvHb6ayVi11fSZEz/Ot0n0sLqGwz8VuBlANzTjWdQxsM v+ma4FozIWxk1k5x5ovp43ARnWThrMArJ/27qiRBaQJPErSAC13wyI2qNGYaoenEtbgI pUgw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=shingroup.cn Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id z8-20020a63e108000000b005b8ee1c0c6bsi3140096pgh.408.2023.11.24.00.40.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 00:40:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=shingroup.cn Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id C0D5F8056921; Fri, 24 Nov 2023 00:40:23 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344795AbjKXIkF (ORCPT + 99 others); Fri, 24 Nov 2023 03:40:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229518AbjKXIkD (ORCPT ); Fri, 24 Nov 2023 03:40:03 -0500 Received: from smtpbgsg2.qq.com (smtpbgsg2.qq.com [54.254.200.128]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF7B091; Fri, 24 Nov 2023 00:40:07 -0800 (PST) X-QQ-mid: bizesmtp75t1700815181tn312kbv Received: from [127.0.0.1] ( [125.94.202.196]) by bizesmtp.qq.com (ESMTP) with id ; Fri, 24 Nov 2023 16:39:39 +0800 (CST) X-QQ-SSF: 01400000000000B0B000000A0000000 X-QQ-FEAT: 7YFKcddXagjsJLt4wZABMUUDAYXCRnXo8g21GUIbQbqARChcnMawpeCfxN5Fh FAL082/zTRzsvaYPmnb+ltvg7D100sX+qcklM2YJd+L8vMbcjpY9OqL2eOqhW1p8Cvdc6+S n3X0wLAhgXvnScdmZmMjoMswETTFn/mVftkuT6WEGmZxAeP176I2oNHLa56qSaBNY2zkPnV LG/ekKJr+W8uKDUe2TsrZtHezH3aWd6GKL0a1CrjhNx7iIrqc9e/TJPwUWvJ+S/sGB+QBnN +VOvetNSVcAibP8cry0np7W6aAPaNzNIzGK3LUZ0PIax9d30jQgBbSUxYORpDCQMzSpElHf oBn4V0aQ3rzyd4jviheIVNYpbQbGapXJhrdHfQNsxs4A+bcu9hddYlMiC3/u3vCkz4UNtbs 2bdxPaOa/uyDJUbaeEZ7rw== X-QQ-GoodBg: 2 X-BIZMAIL-ID: 14761653264302342047 Message-ID: Date: Fri, 24 Nov 2023 16:39:39 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1] powerpc: Add PVN support for HeXin C2000 processor To: Michael Ellerman , gregkh@linuxfoundation.org References: <20231123093611.98313-1-ke.zhao@shingroup.cn> <2023112317-ebook-dreamless-0cfe@gregkh> <871qcgspf8.fsf@mail.lhotse> Content-Language: en-US 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 From: =?UTF-8?B?WmhhbyBLZSDotbUg5Y+v?= In-Reply-To: <871qcgspf8.fsf@mail.lhotse> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:shingroup.cn:qybglogicsvrsz:qybglogicsvrsz3a-0 X-Spam-Status: No, score=0.8 required=5.0 tests=FORGED_MUA_MOZILLA, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.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 (pete.vger.email [0.0.0.0]); Fri, 24 Nov 2023 00:40:23 -0800 (PST) Hi Michael and Greg, On 2023/11/23 19:02, Michael Ellerman wrote: > 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. Yes. This is what I mean. If you prefer to sort in another order, please tell me and I will update this. > > PVR_BE is out of place, I'll fix that. > > cheers >