Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp2058367lqg; Mon, 4 Mar 2024 11:27:16 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXajkEUfvb6hBnKNqlqoDMl/K1tRA/ib3TcJgYGEQDAXiv4ZYJzBpEH9IDXLygUtJZeaupbXp0zv/sJ9qUTaO+sKaIdGuFZ7uIue0904Q== X-Google-Smtp-Source: AGHT+IEAh3tWPMSBOvfCU7MN0RuIYN/LD0OqxYWSJCJRRRxeaewd5xOicZN/3OJ0lZWteUpI1leB X-Received: by 2002:a81:a183:0:b0:608:c73e:cbaa with SMTP id y125-20020a81a183000000b00608c73ecbaamr9059149ywg.6.1709580436624; Mon, 04 Mar 2024 11:27:16 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709580436; cv=pass; d=google.com; s=arc-20160816; b=QGYTNOcqLvduix6hLxYLqSjROoV7lTImuZOFhFpMWYqz3fB01sVuslCPM2sjCXtxei luITyujPbAMdSN7HJTcXnhsbTWY6e9LX8xsPDh2LmIdeGrfOclcN84aVdcMC5oXi71x7 0Stl2sh5M7yachDhF04TgBjABbBINNyDBXN0QsdQHBAEmBXY6bIw7AtY+c1e6hKAB3dB 2P76cc2xnsL4dLOSSsUOzAEDhz8tYhL+bxUjAsC3UCRVy+yEgTbyKViV1Uyhtax9VaAF nNnZ6c4SJDksI0t4Z1yVWXRN8sYYC5c5JDTJeBZnKpgC6JEVy2+gswRJKjEn6BK4eaS5 4yJg== 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=NRGBFSK4UAvrZUKX4v3ipPB7T87gQNkUmQIBQgtrHhw=; fh=B5vnDFZj/jkObfvD89HZnYrZMT3EqKllBRszon1p/M4=; b=S16mMo0C9AP2vXEfCvJFXOmANBu7eNXEAQ1xfni8O/4SgAM0Wfuj3J+Y3U/ZkLMlOW hgK6HPSFMxWa9Gbx50pPNfm37gfQRPQNJyAH/7amJjRsfcVwcldSszZW3OBgR7ytO6uO FNwc/3Wxrt+k7aTv6JqNZrm5BNrT1QuFoqSUQl/apF+0kc/qRCF7KTeho+YrI1+/xa3D q9Coia4aswBCAECi6/HEsHwq1ddGrry5PqtN9IFmotmcClkfgvTtzjtKFF2fknFaTEaD y9hHLvtOXKcTphnCWI+M7IIYyrYis5c6p8o/e2d5mZKGo/lyOpPLkPGLd0/7wDv67Omy wysA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=g07YAk8C; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-91174-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91174-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id w4-20020ac87e84000000b0042ef1df37e8si2931749qtj.20.2024.03.04.11.27.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 11:27:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-91174-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=@kernel.org header.s=k20201202 header.b=g07YAk8C; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-91174-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91174-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 5B9301C213EC for ; Mon, 4 Mar 2024 19:27:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8C1D27993D; Mon, 4 Mar 2024 19:27:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="g07YAk8C" 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 AC90278B68; Mon, 4 Mar 2024 19:27:10 +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=1709580430; cv=none; b=h97Xu3bfY69A8CTkdme+816SPGTXatDRlPkkICSFPPVB3sH3mqrFVn3MsT3EkfBgLT5pp+haY8hoGqMUxV4OixvjbSqWj+HAe6EU0D6/whYmkAllDGgaZseY8S8tkA8XQL7Wl0r/Q78ZgGsdf4JDGjYojiylfDsnXsDghhpHDhU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709580430; c=relaxed/simple; bh=NRGBFSK4UAvrZUKX4v3ipPB7T87gQNkUmQIBQgtrHhw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=THBdhEOc4ev2iZxY1pWTRhw8FqlFqIGk2+DHCsQZwsoh3tw+Ux1Gbs3vjuh0QVe1o58/xdTiswiowkbwOIsjxIBAsCr6DZ4yWw8tkx6n15JEW1onvqV/0jwFfOvN/uxqBZoWeGd+4QPNvQsHtVNqT6AzAskJv8PCE80yGkKaunc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=g07YAk8C; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 40826C433F1; Mon, 4 Mar 2024 19:27:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709580430; bh=NRGBFSK4UAvrZUKX4v3ipPB7T87gQNkUmQIBQgtrHhw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=g07YAk8CLZHQ43AdB8ZPf6pYoLYryNyswI6epfxNEN0+JvDkWygaKsd2i/tEN5Q+p QGjHCr06rpUacf6XFj7+6t6FRGCCYrnme332ZfXtzeIJdPyJA+B2WPhSJzp8NRTj2r pfTFb4CiC9hCzYzEsvBBoXtuI6vbmSIuHCYXcRj/Ocp0iA9XDh53h8W/WVq7z0yPK8 3M9+2zjE5oxnmj/zWgfUVE0m4aHThHS9SryjJ+q2360QcRuAyBclpGVISvf1ua88t+ 1xjL5HassavRpM9UTiIfZLsusZfJbl6ZujRp0KZaZ8HEoU5cfxXvDlPKstVS3LA/oQ xmU2IRo8La7kg== Date: Mon, 4 Mar 2024 19:27:04 +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, =?iso-8859-1?Q?Bj=F6rn_T=F6pel?= , Andrea Parri Subject: Re: [PATCH v3 2/2] riscv: Fix text patching when IPI are used Message-ID: <20240304-makeshift-bakeshop-26c9611de1a3@spud> References: <20240229121056.203419-1-alexghiti@rivosinc.com> <20240229121056.203419-3-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="CGU1t6lbMj/vUiqU" Content-Disposition: inline In-Reply-To: <20240229121056.203419-3-alexghiti@rivosinc.com> --CGU1t6lbMj/vUiqU Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 29, 2024 at 01:10:56PM +0100, Alexandre Ghiti wrote: > For now, we use stop_machine() to patch the text and when we use IPIs for > remote icache flushes (which is emitted in patch_text_nosync()), the syst= em > hangs. >=20 > So instead, make sure every CPU executes the stop_machine() patching > function and emit a local icache flush there. >=20 > Co-developed-by: Bj=F6rn T=F6pel > Signed-off-by: Bj=F6rn T=F6pel > Signed-off-by: Alexandre Ghiti > Reviewed-by: Andrea Parri What commit does this fix? --CGU1t6lbMj/vUiqU Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZeYgiAAKCRB4tDGHoIJi 0qjkAQDn1f/dT64PtnCiJNs8Qio3UgBL19K4uIcjx/5UwnIPSgEAwwKcIIoDYm3r ATY6C+CwtQiaTrYXHsoo0LaLIsGgCQ4= =Ko4a -----END PGP SIGNATURE----- --CGU1t6lbMj/vUiqU--