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 0AF49C77B73 for ; Mon, 5 Jun 2023 12:05:34 +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=qu9er3dGIvcUzOZc8iIqit9kJ2m8/zX40Dqp/rjXjZo=; b=3XZhIp+NYNVS2P QQ2/q3JuqYOiKMEijqiF/lK+4Kp+/w2SPdK86JNVGU9IaGrnQIAz62kXw9g20yOjylss59di5yW7y t7PUcIpWJoV84NSpsxu9+GqJrmg2cpITtXqh1AqdNGM1vytCTU8XqzrxS/P4dX4z7VbNTD/NZN+Jc ChYoNeC7hNScHFDhQOla4Pu8BKQu1T/NN+5B/MDhFzTtf0jarilrAYlWFsWGxsd4wvq+WsFMUGVDB NYsf6/KcBw2izGj2JxL78AHNfsa3FJG+wpkEM4QXduHblUA1rKELYf3t1CJqX+3rtQgVhI+rwSRvH mVM4PQYJBRTwBCax59hw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q68xR-00FNRd-1U; Mon, 05 Jun 2023 12:05:09 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q68xO-00FNR3-2M for linux-arm-kernel@lists.infradead.org; Mon, 05 Jun 2023 12:05:08 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8F6E662200; Mon, 5 Jun 2023 12:05:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8F4EAC433EF; Mon, 5 Jun 2023 12:05:02 +0000 (UTC) Date: Mon, 5 Jun 2023 13:04:59 +0100 From: Catalin Marinas To: Shaoqin Huang Cc: Kristina Martsenko , linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, Will Deacon , Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Zenghui Yu , Mark Rutland , Mark Brown , Luis Machado , Vladimir Murzin , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 07/11] arm64: mops: handle MOPS exceptions Message-ID: References: <20230509142235.3284028-1-kristina.martsenko@arm.com> <20230509142235.3284028-8-kristina.martsenko@arm.com> <628463d5-b9df-51bd-8e1f-b0a41a928d85@redhat.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <628463d5-b9df-51bd-8e1f-b0a41a928d85@redhat.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230605_050506_830111_57744E96 X-CRM114-Status: GOOD ( 18.18 ) 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, Jun 05, 2023 at 07:43:27PM +0800, Shaoqin Huang wrote: > Hi Kristina, > > On 5/9/23 22:22, Kristina Martsenko wrote: > > The memory copy/set instructions added as part of FEAT_MOPS can take an > > exception (e.g. page fault) part-way through their execution and resume > > execution afterwards. > > > > If however the task is re-scheduled and execution resumes on a different > > CPU, then the CPU may take a new type of exception to indicate this. > > This is because the architecture allows two options (Option A and Option > > B) to implement the instructions and a heterogeneous system can have > > different implementations between CPUs. > > > > In this case the OS has to reset the registers and restart execution > > from the prologue instruction. The algorithm for doing this is provided > > as part of the Arm ARM. > > What is the Arm ARM? I'm not quite understand it. The Arm Architecture Reference Manual: https://developer.arm.com/documentation/ddi0487/latest (the acronym we pretty well known among the arm/arm64 developers) -- Catalin _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel