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=-4.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no 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 159F2C48BE8 for ; Wed, 16 Jun 2021 23:51:05 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id CFCA8611EE for ; Wed, 16 Jun 2021 23:51:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CFCA8611EE 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=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Subject:Cc:To:From:Date:References: In-Reply-To:Message-Id:Mime-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=cFPAjD2qgTkhJHZKhD7D1apQjB8IuMPTkat9hro7IWE=; b=VZ6NuPYv5lacLT CYJwX7HZpv926fwb3O88qgXWM6EkegAQNlZFNYU6mrRTh900FKcIo2WW/qDeLiNBBOkCEU+QmwihL 4FacbpsuZN30yKBNbFxfwnXU7YgXAZdr5DvqYy95OtpW9XbmgkygnCEby53d0L1SSTBEoyu/udm3I Obm/0VeU3fYi2rcal2bSbRdhF1vEDCbKZ4fHH1lLUnL5cjlGQVp56yiKI4OZcPqJfEmzEO/ZZnG/L MKaHNYX5nFugP/aXVi2g00OwfVSvFEdTQT4/kfirmXfFo8RXE0kcA2bR1a4sSTeJvbX2pt2bxbDv5 g8k19otF7N9ZYAU2ZfpQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ltfHl-008Fd0-A1; Wed, 16 Jun 2021 23:49:29 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ltfHc-008FZx-07 for linux-arm-kernel@lists.infradead.org; Wed, 16 Jun 2021 23:49:23 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0FCFF613AE; Wed, 16 Jun 2021 23:49:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1623887359; bh=qIUOjJaXnnZDIyqjA+8Rc1PjQR2ZFeNFFdkcFco2deg=; h=In-Reply-To:References:Date:From:To:Cc:Subject:From; b=tLLlTT5QYvEBvhHyFgtlIUon6gCPPxmjtFckUGTgYydeAEqnZDsIDRjwwA4edaT4i SxjOwyOiiypMhRc5geGG5OgstPcC5Zydag4FyTShAXeUicNHyag/uwd+Bf8addiz00 r8/1njn1ijQGDlnV6k+rfHTFwz46KsHf/SjGCMx9fE58OFAK//3XD6VMtAMLWQzk6n Ev9xVT4vvdAIgmQ8AxLgsQmZwVDU9W6/It1AubbzeAKkkNmTvi/EmCaGXdyXb5HH2s XJk7RGwQv/SyH4TP+iKmDKoEdgMvZtMBHTC+hzuUNyU6fbMwMEk2cicq8FRa861MWQ vOcPKj4sc0mRw== Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailauth.nyi.internal (Postfix) with ESMTP id 1C2F927C0054; Wed, 16 Jun 2021 19:49:17 -0400 (EDT) Received: from imap21 ([10.202.2.71]) by compute2.internal (MEProxy); Wed, 16 Jun 2021 19:49:17 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfeeftddgvddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgesthdtredtreerjeenucfhrhhomhepfdetnhgu hicunfhuthhomhhirhhskhhifdcuoehluhhtoheskhgvrhhnvghlrdhorhhgqeenucggtf frrghtthgvrhhnpeegjefghfdtledvfeegfeelvedtgfevkeeugfekffdvveeffeetieeh ueetveekfeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpegrnhguhidomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidqudduiedukeeh ieefvddqvdeifeduieeitdekqdhluhhtoheppehkvghrnhgvlhdrohhrgheslhhinhhugi drlhhuthhordhush X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 8540951C0060; Wed, 16 Jun 2021 19:49:15 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-526-gf020ecf851-fm-20210616.001-gf020ecf8 Mime-Version: 1.0 Message-Id: <57dae79c-fff8-411f-a375-1aa8a1cd10ac@www.fastmail.com> In-Reply-To: <1e248763-9372-6e4e-5dea-cda999000aeb@kernel.org> References: <07a8b963002cb955b7516e61bad19514a3acaa82.1623813516.git.luto@kernel.org> <1623818343.eko1v01gvr.astroid@bobo.none> <1e248763-9372-6e4e-5dea-cda999000aeb@kernel.org> Date: Wed, 16 Jun 2021 16:48:54 -0700 From: "Andy Lutomirski" To: "Nicholas Piggin" , "the arch/x86 maintainers" Cc: "Andrew Morton" , "Benjamin Herrenschmidt" , "Catalin Marinas" , "Dave Hansen" , linux-arm-kernel@lists.infradead.org, "Linux Kernel Mailing List" , linux-mm@kvack.org, linuxppc-dev@lists.ozlabs.org, "Mathieu Desnoyers" , "Michael Ellerman" , "Paul Mackerras" , "Peter Zijlstra (Intel)" , stable@vger.kernel.org, "Will Deacon" Subject: =?UTF-8?Q?Re:_[PATCH_8/8]_membarrier:_Rewrite_sync=5Fcore=5Fbefore=5Fuse?= =?UTF-8?Q?rmode()_and_improve_documentation?= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210616_164920_141140_DF9CA79A X-CRM114-Status: GOOD ( 14.85 ) 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 Wed, Jun 16, 2021, at 11:52 AM, Andy Lutomirski wrote: > On 6/15/21 9:45 PM, Nicholas Piggin wrote: > > Excerpts from Andy Lutomirski's message of June 16, 2021 1:21 pm: > >> The old sync_core_before_usermode() comments suggested that a non-icache-syncing > >> return-to-usermode instruction is x86-specific and that all other > >> architectures automatically notice cross-modified code on return to > >> userspace. > > >> +/* > >> + * XXX: can a powerpc person put an appropriate comment here? > >> + */ > >> +static inline void membarrier_sync_core_before_usermode(void) > >> +{ > >> +} > >> + > >> +#endif /* _ASM_POWERPC_SYNC_CORE_H */ > > > > powerpc's can just go in asm/membarrier.h > > $ ls arch/powerpc/include/asm/membarrier.h > ls: cannot access 'arch/powerpc/include/asm/membarrier.h': No such file > or directory Which is because I deleted it. Duh. I'll clean this up. > > > > > > /* > > * The RFI family of instructions are context synchronising, and > > * that is how we return to userspace, so nothing is required here. > > */ > > Thanks! > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel