Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1791248rwl; Thu, 30 Mar 2023 01:19:28 -0700 (PDT) X-Google-Smtp-Source: AKy350ZEeIiVsIiPI7CY4noJ4+Fz1GdkT0/SjIsabAMmextv6XjUlwXEW4junZGlys7ae/1KSLuM X-Received: by 2002:a05:6402:5107:b0:502:ffd:74a0 with SMTP id m7-20020a056402510700b005020ffd74a0mr1599325edd.2.1680164367966; Thu, 30 Mar 2023 01:19:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680164367; cv=none; d=google.com; s=arc-20160816; b=mIeuJcL9/R2r4W3Hm/m7ZY1cZ/7BEhNGK1qCLxh/tiWF/EtCcXtrkn1BH6GIGvgY53 WykUVh0CXNWEbvcIEM5fDhW6XL4sEwFenbQEVdfvyAVl18I5j+LgiGKu5XQDEYJqkWqN 92qlYNC3+j86F/rXZSD7VJ/f8sio6l89T6i3LsNJi1DFcttHuobxVxnLOq+WGChD7yKp axTDdmzQ5wjFBu5fEODLi8IUm9fwPpKCIsdU0mt3ynPaKk8GaDMwqp72xOR4WeNadlF7 pSJEh3QXIW8WBWQ9jI5jMpwpX3HT2MX7WUReYOj1pxvMyttvNMb973cNQW35tF0z887f TFSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=LQCYgbZHrv29At0jbIiZAbPjoR2bcYIsz7/d6inu7f8=; b=f4Jzo/JhHGmnLS7RXzh9Q0K5jlnDyYzHMQtYOCQNTpbrIGlBF7C5j4bhHUkAFgIS8x 8pmzEQOeHiY08D95mYRcBjbo7PgqKf11qoWyFTRIcq0f+kmN1Er6wVIOc3fklKvLcbFq 3PbuCJUUdDWStCsIhUHsHMd/1XnSGb37YUgUmzP60uEa5FXCIMq/qqnCBVGZhNlC7AvI OnHjCfZDJn+5h8jZde92pOTKXX9yx5awD7bDbVgGLqMGb0vWsgUqcqo4W+cin+HSXcAW QLhv/M10dZmLv8I8w99sRUVw5MIWqEf6WaHDT+hGbGsOTrjM0wkL5kwmoY8YnqBYcrQ6 qRog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ExPqwkg7; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t20-20020aa7d714000000b00501e59e6198si793479edq.613.2023.03.30.01.19.02; Thu, 30 Mar 2023 01:19:27 -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=@linaro.org header.s=google header.b=ExPqwkg7; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229837AbjC3IMv (ORCPT + 99 others); Thu, 30 Mar 2023 04:12:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230302AbjC3IMi (ORCPT ); Thu, 30 Mar 2023 04:12:38 -0400 Received: from mail-yw1-x1134.google.com (mail-yw1-x1134.google.com [IPv6:2607:f8b0:4864:20::1134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58421658B for ; Thu, 30 Mar 2023 01:12:12 -0700 (PDT) Received: by mail-yw1-x1134.google.com with SMTP id 00721157ae682-54184571389so340632107b3.4 for ; Thu, 30 Mar 2023 01:12:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680163931; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=LQCYgbZHrv29At0jbIiZAbPjoR2bcYIsz7/d6inu7f8=; b=ExPqwkg7v1NJaAb/s/k5m0AsXdPeqWANvICm34UN83+g91kLHVNxTL6wIK95elgwZ0 BsoWOOEBJNZZMuzO0jd9e5ZnX+piu95PYHJc8aCAeb74EZLSXYYZcUnjlcrwcSx9uUSn +ZylXYodLpHskZhPbl4FteqkYPSevcOTC9viahsIQVrxIIJjVrJEKuNvoC6mbX+9pqR3 89vqEOP7c1GfiVA/eOXrKlUJ2J9zGfYuC7KwccmlIyO2J0GIlDQpCElJBkH4Lwj1h0sT ooCHH5PYBMyLFmPU8W7WigILMi6/95wflgUZh1w0ygoWmHzMdYahkSPYjw44g9lyJXD6 gNjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680163931; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LQCYgbZHrv29At0jbIiZAbPjoR2bcYIsz7/d6inu7f8=; b=ni5xl4llqU+qbXLOKmMEOYXurQ1E49g9vt1Jwf5ddz+ReBsX1xa0vo7LE3W9Zcj5cH 22TwB/A/JhKDSHg6ck5RffS8+ph962c/UWaHG9RGHV8d/Hz+nPVNbrU0LA4yZ0CKE0pq VppkpJbuELuwEmkAZ/CdhSetZTb12RbxE5c/Soiy2x8/V35OUx80gPH6yE5zRIdcQep3 Ye6SNdww8phoU35q8+NLjw3RqOzMpyEmEeGAJn3h61kJKwbQCfrRsBFrWqkuExLw3vDw R+P6FWym+O2LycwU4syslUx3uxy0jKOgdGqTo7HvF6rVP7UrNuJWo+oeoNgS4DnQ7F04 eQUg== X-Gm-Message-State: AAQBX9fu05ii5ewb0I3NdQH45HNYL0vAw/EbQTvaOxC4DpVHAUGDfdh6 kVG96h1uha6x3A/ieaGRdPELs9YCSG1RVfC8bzVjMQ== X-Received: by 2002:a81:c84a:0:b0:541:753d:32f9 with SMTP id k10-20020a81c84a000000b00541753d32f9mr10995359ywl.9.1680163931243; Thu, 30 Mar 2023 01:12:11 -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: Linus Walleij Date: Thu, 30 Mar 2023 10:12:00 +0200 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 , 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" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,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, Mar 27, 2023 at 2:16=E2=80=AFPM Arnd Bergmann wro= te: > 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 writte= n > 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 Yeah, we discussed this earlier, let's just drop it. Not worth the effort. Acked-by: Linus Walleij Yours, Linus Walleij