From mboxrd@z Thu Jan 1 00:00:00 1970 From: Will Deacon Subject: Re: [PATCH v4 13/21] arm64: cpufeature: Enable IESB on exception entry/return for firmware-first Date: Tue, 31 Oct 2017 13:56:16 +0000 Message-ID: <20171031135616.GM5584@arm.com> References: <20171019145807.23251-1-james.morse@arm.com> <20171019145807.23251-14-james.morse@arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 7246349D14 for ; Tue, 31 Oct 2017 09:54:40 -0400 (EDT) Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id i8wQkJQ2VBwB for ; Tue, 31 Oct 2017 09:54:38 -0400 (EDT) Received: from foss.arm.com (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 3F50440651 for ; Tue, 31 Oct 2017 09:54:38 -0400 (EDT) Content-Disposition: inline In-Reply-To: <20171019145807.23251-14-james.morse@arm.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kvmarm-bounces@lists.cs.columbia.edu Sender: kvmarm-bounces@lists.cs.columbia.edu To: James Morse Cc: Jonathan.Zhang@cavium.com, Marc Zyngier , Catalin Marinas , Julien Thierry , wangxiongfeng2@huawei.com, linux-arm-kernel@lists.infradead.org, Dongjiu Geng , kvmarm@lists.cs.columbia.edu List-Id: kvmarm@lists.cs.columbia.edu On Thu, Oct 19, 2017 at 03:57:59PM +0100, James Morse wrote: > ARM v8.2 has a feature to add implicit error synchronization barriers > whenever the CPU enters or returns from an exception level. Add code to > detect this feature and enable the SCTLR_ELx.IESB bit. > > This feature causes RAS errors that are not yet visible to software to > become pending SErrors. We expect to have firmware-first RAS support > so synchronised RAS errors will be take immediately to EL3. > Any system without firmware-first handling of errors will take the SError > either immediatly after exception return, or when we unmask SError after > entry.S's work. > > Platform level RAS support may require additional firmware support. > > Cc: Christoffer Dall > Cc: Marc Zyngier > Signed-off-by: James Morse > Reviewed-by: Catalin Marinas To be honest, I'd just set this bit unconditionally. I realise the architecture would rather we didn't do that for v8 parts where it's RES0, but we do this elsewhere (e.g. HD and HA in the TCR) and practically it's fine. Will