From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 72781606A330 for ; Sun, 22 Nov 2026 00:40:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=h+Gq9C9y DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type: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-Unsubscribe-Post: List-Owner; bh=HLUAvWahn95LjdZZTsQI5ms6z6EHmoWOI6LfRrC10CU=; b=h+Gq9C9yPv7JtG eN5f4zOvbKSETg3P5UbVoWqECgLExCK3HoAIEOInJ1y9ikxlmEWpiALQnAZ6HdKK9c/VnPovWqn+D 82SRcZrHtSSMc4toRxSe/7B7+H0yLh6KouZ0oPBrMJ90cG6ic8of1a9sKWfDRwAZrD4V4huZn/uXO 7Aku/aB0//iyFXy3+Io1hzLit3hgHA6csy7mD7Qrvp4oRYYivfpNIt67iD7Kk5qMZU2iSLD2l+jtM yzgxUfavyW386tRvBs7gTede0ioGb5pfPxBBmBRYiIR46FY/2m1kWi43BSzxKDGcvPzJ5plXyadlA HsHqCM/QwmYqcmVFovlg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xUvdR-00000000blo-09AP; Sun, 22 Nov 2026 00:40:49 +0000 Received: from chocolate.ash.relay.mailchannels.net ([23.83.222.35]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xUvdM-00000000bhV-2M5q for linux-arm-kernel@lists.infradead.org; Sun, 22 Nov 2026 00:40:46 +0000 X-Sender-Id: instrampxe0y3a|x-authuser|brad@sim.vu Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id B4885640E71; Sun, 22 Nov 2026 00:40:01 +0000 (UTC) Received: from cpanel-010-lon.hostingww.com (100-97-173-43.trex-nlb.outbound.svc.cluster.local [100.97.173.43]) (Authenticated sender: instrampxe0y3a) by relay.mailchannels.net (Postfix) with ESMTPA id 82CB16411C2; Sun, 22 Nov 2026 00:40:00 +0000 (UTC) X-Sender-Id: instrampxe0y3a|x-authuser|brad@sim.vu X-MC-Relay: Neutral X-MC-Copy: stored-urls X-MailChannels-SenderId: instrampxe0y3a|x-authuser|brad@sim.vu X-MailChannels-Auth-Id: instrampxe0y3a X-Society-Vacuous: 156e5f4846f6bff8_1795308001482_2643813412 X-MC-Loop-Signature: 1795308001482:3339434938 X-MC-Ingress-Time: 1795308001482 Received: from cpanel-010-lon.hostingww.com (cpanel-010-lon.hostingww.com [18.130.191.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.97.173.43 (trex/8.0.2); Sun, 22 Nov 2026 00:40:01 +0000 Received: from 162-195-230-196.lightspeed.wchtks.sbcglobal.net ([162.195.230.196]:44296 helo=epyc.attlocal.net) by cpanel-010-lon.hostingww.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.100.1) (envelope-from ) id 1xUvcb-00000005rJa-1iLD; Sun, 22 Nov 2026 00:39:57 +0000 From: Brad Hawthorne To: Yoshifumi SHU , Linus Walleij , Arnd Bergmann Cc: Brad Hawthorne , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 00/14] ARM: deprecated platform removal Date: Sat, 21 Nov 2026 18:37:56 -0600 Message-ID: <20261122003911.1203777-1-brad@sim.vu> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: <20260914140821.1805449-1-arnd@kernel.org> <17a74e90-27d1-4954-86a8-491267f00cb8@gmail.com> X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-AuthUser: brad@sim.vu X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261121_164044_758094_FABD0BCD X-CRM114-Status: GOOD ( 16.44 ) X-Spam-Score: -1.9 (-) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-11.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Hi Arnd, Linus, Yoshifumi, A second ARMv8-M user, in support of keeping CONFIG_CPU_V7M for v8-M. I run Linux on the Raspberry Pi RP2350 (dual Cortex-M33, 520 KiB SRAM, 8 MiB PSRAM, XIP from QSPI flash) on an Adafruit Fruit Jam board. It boots v7.4-rc3 to a userspace shell over the SoC's own USB device controller, with the kernel executing in place from flash. Like Yoshifumi I need the v7-M core, PMSAv8 and the NVIC far more than any one platform, and I don't object to the MCU platform removals. The Fruit Jam is a small self-contained computer (HDMI, USB host, SD card, Wi-Fi), and I am preparing a public developer preview of this Linux for it, so the core has users beyond me. On the RP2350 I use PMSAv8 to give each process its own MPU windows, so a user program cannot write another program's memory or the kernel's; that work is out of tree for now. I tested the generic IRQ entry work on the board, v7.4-rc3 plus the RP2350 platform patches, each case in its own process: a register-heavy loop under a 1 ms SIGALRM, 1 ms sleeps, a pipe ping-pong between two processes under timers, and rseq critical sections interrupted by a signal and by preemption from a busy competitor (9000 sections): rseq aborts on preemption other cases v7.4-rc3 820 pass + Linus's v3 0 (all 9000 commit) pass + v3 + Yoshifumi's RFC 802 pass So on hardware, as under QEMU (mps2-an385 and -an505) and as Yoshifumi described, v3 alone lets a preempted rseq critical section commit on v7-M instead of aborting, and the RFC fixes it. Signal-delivered aborts work in all three. For the RFC on top of v3: Tested-by: Brad Hawthorne # RP2350 (Cortex-M33) Under QEMU, Yoshifumi's one-line arm_rseq_user_enter() call in __pendsv_entry also closes the gap on v3 alone, if v3 should go first. While bringing the board up I found a few things in the shared code: - mm/nommu: mremap() resizing in place updates vm_end but not the maple tree, so a shrunk VMA leaves a stale range that points at the VMA after it is freed. With Hajime Tazaki's agreement I've sent a minimal fix to linux-mm: https://lore.kernel.org/linux-mm/20261121083139.803682-1-brad@sim.vu/ - irq-nvic: the priority registers are written at the wrong offset. Yoshifumi already found this, so I'll leave it to his series and test it on the RP2350, where the board does not take interrupts without it. For his changelog: the offset was right (0x300 from the node's base, ISER0 at 0xe000e100) until c5e0cbe2858d ("irqchip: nvic: Fix offset for Interrupt Priority Offsets") made it 0x400, taking 0xe000e400 as an offset from 0xe000e000; that commit went to stable as far back as 4.19, so the fix wants Fixes: c5e0cbe2858d and Cc stable. - v7-M itself: five patches, ready as an RFC series, each run on the board with and without it on v7.4-rc3: * an XIP kernel with HARDENED_USERCOPY BUGs on its first readdir (_etext ends after .rodata), a stable fix that stands alone; * a user program's fault stops the machine; with the patch it is a signal (SIGFPE, SIGTRAP, SIGILL, SIGBUS, SIGSEGV); * CPACR and CONTROL are inherited from the loader, so user space gets the FPU with no FP state switched; * on v8-M Mainline, MSPLIM catches a kernel stack overflow, which today runs past the stack unnoticed; * the Cortex-M33's ACTLR.EXTEXCLALL, set by pico-sdk loaders, makes every STREX to the RP2350's PSRAM fail, so the kernel never reaches its console. Two of them change __irq_entry and __pendsv_entry, which Yoshifumi's RFC rewrites, and they don't apply together. I'd rather rebase onto the generic entry work than collide: would you prefer them on top of it, and is linux-arm-kernel the right home? Arnd, one question about the plan for the CPUs. After the 7.5 removals, nothing in-tree selects ARM_SINGLE_ARMV7M but !MMU itself, and no board's device tree uses the v7-M core; Yoshifumi's boards and mine are out of tree. Would a small RP2350 platform (DT, timer, clocks, resets, watchdog), run on hardware for each -rc, be a welcome in-tree user of CPU_V7M, or would you rather keep the core with no platform and boards out of tree? I'd hold the platform series until the core question is settled either way. A note on method: I use an AI coding assistant for parts of this work. Everything I send is reviewed, tested on hardware and signed off by me, and each changelog says what the assistant did, per Documentation/process/coding-assistants.rst. Thanks, Brad Hawthorne