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 X-Spam-Level: X-Spam-Status: No, score=-15.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 883F4C433C1 for ; Wed, 24 Mar 2021 17:05:41 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0B13361A13 for ; Wed, 24 Mar 2021 17:05:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0B13361A13 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=4+CcJEWLPOLnPgXaVDTHzx17/ZoXzfxmu5UQbYg+yUM=; b=JW4KpBpTkMVGPqQDaN5RxsSPO FVlREbugX/NZ/M3AI48cALem/OyBZqh6sWdRxoD9+vl0BRQE2opX3GLQ9RTnBAsjOEM5rAhnT2q5v 3NGZacZBL3DDrXSTPgB9T2oD6KAsyzvS/K/yK8wQ2xESgyfky1jWMcBPJV3L1uEpo3m27EJKvycCr wHcqJeW0q6TAa1nBMw2ZHdntc6TzbRN6tnv8N1szIudn0GD0/auofAK16i2+fNts90nkZisFAuV5N 30mIQAjBMTvaPGbvHSSGGfD4L9RWBm7+/1ZJQFkpC5JJQTUUcJEyRI13liwhnz2kzB1TgQoXpcZuT 2V+3x0vsQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lP6us-00HTCj-NA; Wed, 24 Mar 2021 17:03:34 +0000 Received: from mail.kernel.org ([198.145.29.99]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lP6un-00HTBN-Jl for linux-arm-kernel@lists.infradead.org; Wed, 24 Mar 2021 17:03:31 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id AA96E61A0F; Wed, 24 Mar 2021 17:03:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1616605408; bh=SfTG1Fnwf+9jTJzJLstp+/FdSqRD7VVDKqeIumMB8NU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LZtwson02LCx+HQ0D44CArLEAC2s2VIm6bZS2szlk6VKkT0ack9ZjVWAEUYwVO1UV PHnee5CdFoQe0LE6xIoxfh1xER6SCoyMXKxEnXrRoa0VhDHtELOdtgQqCMKuPm5rU/ UmyEkxYSOIAYCZb+f5N5bh1n/ZAPAcLl3CdNpL9xEotR8sDVnUKOKwgxEIbwfRjmL7 4sedWzEOMl4IeIKKjYpJhgpC/uT9Y28fADcYiknSDSCEpoeUDdLUXgZo8t0UByHRXD IaLKy8E6jssTz5zz/6EJTux/uaOmQFy6W4zBpWBc/NyFYlE8CZNRXNiB5Gptlr6ao6 wo+1Hcz/b3APQ== Date: Wed, 24 Mar 2021 17:03:23 +0000 From: Will Deacon To: Mark Rutland Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, catalin.marinas@arm.com, james.morse@arm.com, marcan@marcan.st, maz@kernel.org, tglx@linutronix.de Subject: Re: [PATCHv3 6/6] arm64: irq: allow FIQs to be handled Message-ID: <20210324170323.GE13030@willie-the-truck> References: <20210315115629.57191-1-mark.rutland@arm.com> <20210315115629.57191-7-mark.rutland@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210315115629.57191-7-mark.rutland@arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210324_170330_295296_CA694DED X-CRM114-Status: GOOD ( 15.12 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Mar 15, 2021 at 11:56:29AM +0000, Mark Rutland wrote: > On contemporary platforms we don't use FIQ, and treat any stray FIQ as a > fatal event. However, some platforms have an interrupt controller wired > to FIQ, and need to handle FIQ as part of regular operation. > > So that we can support both cases dynamically, this patch updates the > FIQ exception handling code to operate the same way as the IRQ handling > code, with its own handle_arch_fiq handler. Where a root FIQ handler is > not registered, an unexpected FIQ exception will trigger the default FIQ > handler, which will panic() as today. Where a root FIQ handler is > registered, handling of the FIQ is deferred to that handler. > > As el0_fiq_invalid_compat is supplanted by el0_fiq, the former is > removed. For !CONFIG_COMPAT builds we never expect to take an exception > from AArch32 EL0, so we keep the common el0_fiq_invalid handler. > > Signed-off-by: Mark Rutland > Tested-by: Hector Martin > Cc: Catalin Marinas > Cc: James Morse > Cc: Marc Zyngier > Cc: Thomas Gleixner > Cc: Will Deacon > --- > arch/arm64/include/asm/irq.h | 1 + > arch/arm64/kernel/entry.S | 30 +++++++++++++++++++++--------- > arch/arm64/kernel/irq.c | 16 ++++++++++++++++ > 3 files changed, 38 insertions(+), 9 deletions(-) Acked-by: Will Deacon Will _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel