Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp2931361rdh; Mon, 27 Nov 2023 02:38:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IHz6OBiLXzo6H4aTrZdf0d5Ukh8ablsNy9Y6K/ePh+mtvk+9UIlhv+oBbyIFUYX9YSMlmdD X-Received: by 2002:aca:1112:0:b0:3b8:6093:f347 with SMTP id 18-20020aca1112000000b003b86093f347mr4650640oir.55.1701081485395; Mon, 27 Nov 2023 02:38:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701081485; cv=none; d=google.com; s=arc-20160816; b=AdwHF7NF83TzUeRl48PxbTOGuaoC7x0M6hdXF+9MsDHrpC5B2ufMKW7lIN7+HNSDUQ B2n/PX8E09wYy2ZzRzvjG2z8D/7reMNXK66xEwJsX1EdtQH9dGM1MnvcptFWvbE0Qxbz 6i8su+3A0KwyOWkDOAabOZyH/YA562P3kbZDHNHGWaz+c72jRTM+7yILuE1hjikBT68E nMptmL17IPbRlcX3ul/wUX+r2PkK5noXDJvaeeLbkR/pPO0P3BAf0Lm0QO8noFfJavcW Si3BaZgHBakZF2Tx11/uTf6YtvsGrB843PSLXhhFj0d0UUQqgcMteVuRomP7sxUnDtnP Vclg== 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=792DKZkn7Ji24YeL6hrYPnjBpI0msmVN80AFwisLMi4=; fh=QoV8WEq5iVyCOekvLrsEgtWeqCfD5AYb55277PVLVRg=; b=QW5IYstE3yywEOrf2UzUo0Y+XDCs71DeDOx3k1ElKHAFNhqXGa4ToQnVF/LMTOMjnx sv8PdOR/R+PYdyOrlpB39sTWxZoOZinsA0W9Tgj0RpyaWt3acagdvXxxgHg9L7TPI2zr RwYL80I+F49if3BdiRxaxqBpHuU1L3iY24KVbme6+G7EO5FEp0sBSY3vUSb65ujJiIMp mH2FiMe46PV2PFuM9geNg4GLszm98sUTFjOwsPUjN+/9xxs4lZjv2l+ajZMw2gm/MXuR L8FhYSgM5/1HL24iPz4r8xiT26g+gLJTrTIJ1BI/QAhmeVwwI0lRHgiv4DEPe1Iz0ehG qbfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=lUJnbHA2; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id f9-20020a056a0022c900b006c6b9625350si9579437pfj.281.2023.11.27.02.38.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 02:38:05 -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=@microchip.com header.s=mchp header.b=lUJnbHA2; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 47A0680947D7; Mon, 27 Nov 2023 02:38:02 -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 S233005AbjK0Khr (ORCPT + 99 others); Mon, 27 Nov 2023 05:37:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232976AbjK0Khp (ORCPT ); Mon, 27 Nov 2023 05:37:45 -0500 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90EED18E; Mon, 27 Nov 2023 02:37:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1701081471; x=1732617471; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=+/K/TBwFkECz7aLxzE8hjx15xz33xVUqkjmbFTjpyh0=; b=lUJnbHA2VNVyMWTwbNDEUjzbu7mYPKXbUjMUBq8y/mXRYppdTPEGH1nX xakVgfPl3H7QmtCqixpWAgRk35GeAF2XlrCrLb1ttHg3+lDFTmxDngfH8 t1rhsTGAVjobrT+Xl8Uv4d4lfxoS+5yET5MrhJ8Ke11/a0O9OIm8qkEh9 p6MGLMM7R8uWhYt4TsbkdVW1TF4ssj3DDlFMiBaaG09EmDmGD4zwm+fts hK2FZJ8F1arFOLd60bpUCQ0eWdV8z31iAVT0WGjx+RklLIg4BUx6pPzrb GkO2vW5bQNN8kBRd3AbGyqhRL2iKFVKc+cEycNb4ri5aYYVSaJHqRxeJQ A==; X-CSE-ConnectionGUID: xOAyVbUwTMO+uJD9UgwqaQ== X-CSE-MsgGUID: 18YxV9ktRHWC/RgNDyCApQ== X-ThreatScanner-Verdict: Negative X-IronPort-AV: E=Sophos;i="6.04,230,1695711600"; d="asc'?scan'208";a="12327336" X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa3.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 27 Nov 2023 03:37:40 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Mon, 27 Nov 2023 03:37:17 -0700 Received: from wendy (10.10.85.11) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Mon, 27 Nov 2023 03:37:13 -0700 Date: Mon, 27 Nov 2023 10:36:44 +0000 From: Conor Dooley To: Christoph Muellner CC: , , , , Palmer Dabbelt , Paul Walmsley , Albert Ou , Andrew Morton , Shuah Khan , Jonathan Corbet , Anup Patel , Philipp Tomsich , Andrew Jones , Guo Ren , Daniel Henrique Barboza , =?iso-8859-1?Q?Bj=F6rn_T=F6pel?= , Alan Stern , Andrea Parri , Will Deacon , Daniel Lustig , Peter Zijlstra Subject: Re: [RFC PATCH 0/5] RISC-V: Add dynamic TSO support Message-ID: <20231127-process-dinginess-cea6dd652b99@wendy> References: <20231124072142.2786653-1-christoph.muellner@vrull.eu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="kbT7YkFzL4BHVstF" Content-Disposition: inline In-Reply-To: <20231124072142.2786653-1-christoph.muellner@vrull.eu> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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]); Mon, 27 Nov 2023 02:38:02 -0800 (PST) --kbT7YkFzL4BHVstF Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Fri, Nov 24, 2023 at 08:21:37AM +0100, Christoph Muellner wrote: > From: Christoph M=FCllner >=20 > The upcoming RISC-V Ssdtso specification introduces a bit in the senvcfg > CSR to switch the memory consistency model at run-time from RVWMO to TSO > (and back). The active consistency model can therefore be switched on a > per-hart base and managed by the kernel on a per-process/thread base. >=20 > This patch implements basic Ssdtso support and adds a prctl API on top > so that user-space processes can switch to a stronger memory consistency > model (than the kernel was written for) at run-time. >=20 > I am not sure if other architectures support switching the memory > consistency model at run-time, but designing the prctl API in an > arch-independent way allows reusing it in the future. >=20 > The patchset also comes with a short documentation of the prctl API. >=20 > This series is based on the second draft of the Ssdtso specification > which was published recently on an RVI list: > https://lists.riscv.org/g/tech-arch-review/message/183 > Note, that the Ssdtso specification is in development state > (i.e., not frozen or even ratified) which is also the reason > why I marked the series as RFC. >=20 > One aspect that is not covered in this patchset is virtualization. > It is planned to add virtualization support in a later version. > Hints/suggestions on how to implement this part are very much > appreciated. >=20 > Christoph M=FCllner (5): I know this is an RFC, but it could probably do with a bit more compile testing, as: > RISC-V: Add basic Ssdtso support This patch doesn't build for rv64 allmodconfig > RISC-V: Expose Ssdtso via hwprobe API This one seems to build fine > uapi: prctl: Add new prctl call to set/get the memory consistency > model > RISC-V: Implement prctl call to set/get the memory consistency model > RISC-V: selftests: Add DTSO tests These don't build for: rv32 defconfig rv64 allmodconfig rv64 nommu Cheers, Conor. --kbT7YkFzL4BHVstF Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZWRxPAAKCRB4tDGHoIJi 0lTTAP9C2gVptHYxg1wEQyIceVB2NvjKokFBaZX4p4k/YXZz7gD+MoMtrN7h6uWY 3jfYLulJnUx7qvF2seA9F7dMnismKQw= =roRE -----END PGP SIGNATURE----- --kbT7YkFzL4BHVstF--