Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp190555rdb; Thu, 8 Feb 2024 03:13:33 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWbZbuQqVo/JOnI1X3AAbd0B2AmglEs6FHs/hUYx8RDjKnN7Ib0/vr3D9eujqs/NkooRjJH9aYQsgJrLcp7wJEi8XtMZx7wtALNDK6Caw== X-Google-Smtp-Source: AGHT+IG3sFB5DdBpMgqclAFyoD+T8Fhyf8HI83HGLH7et+v3ZRukT9URzVq2LnBuI1pBGNCgjGIc X-Received: by 2002:a05:6a20:9402:b0:19e:56f:7b18 with SMTP id hl2-20020a056a20940200b0019e056f7b18mr5704455pzb.56.1707390813434; Thu, 08 Feb 2024 03:13:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707390813; cv=pass; d=google.com; s=arc-20160816; b=y9U+7WOrT8BHZdp6g5A0Q1vzWTtOT+yJ6Op7k9GZEHTwwxb1yX/hKcWdsmpE3T8Bk7 ySZZpU54gU9Ik3IAJjG/tH0Gs+tf0+ff59qx6pfk1eVEm7O2pREODDK1qa+XhhaNvYge w3mpRacGqi8wzEYfzck7EWHYrOZcl2RsEeitmNyjuLSygYPDg1vyiTx23Rn9sKGXm1II SuI1qIXBNGqbyiBdL1rIldh+4xkjOaqOypBOh5Ra5eYfCMCLS88N69Y5xHDTadvWjqwV ALg2r0kXdvip1OM2P/H/uqYjRA1PbNTiDmitJ54ZcSyY6VuCvPCdA71KI3wFEt5Tcg+h lkZQ== 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=dkltV/LKNYv+rODcoWYZtA6BeNijF5We+gSy0yOyWBU=; fh=FBgEaUmfjmW6TBFwnQRXexZ8NkkV5Hg7a+WPnrxvlWE=; b=e4T1EN0WXGsmSOK4OpBsyeaLDx3X9QbnREu8Lcg/qW22pl62WOihJbRt1qpRn8nQQN qUHy1M6kqaTXYiNv1Fc62JlnV4aGnLWnMDhY/IUtzXV4zC/QTzu9XDW867tzDr1Kmp3L Afetd8KN0yp5j78MZYrb+SXB1N77I5CJZACxqKWEFL2E4LizPvXERdmpQG3FkgfwJwIF 1/Hjb7NMN1hsmny2ADQnulYpGlGd416R3Y3i80YK/H2lEY28w2SXWAnCMqR4/grL2MwM jXV4MK4XoW3ZkoS2q8gf9c5XWWUq99wR3ejYnB6c1AAAlVkX0fu+xnQ1hQ0/b1Z/RBnG KqSw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=aN7om1pw; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-57954-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57954-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com X-Forwarded-Encrypted: i=2; AJvYcCWeOA26MosqBuB+PAzocZj8DIV5NROhz4ydPg7X6Wv9dvbXn+WuzPsILsNJi6LSopTm4u7M5mX3ZjYZQwYqVsCanqP2KVxhYqXyjBtZSA== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id a192-20020a6390c9000000b005c6b4e26664si3685707pge.548.2024.02.08.03.13.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 03:13:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-57954-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=aN7om1pw; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-57954-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57954-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 23B6228A8E1 for ; Thu, 8 Feb 2024 11:11:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 188C36E2B9; Thu, 8 Feb 2024 11:11:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="aN7om1pw" Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com [209.85.208.53]) (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 8C3EA6E2B8; Thu, 8 Feb 2024 11:11:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707390675; cv=none; b=QZykDY8ZIHnQ2b+IMAdNwxo/m5JlhUA2lw1jOGOWx/nEMLTLen2/54Ltq2HLccIBRsbQvtjGTFzod1Lydt7ouNMfZ7KoPitqoxCnYjyJHjbaLViYlmUWyaAafCBl7XxF9XAfTD3TL1NaS3aRePlTleTK27g9WnXmvb9snLiSYFo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707390675; c=relaxed/simple; bh=7TN8p2o2cm1xDIfUQsYOBcvgE0rursFvpxIIGEQ5Aks=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=FCk0M82gLPiJDDKFh8spQYSy89oteNsb6j6I/ahuDyYiSkB/bpP6VBndsdoMbolTaWBxi2SfdlXfRMR0FI4dWcBdKbRHmCbla1WypQltAJN1xCkJtwd9tI1dnuVrSgBOWORuMixJsIXSgHEooac3/SjOsSOaEJNMqZppoG+vLtA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=aN7om1pw; arc=none smtp.client-ip=209.85.208.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-f53.google.com with SMTP id 4fb4d7f45d1cf-5600c43caddso1784194a12.2; Thu, 08 Feb 2024 03:11:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707390672; x=1707995472; 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=dkltV/LKNYv+rODcoWYZtA6BeNijF5We+gSy0yOyWBU=; b=aN7om1pwk+cOqgLLLW8ttpyi3G8nIfyUQbTKoBgpI42Y9UilelUgOXF9z6HQnqBn5T lNNr0NTvf2YyAtP995klUhnTM6NMELHRjNB3hyvHhqOmuyumLi5NGRtATOmEgboJJLb0 rjPfUvxHXbk+HQBra5vrYfwBX3QoqJvg8ZrQlQKLa/aH5Kd5ueuFKbSRSM30iVEgI40A ej4x/MfV0p8m+oSmgjztcR4uZRm9DeG5MapFD6wVr8bS6idkh7piebj8zcQobvmarZUn vbz19TIx/Cuk5y7Qy3CPdAYGY2s/SyunYR5pthavn5Luzl99ooiWxC29MnMbOKc9M6RP jbGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707390672; x=1707995472; 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=dkltV/LKNYv+rODcoWYZtA6BeNijF5We+gSy0yOyWBU=; b=xHYohe9Ig5ohrTlAKqnusN2IjeJHwG41wAPqBUA8MQ8aMqtTCPZw/6p/Ka46tAUjer bunVXOGbBi2+x+pbtOJkYbLhloqewJ1mIb9Q9lyav1QMhWvGaC6VeceFLO2tpKLjsHDq Jts9w2er0sP4pxG2VeD/q7u8/oRGvn2iaGCdl9lbc2Ccm/Dw3bQjTTEKa0qfMfpU2n12 l/yT2sM2JqQ3fa7BkP54RGbQS4ZjwcD6LFAxFKC52OgqImvLrm745eqG2+20QY6cA92A NhZ700SAI74uYd3TEms3cI0WeI+jAhC8Bp7WLHfnRv0fOSYHNZ9IIxrZkL3E8b8u5V0e lNhg== X-Forwarded-Encrypted: i=1; AJvYcCXkcxON69Z+Wv/I7EZzORwjGnwK+RjBOOz86DAopPlpcbhvI0f4xyyZvQKjILpLtWCLnvGSwwNY5cktADWMGskh4+2EanPmtHLGgpGDFltbmTIef+6Fe5ceGdUQ9uVi3mdrP73pdaHvuBn/Ajm4bn36qHHIA/EvV2zwG1LXD7sDI9E8kE33SlSG X-Gm-Message-State: AOJu0YyvDzD/5AxYl9iHHs6oJRH5isWy3yASXo5Nn/FBbWUrp/Qmg3qx ckvSe4O//eFqtxwCDV18TPGZ5Qlc4s5lnTc8PV2Sajb0PRRn1NZN X-Received: by 2002:a17:907:3c25:b0:a38:551d:ff1d with SMTP id gh37-20020a1709073c2500b00a38551dff1dmr3401759ejc.73.1707390671390; Thu, 08 Feb 2024 03:11:11 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCXIhbezgSq5pUviM5QD+tULi2vsu2weRt7MQTg2TgJ07ngjjOJj2myeyRzken1n6fgRGqMxQuVSeWNVHbvNA4qZZkJP5O/4hMsxgB3XpN2KCcAWtD9lcTad4awznh3Xqt4ONHoYS0rDhhPaxkfjDiiDtEjZtJVj2CtihTCLpzRmfVIwJYZPl7WpZhDlfR4tsHMLVdSNVcnWuFOCxTgg7hsLE65KG1isAtpZkVVBw8unjAL3e0K2ZBE6MU/ACqLVDp9MJ10rD+ULDsaXUi0r88hfdVl4+MPZCZMXUtgMDpG3zYs0JbxO8oRf0FWuPoswdq6Xipmo3r/7f3fty7VT9jFncxgKRCGYlVTNWqsLzFZlqzk1m7G5xn7DvAfMZmhu1FmODnVJilkxhvhZq3mUJowBW2sLJXHWDXoe+P8J7ETFz6l+4D1sZOk+3Gyi8950ePUVEV3muF5wNZ0nVvgPIZJTq6pNIS5Reyzk56V/fUsBNWxlXHrpiNf45bCeS2F6QIw0wEAmqYE2TFq8d/7yvclqvlqSXL76FGWOHf2jpRCxk6d4meLQyMLl6aLrjST2FHAm9eJHC/TsIAU4pih45hZhIXSxV2I0NvzIJeZXJucnMk3nC1Kgbc1DlZDiZXo1LVZJyBvYLsotP8OqKxUWPUT+9hlgDYhZXV0G507luAa45djJWzzzRpzos8L9XpBjyIoEI/8twbxUL0XnKTyvp2mOEpDO0N32RHTH302/hDy8QTwvDaeSBCdfW2JM5+AHWONdNoT9spayByfZYKzpxUGVeqlqHZQZMImktsG2ZR8Tir1C5H1Y/Ef26R4Hpg== Received: from andrea ([31.189.46.254]) by smtp.gmail.com with ESMTPSA id oz14-20020a170906cd0e00b00a38620c3b3dsm1777453ejb.198.2024.02.08.03.11.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 03:11:10 -0800 (PST) Date: Thu, 8 Feb 2024 12:10:52 +0100 From: Andrea Parri To: Jonas Oberhauser Cc: Peter Zijlstra , Christoph Muellner , linux-riscv@lists.infradead.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Palmer Dabbelt , Paul Walmsley , Albert Ou , Andrew Morton , Shuah Khan , Jonathan Corbet , Anup Patel , Philipp Tomsich , Andrew Jones , Guo Ren , Daniel Henrique Barboza , Conor Dooley , =?iso-8859-1?Q?Bj=F6rn_T=F6pel?= , Alan Stern , Will Deacon , Daniel Lustig , Brendan Sweeney , Hans Boehm , Andrew Waterman Subject: Re: [RFC PATCH 0/5] RISC-V: Add dynamic TSO support Message-ID: References: <20231124072142.2786653-1-christoph.muellner@vrull.eu> <20231124101519.GP3818@noisy.programming.kicks-ass.net> <59da3e41-abb3-405a-8f98-c74bdf26935b@huaweicloud.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <59da3e41-abb3-405a-8f98-c74bdf26935b@huaweicloud.com> On Fri, Nov 24, 2023 at 12:04:09PM +0100, Jonas Oberhauser wrote: > Unfortunately, at least last time I checked RISC-V still hadn't gotten such > instructions. > What they have is the *semantics* of the instructions, but no actual opcodes > to encode them. > I argued for them in the RISC-V memory group, but it was considered to be > outside the scope of that group. (Sorry for the late, late reply; just recalled this thread...) That's right. AFAICT, the discussion about the native load-acquire and store-release instructions was revived somewhere last year within the RVI community, culminating in the so called Zalasr-proposal [1]; Brendan, Hans and Andrew (+ Cc) might be able to provide more up-to- date information about the status/plans for that proposal. (Remark that RISC-V did introduce LR/SCs and AMOs instructions with acquire/release semantics separately, cf. the so called A-extension.) Andrea [1] https://github.com/mehnadnerd/riscv-zalasr