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: 12323821 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=-17.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,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 C0E27C48BDF for ; Wed, 16 Jun 2021 03:23:09 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 8B01861246 for ; Wed, 16 Jun 2021 03:23:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8B01861246 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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:References:In-Reply-To: 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: List-Owner; bh=t2hFXgSEUC5f0yv5abNVkV3Fx7/YPgNLBxzNSxSaPBo=; b=wf+/2dV+vCDub6 Hdh1qaqaDv9GspaR7S7JPmt2ZPEfRS7mMXgzfJXtD8D/q1EWmqF3mbaxPwdU+g9HgGGeeqa9iPvl/ l7n8o0N4BkaZISAQuXgeW867PqGoeGBROkkb9Zm4SGIDTIReDBW8UQfomRrAHZgJge1R/2nR4MGTh kMZXEvA86oowhICDHfKasO1WhYdpWIrFoRDxLpcuDlTb02TzB4YoBs5vUXdD9FgUwBcwi2/U8vXuh YRW8lCdktMchTKUYeK3yORwBPbq+M5IyphufCiFdR/u5DWVcpObkQPLXzKCXJ+SAMK0Pd9p5KErQ9 bZ0j82JjO4mDLmFIemRQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ltM7K-004YCz-0R; Wed, 16 Jun 2021 03:21:26 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ltM7E-004Y9R-Gq for linux-arm-kernel@lists.infradead.org; Wed, 16 Jun 2021 03:21:23 +0000 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210615_202120_594231_37B0E19F X-CRM114-Status: GOOD ( 10.39 ) 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 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