From patchwork Mon Dec 10 17:50:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Rutland X-Patchwork-Id: 153332 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp3832064ljp; Mon, 10 Dec 2018 09:50:46 -0800 (PST) X-Google-Smtp-Source: AFSGD/WMuS+5idrTzWJBz2IJ7M/CWGF4y4EFAPHqc5bvdVqmq+HQ4invKmYRzIMNqL9oX8BFOriz X-Received: by 2002:a63:c141:: with SMTP id p1mr11630325pgi.424.1544464246441; Mon, 10 Dec 2018 09:50:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544464246; cv=none; d=google.com; s=arc-20160816; b=Ksqik8azURgDz2ny9b8HbhXVE1G997YB0eybzy/JfMDoeXwA+CWDyMEclctIiomqAT Smn8FJh6lMsaWYLqvcdQUSjbMD58gHDRN/y4zuoL3KonWODFuywFcf3l+aSEDpO1R76F UYJqmm9QBrArFNVe2sNph0NOVi7uARSzq3/UR1E0eUQR5FLTNleQ3itimUc+Tff8owKj 78NS1fV+c+jM0/L/IICpBmCGq4++/9MJvTpC1OaXSfnPLTRMKdMxuCpFEvp9/kWknoFY jR8/NoX3Jy5XMMPo2mmGaUdjEY9geRrV5tomjSpDVIoqOM4V1eHwD8d8LhVXvx3at7w1 nsxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=G8UBfZEC750rUYD2QOz+AcR15t82ignb9MXfvun2AsM=; b=uO55VY2PePNzqn4PFXyOv2/SeOiOyeXOuvMamzrdIJmAqPZClLBB1qTSp0Ph+ZXXgl j4bNQLp7ELMo9zC0TjvRoxK8Bklt/j3WM91UxzNFLndlI5H+wFu/tyzt2kuLed2zWFvs 163tVPyhW+H7M+squuVagtnsXYkbPhNvt1rJZiV9mWS10E4htscIf4gM/sAg0liaZjlo J9A1euLyjykUBv2nmMOxOzEFZsdXMcxwPFuegdkI4Z3XLpn3f6hQR8eQUy5n39S3Gc/x 8haQ15o2Rkfmbsrngf4TQFvYXPTV2keKgF35EZB7uCv5WtLL3Fw0+klE4+BmXJbZtozb jz5Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j5si10891391pfg.254.2018.12.10.09.50.46; Mon, 10 Dec 2018 09:50:46 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728486AbeLJRun (ORCPT + 31 others); Mon, 10 Dec 2018 12:50:43 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:59846 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727781AbeLJRum (ORCPT ); Mon, 10 Dec 2018 12:50:42 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 7B3D0EBD; Mon, 10 Dec 2018 09:50:42 -0800 (PST) Received: from lakrids.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id C80323F6A8; Mon, 10 Dec 2018 09:50:40 -0800 (PST) From: Mark Rutland To: mingo@kernel.org Cc: linux-kernel@vger.kernel.org, akpm@linux-foundation.org, anders.roxell@linaro.org, boqun.feng@gmail.com, mark.rutland@arm.com, naresh.kamboju@linaro.org, peterz@infradead.org, will.deacon@arm.com Subject: [PATCH 0/2] locking/atomics: fix and improvement Date: Mon, 10 Dec 2018 17:50:33 +0000 Message-Id: <20181210175035.45096-1-mark.rutland@arm.com> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Ingo, I hope that these atomic scripting patches address your concerns with the atomics scripting infrastructure. These are based on the tip locking/core branch, leaving the headers checked-in. The primary improvement is using a hash to detect when the headers have been erroneously modified, meaning check-atomics.sh takes ~0.15s, which I believe should be palatable. It also turns out that some people are building without coreutils, so I've picked up Anders' fix for this. Since sha1sum is part of coreutils, the checks are skipped when this isn't present, on the assumption that anyone actually sending patches will have a working coreutils. Are you happy to pick these up? Thanks, Mark. Anders Roxell (1): locking/atomics: Change 'fold' to 'grep' Mark Rutland (1): locking/atomics: Check atomic headers with sha1sum include/asm-generic/atomic-instrumented.h | 1 + include/asm-generic/atomic-long.h | 1 + include/linux/atomic-fallback.h | 1 + scripts/atomic/atomic-tbl.sh | 2 +- scripts/atomic/check-atomics.sh | 26 ++++++++++++++++++++------ scripts/atomic/gen-atomics.sh | 20 ++++++++++++++++++++ 6 files changed, 44 insertions(+), 7 deletions(-) create mode 100755 scripts/atomic/gen-atomics.sh -- 2.11.0