From patchwork Mon May 23 11:26:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kefeng Wang X-Patchwork-Id: 12858889 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4B53AC433F5 for ; Mon, 23 May 2022 11:16:22 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8E3166B000C; Mon, 23 May 2022 07:16:21 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 7A58B6B000D; Mon, 23 May 2022 07:16:21 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 646056B000E; Mon, 23 May 2022 07:16:21 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 4B9096B000C for ; Mon, 23 May 2022 07:16:21 -0400 (EDT) Received: from smtpin17.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 1E62D60F21 for ; Mon, 23 May 2022 11:16:21 +0000 (UTC) X-FDA: 79496754162.17.5F72E98 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by imf13.hostedemail.com (Postfix) with ESMTP id 095C52001A for ; Mon, 23 May 2022 11:15:53 +0000 (UTC) Received: from dggpemm500024.china.huawei.com (unknown [172.30.72.54]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4L6F9165Rnz1JC95; Mon, 23 May 2022 19:14:45 +0800 (CST) Received: from dggpemm500001.china.huawei.com (7.185.36.107) by dggpemm500024.china.huawei.com (7.185.36.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Mon, 23 May 2022 19:16:13 +0800 Received: from localhost.localdomain.localdomain (10.175.113.25) by dggpemm500001.china.huawei.com (7.185.36.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Mon, 23 May 2022 19:16:13 +0800 From: Kefeng Wang To: , , , , CC: , , , , Kefeng Wang Subject: [PATCH v4 0/2] arm64: Fix kcsan test_barrier fail and panic Date: Mon, 23 May 2022 19:26:39 +0800 Message-ID: <20220523112641.170060-1-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 X-Originating-IP: [10.175.113.25] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpemm500001.china.huawei.com (7.185.36.107) X-CFilter-Loop: Reflected X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: 095C52001A X-Rspam-User: Authentication-Results: imf13.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf13.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.255 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com X-Stat-Signature: mgwfn37mtzuoue3p15qfazqj1uok5q5i X-HE-Tag: 1653304553-783774 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Fix selftest and kcsan_test() module fail when KCSAN_STRICT and KCSAN_WEAK_MEMORY enabled on ARM64. v4: - Use 2 spaces after a sentence-ending '.', suggested by Marco - Collect Ack/Review v3: - update dma_mb()'s description and add the generic definition, also asm-generic change is moved into patch1, suggested by Marco. v2: - Add documents about dma_mb(), suggested by Mike and Will. - drop Fixes tag and update changlog, suggested by Mike. Kefeng Wang (2): asm-generic: Add memory barrier dma_mb() arm64: kcsan: Support detecting more missing memory barriers Documentation/memory-barriers.txt | 11 ++++++----- arch/arm64/include/asm/barrier.h | 12 ++++++------ include/asm-generic/barrier.h | 8 ++++++++ 3 files changed, 20 insertions(+), 11 deletions(-)