From patchwork Mon Feb 11 13:22:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Rutland X-Patchwork-Id: 158001 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp2593229jaa; Mon, 11 Feb 2019 05:22:27 -0800 (PST) X-Google-Smtp-Source: AHgI3IYS7TnESUFf/Yu0RRnkdZVAylcqmvuRtdzy+Eo3W7PHXMdc1ILHGYjsac3iSUz2CDxIMkZF X-Received: by 2002:a17:902:ba90:: with SMTP id k16mr11362268pls.214.1549891347767; Mon, 11 Feb 2019 05:22:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549891347; cv=none; d=google.com; s=arc-20160816; b=SWSiRKEjzJtZr6mc5Jdjr19CRSK6ColLGV5Ba8R085CInclIUxvm2nPEa46rZCsgJd 4y/nl+E8Sw5HwSuW0i4JMu0tbMt4Xvw4N+qGE/n99Nkjdwz83IFMjYE2hr1DVR4zThmR A9Ekc7fX6Fvfft/U5ezpM8c2lJ93ha+6Ej4Muvv3UsrH4B10WxEw3cfk2K2bkHRVZxav welWCEeywyaEfYz2XX27loWEZoezANonlmMSdzOWee/CrywmHYwLX03ILwvur5nUVL9r BdhiZq8w51VEAucrs6hYSfHz6yu3TRc3H8lCsstUYemulmV4q2itdHPzx2wwHNfvFEz6 KD5g== 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=tdr6L1Medex3s4AOoAJ41vkMTp9tQ622jmv+NOLlvRU=; b=TqAMuECaSB8XXfy17NfRSYDmXjSeGG0KvP0dpPr6lb3qNfZVWlNRPnykQqvb3/59AZ 3iT8ggJHvgnAyIqyhE+W3jo4b6OnObQLe61nXYuuvuyMRgqk4MXmRFuNoFhbAbgHw1oG zD+kLztZ6SaNAIS3Ra4rH7RD5pGdC2ybu1WnYIx1i56jQ8Ld9wufcuRgJvSpuvGbN+sk N58Oa9lkTZ/HyYloL8uCLV0trfqkZkpitCrfWeOdPtMNJfF1lOQZEuvbwJrLU2/O0MT6 z06fjHl4VyYJk6HTaOd2ei5Awgqo3NJtjyanaWB9rwUsGHnIhACc9Qfty2pCVuBOrHqr Dugg== 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 j186si10766153pfb.174.2019.02.11.05.22.27; Mon, 11 Feb 2019 05:22:27 -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 S1727952AbfBKNW0 (ORCPT + 31 others); Mon, 11 Feb 2019 08:22:26 -0500 Received: from foss.arm.com ([217.140.101.70]:48362 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727182AbfBKNWZ (ORCPT ); Mon, 11 Feb 2019 08:22:25 -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 4A6FE80D; Mon, 11 Feb 2019 05:22:25 -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 A157D3F557; Mon, 11 Feb 2019 05:22:23 -0800 (PST) From: Mark Rutland To: linux-kernel@vger.kernel.org, mingo@kernel.org Cc: 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: [PATCHv2 0/2] locking/atomics: fix and improvement Date: Mon, 11 Feb 2019 13:22:11 +0000 Message-Id: <20190211132213.15249-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, [Apologies for the duplicate send of this, I typo'd LKML in my initial attempt] I hope that these atomic scripting patches address your concerns with the atomics scripting infrastructure. These are based on the tip master branch, leaving the headers checked-in. Since v1 [1]: * rebase (and retest) atop of tip:master * fold in acks 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. [1] https://lore.kernel.org/lkml/20181210175035.45096-1-mark.rutland@arm.com/T/#m39ee97e01a02b5d054cca4d028445bb3a9818e91 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