From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from fhigh-a8-smtp.messagingengine.com (fhigh-a8-smtp.messagingengine.com [103.168.172.159]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5F02B1369BB; Fri, 31 Jan 2025 19:19:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.159 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738351154; cv=none; b=i+FaMxlQD/xsAdYzcFbnvMTxseTb2nX2k7UFAy9pmIwPbtpQhTbA3PG+9ffxhV+1wc9EKU4G7Wpb7nYT65dWPQRXPrbkIeKlrdzr3kCLE5MQt3JLvjHDuMbNKXHoSxH0sQQrZVSeZuziuHiqwPGgESpw3atKRxEceIiJYGD1Kcs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738351154; c=relaxed/simple; bh=kbdkLJKrHDJEBsMvYAxFY7nA3/6jNRXH50RRNyvn8GE=; h=MIME-Version:Date:From:To:Cc:Message-Id:In-Reply-To:References: Subject:Content-Type; b=acbt7KVB8/s/X2OtECvStttHxvrOFoUcFSEXxBrUfMRKIR0rp2SXUB6FSO/0fb4B9xNlbWkd4pOyWpQHHd2QBsX3hSju0/DSWfSw/6rrYmdET8QcagVawRb+d4GAu2TP8QOdxyZtt+VC1zu5T1rJTKn3fke3SsxFvhA+Z28+NFQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de; spf=pass smtp.mailfrom=arndb.de; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b=Wnh90Mf6; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=VQ6tyt7c; arc=none smtp.client-ip=103.168.172.159 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arndb.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b="Wnh90Mf6"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="VQ6tyt7c" Received: from phl-compute-10.internal (phl-compute-10.phl.internal [10.202.2.50]) by mailfhigh.phl.internal (Postfix) with ESMTP id 3A03711401CA; Fri, 31 Jan 2025 14:19:10 -0500 (EST) Received: from phl-imap-11 ([10.202.2.101]) by phl-compute-10.internal (MEProxy); Fri, 31 Jan 2025 14:19:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1738351150; x=1738437550; bh=d1Oq2awpWzl8pN+Yfslwu6iHpW3ylkSeTv0k6RL5fz0=; b= Wnh90Mf6xrqZN+p2GBubtQNRzQcbytoMXOIMW1Mfu7FeyeQH6Iqhen/VpP75YqYw Yq/WVmBrz2PSR7A7D0ZE62ASHERC+EokTtAn70SzlC55D6xQXfqD1yOcahSt3sPs dZQrFN3G7J3ZPiC6JYCbKzk/eHJTfKl/80PlW+mxfpC729e/eQvGZLSFs0sgZmKv JZY3/LUPpSQ352FTB6UbjbVnhu12kPQIThban2xpNiu/t3osijtkm/qalk2Sc93x OfuFHV1fefX0ALB5wKu+cjmTk2nUHkTIl+fnqrr1I8pG3ygz6ByJDkZLi54fZTsB 4VzgYoZmYkgbxGG9r7hp4w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1738351150; x= 1738437550; bh=d1Oq2awpWzl8pN+Yfslwu6iHpW3ylkSeTv0k6RL5fz0=; b=V Q6tyt7cdxgnYAFWNma9c/opH0VWYsTY1Z29qSYxVHU+QMuoWAgghY5sJpxIePeJ9 dGG6/YNSP0l1hfnC9PvBBGxkZUAfd29O2La1sCDvk0+35fRznQ0jpPHtK7z+cP01 XSszqPt4oiYZIVLl7RWmOk1AGlUj7sp6lXrqQbYotmxoOCTRo1u894OBKOOsxWZo qI8SxtyMjrFBbbdN/QPV4omuEDYxCZ4hDzYtvXVAz9ktm9jYwNWM3gFlCw/SgWsF 8M81vF7s/ICb96GDH6TsdtdotXYYJSd3QUHtWix2kT7smr5tg7Sm42Ha5z9xLaw2 7ak2ozirbtyApTJCPIH/Q== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdeliedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepofggfffhvfevkfgjfhfutgfgsehtjeertdertddt necuhfhrohhmpedftehrnhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrd guvgeqnecuggftrfgrthhtvghrnhephfdthfdvtdefhedukeetgefggffhjeeggeetfefg gfevudegudevledvkefhvdeinecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomheprghrnhgusegrrhhnuggsrdguvgdpnhgspghrtghpthhtohepvddv pdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehjrghmihgvrdgtuhhnlhhifhhfvg esrghrmhdrtghomhdprhgtphhtthhopehlihhnuhigsegrrhhmlhhinhhugidrohhrghdr uhhkpdhrtghpthhtohepghgrrhihsehgrghrhihguhhordhnvghtpdhrtghpthhtoheprg hlvgigrdhgrgihnhhorhesghhmrghilhdrtghomhdprhgtphhtthhopegsohhquhhnrdhf vghnghesghhmrghilhdrtghomhdprhgtphhtthhopegthhhrihhsihdrshgthhhrvghflh esghhmrghilhdrtghomhdprhgtphhtthhopehguhhpthgrrhhuugesghhmrghilhdrtgho mhdprhgtphhtthhopehthhgvshhvvghnjeefsehgmhgrihhlrdgtohhmpdhrtghpthhtoh eprghlihgtvghrhihhlhesghhoohhglhgvrdgtohhm X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id D6F752220073; Fri, 31 Jan 2025 14:19:08 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Date: Fri, 31 Jan 2025 20:18:37 +0100 From: "Arnd Bergmann" To: "Christian Schrefl" , "Miguel Ojeda" , "Alex Gaynor" , "Boqun Feng" , "Gary Guo" , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , "Benno Lossin" , "Andreas Hindborg" , "Alice Ryhl" , "Trevor Gross" , "Jonathan Corbet" , "Russell King" , "Rudraksha Gupta" , "Ard Biesheuvel" , "Geert Stappers" , "Andrew Lunn" , "Jamie Cunliffe" , "Sven Van Asbroeck" Cc: rust-for-linux@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Message-Id: <45bc6648-5f3f-4d88-bbc3-3d5a0ff84386@app.fastmail.com> In-Reply-To: References: <20250123-rfl-arm32-v3-1-8f13623d42c5@gmail.com> Subject: Re: [PATCH v3] arm: rust: Enable Rust support for ARMv7 Content-Type: text/plain Content-Transfer-Encoding: 7bit On Fri, Jan 31, 2025, at 16:34, Christian Schrefl wrote: 202397be76d8037b531b34dee16c7dfcfd0124ef..3375c91e698c024f95a85682f5a91d9815c355e5 >>> 100644 >>> --- a/arch/arm/Kconfig >>> +++ b/arch/arm/Kconfig >>> @@ -130,6 +130,7 @@ config ARM >>> select MMU_GATHER_RCU_TABLE_FREE if SMP && ARM_LPAE >>> select HAVE_REGS_AND_STACK_ACCESS_API >>> select HAVE_RSEQ >>> + select HAVE_RUST if CPU_LITTLE_ENDIAN && CPU_32v7 >> >> The ARMv7 dependency makes sense, but I think it needs >> be disabled on combined v6/v7 kernels, like (CPU_V7 && !CPU_V6 && !CPU_V6K). > > That might be correct, I don't know much about the build > system for the kernel. I've tried it and it still builds > with this change. > > Also it should probably be relatively easy to support > armv6 as well. ARMv6K should be trivial to support, as it contains the same set of barriers and atomics as ARMv7, the main difference being the lack of Thumb2 mode. The plain ARMv6 may be a little harder to get right since that needs special barriers and can only do 32-bit atomics but not 8/16/64. As there is only really one relevant machine left with the original ARMv6 (Nokia N8x0), we already plan to drop that in a year, and I wouldn't put too much work into supporting it. ARMv5 and earlier will stay around for a while longer, but are getting rare enough that you probably don't need to worry about those either. Arnd