From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933240AbcIGIpD (ORCPT ); Wed, 7 Sep 2016 04:45:03 -0400 Received: from foss.arm.com ([217.140.101.70]:44518 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751788AbcIGIoc (ORCPT ); Wed, 7 Sep 2016 04:44:32 -0400 Date: Wed, 7 Sep 2016 09:44:37 +0100 From: Will Deacon To: Suzuki K Poulose Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, catalin.marinas@arm.com, marc.zyngier@arm.com, mark.rutland@arm.com, james.morse@arm.com, ard.biesheuvel@linaro.org, andre.przywara@arm.com Subject: Re: [PATCH v3 8/9] arm64: Refactor sysinstr exception handling Message-ID: <20160907084436.GD32499@arm.com> References: <1473069509-2317-1-git-send-email-suzuki.poulose@arm.com> <1473069509-2317-9-git-send-email-suzuki.poulose@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1473069509-2317-9-git-send-email-suzuki.poulose@arm.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 05, 2016 at 10:58:28AM +0100, Suzuki K Poulose wrote: > Right now we trap some of the user space data cache operations > based on a few Errata (ARM 819472, 826319, 827319 and 824069). > We need to trap userspace access to CTR_EL0, if we detect mismatched > cache line size. Since both these traps share the EC, refactor > the handler a little bit to make it a bit more reader friendly. > > Cc: Andre Przywara > Cc: Mark Rutland > Cc: Will Deacon > Cc: Catalin Marinas > Signed-off-by: Suzuki K Poulose > --- > arch/arm64/include/asm/esr.h | 76 ++++++++++++++++++++++++++++++++++++++------ > arch/arm64/kernel/traps.c | 73 +++++++++++++++++++++++++++--------------- > 2 files changed, 114 insertions(+), 35 deletions(-) This looks fine to me, but I'd really like to see Andre's ack on the refactoring of the errata workarounds. Andre, can you take a look please? Will