Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp1124732rdb; Fri, 9 Feb 2024 10:59:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IGNpMjmtR4tV8HZwjLl/4sjaXNNfVjqKM2jNcK3DA6APScccyQfmiXjv9UTck7jWd2QLnUw X-Received: by 2002:a17:902:b783:b0:1d8:ebdf:183a with SMTP id e3-20020a170902b78300b001d8ebdf183amr158570pls.6.1707505193377; Fri, 09 Feb 2024 10:59:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707505193; cv=pass; d=google.com; s=arc-20160816; b=AQ8DEu1+U+Idiznsx4jnR+QpdbZkkAs74eDluJDG3DfGUuuXp9s4WvfGrAn/gRwkpr b9NHUgM7l9++jwzEGXM1LGGJkr8tGcnzzxszUx60MdhTa11nrboEZj5KY3lupsxZ4k7X Lr6Vm97F07qJWM88rOuer/w8gxT5whG8UFOF0oFMrlFNlKg4P5uf7Tqyukacx191FCff sE3bMG2KfwKlIakhVDMT1PXhIy9A98Xfu2hjweZhm5StIjuVwMxpqneqIOfnQnDCLRjj gvXuth9H8xOKJ9Bb2rd1V94dKDY/gw34siw9Y+5Rw4oWeAzh+GyDe49xKgvgumZi2ZiY b6CA== 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:dkim-signature :dkim-filter; bh=CrUcm3Z/FRbdc3NNdp4+dNbyUDn4m5ZmrpvJXh/X+7I=; fh=iK5to4qj9Ss5Uxrn1fFwkCTlbwOmjF/NhTtkYnH7kRI=; b=SELEOmtKj8q90dhSBMFF6ZH3B626l6RHUgbYUmTJ6goqSqnIO3gXiT7rBRiGwQQfh7 cfFAG9sptj26FEJ6fSvsbHrf6d15qDrp4bnDssL82KUZakxRZdY4NCuag8raIA9lN5y/ HGPvrKj1oncfEB/Z+MQRk5K4QYRJq+1T+P2Om3YSxjl+FErxV49BDbPBacDLsZld+UvX t4YKbBg/ocJ+AY/JCu4iPKH8Zmh/W9SAZoJxFjccdzDWe2FAbHr7MRt/wl0zYT8NrReW gdZeO86XM/h1oa0komP/51ND6ledzfeP76RL10m6iTaL75IOxdqzrsEkDdtNp4d9Tdac NjnQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=LMsKF6Xg; 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-59848-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59848-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; AJvYcCU4h2hnHDvXVNbQfv0yXfQe5tetqQ5HGubIc4KVuTIwmJBloyDlmhZcxVzej5sykfk0Ytnn+14reAgpnsWJ4932VYvDDHCpA+jThCkB/g== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id im22-20020a170902bb1600b001d73a2acc14si2017080plb.558.2024.02.09.10.59.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 10:59:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-59848-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.microsoft.com header.s=default header.b=LMsKF6Xg; 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-59848-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59848-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 D6801283172 for ; Fri, 9 Feb 2024 18:58:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D0B4680C1B; Fri, 9 Feb 2024 18:58:40 +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="LMsKF6Xg" Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9BFE66BB22 for ; Fri, 9 Feb 2024 18:58:38 +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=1707505120; cv=none; b=Tr5bA9WsMA+BdmUfnnOJsxIjOxxlpxHAkXwmvYCC35jYjxDnN10Kx0r1NeLpqLXB1exhx4PFS+amNfq1V7eNJXbHvxV0F5eXsPtlhlbHw7DyFuCWqi7EQ8r7tT3GjjbDDjohSTL5mMxdTmt4aam+40BlrkG2nTa9O0h1E/TpD5w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707505120; c=relaxed/simple; bh=5uTKkg6MIbxxiUTeAtoiPotgK0/CeWUJqQ48BeNPQrQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=N/iA/p0PINxs2MnUpMezQyMjLYoMyUYgECWRO1Xc8vkFo7MJdwtd/ZAgUzsETCvmur/MnZXMJMRQi2AscDmdPVeZeN99o1nQHPDjg4q1yWI28q3t+EsjZHCtdhG0hjf30pFK7HEOAOyaJGU00p5u0d23VYyjvzBL5FfiOzUe2Pg= 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=LMsKF6Xg; 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.200.159] (unknown [20.29.225.195]) by linux.microsoft.com (Postfix) with ESMTPSA id CFD3120B2000; Fri, 9 Feb 2024 10:58:37 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com CFD3120B2000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1707505118; bh=CrUcm3Z/FRbdc3NNdp4+dNbyUDn4m5ZmrpvJXh/X+7I=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=LMsKF6Xg4IguZ6h/+LUCdvTxe+8L5lh3t0xuDRZLKvtC0AP7N1wxM4ptXb4DI/XuP aiV6j60Ssdr3XgW8medIOPGkp3cyUAS394lMmfjlCfXQ5UOhcVOEfcQkClfP2gTUuJ 1cSFPJJ9aaUrvpZ7zJYWu72PyDBf/fwyc8gG8bMQ= Message-ID: <542e7f15-3898-4396-a8ff-7972d3308132@linux.microsoft.com> Date: Fri, 9 Feb 2024 10:58:36 -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 Subject: Re: [RFC PATCH] KVM: arm64: Override Microsoft Azure Cobalt 100 MIDR value with ARM Neoverse N2 Content-Language: en-US To: Mark Rutland 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)" References: <20240206195819.1146693-1-eahariha@linux.microsoft.com> From: Easwar Hariharan In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 2/9/2024 3:33 AM, Mark Rutland wrote: > 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? Yes. > > 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. > Thanks for the clarifying detail on your question. Azure Cobalt 100 is indeed based on r0p0 of the Neoverse N-2 and we have not used a different scheme than Neoverse N2 for the Variant and Revision fields. > Mark. > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel