Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp999771rdb; Wed, 6 Dec 2023 06:11:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IEYS2HWgz6WOJCRJufJ9rPfPSAxiWzROg83Wjw+GLIogW6fpNrnOKNkVkIm3Ppdk7bP5+20 X-Received: by 2002:a17:90b:114:b0:286:6cc1:2cd3 with SMTP id p20-20020a17090b011400b002866cc12cd3mr635929pjz.93.1701871886382; Wed, 06 Dec 2023 06:11:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701871886; cv=none; d=google.com; s=arc-20160816; b=CQtF4IVajHo41ykvSzGv03xRRVbEF3qV3iYcl78JSrTevA4K2ur2GFKVuhtDQGbCvD OrIJiSbaSWKKO+b5q1JlLlamfpp1L+ESZxPi0zh6txesQBmV2cA1gZXXo921428FInvQ YgZGMMcuPYKQGaUD/jAxPiSV9BS94W+9PDxyBCtWUmnlsDSmaU9UqkDlVcJ4sybp8njQ p06mNt0P7NhU0EIBpbtVq6rUWmWZ4XMfwebYp7FHrhDX2LomCam/IgUCOEmtmXO2iWN7 llpQuMQ4Rd83fQGvVvwA8GFRZSAkg0K/HKtziSOX51ld8plpzrUGNFqzgZ0EUBgFV5Pf bHpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=XNzSYcIp8QiaOcjyvcNVi0Ch8I0a7jbAWmfX7Yhtpd0=; fh=iVYs6/LEFCvLPFXfHZMT83RAc4yb1NrO2i4BGABv0QI=; b=bGR/2Nlu7CvT6dGqOkYkKYs4qd4GbyBdxEhca0Uubs6Z3g4dmdNHsOTZdaz1Sr2f43 llnoVsZhsMx6lDgMBAnekgHB7XlCzQAg4mX25sXk7Byi9JLmiIszE1PoekGzNik7fwcR eJYLnZ6I3OWmD3/QBxlk6vawSJQLdShtnQPiXWQPbXgIIYVX4ogtFrqBvmplRfuybTT/ uTbuZLWvHFWuUFUJlWmWKcehe+sDL/eCX8RvGx2A+WLSgJRgJshlh2PeE6ghZIKPlCL6 j0tNiIGsvGaFNzrY+SDHbb6bdKto3/PJNO4hGs626uIgwfxjwN+sKCcdP8MkhSmtsBzk QnkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=CZbk6fxU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id t4-20020a17090abc4400b00286dd5ae1cbsi3241719pjv.125.2023.12.06.06.11.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 06:11:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=CZbk6fxU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 670F08080E03; Wed, 6 Dec 2023 06:11:23 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378810AbjLFOLJ (ORCPT + 99 others); Wed, 6 Dec 2023 09:11:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378713AbjLFOLI (ORCPT ); Wed, 6 Dec 2023 09:11:08 -0500 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C7BFD45 for ; Wed, 6 Dec 2023 06:11:14 -0800 (PST) Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-50be9e6427dso4889544e87.1 for ; Wed, 06 Dec 2023 06:11:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701871873; x=1702476673; 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=XNzSYcIp8QiaOcjyvcNVi0Ch8I0a7jbAWmfX7Yhtpd0=; b=CZbk6fxU0jY15FaedogZhImHt12+o6NU7wlBOEgAEP4zV4kavjKuPk8R7W4cE+wWY9 PfdLsv2dNGu/cMXHzzCsw+kT0VNmTjrrT13XzRptPurskGOVhf3nCIPourUNeanX4uO9 G4oYyUw7U5lgh5BRn106IUqrRa7JQQ8FDv0VipM/ubGRiH23c7SSByCYUJKYLMHF3dso Pm6w1icYJ854xKEHXWiRPy/QRFz+0S7BW4Rn+9BB6dHkYrantDgtWmfbmvdxNBhRK68z LF19U6Fm8OfeSS+g49bOHI0RE3swDWzErhmCLgVhPuyTCqE26M4qqFMIRdomPSmNGFIb FvMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701871873; x=1702476673; 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=XNzSYcIp8QiaOcjyvcNVi0Ch8I0a7jbAWmfX7Yhtpd0=; b=KqAfqKrLMbnlCSNJiNHA3U710I0XS/s+Bsj3Lkbw+O1jaqUaCa5LgTVjM0noSzl14r 5XRD0SZBG4yKDHSl8Ai3beP5G49lV/A9tEhrwfyAYbZlbGHOP3je1eej6AiiCaBlDKrr SyhuU9p0ls6of5Bw7pDhouHqPI4mpJy5xafE/XMr886KzDmIbECdbSNCvdWMipEwUJxd UVBX5trbglZkFgLlXiEfi/xPPFBnzXw4vb1IdHcYohZWXHEMSKM+F5LnwAT231C8RVov pHiAGZrjELvciXu7GKhBSXVqMK6bczZ7nOamX8//ocUS/h/RweTcURJOREetSUEIBbqu XUkQ== X-Gm-Message-State: AOJu0Yzf6DLYyHmSGTDxMmMSbCnChLAp8q58w/lgucrhMzU0zRcN1c/J Q8z0pfm6jE2kDCuO8nFdtGg= X-Received: by 2002:ac2:4839:0:b0:50b:f82e:6d5a with SMTP id 25-20020ac24839000000b0050bf82e6d5amr580036lft.73.1701871872294; Wed, 06 Dec 2023 06:11:12 -0800 (PST) Received: from andrea ([31.189.124.152]) by smtp.gmail.com with ESMTPSA id j10-20020aa7c0ca000000b0054cea9f91e9sm16557edp.20.2023.12.06.06.11.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 06:11:11 -0800 (PST) Date: Wed, 6 Dec 2023 15:11:07 +0100 From: Andrea Parri To: Palmer Dabbelt Cc: mathieu.desnoyers@efficios.com, paulmck@kernel.org, Paul Walmsley , aou@eecs.berkeley.edu, mmaas@google.com, hboehm@google.com, striker@us.ibm.com, charlie@rivosinc.com, rehn@rivosinc.com, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] membarrier: riscv: Provide core serializing command Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 06 Dec 2023 06:11:23 -0800 (PST) > I see > > $ git grep "config MEMBARRIER" fab957c11efe2f405e08b9f0d080524bc2631428 > fab957c11efe2f405e08b9f0d080524bc2631428:init/Kconfig:config MEMBARRIER > > so IMO this is just one of those forever bugs. So I'd lean towards > > Fixes: fab957c11efe ("RISC-V: Atomic and Locking Code") Works for me, will apply in v2. > (or anything in that original patch set). It's not that big of a backport, > so I think it's safe enough? Indeed, I think so. The final version of this fix will likely depend on some machinery/code introduced by 3ccfebedd8cf54 ("powerpc, membarrier: Skip memory barrier in switch_mm()"); but, yes, nothing we can't safely adjust I think. Thanks, Andrea