Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2006198rwl; Thu, 30 Mar 2023 04:54:08 -0700 (PDT) X-Google-Smtp-Source: AKy350ZZavgYNSdtPets+DJasku9P2SS+J2jJYg70psmcCPT283eyiidbWMzs8NnemhgWVPpyBqL X-Received: by 2002:a17:903:264b:b0:196:8d96:dc6b with SMTP id je11-20020a170903264b00b001968d96dc6bmr2026103plb.2.1680177248243; Thu, 30 Mar 2023 04:54:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680177248; cv=none; d=google.com; s=arc-20160816; b=oqT6GOHdTbeEof7nKhMqGL4FZJJAVDt1CG9KxE5YUiAvabdwIodUcemq/OfDT4+9yX KcNfi4hkk6wGuXnouEhbUByPIAed71jdkOh2IR3mjmqAc4saVHboCzdwMREIgkP0UuzE tYRD00KS8YBLUeTlJwSlbKPV3CgleFa1FHvIijbcWLfPw6JrROl72+FB904PzYrjR9PX stul9nCRDQwqkluhbHhwQLZrJcICsj6zE0p3NsHvPtOanPAfrjFl2Ll8+kFW3HZ9GIUC kb3J+uaaqsotCQ0IY3nITpznGi1lsKK+P9P2fc1rfvh6czQ0EG2VNCp+zWwYGpuC3QsG E/aA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=LpJsafvqZkML1IjeGETIRC9vLDRPf7wNdOCjD+D+4OM=; b=q1AXdn/+pfbf+QwkEORTxiIMTs4B6AX9fVkENuDqLXd66KZi9c/blR975JL07BpFT2 svcPvlH3VHq3rtOUyP/wMxjbWFxZMeNwrb+644JHWPS7mxDFZSYf2iAjEGthYlPjtLR7 ZlgILeAIcpNUc+Ns0NDSPRAuzOiCZm6A0msfJkpOPaGS10Nr4OEzsEZRQyPg/i00XuW0 gxg1GjChe+aN13EtCxMrmculEaLO4JfIZ6QR2KwEBiavTYEVUjt4Pho7Ic4Exet8d+WL u1QPW4ZkkzsZyMKUbap1EuVprIFD/CiSdNC6sRhp5mkcTzx//sVrBLPhDNhXoEo2qtPg 4Cfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=szgi2AGJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u2-20020a170902e80200b001a1abc91980si29088929plg.211.2023.03.30.04.53.56; Thu, 30 Mar 2023 04:54:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=szgi2AGJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230424AbjC3Lxo (ORCPT + 99 others); Thu, 30 Mar 2023 07:53:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230413AbjC3Lxm (ORCPT ); Thu, 30 Mar 2023 07:53:42 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 414DFB460; Thu, 30 Mar 2023 04:53:17 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B5FC16204C; Thu, 30 Mar 2023 11:52:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 26940C433AA; Thu, 30 Mar 2023 11:52:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680177127; bh=Lg8Woq7ScP2NFdPayLKkYeMtRMZwMJRAR9+KtXakJhE=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=szgi2AGJBTiRQ58jY7BtDVpishu6YXxB3MID/h/iLnY6weieQpEEBjD5U4dJKUZJo NyrFHSlcuLma/JgU04Kyl/teOBwE2aqvJirDrSyFmIOb/MgyJ5jbYzY27e7K0/FB3v CGl1zaVIaqHqL9jEmUV6o9JaD3e9FPV5dCV6/OyKRUcn2nGSc77XIBQZ4V3nd48tRE MXMuKMr76f/IZcL1m1wvAHaMqdCUnLP5+1pyn+Oivk5n7icXvXAiLs6rb+QGNifsx4 s+2w00OYui+zTpJ8W2EjziNZVSk+jRvfupY8WA5Y6La/gJ22X/s8u0ZbXc6MKI1CFs Gh6YkXLHZHYVw== Received: by mail-lf1-f52.google.com with SMTP id g19so11034911lfr.9; Thu, 30 Mar 2023 04:52:07 -0700 (PDT) X-Gm-Message-State: AAQBX9ft5A7WJCknKgnZ3X+jipHPJIOsmWAmuopg6M9eJX6eQz3aA7s4 EQgGRwRdqFLaFGTSjQi+FLYILDCHpiUj7JnhrQg= X-Received: by 2002:a19:f007:0:b0:4db:b4:c8d7 with SMTP id p7-20020a19f007000000b004db00b4c8d7mr1755725lfc.2.1680177124990; Thu, 30 Mar 2023 04:52:04 -0700 (PDT) MIME-Version: 1.0 References: <20230327121317.4081816-1-arnd@kernel.org> <20230327121317.4081816-19-arnd@kernel.org> In-Reply-To: <20230327121317.4081816-19-arnd@kernel.org> From: Ard Biesheuvel Date: Thu, 30 Mar 2023 13:51:53 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 18/21] ARM: drop SMP support for ARM11MPCore To: Arnd Bergmann Cc: linux-kernel@vger.kernel.org, Arnd Bergmann , Vineet Gupta , Russell King , Neil Armstrong , Linus Walleij , Catalin Marinas , Will Deacon , Guo Ren , Brian Cain , Geert Uytterhoeven , Michal Simek , Thomas Bogendoerfer , Dinh Nguyen , Stafford Horne , Helge Deller , Michael Ellerman , Christophe Leroy , Paul Walmsley , Palmer Dabbelt , Rich Felker , John Paul Adrian Glaubitz , "David S. Miller" , Max Filippov , Christoph Hellwig , Robin Murphy , Lad Prabhakar , Conor Dooley , linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-oxnas@groups.io, linux-csky@vger.kernel.org, linux-hexagon@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, linux-openrisc@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-xtensa@linux-xtensa.org, Daniel Golle Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 27 Mar 2023 at 14:18, Arnd Bergmann wrote: > > From: Arnd Bergmann > > The cache management operations for noncoherent DMA on ARMv6 work > in two different ways: > > * When CONFIG_DMA_CACHE_RWFO is set, speculative prefetches on in-flight > DMA buffers lead to data corruption when the prefetched data is written > back on top of data from the device. > > * When CONFIG_DMA_CACHE_RWFO is disabled, a cache flush on one CPU > is not seen by the other core(s), leading to inconsistent contents > accross the system. > > As a consequence, neither configuration is actually safe to use in a > general-purpose kernel that is used on both MPCore systems and ARM1176 > with prefetching enabled. > > We could add further workarounds to make the behavior more dynamic based > on the system, but realistically, there are close to zero remaining > users on any ARM11MPCore anyway, and nobody seems too interested in it, > compared to the more popular ARM1176 used in BMC2835 and AST2500. > > The Oxnas platform has some minimal support in OpenWRT, but most of the > drivers and dts files never made it into the mainline kernel, while the > Arm Versatile/Realview platform mainly serves as a reference system but > is not necessary to be kept working once all other ARM11MPCore are gone. > > Take the easy way out here and drop support for multiprocessing on > ARMv6, along with the CONFIG_DMA_CACHE_RWFO option and the cache > management implementation for it. This also helps with other ARMv6 > issues, but for the moment leaves the ability to build a kernel that > can run on both ARMv7 SMP and single-processor ARMv6, which we probably > want to stop supporting as well, but not as part of this series. > > Cc: Neil Armstrong > Cc: Daniel Golle > Cc: Linus Walleij > Cc: linux-oxnas@groups.io > Signed-off-by: Arnd Bergmann Acked-by: Ard Biesheuvel