From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f179.google.com (mail-pf1-f179.google.com [209.85.210.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4E97B13D8B1 for ; Tue, 18 Nov 2025 01:45:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763430359; cv=none; b=dZH4YJZI+YELOQdjCyMpMiSutK9kvqd92g4VGeco+wf8S7i5D6STx1zE22STtrqPMzklmHEg98C380jhVZqKLXmjGY/VMnwYg3vJlE6VOQ4J0963cuM6+urSY6Iq77hD40wklh4n1RUmhKkx33dU1ygCK+riPHrJdHGwwHUBbF0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763430359; c=relaxed/simple; bh=rATIvjZWl17/yzOZ5j8ONKzwEletAb128KFIym5/z2k=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=ExMNALyUmwb/aS7DssCDTgT3lIZDkTH/6jyzZyIvZiDcszMCFAHHlEz1xKgvYeR+gUh0R8Y+WH6Ki3n1irsDxPEZWBtK967i/sZx22AQ7k7JP5l5/UezchSI0SQmXRXVgsEoqAOa4vlMErYvrkXZjiFg+1eAjD9Yszy6pdUc3Q8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=RmCzQ3UN; arc=none smtp.client-ip=209.85.210.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="RmCzQ3UN" Received: by mail-pf1-f179.google.com with SMTP id d2e1a72fcca58-7a9cdf62d31so6028983b3a.3 for ; Mon, 17 Nov 2025 17:45:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763430357; x=1764035157; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=9LVu1ftHSweMGGMS0wtdGEkaqFzhCbvStNQPyLLvshM=; b=RmCzQ3UNbHUoTi/qmlHLBxYUep3BRepMS1+GgChDYTL+MjzEId6sZttCwqGitPlaid /LE0b0TEDN00cHEXbclVR0CAyIWbZlANfVqBiRu1KCfT2mA6V/WsE6v1vUrTvCJEsugm 1TrtVoYyQhEhb0/kehvWLps7zdtrcxhvFScq6QEsnpkUn/jwAzFnzR5j1DdVwjRzzlon sJI6B61i5UJ/TRuVFfg/2/LhkNahohoX2imOlGJiqN2+nYjA7j10XUq+jsMSqN45kVHm aGFAMPZnrZV01X9Pybc75yFVXWBy1XXf1G6Hkp6xrQpjsAbiytS7tFCWRhPWozD77uMV kZ0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763430357; x=1764035157; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=9LVu1ftHSweMGGMS0wtdGEkaqFzhCbvStNQPyLLvshM=; b=Z81h2+p13CJuR9PrL9HxJLa7qCGD1/8OzUflUAj/I6ZldqGVYvmVuaxrZLwtYSnna+ QtoY0/QdnhrGnc+Vy+okG+jp42gj8jOkHnLG5QJLxmSIE+jyThl/IETghcNEbYDy58iR H3Utxe+7alzKBh0yQDQDkPVn4m0ZiwGWIiiYpizEsWFjrr71u1L3aYa+kVSTBvXapSyi Ls/3BNdZhZXebVT/CILAUCLaD3XSL3jqawu/r926ivyHVdK/UATuvqsyYINBt2unsLKn NCMFOFhjuvKvEyCxSVE+Ahg020ws+0MN3PvZGcunaK8+aXkUnjHd0Bl/BA6UwHy4Ndj9 Xw0A== X-Forwarded-Encrypted: i=1; AJvYcCW2Q7KjRLh2LTw6pQ6pPllVd2Ybt2Ind7MgKYU7nluWp6I465UJZvkddXho0g3gDunFJOzJ/kVPeIvzPmY=@vger.kernel.org X-Gm-Message-State: AOJu0Yw82ev2oqigM1rsXSgR5e74w/VVBJF66Sz3adaklfgJ/14KqWQD R6uQn2lLZ1wErVZ1TA7DiJBncOfqL/rtjvllmSj/35hnXMZt5/fBJBCA X-Gm-Gg: ASbGncsLfIt4E4ssZRZXoc37NJ3yHck/jpDwcHlsTQgkA4d8mcqVSkL8sti/FzhsAT4 3XoPM3hHqIrjRODwhqx11D2TP7DoUSHzQR3NOmiBZfE6R7/2glSh/PwPRIuPrAV6+/+ZXkvMTVM 2/kgx9UHxWoPngdXMq2l3Z6pkdbgjSL++2MjHx6/l8vX/CTIL7yNt1oNagkjIsBv3uUs4kLo4yC dnxox5dz/GvJAvetFsHfgecPxF+0ofigi+/gE5VSqloiUU6G1YJ76FfCduPjPXfTWaXGJqlSCOo diVO5rHGmt2bCMZKc51RG7BJMc+ez6q9c+HRGiZsnLaIAbvNiBl+QzDXBl5L1gMk/bGSP9mOPZK 5KHwM0li1aY85t+b6gsLXeAlpYqEGF9XnqJN7P4D6qZXCUqORRIAQVlWikfpQkID7KrZQkRgbTM LQVw80NZmXbplZKDNAXTTD X-Google-Smtp-Source: AGHT+IG/PNQV7yS4/dOlu2YCel/annKvAJBo90V1Nz+6LPzZU6gOPlYVZPEcln+UbOpMuRAShHAXFA== X-Received: by 2002:a05:6a21:3397:b0:35d:cc9a:8bbb with SMTP id adf61e73a8af0-35dcc9a8d3emr9776085637.47.1763430357500; Mon, 17 Nov 2025 17:45:57 -0800 (PST) Received: from [192.168.1.2] ([122.177.125.110]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-bc3761d0109sm13385461a12.27.2025.11.17.17.45.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 17 Nov 2025 17:45:57 -0800 (PST) Message-ID: <0f6fe0c6-7c11-4f16-bed4-db4de675b002@gmail.com> Date: Tue, 18 Nov 2025 07:15:50 +0530 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: [PATCH v4] arm64: errata: Work around AmpereOne's erratum AC04_CPU_23 To: D Scott Phillips , Catalin Marinas , James Clark , James Morse , Joey Gouly , Kevin Brodsky , Marc Zyngier , Mark Brown , Mark Rutland , Oliver Upton , "Rob Herring (Arm)" , Shameer Kolothum , Shiqi Liu , Will Deacon , Yicong Yang , kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20250513184514.2678288-1-scott@os.amperecomputing.com> <456bba04-07b7-4c27-96fc-9bf226b12fd9@gmail.com> <86bjl0o9yd.fsf@scott-ph-mail.amperecomputing.com> Content-Language: en-US From: Jaikiran Pai In-Reply-To: <86bjl0o9yd.fsf@scott-ph-mail.amperecomputing.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 17/11/25 10:47 pm, D Scott Phillips wrote: > Jaikiran Pai writes: > >> Hello Scott, >> >> On 14/05/25 12:15 am, D Scott Phillips wrote: >>> On AmpereOne AC04, updates to HCR_EL2 can rarely corrupt simultaneous >>> translations for data addresses initiated by load/store instructions. >>> Only instruction initiated translations are vulnerable, not translations >>> from prefetches for example. A DSB before the store to HCR_EL2 is >>> sufficient to prevent older instructions from hitting the window for >>> corruption, and an ISB after is sufficient to prevent younger >>> instructions from hitting the window for corruption. >> I see that this patch enables the workaround only for AmpereOne AC04 >> systems. Do you happen to know if the underlying issue for which this >> patch was introduced, impacts (or can impact) AmpereOne AC03 systems too: > Hi Jaikiran, this issue impacts ac04 only, it is not present on ac03. Thank you Scott for the quick confirmation. We have been investigating an issue on AC03 (running Oracle Linux as a VM) where some memory writes (stores) are lost especially when the OS appears to have accumulated high buf/cache usage (monitored through free -h). That investigation, backed by a trivial C reproducer, is still ongoing and we are trying to understand what could be causing it. The issue description here made us curious whether it's the same issue we are running into and since this patch wasn't applied on AC03, we decided to check once. While at it, if you have any inputs (tools/commands) that you typically use to narrow down such issues, I would be happy to experiment with if feasible. Right now we are focusing on the kernel itself and checking which specific kernel versions can reproduce it. We have been able to reproduce it consistently on 5.15.x and 5.16.x and we plan to try it with other kernel versions all the way upto 6.12. That should tell us if the issue we are encountering has already been addressed in any specific kernel version. Given that you noted this patch isn't relevant for AC03, I don't plan to further reply-all to this PATCH discussion, but if you would like me to keep you updated with this investigation (I would love to get some inputs and provide updates as we go along) then please let me know and I will communicate with you over your email (or any other relevant forum you suggest). Thank you again for the quick response. -Jaikiran