From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 194ECC02199 for ; Wed, 5 Feb 2025 14:16:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:MIME-Version: References:In-Reply-To:Subject:Cc:To:From:Message-ID:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=1q+rJqwcdJ6Qb6VARfCSc4ttJZN5J6Fy037G//MBRX4=; b=oBNhiU7ZXNpieOzqSfQY+rvXHn XaMAPTa8pbQN2AvzWlhrdo+pHJn89cAklMtVGn3CJXzJJWeVLDGKU8mNoDj6dEEbXYC6hB/eZpOCJ Z5AiuskDJ1tclgrKSDJ69/CH6vBMpWPYf+CCf4aFSyoHldnEAkRKa6XNrcV2DAUI5zupuJ1N/0Bxe 8bLBKS6XK3hHKPYAGW6T3/tKp5xt5HGXDNnNNCq/gmedHvHPqlKvM7oPnLDPkAFM1jnHti53ceW5l o//d9Q1OJ2y1Q9ed0hvaSWJ7vaqWfT5E5HbsumkBtHY1c38qLnt4kqErADSpRKsO91x/qLJSkLEPZ zA1GEiqw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tfgC9-00000003VXZ-3R89; Wed, 05 Feb 2025 14:16:01 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tfgAm-00000003VQu-0RPN for linux-arm-kernel@lists.infradead.org; Wed, 05 Feb 2025 14:14:37 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 0C7F55C272F; Wed, 5 Feb 2025 14:13:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 86652C4CED1; Wed, 5 Feb 2025 14:14:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1738764874; bh=FidpCX5GxjvcT+vVJZsxzD/fUKwHxS5XyiCZNAkvy+A=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Kg/kLRsVnpJXWn/B2nZ8RB+eYvAbTXWmf73EIc7Z8lqmI7IBnmS7FZODsMY7nf/vR AAd8sV74hLxr2lZxXuSk0f+60BqUdl7YCZw3Nl4p4y0kFF/125Fx7CKvOODPGNuzB6 9LLpMCR7+aAn9Vm5SRX6ejTH/3+gz0+2zRNqsMhB+9+CjnJ8niQHJDjOxt6R+m2Kaj 8xsJwOFmqjtqFn9oJIhIEypQMscWQNIijygSO+nR1xrD9vIg7TfqOCOZgLGRDUN44A iIZcj+CJpVD2yk45wGuXa0aVUyJA+kQeHZhI8r6iyy9FMgb/n6RnoTZvGx13pD1Htv M1q1ItW7R+AFw== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1tfgAi-000nOu-17; Wed, 05 Feb 2025 14:14:32 +0000 Date: Wed, 05 Feb 2025 14:14:30 +0000 Message-ID: <86wme4tr5l.wl-maz@kernel.org> From: Marc Zyngier To: Zaid Alali Cc: catalin.marinas@arm.com, will@kernel.org, puranjay@kernel.org, broonie@kernel.org, mbenes@suse.cz, mark.rutland@arm.com, ruanjinjie@huawei.com, oliver.upton@linux.dev, robh@kernel.org, anshuman.khandual@arm.com, james.morse@arm.com, shiqiliu@hust.edu.cn, eahariha@linux.microsoft.com, scott@os.amperecomputing.com, joey.gouly@arm.com, ardb@kernel.org, yangyicong@hisilicon.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] arm64: errata: Add Ampere erratum AC04_CPU_50 workaround alternative In-Reply-To: References: <20250127201829.209258-1-zaidal@os.amperecomputing.com> <87msfbtjyw.wl-maz@kernel.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/29.4 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: zaidal@os.amperecomputing.com, catalin.marinas@arm.com, will@kernel.org, puranjay@kernel.org, broonie@kernel.org, mbenes@suse.cz, mark.rutland@arm.com, ruanjinjie@huawei.com, oliver.upton@linux.dev, robh@kernel.org, anshuman.khandual@arm.com, james.morse@arm.com, shiqiliu@hust.edu.cn, eahariha@linux.microsoft.com, scott@os.amperecomputing.com, joey.gouly@arm.com, ardb@kernel.org, yangyicong@hisilicon.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250205_061436_230598_16E8D58E X-CRM114-Status: GOOD ( 23.50 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, 04 Feb 2025 21:46:06 +0000, Zaid Alali wrote: > > On Tue, Jan 28, 2025 at 08:34:47AM +0000, Marc Zyngier wrote: > > On Mon, 27 Jan 2025 20:18:29 +0000, > > Zaid Alali wrote: > > > > > > Add an alternative code sequence to work around Ampere erratum > > > AC03_CPU_50 on AmpereOne and Ampere1A. > > > > > > Due to AC03_CPU_50, when ICC_PMR_EL1 should have a value of 0xf0 a > > > direct read of the register will return a value of 0xf8. An incorrect > > > value from a direct read can only happen with the value 0xf0. > > > > Under which precise conditions? Does it equally apply to virtual > > interrupts or SCR_EL3.FIQ==0, for which there is no non-secure shift > > (which I can only assume is the source of the erratum)? Does it > > equally affect G0 and G1 interrupts? > > > > Hi Marc, > > This only occurs when: > When SCR_EL3.FIQ==1 and PE is NOT in EL3/Secure State, > and ICC_PMR_EL1.Priority==LowestPriorityImplemented==0xf8 (highest priority is 0x00). > > Does it equally apply to virtual interrupts or SCR_EL3.FIQ==0? > > Based on this Defect (AArch-21735) and our implementation, it only > affected ICC_PMR_EL1, therefore does not apply to virtual interrupts. Are you saying that this is erratum is *strictly* AARCH-21735? M. -- Without deviation from the norm, progress is not possible.