From patchwork Wed Feb 28 17:51:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Ghiti X-Patchwork-Id: 207937 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp3508319dyb; Wed, 28 Feb 2024 09:53:12 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVnEo21ZjXT9wBht2vvyeF5so23W3gPfPwaIjKft/YySp2smXdrZclFRQ6ng2yRufUAdjBhu9s7VA++3tn9I+SX9S0sOQ== X-Google-Smtp-Source: AGHT+IHObsXTiOCq6vjsR5e8jS1g+vp6jdcM87ZOpYWWIkjpjuih0gN74ebmNfUngvc7Dx14su2e X-Received: by 2002:a05:6402:14c6:b0:565:50f8:bad5 with SMTP id f6-20020a05640214c600b0056550f8bad5mr91224edx.30.1709142792177; Wed, 28 Feb 2024 09:53:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709142792; cv=pass; d=google.com; s=arc-20160816; b=upYNU0qbFTL8s8gLBkFivfzYFy9a7SVZC1IYOJwA1v1xu2roaxeWawztKALp9NbfdC vnjXGi9TbuwFWigKOIYrxmAIcbm5XdpsMHFhl9EbN+RxD2q9eAj6TMCwNvpeVinC9CpN v4XJTfKdiDfkBTlzfII0N2EfRc28FnC9GLwllwIAqvyQr5rkkqcrzQ5U5Egikfn9Of5C CqXgrbpKbNc3bRVbk5vwk7hkn3rV92mukQLBsmn94BuS/F9uro0lgO3vWa1rZvesGCpz 0qGkdAphYbyqoxw+Kf+CQQCMWJQPo1Mo2Ynd1LQ74m3mi1tq6NRMTOeqYNyKmGUXqa2e RiMA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=wN06uTemIfMB8SobqPuytHQ6Es/YWPqVM45xDKN/b1w=; fh=+JD7kpcVaSN3nG/5iK69AHA3qODSraeofp4OyqREAjE=; b=A4iznGWJHXonQLvCOSDYNsopgVzkoAydOdqOsOX6hfCBiZEAGeoYB2S3e+WTi6KlGG GCns8d0rHV0BArFU/b8IxF4v9+qJWspmwZ9xRV6gQAm6Yirr/rIrHFZkWK8lBWQ7rOhK F6Pv8SYpm9QJOK4/cPIlaT6KdFp14FJbC8L35l0r+WqJbghv7v1MJB0PQ5Nn7AsQuN3T hwyCpi7rahmlBRbjHtM3X1RIA+2Gf8FxG9G7/Vr0eUrZFFXD7jQUS78iNgc7XWLwl8np axF3f3LFJsUCZ0XdOXpNb+6oXr3RT+vunPzWk6JQXTS9gzwAf8BbgqxvRlt3IB9SPSXt +aQQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=Qhfm7L8k; arc=pass (i=1 spf=pass spfdomain=rivosinc.com dkim=pass dkdomain=rivosinc-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-85468-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85468-ouuuleilei=gmail.com@vger.kernel.org" Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id l26-20020a056402345a00b0056447ebd7afsi1904406edc.1.2024.02.28.09.53.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 09:53:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-85468-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=Qhfm7L8k; arc=pass (i=1 spf=pass spfdomain=rivosinc.com dkim=pass dkdomain=rivosinc-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-85468-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85468-ouuuleilei=gmail.com@vger.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 am.mirrors.kernel.org (Postfix) with ESMTPS id BE38F1F22822 for ; Wed, 28 Feb 2024 17:53:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A1B1415E5CA; Wed, 28 Feb 2024 17:53:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.b="Qhfm7L8k" Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com [209.85.208.178]) (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 423FB159573 for ; Wed, 28 Feb 2024 17:52:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.178 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709142778; cv=none; b=gUySG4dFsZx6lnoqyKlwxNezoBfhzmeKqf2TvNLEyIP4EmXtgOHHrNofc9OybOnHDP0IQX8z69OgHluzzj424fQ9caZwjJn6ellvdBHRpwDZz4QLhpB12E2oxhVbKLMHrCGlVfCrb/6rZVZob7qC3l55Q4nmJ1chRuo7vySjT/k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709142778; c=relaxed/simple; bh=VvQb+BMTgSSey78SvDrMJm/73S7iPwz7W6A4Lzu8+18=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=A9+hd3wruedbajfmmRd+YJCW8UmhXuPyNjy8TqkwP/45nYbPJnqLayYTyHR3aLvS+anO3Vajnlfr39eQA0ucMV3z3j3uK2b6kQDk9ZC3jXMXmSxv6I2GHd/PBiCnTVXYpzbezuLjx7wGoM/Z5KUQFkAXBv5Pcgj01tm4+xEnC+I= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rivosinc.com; spf=pass smtp.mailfrom=rivosinc.com; dkim=pass (2048-bit key) header.d=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.b=Qhfm7L8k; arc=none smtp.client-ip=209.85.208.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rivosinc.com Received: by mail-lj1-f178.google.com with SMTP id 38308e7fff4ca-2d275e63590so71358971fa.2 for ; Wed, 28 Feb 2024 09:52:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1709142775; x=1709747575; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=wN06uTemIfMB8SobqPuytHQ6Es/YWPqVM45xDKN/b1w=; b=Qhfm7L8kikplC47Nz/45oGAlXdkET9KCUglJpFm9sHkUPfQPlbtjWfIQGWSXHoLGgU BSWiGte/EPNeUIm+dTONcD/j0hKlI99iJmEHaRSJ/sgRbWVBrCHqrs8xY8wnV7jCCkVu 1mZigIRXqwyCkNlWXrL9nzAEB0Yp90ILOO+Y7Pl7Txnb3M0u86SRA4KyozDVc2LvlEeR AiYqz/q659BMo7dY3nFjcFnTYXi7Oi8heY1gcpdK8ytWJchD+KFE9FpKbJMyQu3e0jX4 4ZZt99RLcx6qCt3kBJydw/2ZVRCenoe0NgvfnSt4L4RpXmbqxSgFfHeCWgOyZCa+enGo LDXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709142775; x=1709747575; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wN06uTemIfMB8SobqPuytHQ6Es/YWPqVM45xDKN/b1w=; b=fT1dxUKILpfWwBQkmKOxKQHx9NW1btPrzJq+lBN0wl2nwzY0CWgOmLquore6Y3mu2D Z6pIFWqwAk31QyP26EgYkrVoVgwLxCAms683zP4wgK/1VyYSsiaU9xfMDKp1IfnzUdlu 0pgYsns82V5qJPpH+aw8OScx4PplprLpaHzQSZHSCREUc5FvYPrFivWKEfIhOzbjCC2R QavjLlZUFlmwObY7nkK2UgwyFGM3PoYrjWbkKq2EIW5/EZ3wGYBfSNDfuiydamaMNbri EuVfU6JR3fV6yedX1WrT+oDtzCwW75V+l6r86D6XbuY1dZ5Ee9e2CEgvKjbt9+OLPqK0 ciug== X-Forwarded-Encrypted: i=1; AJvYcCXKjzCUF8eDnPTsnByM6Rr/YX+l8S8ztSbtgG/ygW++l6oqvxI5yfVjAFqXUk8Nfa9LGIAL7fTgzw5lvfz5N0eYZ3H/Weq/0v6BGKPj X-Gm-Message-State: AOJu0Yyu0KK5gZVvbLHKFxvM6CywKbLbGUwbdpC6aV5VtROVKIQLBhGz ZPGNlETidc5bW2j2zCL6aekKlQ8j2ICxfskayq8WuMCHJeZFRJfje0UNq7Ab/b8= X-Received: by 2002:a2e:a545:0:b0:2d2:d58b:652a with SMTP id e5-20020a2ea545000000b002d2d58b652amr1724531ljn.21.1709142775497; Wed, 28 Feb 2024 09:52:55 -0800 (PST) Received: from alex-rivos.ba.rivosinc.com (amontpellier-656-1-456-62.w92-145.abo.wanadoo.fr. [92.145.124.62]) by smtp.gmail.com with ESMTPSA id ch12-20020a5d5d0c000000b0033dabeacab2sm15500222wrb.39.2024.02.28.09.52.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 09:52:55 -0800 (PST) From: Alexandre Ghiti To: Paul Walmsley , Palmer Dabbelt , Albert Ou , Andrea Parri , Anup Patel , Steven Rostedt , Masami Hiramatsu , Mark Rutland , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org Cc: Alexandre Ghiti Subject: [PATCH 1/2] riscv: Remove superfluous smp_mb() Date: Wed, 28 Feb 2024 18:51:48 +0100 Message-Id: <20240228175149.162646-2-alexghiti@rivosinc.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240228175149.162646-1-alexghiti@rivosinc.com> References: <20240228175149.162646-1-alexghiti@rivosinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792166112013652798 X-GMAIL-MSGID: 1792166112013652798 This memory barrier is not needed and not documented so simply remove it. Suggested-by: Andrea Parri Signed-off-by: Alexandre Ghiti Reviewed-by: Andrea Parri --- arch/riscv/kernel/patch.c | 1 - 1 file changed, 1 deletion(-) 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) <= num_online_cpus()) cpu_relax(); - smp_mb(); } return ret;