From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EBE44C3B195 for ; Fri, 14 Feb 2020 09:55:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BF938222C4 for ; Fri, 14 Feb 2020 09:55:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="lc+gtWU1" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729098AbgBNJzq (ORCPT ); Fri, 14 Feb 2020 04:55:46 -0500 Received: from merlin.infradead.org ([205.233.59.134]:55058 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726004AbgBNJzp (ORCPT ); Fri, 14 Feb 2020 04:55:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=EIrr9N8HtFKPMFFBjN6WOJykZW1HaFopZKPkRsbYCNk=; b=lc+gtWU10tBCIZpKD430bBSFrF jCCEbdppu9dBVJU2kX3w3Gb6BTnhJuugaPkn1dnf04gQlJHU/0yCpL68v1qn8HOFuo5tgtuTwAZ3q I42ypa1pu5glbvyI6XK0XcWPeFDjqPHy5oewy3Ls3aDrmifpOYNxCxR8kMerB9w1/VqB6PB3VvohW yY+nMf1kvcK6pFciXjdOvJaIDZOY1jfktifgymE+/RvtwKT5JpeaXVAh+42T7tOifWdgxCWnGAb4u u6GGMhfT6l0p9Pkf+YEUDI9Ji1LcIVq2mEu4tJNkm91+ZqTw9A9VZaXFx4vArDqxPwPj+TnABRyon W4wkenRw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1j2Xgr-0008Og-Lj; Fri, 14 Feb 2020 09:55:17 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id A6A3530066E; Fri, 14 Feb 2020 10:53:23 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id A779220254E63; Fri, 14 Feb 2020 10:55:13 +0100 (CET) Date: Fri, 14 Feb 2020 10:55:13 +0100 From: Peter Zijlstra To: Boqun Feng Cc: linux-kernel@vger.kernel.org, Alan Stern , Andrea Parri , Will Deacon , Nicholas Piggin , David Howells , Jade Alglave , Luc Maranget , "Paul E. McKenney" , Akira Yokosawa , Daniel Lustig , Jonathan Corbet , linux-arch@vger.kernel.org, linux-doc@vger.kernel.org Subject: Re: [RFC 0/3] tools/memory-model: Add litmus tests for atomic APIs Message-ID: <20200214095513.GJ14879@hirez.programming.kicks-ass.net> References: <20200214040132.91934-1-boqun.feng@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200214040132.91934-1-boqun.feng@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 14, 2020 at 12:01:29PM +0800, Boqun Feng wrote: > A recent discussion raises up the requirement for having test cases for > atomic APIs: > > https://lore.kernel.org/lkml/20200213085849.GL14897@hirez.programming.kicks-ass.net/ > > , and since we already have a way to generate a test module from a > litmus test with klitmus[1]. It makes sense that we add more litmus > tests for atomic APIs into memory-model. > > So I begin to do this and the plan is to add the litmus tests we already > use in atomic_t.txt, ones from Paul's litmus collection[2], and any > other valuable litmus test we come up while adding the previous two > kinds of tests. > > This patchset finishes the first part (adding atomic_t.txt litmus > tests). I also improve the atomic_t.txt to make it consistent with the > litmus tests. > > One thing to note is patch #2 requires a modification to herd and I just > made a PR to Luc's repo: > > https://github.com/herd/herdtools7/pull/28 > > , so if this patchset looks good to everyone and someone plans to take > it (and I assume is Paul), please wait until that PR is settled. And > probably we need to bump the required herd version because of it. > > Comments and suggesions are welcome! Very nice, thanks!