From patchwork Mon May 23 02:00:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kefeng Wang X-Patchwork-Id: 12858585 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A23D6C433F5 for ; Mon, 23 May 2022 08:28:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=oEBmKtiS0HX4Q7fiLMpWIXsbKpxsTfSk5nbu5GR37Hg=; b=amtvTL/UOKqNya wX7hBNSXpeWssFZBSR1ZKaLwJ5I1DbKtRMhChfQEcg20TNfFeoFOuw2hRd1ORfHuet2Wju94caEC+ YPh3srDfVtQgyBpSNO84dDffXktxt+/QmB+q+STYBCGO7DX6VGHX8oDHzOzTKgl4XaKpD55MGfl/a OwFcRRgXCkdGQsIh86GNYkbOBZO1CgQiG/zESpibBHPkt9bofr7gf41sDQE0a/g0VZGX1g6XxoFx5 B7yyNArggLmLGhZ67b9ncSE1MZt1BzKm+9ndGuUfJGWdFF98c/YJr+eq5BUgsEzJoz1kvsEFVOm1b oZhxNsgp5Kug+VuFdaoQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nt3PN-002Qbb-Ik; Mon, 23 May 2022 08:27:22 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nt2tj-002CKb-LM for linux-arm-kernel@bombadil.infradead.org; Mon, 23 May 2022 07:54:40 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Type:Content-Transfer-Encoding :MIME-Version:Message-ID:Date:Subject:CC:To:From:Sender:Reply-To:Content-ID: Content-Description:In-Reply-To:References; bh=jyIp/7Mgkj9i5j+EwiBrVgyy366/t4hcWDhdE+vQ4Ys=; b=SqqASFi9vQvv9McjcqZxk4CiU2 trpbAgenMHINy9dvaQZHjAlHsiB1W+MOpvSSWY6QA2DLM7TTU4e11aakIeO2hvMzeATMORti4UUfv e4fwV+KQJmsN/CcwfAlHKcURS1sY7t3PM2sVeIxKHqVz7O6yBw74ccxWC5tAz9a/dQG6PVK7QuIQ9 f4QR1c2aMV2+wfzsljTYXdWrAfowi/yEtY/NPFpiJZ5Cqtn1OTTpYeQq4QvVrydE2d/NMlDEJUc7P 1YuJwvop4AEOpk438fv7YNM3icBg5UBIlhMA6SsRn0iLV+HYDE/hJfIqOI8UXNb/NLu+Qb54dcyPj AyCdyz0A==; Received: from szxga08-in.huawei.com ([45.249.212.255]) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nsxDz-000k6T-JJ for linux-arm-kernel@lists.infradead.org; Mon, 23 May 2022 01:51:13 +0000 Received: from dggpemm500022.china.huawei.com (unknown [172.30.72.54]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4L60c85LpNz1JByS; Mon, 23 May 2022 09:48:56 +0800 (CST) Received: from dggpemm500001.china.huawei.com (7.185.36.107) by dggpemm500022.china.huawei.com (7.185.36.162) 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 09:50:24 +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 09:50:23 +0800 From: Kefeng Wang To: , , , , , , Jonathan Corbet CC: , Kefeng Wang Subject: [PATCH v3 0/2] arm64: Fix kcsan test_barrier fail and panic Date: Mon, 23 May 2022 10:00:49 +0800 Message-ID: <20220523020051.141460-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: dggems704-chm.china.huawei.com (10.3.19.181) To dggpemm500001.china.huawei.com (7.185.36.107) X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220523_025112_314924_275D1CFC X-CRM114-Status: UNSURE ( 6.02 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Fix selftest and kcsan_test() module fail when KCSAN_STRICT and KCSAN_WEAK_MEMORY enabled on ARM64. 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(-)