From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E5980C54E65 for ; Thu, 22 May 2025 09:15:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:To: Subject:CC:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=y722VncYElUTA6vQ00EEqYG+E7ju50WM3iEh7tzsAZU=; b=PgCJgo++V1qf4l6HeW2/Qy+GV/ H24XOLtF9g4e1Y1hi180/zq7/e3MrQP1YnlV+ome0CLVfusSqTDgfUMTk7u9Vn9NYCFZJ0NrH3CE0 CvI00Cq6KaVg8l9GgOXGizxF0+C/CvHLy/HAnOeU7wSp0/XGFkdiQJ9jnDP2Rph/lGKfE33LVCm8p LeLAv7VCI1YOLEufqVtUP6uNE5b0WCdRLtQZG8lmhtwZdfJdQCHpnCaPCYNbbZ5vpyXzxYC11k1tW qJBJCh2kJrgGb8MF8+pXY0cLnW2A0Mmm1VQL+8VicNB8RpnBuo2DkOGhXHPqdOl9CeNP9qDmbDfxu PQEdgthw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uI21i-00000000Rw4-0gvz; Thu, 22 May 2025 09:15:46 +0000 Received: from szxga06-in.huawei.com ([45.249.212.32]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1uI1zd-00000000RXI-44Ni for linux-arm-kernel@lists.infradead.org; Thu, 22 May 2025 09:13:39 +0000 Received: from mail.maildlp.com (unknown [172.19.88.214]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4b32fc2DcVz27hvX; Thu, 22 May 2025 17:14:16 +0800 (CST) Received: from dggemv705-chm.china.huawei.com (unknown [10.3.19.32]) by mail.maildlp.com (Postfix) with ESMTPS id 7495F1A016C; Thu, 22 May 2025 17:13:27 +0800 (CST) Received: from kwepemq200018.china.huawei.com (7.202.195.108) by dggemv705-chm.china.huawei.com (10.3.19.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Thu, 22 May 2025 17:13:27 +0800 Received: from [10.67.121.177] (10.67.121.177) by kwepemq200018.china.huawei.com (7.202.195.108) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Thu, 22 May 2025 17:13:26 +0800 CC: , , , , , , , , , , , , , , , , , , , Subject: Re: [PATCH v2 1/3] arm64: cputype: Add cputype definition for HIP12 To: , References: <20250425033845.57671-1-yangyicong@huawei.com> <20250425033845.57671-2-yangyicong@huawei.com> From: Yicong Yang Message-ID: <557c852c-3c21-130f-c096-2d09052e04ef@huawei.com> Date: Thu, 22 May 2025 17:13:25 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.5.1 MIME-Version: 1.0 In-Reply-To: <20250425033845.57671-2-yangyicong@huawei.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.121.177] X-ClientProxiedBy: kwepems200002.china.huawei.com (7.221.188.68) To kwepemq200018.china.huawei.com (7.202.195.108) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250522_021338_165232_848CFACE X-CRM114-Status: GOOD ( 12.23 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Catalin and Will, would you mind taking this kernel change? we'll add this in the userspace tools' cputype.h and this patch is aimed to synchronize the update in the kernel. Thanks. On 2025/4/25 11:38, Yicong Yang wrote: > From: Yicong Yang > > Add MIDR encoding for HiSilicon HIP12 which is used on HiSilicon > HIP12 SoCs. > > Signed-off-by: Yicong Yang > --- > arch/arm64/include/asm/cputype.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/arm64/include/asm/cputype.h b/arch/arm64/include/asm/cputype.h > index d1cc0571798b..36c5bbfbb6e9 100644 > --- a/arch/arm64/include/asm/cputype.h > +++ b/arch/arm64/include/asm/cputype.h > @@ -133,6 +133,7 @@ > > #define HISI_CPU_PART_TSV110 0xD01 > #define HISI_CPU_PART_HIP09 0xD02 > +#define HISI_CPU_PART_HIP12 0xD06 > > #define APPLE_CPU_PART_M1_ICESTORM 0x022 > #define APPLE_CPU_PART_M1_FIRESTORM 0x023 > @@ -220,6 +221,7 @@ > #define MIDR_FUJITSU_A64FX MIDR_CPU_MODEL(ARM_CPU_IMP_FUJITSU, FUJITSU_CPU_PART_A64FX) > #define MIDR_HISI_TSV110 MIDR_CPU_MODEL(ARM_CPU_IMP_HISI, HISI_CPU_PART_TSV110) > #define MIDR_HISI_HIP09 MIDR_CPU_MODEL(ARM_CPU_IMP_HISI, HISI_CPU_PART_HIP09) > +#define MIDR_HISI_HIP12 MIDR_CPU_MODEL(ARM_CPU_IMP_HISI, HISI_CPU_PART_HIP12) > #define MIDR_APPLE_M1_ICESTORM MIDR_CPU_MODEL(ARM_CPU_IMP_APPLE, APPLE_CPU_PART_M1_ICESTORM) > #define MIDR_APPLE_M1_FIRESTORM MIDR_CPU_MODEL(ARM_CPU_IMP_APPLE, APPLE_CPU_PART_M1_FIRESTORM) > #define MIDR_APPLE_M1_ICESTORM_PRO MIDR_CPU_MODEL(ARM_CPU_IMP_APPLE, APPLE_CPU_PART_M1_ICESTORM_PRO) >