[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <F19DC40ACB796694+78dfb71e-a2db-473d-a9fc-fa35c5e61a27@shingroup.cn>
Date: Fri, 24 Nov 2023 16:39:39 +0800
From: Zhao Ke 赵 可 <ke.zhao@...ngroup.cn>
To: Michael Ellerman <mpe@...erman.id.au>, gregkh@...uxfoundation.org
Cc: npiggin@...il.com, christophe.leroy@...roup.eu,
fbarrat@...ux.ibm.com, ajd@...ux.ibm.com, arnd@...db.de,
linuxppc-dev@...ts.ozlabs.org, linux-kernel@...r.kernel.org,
kvm@...r.kernel.org, shenghui.qu@...ngroup.cn,
luming.yu@...ngroup.cn, dawei.li@...ngroup.cn
Subject: Re: [PATCH v1] powerpc: Add PVN support for HeXin C2000 processor
Hi Michael and Greg,
On 2023/11/23 19:02, Michael Ellerman wrote:
> Greg KH <gregkh@...uxfoundation.org> 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 <ke.zhao@...ngroup.cn>
>>> 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
>
Powered by blists - more mailing lists