Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp253127rdh; Tue, 13 Feb 2024 16:19:27 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWg4tJPidS2ue94zCVLSERDAw7TN8q5U6AQG60jf7v+Xt/E0b5unzoiQVnzwRPnnl9X/egbV9tNtiJHoWBnXcZw7Ae1VrGxFZy+oJqINw== X-Google-Smtp-Source: AGHT+IHgIze8aTklGu521S0980MUnsJL5GV0X+YegOa1Y1uYHmpiJyFhlUCt+17l3k47KsTp8dZm X-Received: by 2002:a17:90a:fd01:b0:296:a13c:8f84 with SMTP id cv1-20020a17090afd0100b00296a13c8f84mr996045pjb.33.1707869966784; Tue, 13 Feb 2024 16:19:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707869966; cv=pass; d=google.com; s=arc-20160816; b=Oqp80GFxsJAwUsY+ZUoPkU4OEdjJTp8usjC0nicVPROZoX/XC2OccsAQMI8W+5GaHj I5dUEP2o+neKs7akEpZMGBr2ka/L476m5aMJgrq55Tnm8WLrpT2Ti1LXmvIsueipDAN5 ZVcNve1UHH9w5n3m5CfNpffo55AVDUbav2qdSAbTqhbQLCH1du1ZPz4xUxjH6tgTLiYa RxIIqLMVvX0450N4OqS1DzsIutFzJCWOa3YBX+i/x2nhaSKq7NcsOxUvyWeKEM/r9Xnu DwND1seTcVTwdP6909BXzq6MJlddx4Mu3kB8js2DMiq+wD9bWft77IrIFOGvjzR3VWdq M1ew== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature :dkim-filter; bh=H/WOKYyDPl6rQRUKTgqiCkym15mdTfioSDzSyvm7rqA=; fh=fNubMFMv8tYNKxsmOWbkEW8duLMGyW20ho4xieK4NwA=; b=l+Q8K/XmXlVZbRZ/FNZ4cvEOxS/4uTLJ0YqzoPz2a6A99JvKKrPIb0CGD9oN1PvEFd BlWOVpqVsHE85pn8BkIZBZkD/yRzpp5+YMCh50MnkIvLZiro4HByhgssIrc3oWg8PLTV F3BM/H1/qSVJ1KuyW3mEyv871H94cX+EwSczWM5cXuizcmm/Vu+g9kmZx+5HKJICysa8 iQqZ36oOOOmzxtI4Vrhpo4HDgX2bMvZx4arHwm1+8YqFZwGOu4/wtpfaen3z81xsnCFT 298DlGKMz9QbqNlQimYS5jJRR9nNi/7L+pu3ivgH1ywkD4Bc8P6JwZ6gLUGENjOGPIJL +5YA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=ViEHfV3o; arc=pass (i=1 spf=pass spfdomain=linux.microsoft.com dkim=pass dkdomain=linux.microsoft.com dmarc=pass fromdomain=linux.microsoft.com); spf=pass (google.com: domain of linux-kernel+bounces-64605-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64605-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com X-Forwarded-Encrypted: i=2; AJvYcCXrgl1paP+GLc4whnNORH92E0aBMPimM5DbxOxcKpU2bao12mQJxfcXUpzmywLGRGBwpZQoXXYAVWVMQo7bFsWRLa/wL5QBvwdFxSqokw== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id mi1-20020a17090b4b4100b00295dc06ddb6si179611pjb.129.2024.02.13.16.19.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 16:19:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-64605-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=ViEHfV3o; arc=pass (i=1 spf=pass spfdomain=linux.microsoft.com dkim=pass dkdomain=linux.microsoft.com dmarc=pass fromdomain=linux.microsoft.com); spf=pass (google.com: domain of linux-kernel+bounces-64605-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64605-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 697AE28779E for ; Wed, 14 Feb 2024 00:19:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BE0D8800; Wed, 14 Feb 2024 00:19:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b="ViEHfV3o" Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7FED87F; Wed, 14 Feb 2024 00:19:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=13.77.154.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707869959; cv=none; b=E05m+9gn5/BkUQFAjmlzVEmZsjkgUZ55i7GtogbCe3ieJWbdr9qsBYOT8LdNk+zK2BHdqziag8xJm+01IsDVvhamWF0t2CifRH7jJg2dBH5qAhSdVkCTMgkwFguc+0wGcscwVguF//BqFHAdEbXCAz5M6pw+XXTHTh9wxkuns0M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707869959; c=relaxed/simple; bh=QAN7hZYSM3BJP81M/eLzNlJdF60Jewpg46NuJgdpOG0=; h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:References: In-Reply-To:Content-Type; b=kt+yUnUgbs3GIQof+AU3VOWVyK1ZjL1sFvC9RFiCZhtwJA7BXoshpYNb5sj0f+XpTlxbUqzlBnIj1ttXFjmSiv8QemZnwQySxsUgK7xLMkHuQFFAjm5XiDlZzftTPonkbCjLT+vLENomaa5X4ARYPbiLQo+W6Ab7hdvgZ7jOpCw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com; spf=pass smtp.mailfrom=linux.microsoft.com; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b=ViEHfV3o; arc=none smtp.client-ip=13.77.154.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.microsoft.com Received: from [100.64.232.238] (unknown [20.29.225.195]) by linux.microsoft.com (Postfix) with ESMTPSA id 16E3E20B2000; Tue, 13 Feb 2024 16:19:10 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 16E3E20B2000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1707869951; bh=H/WOKYyDPl6rQRUKTgqiCkym15mdTfioSDzSyvm7rqA=; h=Date:From:Subject:To:Cc:References:In-Reply-To:From; b=ViEHfV3oyxygjlUGYt/LLeSl96uQs8jUhmk++Wv0C8TJztCa2gsJu2BznCSuDKBMD Y2/gocRsP3+tPKr+v1ioILaBAZgaNkFZ/7Csq8saVZ9Rnve6jLiSBiiFTH8NEc9DQP WJK+8Ydb2sCZPAKXYfMdgk3C8JBWvZjSK4I6Ar0M= Message-ID: <18b3ac3e-2bfc-4fce-9be4-3e75e487f9fc@linux.microsoft.com> Date: Tue, 13 Feb 2024 16:19:08 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Easwar Hariharan Subject: Re: [PATCH] arm64: Subscribe Microsoft Azure Cobalt 100 to ARM Neoverse N2 errata To: Oliver Upton 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 References: <20240212232909.2276378-1-eahariha@linux.microsoft.com> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 2/12/2024 3:44 PM, Oliver Upton wrote: > 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)? We will check on the Microsoft hypervisor's plans, and get back to you. Notwithstanding that, we do have baremetal use cases for Microsoft Azure Cobalt 100 as well where this MIDR value will show through. > >> 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. Thanks, Easwar