Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1142721rdb; Wed, 24 Jan 2024 06:14:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IGbjI3K1Qta/JXvbjomnhOLpIHMRajzBPFM53c5VXhHzdY9/JjI8NMtEPtJH/HqpYfOwI/K X-Received: by 2002:a05:6214:27e1:b0:680:d02f:4199 with SMTP id jt1-20020a05621427e100b00680d02f4199mr2122689qvb.3.1706105661474; Wed, 24 Jan 2024 06:14:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706105661; cv=pass; d=google.com; s=arc-20160816; b=FyIL44DXzCtHioWi7FSMafZ5dgnYOCy265IH4dqhUcnTICRm+uzX3FAP94yojsn8IK dzt+SMZwBT4HZwGJWfIt7lJoLeYTDGwihQD5n7DOqVkNFogLj0uDcpdVBAJEUCZhi8Ma 8Yfd6oDufChNNNlHTzc39ZZlBspDSafJgtZLzxqjqQ9sKxLai+Dcga9WRALFGqp/GHSv OSH1JJ5znU2mqFVh3jJQeLIXdajg1hZ7NIcrFChmGx8+ImFcPtAVzmpq7vylA8Da7Lu/ f6hbhI8hXUoQRKmFS6SyBHGZXa+LlVgygTixu/cBIPZNk0jWSPqJi3HnGAAUtoA/Kml/ tmvg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=RVt0ZnKeByvzhrfkzssJmlz6f1Lvfiy149b2/exZGTI=; fh=DWZbau8HBqFSUOqf45BIh0RdXABL7/R8aDcxuiqdt58=; b=Q/au39OB8azLF/B7dNS+FE5P5DP3m6LL8rzt+Dwa9XRs2dkaeafhGMIb5xjQ32sgR2 aDXkqy5wLrHNFphq8vHM54h2NI2XthAvBw/TT3ADIQLtNRQ2U/Dn+Grr62LGUp6uBzd2 /Aehn6b3onC2gi/OC6T1Q7tPnlydGDLNoNSuGaBiFvaQFmjF65/9RbecacaHNLevWe9T BbuYZVldpOo02OuGqGWViCUMvVeyu8iIGIq2/NZ2DIkHJm0xMa2Jq9HaE+jMqnQibvKP qj8tTLmKxjiNZURzT5qF+VnpHLjnlG7bYVnwEXk3YCGf/vRDai1fE9kLMECa5NqXMLq2 8KJA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Nghjgqqm; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-37091-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37091-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id r26-20020a0cb29a000000b00686a076dec1si3759697qve.483.2024.01.24.06.14.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 06:14:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-37091-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Nghjgqqm; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-37091-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37091-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 3D7911C20D9F for ; Wed, 24 Jan 2024 14:14:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 634407A70F; Wed, 24 Jan 2024 14:14:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Nghjgqqm" Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1E79760DFF; Wed, 24 Jan 2024 14:14:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706105653; cv=none; b=Z3MlwmiRNNU+xV1FKMwIKtGv3ulK1THd7pz88X7hvV8Xvql28hUYLLDS+Dt55nOeIHgHwjsPxuGvrF+Z0n3eISK2wW1ib8Lp6M6TlZf+otqu9M8x3we2aEw66GfA2RR4AsElRHw2CGDeVBggsvTYSjQGxxX2vMw9OZ3izeoL+z4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706105653; c=relaxed/simple; bh=ayLeps8v3W7HX8vlungxHlMOuxcEHcvYI51ejw6W6y4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=tptyAykvizZsItVkiZLDqGgyf/8IqWygOnyGZ0TjK9hnCPf3G4ioDekHMdT5fHq+lBzGVF+hAJC5+Pj8regL9n3WvyRzUWsWHbMBcTax7Etvuh5t0zcESk83rnckT9wGsLvAzmOvaf77pE/RxWnyBJ482OhDziU/CLeKDAuSgh4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Nghjgqqm; arc=none smtp.client-ip=209.85.218.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f50.google.com with SMTP id a640c23a62f3a-a28fb463a28so541043266b.3; Wed, 24 Jan 2024 06:14:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706105650; x=1706710450; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=RVt0ZnKeByvzhrfkzssJmlz6f1Lvfiy149b2/exZGTI=; b=NghjgqqmN9zD+1HEfq0faYl/BWOF/o3EcsFMGLgR1xdXx9NCWVovmWxZMJXQCkSGJo 67Bv+T/QcBmKIKhrEX23qwS8U6dkMwDXJO8O0nYiujcnjW5fCB6SXkXdq0lL4prgdH+S Kss+w5Gp/j7XGF8BCYNJgDCiD1JD93NYN/l6GQYmkK4TOTgSF1mjpl2rBX18aW6qM7zA Gn9x/eJzRaIoJ4nDBjVCPqCsH8XTgcra04Mtc1j6Axdb52bJErk7ZbBVYqYP283ogEFm EzLA5ntm4q0fElz/p1toQvdL2K0e7pCRbIaOvkDA9xc1ktagFkPdVa/IOzt+mREPtw1M 2AZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706105650; x=1706710450; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=RVt0ZnKeByvzhrfkzssJmlz6f1Lvfiy149b2/exZGTI=; b=M7jRcQ543oXrQQBFexf0xQ3/Ydn1v+uDuGq/0ByGlYytLeRCbVDnF1iZ1pzkqPDhOv CBRpV5NxtmCaIoSMoBvVxkEFYc+3PX8avxvNdnSszBcMACt9Hp5g+sARFBWmRuNsAkYt N2S+zt6PnwF2XcgstlmF0UoNd7IfaZS55iwtkgb8wq2Vbhq9NBRz/EMoikCVof+/51xA cMHbiQdlUZ6fdxwD5GTrIM9uz7tBkUQy0wVGSw7w2oi3qNBXT0oxvsxZwI0badkB/cS7 AKhqbMtoG6NEzkaB5Ue8pnjImnKUeBABaFghVL3sG2NfcXPpgbGBRJIqNzv3KtVOuEq9 d49Q== X-Gm-Message-State: AOJu0YxGhfoYrtpA3M3TREuCC/y3kxtVV0QnUwr/oInBA1kF/6DSUa2U dN7YnwuHDk4xueCdICHroomfVM5He1fu2hw/VXNza1cjd9jLWurU X-Received: by 2002:a17:906:f197:b0:a2f:71f1:b9e4 with SMTP id gs23-20020a170906f19700b00a2f71f1b9e4mr780499ejb.53.1706105649844; Wed, 24 Jan 2024 06:14:09 -0800 (PST) Received: from andrea ([31.189.8.91]) by smtp.gmail.com with ESMTPSA id vb5-20020a170907d04500b00a30f04cb266sm1142517ejc.5.2024.01.24.06.14.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 06:14:09 -0800 (PST) Date: Wed, 24 Jan 2024 15:13:58 +0100 From: Andrea Parri To: paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, mathieu.desnoyers@efficios.com, paulmck@kernel.org, corbet@lwn.net Cc: mmaas@google.com, hboehm@google.com, striker@us.ibm.com, charlie@rivosinc.com, rehn@rivosinc.com, linux-riscv@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 0/4] membarrier: riscv: Core serializing command Message-ID: References: <20240110145533.60234-1-parri.andrea@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240110145533.60234-1-parri.andrea@gmail.com> On Wed, Jan 10, 2024 at 03:55:29PM +0100, Andrea Parri wrote: > Changes since v2 ([1]): > - amaned inline comments > - drop ARCH_HAS_MEMBARRIER, create membarrrier.rst > > Changes since v1 ([2]): > - add smp_mb() in switch_mm() > - introduce ARCH_HAS_MEMBARRIER, amend documentation > > Changes since RFC ([3]): > - introduce prepare_sync_core_cmd() > - fix nosmp builds > > [1] https://lore.kernel.org/lkml/20231211094414.8078-1-parri.andrea@gmail.com/ > [2] https://lore.kernel.org/lkml/20231127103235.28442-1-parri.andrea@gmail.com/ > [3] https://lore.kernel.org/lkml/20230803040111.5101-1-parri.andrea@gmail.com/ > > Andrea Parri (4): > membarrier: riscv: Add full memory barrier in switch_mm() > membarrier: Create Documentation/scheduler/membarrier.rst > locking: Introduce prepare_sync_core_cmd() > membarrier: riscv: Provide core serializing command Gentle ping to the riscv&membarrier people who have survived the merge window: any other thoughts on this series? suggestions for a v4? Andrea