Received: by 2002:ab2:2997:0:b0:1ec:cbc4:63fb with SMTP id n23csp386152lqb; Thu, 29 Feb 2024 04:12:24 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVBV6iGnpS81Gl7J+wzATST5lGK72QuOL0lJOtAYZQEHmXBOL+AmeNNWObgxF4q0JKJn7HhptGD6AXQOt0Bj61kxr7CKMUEk/8eRGYLdg== X-Google-Smtp-Source: AGHT+IGD9KeToP6iDZQdH6V5vS3rTpq67NUyrD8GMZBpQ6SvFvwTqOIGEoQHxTJKwFXgqO4tMJYD X-Received: by 2002:a0c:fb50:0:b0:690:46a8:93f with SMTP id b16-20020a0cfb50000000b0069046a8093fmr1699601qvq.44.1709208744612; Thu, 29 Feb 2024 04:12:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709208744; cv=pass; d=google.com; s=arc-20160816; b=XXdxJAhCWfDRcGuTYDTvgXKSNisJYtsqDxF1jQ4fBuOacYmTM29eLFNGt7kOg431cU kwMBd1LQxL1vwTW6zzEfeo5XeTeKE1dLcqxirdu54fGDndddDKhxcp33HGAC+XzVBcNC oSe8W5q/BWAAGMy2tnsgnv/B58k5N/Gb3EH6NnaPzXxVTZOnrcK7Jm0h9ldo5CmiGMj7 13gKMKcJ4Gqpkigiu/yTM/6TGbcGm47t7p6LeXNhfUSVMmIyCKY47NAlGGBbhLI3BLBW kJFeT1nSwnmKD37ooLwwdGssoVDMv5hOIbu7QjV2yFIYvpM+uPWifqQvzkC4uy6aFnxo dUtA== 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=sQF1yLtoiSlCctJ+RE39C/7ki1uh9viRU9s1V0y1lKc=; fh=9z9qdi6QoZ37dSczg6+bc3Ru/wU1CYC3Ffg+tCsZttU=; b=tJJlzygkf8G45ZxD6W3KtrpVE3ScLGoRDKvuv766cU0yPTwMiUiM6MA8vHLEx7Wdkd SyBx0Pb7qFjN7+585YGsQ5bIrOaFww52zQ3jN5Okr89Nx1kYRxd6Z1tAZQatzzLTxnL0 buRoG81ech2jkbbJ4OQkMjNkLzorY1UDPeWzBpgS8hWVwfIVctlVS3HdE/Qw6F/0xZUS fCF/cw40KElpDgTYXXZn+a1VEz2NJyk2tRFDbL3+B5FktuSxurqvAyws9wDDnTgkSRWX 5pyCUY5N72tKe8lU6KikkAa8zUopARiATolm+lmBZHX8De2akBIH1yB5ESRQMFkiRhda 5YUA==; 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=pWnOgRrL; 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-86678-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86678-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id iw1-20020a0562140f2100b0068eeb0d26ddsi1205062qvb.229.2024.02.29.04.12.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 04:12:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-86678-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=pWnOgRrL; 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-86678-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86678-linux.lists.archive=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 542431C2231B for ; Thu, 29 Feb 2024 12:12:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7FBC07D07F; Thu, 29 Feb 2024 12:12:04 +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="pWnOgRrL" Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) (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 680377D069 for ; Thu, 29 Feb 2024 12:12:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709208723; cv=none; b=eiCiKYyZ8DIymTu7cD2tokM38e6XxfLVw9fVRSqMRfaHBJgfrUaQzODHCwvqs7sm7DYb5VfWo/o8joCJWt3gLchOKMHHMekpwv7UCc/Bax/QNNPce8+pErLfzqiYThqkRGdLmDAX8A8jtH7scmh2JSZjw1ybj8aD2FXzVTKJRf8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709208723; c=relaxed/simple; bh=wwTa8WVdddwZqs8n44/5Bmw0bz7f3NhpD4br/pjBNu8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=U74/slF3wM8xlbaO6b2EgU4DiWO34lKwYEdSHb3WqOIWaidfRzera0+mGOH3VgDex2Yaf1EpoKs2CBwP3CGA6JxCILDPSvBDwKDCRqoWTVKZF14+AQV+r5+cpH/Q82y2EsVvzcjCjXF3K9+D5jcVCAollWygu//MtFxOFxsGhQI= 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=pWnOgRrL; arc=none smtp.client-ip=209.85.128.51 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-wm1-f51.google.com with SMTP id 5b1f17b1804b1-412c2352f74so999985e9.0 for ; Thu, 29 Feb 2024 04:12:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1709208720; x=1709813520; 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=sQF1yLtoiSlCctJ+RE39C/7ki1uh9viRU9s1V0y1lKc=; b=pWnOgRrLbMWA9ko9HU34VPW6aMd/8vT8w+wdzQXeepHpUGGBFrtqQolfeQBwe/Ttxs RzG92+sZnhZSz3QjnnwFx1d2TI3t8BdbqKEcfouxzZc36KB6YwYwCIEm2y6f+7YDymM5 zTsi+WspyHjyIvOqEIp+roAsd7jph/MvSuSKQbS8DTZ9JmjsXGks4s0kXOzNz8tMSzgg IPe4dFQ9flX3z5B0IfGNNU3COUBU561mdL/ezluibOTD6xlScof8YJrvKGTyBkKhL7GO BEji15qNB+TnIIrU325WWfZcfX/yTa3f6iVH4pEJ94Wuk3NEsQ2Vw8xa769KZxtUk/Jw dfYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709208720; x=1709813520; 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=sQF1yLtoiSlCctJ+RE39C/7ki1uh9viRU9s1V0y1lKc=; b=NAVyvx6EGsYkqMK64ctZZAx/F0HY4iNnXMxV5iesxo584ScVUrG7zUzGFggQkhOwVl DYKG9/ZiN5fC+nFH0Uf7p+YB+BAq2rhIjfuxKGqW65ME0uik+hXLvE+mgGuOar+AoQfX rrrIYhmFUlbVr2xHhR973oTRcf0Wk5RWjnSHCLZc/A9YWGac9QrylKTwmwoEtu771Zkf jd8fKbrjdgPAZanZu/FR3L4HiTiR1a5mjPoH3eDtW3ikm3W8su+fFFbASuHWyYiQXUjF xF0Ta4oH5n6r+9QQ1iMPkKUa/RuEfgJOgUpDa2yP0ozIIuZ/NQMAEzeBTOdndCQT4FnH cP5g== X-Forwarded-Encrypted: i=1; AJvYcCXN4u5p6nknFL9ZxGKyOYLQYqNL581qzbHDiTnt6lN3+i1uF5reivUSVGXxMt0DmFyjQaHx6Ryz1kXpf1EFUllsSwNSznd+uyt/qEDI X-Gm-Message-State: AOJu0Yz5mmnv2TZPYr0ymny4vjUSFDUKGhOnlxA+WuRbw5EkY3pYezPV 83ENzPAVPKgW7s0odKQbjZOuRlhXiuNDEYe7/7srfmRAoxQEokGT6ptXsYa0+sk= X-Received: by 2002:a05:600c:4ecd:b0:412:bca4:f23d with SMTP id g13-20020a05600c4ecd00b00412bca4f23dmr1340384wmq.29.1709208719846; Thu, 29 Feb 2024 04:11:59 -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 k40-20020a05600c1ca800b00412b643b5a3sm1922750wms.11.2024.02.29.04.11.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 04:11:59 -0800 (PST) From: Alexandre Ghiti To: 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 Cc: Alexandre Ghiti , Andrea Parri Subject: [PATCH v3 1/2] riscv: Remove superfluous smp_mb() Date: Thu, 29 Feb 2024 13:10:55 +0100 Message-Id: <20240229121056.203419-2-alexghiti@rivosinc.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240229121056.203419-1-alexghiti@rivosinc.com> References: <20240229121056.203419-1-alexghiti@rivosinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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; -- 2.39.2