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 259FFC4828F for ; Thu, 8 Feb 2024 02:29:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; 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=9FpTiT3P/k60Q4PFD1I/vs7ZTgrA8b1FnBbq+ad3ztA=; b=lKFpgMSViesFaD VP9D/P6eQ6xrCfqu7krmprZG2uCH/U46mW2iAQOuiUABdHKc5jJQadTKtuzh3fK2gUzqYoEpE9498 GIODIe/RT/b2u7URwQwEL1ukgb7im9jDLZsTG5jJXxvlr0CExjhAZM9iUxkmGEaH4JKYE8F1rZO0u nBHlIUu50LzuODcM3WFu7L9uUSWWir7jBGNeKf4RFiAGX4SNWdVfWweiENP12mowHe2AObUrQYTCc x8DW6/DJ4ov0c9bZp78lsVqMls0RAqRBASAE7AZml1zObhqFfH1qx4J7J4/fO+Bnx+0rqYXI1pSP+ AKMToinm3agxRv6+QRZQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rXu9m-0000000CSos-0Igz; Thu, 08 Feb 2024 02:28:54 +0000 Received: from out-183.mta1.migadu.com ([2001:41d0:203:375::b7]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rXu9j-0000000CSnT-0Ghe for linux-arm-kernel@lists.infradead.org; Thu, 08 Feb 2024 02:28:52 +0000 Date: Thu, 8 Feb 2024 11:28:32 +0900 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1707359320; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=QyXOHJY7QjrWBqSD0gKjptd43HT65nOab7YskKb9EWw=; b=t/Pj/wqhZUcFmzWT5caGQZWM6jDL5BZq3wvhiN2Pwxe1CG6R7Ovzp5aN1arHiIR/j7F/lM s1EFAGP370mOS9dndCZW3cOHWtpqc11x55REDgoK8he3gwEkjJ6jQ+kyTrrv5X4uFGqMby 4MxsDEb3sLcrohGwflj6Ys7Bwg9lq9E= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Itaru Kitayama To: Mark Rutland Cc: linux-arm-kernel@lists.infradead.org, broonie@kernel.org, catalin.marinas@arm.com, james.morse@arm.com, will@kernel.org Subject: Re: [PATCH 0/3] arm64: cleanup DAIF handling for EL0 returns Message-ID: References: <20240206123848.1696480-1-mark.rutland@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20240206123848.1696480-1-mark.rutland@arm.com> X-Migadu-Flow: FLOW_OUT X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240207_182851_332414_B9BE3069 X-CRM114-Status: GOOD ( 18.83 ) 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 Tue, Feb 06, 2024 at 12:38:45PM +0000, Mark Rutland wrote: > Hi, > > These patches rework DAIF handling when returning to EL0, simplifiying > the logic in do_notify_resume() and allowing Debug + SError to be > unmasked for a little longer during exception return. > > My primary motivation for these changes is to centralize entry/exit DAIF > management within entry-common.c, as this will allow entry/exit > sequences to be specialised, and make it much easier to add support for > FEAT_NMI. With specialized entry DAIF management, it will also be > possible to simplify local_daif_{save,restore}() and > local_irq_{save,restore}(). > > I'm sending this out on its own as (IMO) it's a nice cleanup on its own, > and I don't believe that I'll have the remainder of the DAIF rework > ready for this cycle. > > The series is based on v6.8-rc3. > > Mark. > > Mark Rutland (3): > arm64: Simplify do_notify_resume() DAIF masking > arm64: Move do_notify_resume() to entry-common.c > arm64: Unmask Debug + SError in do_notify_resume() > > arch/arm64/include/asm/exception.h | 2 +- > arch/arm64/kernel/entry-common.c | 36 ++++++++++++++++++++++++++- > arch/arm64/kernel/signal.c | 39 ++---------------------------- > 3 files changed, 38 insertions(+), 39 deletions(-) Boot tested on RevC FVP and kselftest arm64 subcategory runs without an error on RevC FVP too. Itaru. > > -- > 2.30.2 > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel