From patchwork Wed Jun 16 03:21:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Lutomirski X-Patchwork-Id: 12323815 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 53610C48BE8 for ; Wed, 16 Jun 2021 03:21:30 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id F303561246 for ; Wed, 16 Jun 2021 03:21:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F303561246 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id E9DCC6B0075; Tue, 15 Jun 2021 23:21:21 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E28496B0078; Tue, 15 Jun 2021 23:21:21 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CEE1F6B007B; Tue, 15 Jun 2021 23:21:21 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0235.hostedemail.com [216.40.44.235]) by kanga.kvack.org (Postfix) with ESMTP id 944766B0075 for ; Tue, 15 Jun 2021 23:21:21 -0400 (EDT) Received: from smtpin20.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 31A48180AD806 for ; Wed, 16 Jun 2021 03:21:21 +0000 (UTC) X-FDA: 78258136362.20.AC06FB4 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf12.hostedemail.com (Postfix) with ESMTP id 85104F2 for ; Wed, 16 Jun 2021 03:21:07 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 2742F613C2; Wed, 16 Jun 2021 03:21:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1623813680; bh=uwtQcyv5VK7EnNeu4zAuSiFMzgWca2SQ0MXYCFdFfoE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DUx2c2QdVsJ/e6o1nIEcvcwpfMTTwRZITr/IRvy6cFj1GF8ZkgGPcr9dJhZ0Aahcj Db0jmOS2dBE11jCaQ94u8RnJ6pJzeI5ilMOqW96akpc7Cvs2/ytVSzbGwsBKmp3Rav x9sATIjBcy21giShX/AUB2ujLJV5m/EcwvZ9k6ouu4vHJvfF+Kt4yDD+0EUlgw92UQ Rha8tWvK2dwWtfEwCxxcGLfFBqPBd6JyRHbdy33OZPUUUtbHT9r6q8UGcDUU8UZaD8 rkDV+j+cu6M5kPmGGXrB1FyGOdj2y3fmZIqPlEim+yeXdHGWVovFbYqHPhBF5kbX0j I8AWloY7Mh75A== From: Andy Lutomirski To: x86@kernel.org Cc: Dave Hansen , LKML , linux-mm@kvack.org, Andrew Morton , Andy Lutomirski , Mathieu Desnoyers , Nicholas Piggin , Peter Zijlstra , Russell King , linux-arm-kernel@lists.infradead.org Subject: [PATCH 7/8] membarrier: Remove arm (32) support for SYNC_CORE Date: Tue, 15 Jun 2021 20:21:12 -0700 Message-Id: <2142129092ff9aa00e600c42a26c4015b7f5ceec.1623813516.git.luto@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: References: MIME-Version: 1.0 Authentication-Results: imf12.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=DUx2c2Qd; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf12.hostedemail.com: domain of luto@kernel.org designates 198.145.29.99 as permitted sender) smtp.mailfrom=luto@kernel.org X-Rspamd-Server: rspam02 X-Stat-Signature: 3ajujktyg8t8ebcoae8bpuef5pxe83qf X-Rspamd-Queue-Id: 85104F2 X-HE-Tag: 1623813667-333213 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: On arm32, the only way to safely flush icache from usermode is to call cacheflush(2). This also handles any required pipeline flushes, so membarrier's SYNC_CORE feature is useless on arm. Remove it. Cc: Mathieu Desnoyers Cc: Nicholas Piggin Cc: Peter Zijlstra Cc: Russell King Cc: linux-arm-kernel@lists.infradead.org Signed-off-by: Andy Lutomirski Acked-by: Russell King (Oracle) --- arch/arm/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 24804f11302d..89a885fba724 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -10,7 +10,6 @@ config ARM select ARCH_HAS_FORTIFY_SOURCE select ARCH_HAS_KEEPINITRD select ARCH_HAS_KCOV - select ARCH_HAS_MEMBARRIER_SYNC_CORE select ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE select ARCH_HAS_PTE_SPECIAL if ARM_LPAE select ARCH_HAS_PHYS_TO_DMA