Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp868991rdb; Fri, 9 Feb 2024 03:55:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IEf1tcAElyO7nxctNGOZK1ecabPPGD1V7IyA1goYfwhrtFMf3UuHEHXzUM3OekL+odOuyoj X-Received: by 2002:a05:6a21:3416:b0:19e:31dd:3ac2 with SMTP id yn22-20020a056a21341600b0019e31dd3ac2mr1340711pzb.10.1707479709820; Fri, 09 Feb 2024 03:55:09 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWqoHAU5wp+ABOzLaQbvlvDq3DgqO4i5G/oGO+kMCiamnU6IwdIx9CJM3qlPe6g3fpKzt3IM8ZxikFF531bbISVm8asQImYRydAj92Alg== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id f3-20020a17090274c300b001d91cb55574si1481962plt.383.2024.02.09.03.55.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 03:55:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-59296-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=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-59296-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59296-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 A7C60B21E2E for ; Fri, 9 Feb 2024 11:34:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3AFE62E40F; Fri, 9 Feb 2024 11:34:03 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 182CE2E3F1 for ; Fri, 9 Feb 2024 11:33:56 +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=1707478442; cv=none; b=cNHdwWskCmqSc6QzWiux2krqc74NXZ/uIXY1p2PeT5tieCq57US4VwGBSmT9CtUgz6CcaP1EWd4Y1Vc8eS/D7cn/2+RNyfRZDXaW5WFKBAwBcjLHnQ0Oz2SiU16WSkEPs+RZoM16VZBwCmxJckcyq722HRYnBzvwNmmI1aD04Ho= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707478442; c=relaxed/simple; bh=PSKKtV965YJulHFsXWn3UaKzi2QezX4LHDe2jIKgaig=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=DDqjI7Khl7NH1qRZga5leM4BGbduZmfrVzmlaLQHfUzXcA3wi1Y9GiUb3Sm0remm/PhtTr1n3JKEOozNTrN7pY8T4vEaWV/+ui5CqaC5+0c0XIn5vd8OOErE7ZgvdxboNJVrocsRF86tsehjWlUkJiRlq9tSwIY327UVuDXmqzA= 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 B3494DA7; Fri, 9 Feb 2024 03:34:38 -0800 (PST) Received: from FVFF77S0Q05N.cambridge.arm.com (FVFF77S0Q05N.cambridge.arm.com [10.1.31.163]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 8F42F3F762; Fri, 9 Feb 2024 03:33:54 -0800 (PST) Date: Fri, 9 Feb 2024 11:33:51 +0000 From: Mark Rutland To: Easwar Hariharan Cc: Catalin Marinas , Will Deacon , Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Zenghui Yu , Andre Przywara , Rob Herring , Fuad Tabba , Joey Gouly , Kristina Martsenko , "moderated list:ARM64 PORT (AARCH64 ARCHITECTURE)" , open list , "open list:KERNEL VIRTUAL MACHINE FOR ARM64 (KVM/arm64)" Subject: Re: [RFC PATCH] KVM: arm64: Override Microsoft Azure Cobalt 100 MIDR value with ARM Neoverse N2 Message-ID: References: <20240206195819.1146693-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: On Thu, Feb 08, 2024 at 11:16:10AM -0800, Easwar Hariharan wrote: > On 2/7/2024 1:49 AM, Mark Rutland wrote: > > On Tue, Feb 06, 2024 at 07:58:16PM +0000, Easwar Hariharan wrote: > > Further, if Azure Cobalt 100 is based on ARM Neoverse N2, you presumably suffer > > from the same errata; can you comment on that at all? e.g. are there any > > changes in this part that *might* lead to differences in errata and/or > > workarounds? How do the MIDR_EL1.{Variant,Revision} values compare to that of > > Neoverse N2? > > Yes, Azure Cobalt 100 suffers from the same errata as Neoverse N2. We had changes > in the implementation, but according to our hardware folks, the Neoverse N2 errata > we are affected by so far aren't affected by the changes made for Azure Cobalt 100. Ok, so of the currently-known-and-mitigated errata, you'll be affected by: ARM64_ERRATUM_2139208 ARM64_ERRATUM_2067961 ARM64_ERRATUM_2253138 .. and we'll need to extend the midr_range lists for those errata to cover Azure Cobalt 100. From your patch, it looks like the Azure Cobalt 100 MIDR value (0x6D0FD490) is the same as the Arm Neoverse-N2 r0p0 MIDR value (0x410FD490), except the 'Implementer' field is 0x6D ('m' in ASCII) rather than 0x41 ('A' in ASCII). Are you happy to send a patch extending arch/arm64/include/asm/cputype.h with the relevant ARM_CPU_IMP_* and CPU_PART_* definitions, and use those to extend the midr_range lists for those errata? As above, if you could make any comment on how the MIDR_EL1.{Variant,Revision} fields map to that of Arm Neoverse-N2, it would be very helpful. It's not clear to me whether those fields correspond directly (and so this part is based on r0p0), or whether you have a different scheme for revision numbers. That'll matter for correctly matching any future errata and/or future revisions of Azure Cobalt 100. Mark.