Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2748806rdb; Mon, 12 Feb 2024 15:45:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IEpZA+d1ry/E+HwAOZY4o1JKT5PA6Et1D9iD8vwdGMKX9cZxG8jxkvPpu2ztMxRK2YR9Dyp X-Received: by 2002:a17:90b:1914:b0:295:c105:cb78 with SMTP id mp20-20020a17090b191400b00295c105cb78mr5437600pjb.4.1707781500042; Mon, 12 Feb 2024 15:45:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707781500; cv=pass; d=google.com; s=arc-20160816; b=gWcV5uBCn0FgxTBywTB6LNcsWZb60IItoY5b40bU99aZqzulGjyBe2QTBoL93XGHCS wJaLrdjD4u3XsYzn2nIWJTDe+drIw1+All5mQHrWoMo3bcMpVWDrTu1TnwkjiByauZDu e39eENpvohluzowMhQ45kGyuVXBsaGcTKcxDOiruE32OSs2xryxEUm5y1HRRK+KMWYv/ nPuzclzWTN3FwXZIYRh2MOOh98CGs/Ixo25kfsfUA2LgUilp8rfSjXwcz8qiNh21vyiX PzYpNcNxIugeam4y+MzaySADzVn1VFFYOWvo4qt7poPMOYRgnAOEiG6OosvK5v8V15Jy h1gQ== 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:dkim-signature:date; bh=ZavUZpfe4iXVeRQFF+1YAOemYZZVmPWyKDi8FAoNTa0=; fh=vK4DW8CrdBNyspiQoOWOSkjkuhEo7bp0qAvfZ9hxiNg=; b=XtZg+s1F6BhxjbZdAidsdIaApyRhkfcdGwG/bHm7eXXcaSa6dhyFykZxf8VnWnEN2B NxU6zYcoob4q6QRBUhZr827JAlrUbFpIEkOc9PzO+svKQz+eVpjreAWlwe/aIq9p7+mv CqP+/7eV8EDGGQm14iGdNX57PGj/BCL6hOtdJSfoUhX7+rRQknEogwx8J5o2738YZ7U6 vri/07er5k+vEL/3w9q7ShPi91ea1JT0yCjPWH+faLWM1EJU8H/0hgkZbRFvDkSewEDO etp96lr4r/EHqGZfL3+mYTW5VwVPN8CydxO+9cPvn4wChBhJm8ROy2zzGSYWrBPByuBv 8y1g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=rUiMa8Qs; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-62555-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62555-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev X-Forwarded-Encrypted: i=2; AJvYcCWi2pBR8askP0M5wT5sawGsnfxNsLZ13HFzRevSVAQwehAX5XbkQdqq73Mcl2w36qEHj83iLloGCawfSg4kSd26adc4+aYiMk2NjepvFA== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id k14-20020a17090a39ce00b00290e0e74a9bsi1008891pjf.75.2024.02.12.15.44.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 15:45:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-62555-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=rUiMa8Qs; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-62555-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62555-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 593A12847C1 for ; Mon, 12 Feb 2024 23:44:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BE2F54F8A3; Mon, 12 Feb 2024 23:44:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="rUiMa8Qs" Received: from out-170.mta0.migadu.com (out-170.mta0.migadu.com [91.218.175.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BBEC04F897 for ; Mon, 12 Feb 2024 23:44:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707781476; cv=none; b=bioS7LytyfxMtl/GCCyTFKS9rd5flWj26SjHrxIpvtfPw6I+uZuRYMx+KpE+m0flCFqBBfGmdAxt54RVvJlfSMVKGl9TSCTBr8xgkbNzjn1S9LMGqD0yp2NtiASuGyLawwqiVhdZV7NZXg/5e/hV9pNlUOOHoHlpezfMmrbFvJw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707781476; c=relaxed/simple; bh=cw39m76UFq9tS5p8ZskWMb2lcc6vwhiwppLpIPjMO3Q=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Mfmb2x4BHsJVkCHw+4uRxt9jUI+f2m/uCaUnGPaTGh5CGyhZUaeSJwVX5fWPMCE+7DxRNM2BvHKA3P6sDH10WgKvQ4RAujmhRl3VXWRStoBEqJIqmrNaR6Zy3lyzde1nZq4KjZidvKuMlkI47TdaasF9VSLGIsMzjCiChjsbGW8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=rUiMa8Qs; arc=none smtp.client-ip=91.218.175.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Date: Mon, 12 Feb 2024 15:44:19 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1707781472; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ZavUZpfe4iXVeRQFF+1YAOemYZZVmPWyKDi8FAoNTa0=; b=rUiMa8QsnFQtpiR5C1+Uh/5PkvOSlnbxRtk2SQk/Z8VQaTr2nGOj+Kf6LQkivTtOFVviOx GtgnjamJJ3OTOqokx2EVRawtG0F5T88rRMMmwZRO8BLNIPMXRuYGO00y68upFxf8CSktjH smPhG3fjddzVZacfdEptan3ZSePE3uY= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Oliver Upton To: Easwar Hariharan Cc: Catalin Marinas , Will Deacon , Jonathan Corbet , Marc Zyngier , Andre Przywara , Rob Herring , Zenghui Yu , Mark Rutland , "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> 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: <20240212232909.2276378-1-eahariha@linux.microsoft.com> X-Migadu-Flow: FLOW_OUT Hi Easwar, On Mon, Feb 12, 2024 at 11:29:06PM +0000, 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. Can you comment at all on where one might find this MIDR? That is, does your hypervisor report the native MIDR of the implementation or does it repaint it as an Arm Neoverse N2 (0x410FD490)? > 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. -- Thanks, Oliver