Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp450557ybv; Thu, 13 Feb 2020 03:39:01 -0800 (PST) X-Google-Smtp-Source: APXvYqwbcuU0e50TTU9Ywq48QadvQZYFlZruz0u0fux1w5HAXbho+FOnvmep6EUVTh8Pd/RjCnKe X-Received: by 2002:aca:6543:: with SMTP id j3mr2537903oiw.150.1581593940831; Thu, 13 Feb 2020 03:39:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581593940; cv=none; d=google.com; s=arc-20160816; b=KZSjDQ9aQ268KYe36GrVThbq/4KX5CcFYA1coae1HUaoEs2nhz4MpgAAL4b1Czs7UG KOeqH0nrrnmSeUYQGaRWrlWR8HgBIpcL4llsVSQcnqeycFZrvDHGXNk6uv52y1WcfISk 6OwlSpSTQPDZhAhgFraYQyswQiOn5e9Pgdf73AQbjXLEyvnm1m+Nikk6m5vQr06LJXAQ xprWoBpGf3rCSXCZe9/D12OZu0dulOtHtLtuVvI518M3rd4wT9Xsbas/EuZCC18PMKC4 9uDTqJ62J8BnvJ1+8AqEaeZujJy5ce60CgvC4NGcf7++4FcWn0q4ik9SXjG5Q3dMvmPQ rS1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=PjmkkFzgtjZ/QS2g7YjgibuqZHgtw/RNL1AtsboLREc=; b=TyEpgOrokYxTTjmnK+9GiZuKNS5wJi49q+AOMRC2GOIygi2oPLwr29zO16GDiiDkxa LJu6UIJ8cqgVTVe/TEmcA+GJBZ2Ia9onC0pFkdjG7FzXGRCSIpgFg8JQjpDvxJNul77j K3Dto8puJuMFITvrBJoW9MxnJMFCMCe6NIpPx14QDBClNuslJ5bMc82OpOeJNNMJhQyk zg+QQqL3LYe5i88XQg66PM1rEf+munY5Bq0EU4GTfyuOEYanpnjBbkhKgpWOvjW1aXn/ efNIUViqh/ucXij9E/x2PDJWMtDy28mU3Ah1B4EcKbtPgrEWR93HZkeaQTEzuZUAMcd0 fafw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qVVIbygX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c10si1311448ots.106.2020.02.13.03.38.48; Thu, 13 Feb 2020 03:39:00 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qVVIbygX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729901AbgBMLiU (ORCPT + 99 others); Thu, 13 Feb 2020 06:38:20 -0500 Received: from mail-qt1-f193.google.com ([209.85.160.193]:40982 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729531AbgBMLiU (ORCPT ); Thu, 13 Feb 2020 06:38:20 -0500 Received: by mail-qt1-f193.google.com with SMTP id l21so4091434qtr.8 for ; Thu, 13 Feb 2020 03:38:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=PjmkkFzgtjZ/QS2g7YjgibuqZHgtw/RNL1AtsboLREc=; b=qVVIbygXYBc33x42k66krjJYZEisxQv50r89SaxKqM0SGuZaq3kscj5vXKPmtWs/iX jMbZZKRvdzPq0GKAKu0g+vYmW9NCVVkTpBkgh+45N35QdnOmdrp0cf5a/gRcRKH71HTe g3n02MxEW/sTtMpubWeXIKdcIN+D4sxhpnaFvUMVFPMB/faf9138uQl4gSIaT4ojF3xx V7C/UMRFWs+URQRe8YasZaTNeeFhUhSLefqalj5aX+gF6phpFLopqwjLgm/kESvh/1S5 piWUVC0KHKn4CXzSL8vqIOOBe0uXsx8ZElpwH1gEGLE6wjiFYkMBm06VkiAjuRvBIQgw 7oEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=PjmkkFzgtjZ/QS2g7YjgibuqZHgtw/RNL1AtsboLREc=; b=NBdnVHBbQLM9KXBzmwPvqVWXTostizI7Cd7BFOH4Gxucp7IMHgwbsvcCiKSAupkLQB /OBZwqg/wo+rLHuO2byQ2GfghRTR0NnEA/TedZm8bdpvJUo0So6WjChde83Fvg5OJ/Th 4Qvm2X5D3qf4DoYORWfKPSKBMoh0LhJD8Dk0LTYXVdWUVEMdj7k3c7IXNGZ/wefdZKgJ Fbhzyz4ezPcRSRq9JQ3Kr9rsjePREkWLmwa4f14+fHR1tXK7v5t8bDGKOls3NioGO3iF oIG9k3NOxhJ8Ad9rBqHUztu8Jyp06gi0ukugwwOLvaC1GSiAkWeasAXDNi3/I1ZgQeDk tsIA== X-Gm-Message-State: APjAAAVs2KHewYzXJfmVOd/EKiTEMGP1OI1d+WdeB6OJSWwB8YJ1poF2 gL6wgYXGjPnVWbpKnrm7mT0= X-Received: by 2002:ac8:1ca:: with SMTP id b10mr11070659qtg.314.1581593899066; Thu, 13 Feb 2020 03:38:19 -0800 (PST) Received: from auth1-smtp.messagingengine.com (auth1-smtp.messagingengine.com. [66.111.4.227]) by smtp.gmail.com with ESMTPSA id p19sm1313008qte.81.2020.02.13.03.38.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Feb 2020 03:38:18 -0800 (PST) Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailauth.nyi.internal (Postfix) with ESMTP id EE53822023; Thu, 13 Feb 2020 06:38:17 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Thu, 13 Feb 2020 06:38:17 -0500 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrieekgddvlecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkfhggtggujgesthdtredttddtvdenucfhrhhomhepuehoqhhunhcu hfgvnhhguceosghoqhhunhdrfhgvnhhgsehgmhgrihhlrdgtohhmqeenucffohhmrghinh epghhithhhuhgsrdgtohhmnecukfhppeehvddrudehhedrudduuddrjedunecuvehluhhs thgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepsghoqhhunhdomhgvsh hmthhprghuthhhphgvrhhsohhnrghlihhthidqieelvdeghedtieegqddujeejkeehheeh vddqsghoqhhunhdrfhgvnhhgpeepghhmrghilhdrtghomhesfhhigihmvgdrnhgrmhgv X-ME-Proxy: Received: from localhost (unknown [52.155.111.71]) by mail.messagingengine.com (Postfix) with ESMTPA id C1B1B328005D; Thu, 13 Feb 2020 06:38:13 -0500 (EST) Date: Thu, 13 Feb 2020 19:38:12 +0800 From: Boqun Feng To: Peter Zijlstra Cc: Michal Simek , linux-kernel@vger.kernel.org, monstr@monstr.eu, git@xilinx.com, arnd@arndb.de, Stefan Asserhall load and store , Will Deacon , paulmck@kernel.org, parri.andrea@gmail.com Subject: Re: [PATCH 7/7] microblaze: Do atomic operations by using exclusive ops Message-ID: <20200213113812.GG69108@debian-boqun.qqnc3lrjykvubdpftowmye0fmh.lx.internal.cloudapp.net> References: <20200212155500.GB14973@hirez.programming.kicks-ass.net> <4b46b33e-14ad-7097-f0db-2915ac772f15@xilinx.com> <20200213085849.GL14897@hirez.programming.kicks-ass.net> <20200213113432.GF69108@debian-boqun.qqnc3lrjykvubdpftowmye0fmh.lx.internal.cloudapp.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200213113432.GF69108@debian-boqun.qqnc3lrjykvubdpftowmye0fmh.lx.internal.cloudapp.net> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org (Forget to copy Andrea in the previous email) Andrea, could you tell us more about how to use klitmus to generate test modules from litmus test? Regards, Boqun On Thu, Feb 13, 2020 at 07:34:32PM +0800, Boqun Feng wrote: > On Thu, Feb 13, 2020 at 09:58:49AM +0100, Peter Zijlstra wrote: > [...] > > > > > Also is there any testsuite I should run to verify all these atomics > > > operations? That would really help but I haven't seen any tool (but also > > > didn't try hard to find it out). > > > > Will, Paul; can't this LKMM thing generate kernel modules to run? And do > > The herd toolset does have something called klitmus: > > "an experimental tool, similar to litmus7 that runs kernel memory model > tests as kernel modules." > > I think Andrea knows more about how to use it. > > > we have a 'nice' collection of litmus tests that cover atomic_t ? > > > > There is a few in Paul's litmus repo: > > https://github.com/paulmckrcu/litmus/tree/master/manual/atomic > > Maybe a good start? > > Regards, > Boqun > > > The one in atomic_t.txt should cover this one at least.