Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp2071785lqg; Mon, 4 Mar 2024 11:55:21 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXQmksO8tEpM2y8depKixQHkguQejNEHTuMm8MmVxpXjw9B1g4bCNsaNOCiVPjYhViWUY2qq3x+X46uctwQmrHESeXYcD03x5uwYC0lKw== X-Google-Smtp-Source: AGHT+IFJHAvB+JLqW3ivkVhySwzAecrv1MqmISyYldJGebJx8WEUVUKEgR/xxUHahPyuzsdY4v3O X-Received: by 2002:a05:6a00:2c90:b0:6e5:ce7e:929f with SMTP id ef16-20020a056a002c9000b006e5ce7e929fmr8846758pfb.7.1709582121334; Mon, 04 Mar 2024 11:55:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709582121; cv=pass; d=google.com; s=arc-20160816; b=nzuzHIxQEFE/Y6AgkTZTaizuyf4gq622FD01FRKTa1Ox8X3zf/ki+PBrNveTDsGJGv El9HkR4oQkzOhr+DItLzWD/xtRUzPBmWFhTMkhGLQ/JgXRRJAvUb90BnlTB4qol4zLh/ rUBbkzfLVNFCNi4NVtaLrMAlkDBL1OXJJZ1+ZFRtzrYL0T3hBjkapFvaUXdOHpShC+gm pm/O1KIC7J2OfG0jCfAWSE0Pfn9ZyMK2iY2+RZ176itJ20kpq/ErMfeMLLj8at//woKa 8jh8yFOL+q7sUk8rJdkdkwJWySvyng5i7tUzIkaqqQZG9OHpeMbUXcW6adAkV88RHYqs HA2A== 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=AIyxOwfxLDNh8Wcuql6unJ4HjfwBHMaPtxcGsnYkAG4=; fh=l93kRCXYVt8NO9h0j2h8lM9YBs9nxVnLJpzXJt2DtPg=; b=lImHrW4BabPZS58myVY0PA5kjJ4xk1OtTRYtDGOa81vuA5PLZGTp3x31rC1RADNWQB dna4yfsRw8MrqzLmCFDuPIn6ZBmkcT0zNxQY2TktKgqkoiyCix7SibehZz+ID761f4rF OthLSXiRLK/zLb20vEtiHxmb48Dh6VfotuA96LAqp+THezuZ8+clr+JNYADJA2P6Oo16 5DXVMTKiVGQsrLkhNEP2wkfHtPeC0G1CoBEeqr6QFWb/tl7yWn24ZFfoEIhxaLhC0anh cKJDB7/iS0a33iJx/+assf5aXngjxvmd70K+kZTleZEecFelkFY0VibES24yvAGxVtRe gn8w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nDxjiYkf; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-91173-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91173-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id kr14-20020a056a004b4e00b006e52c88987asi9099456pfb.41.2024.03.04.11.55.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 11:55:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-91173-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nDxjiYkf; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-91173-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91173-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 15A22B253CE for ; Mon, 4 Mar 2024 19:25:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8C06D79940; Mon, 4 Mar 2024 19:25:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="nDxjiYkf" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AC7E362147; Mon, 4 Mar 2024 19:25:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709580339; cv=none; b=q16d9s85mOHhuym79IiRy1GLTyjWWuKK4868lnxjIO9YYzWo1Re0m+6qUop9Ce1DBwAYp1oHuaMgsQsD4zTw/i7k4hCMWRhassiRamv1uZXFXlY3pux+9ltGmW0xa6An+tkTA5F+bABunUHdvHreP4JbKhiEQQPA3M4UR2cFhzc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709580339; c=relaxed/simple; bh=TQEI4fsDJ0e19ccZz539tCalZXKMnkbsWxcJRNdU3Og=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=CWWLuyrwAF3z74a6UdWX2m/kHzQ63x3KHWD8WFmNAj0T6ucxNo7vH4OJGIydDs1XcbYVHfDVd8f8JkMl2oxrA0tFmm6wPhbaN1b57Raxb9l7yKBalkXQb95DKaWbBqmOCO1UKZeZPl0rreVDUTTKL9xCUhM8asPfggIP2o4u+es= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=nDxjiYkf; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 49E3CC433F1; Mon, 4 Mar 2024 19:25:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709580339; bh=TQEI4fsDJ0e19ccZz539tCalZXKMnkbsWxcJRNdU3Og=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nDxjiYkftdBnZehm3S/nKGeBbfWTnaqhE6e3uOwnxNrq9za8z5TC48/MTo4fXtwFb gn86mmJqM/tQvXZ5Uf0jPUd+5Zqbx42IdbGCFLR0PG2ClafRNNUUYwWLhiafGER0Id 4lLDpEkWIHMfD0Xtt/Vtsvn9DVPJUnhPqulpJ6KWGwGqmghhQEL60+tK6wNsqHrLVN 6sPgpRQRHShdWA904eWh2ig9+w8EuWLWuEDcMMsjXav/2wcy+dpgsDjIppMayQckt2 7kGvYMEGenl0PIflJwxLFYaWHn1H74bceAys/i3QXtabp+yAoipHB6aOCKJjTiZ7tC +/ifj9vB+xI8w== Date: Mon, 4 Mar 2024 19:25:33 +0000 From: Conor Dooley To: Alexandre Ghiti Cc: Paul Walmsley , Palmer Dabbelt , Albert Ou , Andrea Parri , Samuel Holland , Anup Patel , Steven Rostedt , Masami Hiramatsu , Mark Rutland , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, Andrea Parri Subject: Re: [PATCH v3 1/2] riscv: Remove superfluous smp_mb() Message-ID: <20240304-aptly-surely-ab9ea7d82337@spud> References: <20240229121056.203419-1-alexghiti@rivosinc.com> <20240229121056.203419-2-alexghiti@rivosinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="73cKyHnDQwSzGFtc" Content-Disposition: inline In-Reply-To: <20240229121056.203419-2-alexghiti@rivosinc.com> --73cKyHnDQwSzGFtc Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 29, 2024 at 01:10:55PM +0100, Alexandre Ghiti wrote: > This memory barrier is not needed and not documented so simply remove > it. This looks like it should be patch 2 in the series, not patch 1, as it is cleanup rather than a fix that needs backporting. >=20 > Suggested-by: Andrea Parri > Signed-off-by: Alexandre Ghiti > Reviewed-by: Andrea Parri > --- > arch/riscv/kernel/patch.c | 1 - > 1 file changed, 1 deletion(-) >=20 > diff --git a/arch/riscv/kernel/patch.c b/arch/riscv/kernel/patch.c > index 37e87fdcf6a0..0b5c16dfe3f4 100644 > --- a/arch/riscv/kernel/patch.c > +++ b/arch/riscv/kernel/patch.c > @@ -239,7 +239,6 @@ static int patch_text_cb(void *data) > } else { > while (atomic_read(&patch->cpu_count) <=3D num_online_cpus()) > cpu_relax(); > - smp_mb(); > } > =20 > return ret; > --=20 > 2.39.2 >=20 >=20 > _______________________________________________ > linux-riscv mailing list > linux-riscv@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-riscv --73cKyHnDQwSzGFtc Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZeYgLQAKCRB4tDGHoIJi 0gaoAQCyP9yuVqUn4rjvYnIqJ1Xvj9PmeOgG/Al0kAgSlncR0gD9GGCx6whb1QsB 8vwe/vUWWh01dW6RJJpmg5c4rIRlvw0= =uoct -----END PGP SIGNATURE----- --73cKyHnDQwSzGFtc--