Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp280802rdb; Wed, 14 Feb 2024 22:52:57 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUk+qnRRSDlMAuOqCH5Ck6zteZHzh72mqMf8dOxMNxJdv7JnJ+2TKPBghmm7qRVTB49YDgT0snNmROmAkRfaCNZAh1soiD8e6b177hTag== X-Google-Smtp-Source: AGHT+IHQlmivldr7gIbizEEfU82ig6Qzw9Rg+FpHzFWp+Oa7JL2DGs0pa2ClYn4FbaOJxzT01/Z/ X-Received: by 2002:a0c:e3c9:0:b0:68e:f6c3:dc14 with SMTP id e9-20020a0ce3c9000000b0068ef6c3dc14mr1195954qvl.19.1707979977061; Wed, 14 Feb 2024 22:52:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707979977; cv=pass; d=google.com; s=arc-20160816; b=N/h98aoxyD6ov+onzaas+oBWjenmIHueerq8wKKNQoMM3UX4iBVEE7grvs/qKH79Si 8E15pW+pGQ49Da/DFd9+IgoEalPrXc/w9VgWQQiZS+RgSg+/ZnYW4U/Bzzl8TTqD2P71 VlEDN6n+rqzqr9QSd0KSoARgdwr2yOHUSKFBhe1GHwaaXMwiMSuGQS00Bp6c3hsfOuht T5qATpDI04jMDVwBWWuRLTJjSx27T16RZg+uxLob4V1CU/vw99iH+/HWRdLVej4bxDu2 zNjhfgvIdxxh+ECg3BCLVzs6edtgOvLSyuRabVFxh5vxYWUk+CfQA+IHnvVxHx3CUc+0 4ArA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=zX12neA6ZS4eAXuJjSEsFW/T38V1pKWA1hVIdmCOFhY=; fh=QjiaQGjY8OY5bnxmzvgMXVO7ECZUax18COV2mreB5Qg=; b=lgi9QaRxagt1hv3a7+bwtKLBVdfIaiTQy3Fq6O25t2iRV2h2L8vM6GE7vg1/Wp3ZjS 7PV6vFECxqWjLTHzTl5Jq+3Jxe+eCTfvBevXi+ap7aH2rK9Mx/mkwbKGeBoxz67oxaeL c1biVKaflKjpE9pxSu2kkCtQ1hZ5vkb8tk1BhhMNWD2Uk6DQ12q9k1+aHw7JGZr4wV0/ KT4jSfZenl8iN4hiYvalgkfd7RqSJXjA6PjOMR16ieof1fPkOggg1Rz5XS8+4O8GAW5h BwHZFoo8xaB5QlyJhjONPDo0Fom9sIPAwnoIX2GXiPRiECtKPeAqDKX0jG3u7m+fUzeM G5wg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-66341-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66341-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id im14-20020a056214246e00b0068cbf78a4aasi820254qvb.310.2024.02.14.22.52.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 22:52:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-66341-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-66341-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66341-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id CBAAA1C2A4C8 for ; Thu, 15 Feb 2024 06:52:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 69430D272; Thu, 15 Feb 2024 06:52:48 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EC3B3610E; Thu, 15 Feb 2024 06:52:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707979967; cv=none; b=mmT72zro99T9H25BEsQffnKZsxaLbKeOzNAZPbBfZbsqhRNM8FURxcLID/I3kwRUCPRy6VxLgtZhBjsdqhA5YDsNYyR9jteH8XYEDSw7rBbsY6AmnivCUnmGt9mCoImMjhzLVtgPszeMyQcBHXIGIUwHZtYhHexdqrzUPD+JwHw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707979967; c=relaxed/simple; bh=lqq0taqmcNIuQaq8UADhDYoMCTBiSEprBakyBLG4bBE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Sm7oLHZQnAMrX/t+/DQCvSGj44YCBw24SvCjlwhsCXXlplKuw9ws8uKEDtjndNOy/7DvfQVLX5DbCmEVvMFZ4HG9NgbJ4y2K51lYvhSfQSONYkwatv3D/4yzqY+3Ft9BuAqcw4ex9lnWagoAD68BPDMWcx+0p6jvcPoH+s4N8a4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id AA6DD1FB; Wed, 14 Feb 2024 22:53:23 -0800 (PST) Received: from [10.163.45.45] (unknown [10.163.45.45]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 8DDA23F766; Wed, 14 Feb 2024 22:52:38 -0800 (PST) Message-ID: <32e59978-fbf3-4612-bfd0-03807ef2abb0@arm.com> Date: Thu, 15 Feb 2024 12:22:36 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] arm64: Subscribe Microsoft Azure Cobalt 100 to ARM Neoverse N2 errata Content-Language: en-US To: Easwar Hariharan , Catalin Marinas , Will Deacon , Jonathan Corbet , Marc Zyngier , Rob Herring , Andre Przywara , Mark Rutland , Oliver Upton , "moderated list:ARM64 PORT (AARCH64 ARCHITECTURE)" , "open list:DOCUMENTATION" , open list Cc: stable@vger.kernel.org References: <20240214175522.2457857-1-eahariha@linux.microsoft.com> From: Anshuman Khandual In-Reply-To: <20240214175522.2457857-1-eahariha@linux.microsoft.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 2/14/24 23:25, Easwar Hariharan wrote: > Add the MIDR value of Microsoft Azure Cobalt 100, which is a Microsoft > implemented CPU based on r0p0 of the ARM Neoverse N2 CPU, and therefore > suffers from all the same errata. > > CC: stable@vger.kernel.org # 5.15+ > Signed-off-by: Easwar Hariharan Reviewed-by: Anshuman Khandual > --- > changelog: > v1->v2: > * v1: https://lore.kernel.org/linux-arm-kernel/20240212232909.2276378-1-eahariha@linux.microsoft.com/T/#u > * Consistently use MICROSOFT throughout > --- > Documentation/arch/arm64/silicon-errata.rst | 7 +++++++ > arch/arm64/include/asm/cputype.h | 4 ++++ > arch/arm64/kernel/cpu_errata.c | 3 +++ > 3 files changed, 14 insertions(+) > > diff --git a/Documentation/arch/arm64/silicon-errata.rst b/Documentation/arch/arm64/silicon-errata.rst > index e8c2ce1f9df6..45a7f4932fe0 100644 > --- a/Documentation/arch/arm64/silicon-errata.rst > +++ b/Documentation/arch/arm64/silicon-errata.rst > @@ -243,3 +243,10 @@ stable kernels. > +----------------+-----------------+-----------------+-----------------------------+ > | ASR | ASR8601 | #8601001 | N/A | > +----------------+-----------------+-----------------+-----------------------------+ > ++----------------+-----------------+-----------------+-----------------------------+ > +| Microsoft | Azure Cobalt 100| #2139208 | ARM64_ERRATUM_2139208 | > ++----------------+-----------------+-----------------+-----------------------------+ > +| Microsoft | Azure Cobalt 100| #2067961 | ARM64_ERRATUM_2067961 | > ++----------------+-----------------+-----------------+-----------------------------+ > +| Microsoft | Azure Cobalt 100| #2253138 | ARM64_ERRATUM_2253138 | > ++----------------+-----------------+-----------------+-----------------------------+ > diff --git a/arch/arm64/include/asm/cputype.h b/arch/arm64/include/asm/cputype.h > index 7c7493cb571f..52f076afeb96 100644 > --- a/arch/arm64/include/asm/cputype.h > +++ b/arch/arm64/include/asm/cputype.h > @@ -61,6 +61,7 @@ > #define ARM_CPU_IMP_HISI 0x48 > #define ARM_CPU_IMP_APPLE 0x61 > #define ARM_CPU_IMP_AMPERE 0xC0 > +#define ARM_CPU_IMP_MICROSOFT 0x6D > > #define ARM_CPU_PART_AEM_V8 0xD0F > #define ARM_CPU_PART_FOUNDATION 0xD00 > @@ -135,6 +136,8 @@ > > #define AMPERE_CPU_PART_AMPERE1 0xAC3 > > +#define MICROSOFT_CPU_PART_AZURE_COBALT_100 0xD49 /* Based on r0p0 of ARM Neoverse N2 */ > + > #define MIDR_CORTEX_A53 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_A53) > #define MIDR_CORTEX_A57 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_A57) > #define MIDR_CORTEX_A72 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_A72) > @@ -193,6 +196,7 @@ > #define MIDR_APPLE_M2_BLIZZARD_MAX MIDR_CPU_MODEL(ARM_CPU_IMP_APPLE, APPLE_CPU_PART_M2_BLIZZARD_MAX) > #define MIDR_APPLE_M2_AVALANCHE_MAX MIDR_CPU_MODEL(ARM_CPU_IMP_APPLE, APPLE_CPU_PART_M2_AVALANCHE_MAX) > #define MIDR_AMPERE1 MIDR_CPU_MODEL(ARM_CPU_IMP_AMPERE, AMPERE_CPU_PART_AMPERE1) > +#define MIDR_MICROSOFT_AZURE_COBALT_100 MIDR_CPU_MODEL(ARM_CPU_IMP_MICROSOFT, MICROSOFT_CPU_PART_AZURE_COBALT_100) > > /* Fujitsu Erratum 010001 affects A64FX 1.0 and 1.1, (v0r0 and v1r0) */ > #define MIDR_FUJITSU_ERRATUM_010001 MIDR_FUJITSU_A64FX > diff --git a/arch/arm64/kernel/cpu_errata.c b/arch/arm64/kernel/cpu_errata.c > index 967c7c7a4e7d..76b8dd37092a 100644 > --- a/arch/arm64/kernel/cpu_errata.c > +++ b/arch/arm64/kernel/cpu_errata.c > @@ -374,6 +374,7 @@ static const struct midr_range erratum_1463225[] = { > static const struct midr_range trbe_overwrite_fill_mode_cpus[] = { > #ifdef CONFIG_ARM64_ERRATUM_2139208 > MIDR_ALL_VERSIONS(MIDR_NEOVERSE_N2), > + MIDR_ALL_VERSIONS(MIDR_MICROSOFT_AZURE_COBALT_100), > #endif > #ifdef CONFIG_ARM64_ERRATUM_2119858 > MIDR_ALL_VERSIONS(MIDR_CORTEX_A710), > @@ -387,6 +388,7 @@ static const struct midr_range trbe_overwrite_fill_mode_cpus[] = { > static const struct midr_range tsb_flush_fail_cpus[] = { > #ifdef CONFIG_ARM64_ERRATUM_2067961 > MIDR_ALL_VERSIONS(MIDR_NEOVERSE_N2), > + MIDR_ALL_VERSIONS(MIDR_MICROSOFT_AZURE_COBALT_100), > #endif > #ifdef CONFIG_ARM64_ERRATUM_2054223 > MIDR_ALL_VERSIONS(MIDR_CORTEX_A710), > @@ -399,6 +401,7 @@ static const struct midr_range tsb_flush_fail_cpus[] = { > static struct midr_range trbe_write_out_of_range_cpus[] = { > #ifdef CONFIG_ARM64_ERRATUM_2253138 > MIDR_ALL_VERSIONS(MIDR_NEOVERSE_N2), > + MIDR_ALL_VERSIONS(MIDR_MICROSOFT_AZURE_COBALT_100), > #endif > #ifdef CONFIG_ARM64_ERRATUM_2224489 > MIDR_ALL_VERSIONS(MIDR_CORTEX_A710),