Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp503621rdh; Wed, 14 Feb 2024 03:33:49 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVbSDgWE8JTXAw8/vT9hx/7Zk0fKAKUaGM6Rx+8rjhh66JrGKsFUTmebM++sft7WkyMPsjkwL06E1/TArGl8gc7jGwHwz62qHfk48F5lQ== X-Google-Smtp-Source: AGHT+IG29gcyA99ENkPKmECBcq1FDoiz3JIJTdz+zFeN97RFJrufIy0ZCFwNqDk+7KVxb0yFn1OZ X-Received: by 2002:a17:90a:520b:b0:297:285e:9cc2 with SMTP id v11-20020a17090a520b00b00297285e9cc2mr2213832pjh.23.1707910429712; Wed, 14 Feb 2024 03:33:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707910429; cv=pass; d=google.com; s=arc-20160816; b=Q2uqX7BeXilaQL+slsXcXMY9mwtLsOQWokOhhVMsfx3P73nIKjKzPKb4GFG+8A3KTy 4GIAPpDOfB7xyXpB6TbZBamQVp5s4R0GwUlZ96lw02Jvhbt+DBKeuFYPIHjCCcAm1I7t qQdYWr2Hsf24Tt04Dz08ILa9np4T1FlmCOrLAZt+yTFvs0Ee8SCnDN7egmlMWkYGmjpJ Rjc0t+HHps1rJ5hs5SVqej/n480gIahuZ/IzSCTqtYQ06D5IltQKB+N7rfapHqFLca4q yTu4PrrISPpISp398y0vl3fJg1LwpgfxjbXG/wMfodyg0dO1jYFpeVRW/g9EtoYWBD+E INVw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=1bSPeOVVCxIhpXg6Pkrye3lURBSZ7/XK6lHVQ68y03g=; fh=vTIddvYWUwBxGRZ/3gsxu20Kpk7b19cmaXWRwrc86WE=; b=KdoEiznfhZySAwYwAMvrg0mUm7S93S6SguhLQ8zfJJ4lBx/hPxJLeyO+SA27jvgDE9 imgkAxOKHgJBOIm90I71UYo+p2aQqPC9+qpVLrCQJh1h8SopG427yUO6CnhFv8SS5ka7 tHCdgEhB0UlRMqjQG+lsHw6ZFqqJk+3T3w1ihHosP4qP3WzkEe9ZM+45RvjZgr+heXiK o3PbENF2YtfgZl/YaQC685i8s8G7vX0nBt/NV8SOMjfFOKyIVS1hK+tFXt6ug/zEPjJd MyZrpGJ5E8VFZ7nFgGvnb3YO13LxYaKLJSNj8gDKG7llVKA5gMClwdXSoJcfovzoUuw8 IK0w==; 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-65103-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65103-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com X-Forwarded-Encrypted: i=2; AJvYcCXjunigsRp9LkJG/WS9M1lHQCc3x3AnJV5yZdWGI7V5dNJxdpqIhOp2nkuSnTv63uKDOASikZfUWRFqPDejHg9JoT8sto5zWTK6uj53Aw== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id o25-20020a639219000000b005dc7e784005si3422605pgd.517.2024.02.14.03.33.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 03:33:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-65103-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; 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-65103-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65103-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 78FC5B23262 for ; Wed, 14 Feb 2024 11:11:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 092421946C; Wed, 14 Feb 2024 11:11:26 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8BF1F18E28; Wed, 14 Feb 2024 11:11:23 +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=1707909085; cv=none; b=OPfil/lJ7dRJ94XHc5fbqCT11vhnaIT8+ty9yCty6MVv1DY4EUQZ685AbVC9v2k7mEam6/lY4MQRD3OK3GO4SMINVsURjlhkLqbxxZDZHOn8hHttDsKG9tZBj1x5zDevNxDz0hZIbz7FBZ0W064lBZvCRDBhzVUAR5FC6TtN7WU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707909085; c=relaxed/simple; bh=HsZd4cCR70HE0iyjlUKYCOohLKrz8PN3AKztuMP3OWc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=la3AL3Czfumqllwr7wFA3ndGh8aHuM7sbAlnyVsZ73KiZxHx3y5/4NFSn3gMPJ9xUNmOqMU4TCHyP1dqIEJHZ6BauqPJPv+L4VpbPMSyPctXnqRP8Sz1Q4SBMCmU96zfshqH3iv+fC4eVzYjBfBkEw+nCmJ3iAHaz31HCsVmnPk= 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 EC7D61FB; Wed, 14 Feb 2024 03:12:03 -0800 (PST) Received: from FVFF77S0Q05N (unknown [10.57.64.145]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 957893F766; Wed, 14 Feb 2024 03:11:20 -0800 (PST) Date: Wed, 14 Feb 2024 11:11:14 +0000 From: Mark Rutland To: Easwar Hariharan Cc: Oliver Upton , Catalin Marinas , Will Deacon , Jonathan Corbet , Marc Zyngier , Andre Przywara , Rob Herring , Zenghui Yu , "moderated list:ARM64 PORT (AARCH64 ARCHITECTURE)" , "open list:DOCUMENTATION" , open list , Anshuman Khandual , stable@vger.kernel.org Subject: Re: [PATCH] arm64: Subscribe Microsoft Azure Cobalt 100 to ARM Neoverse N2 errata Message-ID: References: <20240212232909.2276378-1-eahariha@linux.microsoft.com> <18b3ac3e-2bfc-4fce-9be4-3e75e487f9fc@linux.microsoft.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <18b3ac3e-2bfc-4fce-9be4-3e75e487f9fc@linux.microsoft.com> On Tue, Feb 13, 2024 at 04:19:08PM -0800, Easwar Hariharan wrote: > >> diff --git a/arch/arm64/include/asm/cputype.h b/arch/arm64/include/asm/cputype.h > >> index 7c7493cb571f..a632a7514e55 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 MSFT_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, MSFT_CPU_PART_AZURE_COBALT_100) > > > > nitpick: consistently use the abbreviated 'MSFT' for all the definitions > > you're adding. > > I was rather hoping to use Microsoft throughout, but I chose MSFT for the CPU_PART* to align columns > with the other defines. :) If consistency is of a higher priority than column alignment, I can change it > to MICROSOFT rather than MSFT throughout. Consistency across the definitions is more important than alignmen; please choose either "MSFT" or "MICROSOFT" and use that consistently. Mark.