From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F157EE7BD92 for ; Mon, 16 Feb 2026 11:29:14 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4fF0sj2lrFz2ySS; Mon, 16 Feb 2026 22:29:13 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip="2a00:1450:4864:20::649" ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1771241353; cv=none; b=JK/+vHxAi+qnXi1wDKasNzBplR2+mUL0+veRrOuaQ1eV1okHTOQVKa0v/oRcLfv2Mqhw/ZVM8kqBIeb4s6OdgCQr7ilkldX4Mh/95W73plY/z/SPyT+/YXajDBNH6PQhO2sJHSOghDtHqu7QQl4f98nKRkxPIR/434Gk5yYJ51at+nJbIyWAxsEdLuCY30k1OCvjoBnHEznXZFafxIIKwZX38LXLbUoEw3hg4DHi8sw11BXQmMM2FVaB+8Ls1oBFBYWp5HaI8dCY9CYpMAQ6h6z4uAA5VSim/F0gFRjXMYiEDNQnuvPZawwLpD39cVm7XLwFyxk4uFwem8SIwLiYgA== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1771241353; c=relaxed/relaxed; bh=Vo1OOIvCISDxl5O3fpiaDD0IWyIfX7wGxG8VPYZFpaE=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=XyJvFBRWGmOsiW+TBeDjWZYy9NxQ1kuuXQjAl3rHwl84ac+FcKkZF6NCopOScoDOTaHfdQu7mF/iNoIFk2JJvnue/xZaXmKCYd6uv1eR/piypuE9PYHIFMcEYWO+oks4QMqeCm2KzpTUV9q4ctC5+Mp8voGokxc+uFt7THiNVpV0Txu1ROP+t/F7iwoM4v7x+NvKc20/cwo4+B3ibuDzYrYRFe7j7XotIroK9En+AbK1ZdlrQ4zZ+SWaDK6N77fP3PBrH1AKnByPmAA7S+DTrEQjh2HDWYKlmTtKOiFQYmKLB8k+d18YVE4frqwNfxhBKArL+OSx/lYmlhxG5r8zAA== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=pass (p=reject dis=none) header.from=google.com; dkim=pass (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20230601 header.b=2y2Pmw/2; dkim-atps=neutral; spf=pass (client-ip=2a00:1450:4864:20::649; helo=mail-ej1-x649.google.com; envelope-from=3gv-saqkkdce7if9boveidlldib.9ljifkrumm9-absifpqp.lwi78p.lod@flex--aliceryhl.bounces.google.com; receiver=lists.ozlabs.org) smtp.mailfrom=flex--aliceryhl.bounces.google.com Authentication-Results: lists.ozlabs.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20230601 header.b=2y2Pmw/2; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=flex--aliceryhl.bounces.google.com (client-ip=2a00:1450:4864:20::649; helo=mail-ej1-x649.google.com; envelope-from=3gv-saqkkdce7if9boveidlldib.9ljifkrumm9-absifpqp.lwi78p.lod@flex--aliceryhl.bounces.google.com; receiver=lists.ozlabs.org) Received: from mail-ej1-x649.google.com (mail-ej1-x649.google.com [IPv6:2a00:1450:4864:20::649]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4fF0sg22Qgz2xVT for ; Mon, 16 Feb 2026 22:29:10 +1100 (AEDT) Received: by mail-ej1-x649.google.com with SMTP id a640c23a62f3a-b8861544696so325504966b.3 for ; Mon, 16 Feb 2026 03:29:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1771241347; x=1771846147; darn=lists.ozlabs.org; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:from:to:cc:subject:date:message-id :reply-to; bh=Vo1OOIvCISDxl5O3fpiaDD0IWyIfX7wGxG8VPYZFpaE=; b=2y2Pmw/2iN5905trhzxy9Ngkhysnpo3G09Z3CuHgeXW++aNebgNsW6iff9O+tkNPpm YpIWln9V4I+gFEG25QtLLEtF66Rf9JvRXNzEi+21Gk3d/x0DLiEdtK1k6hOkqEMUPCxM qUX8vEWdMlskl5KF2IVkKv8CkrMoXyOarVPFPb7t39ic87dUx+h4FxuncElsiTI0TZyq rL5+EgaBtIqr7rp9xyCZE9/+rwnEZGLhCXi5EEusfkhcSpXhkODg25p4lrGEJOy7OkCb fESHQW5a1/SqhANatHF03l5cJgMIZOTakilCFi4sleI1ljoSc/DrzwKzhA0VGbWAf2uQ M0ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771241347; x=1771846147; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=Vo1OOIvCISDxl5O3fpiaDD0IWyIfX7wGxG8VPYZFpaE=; b=gGqAu6QDukFSJ9sZC94/C+qhfHT7XnOuNqBzF90vkDIpDBGos1uqLCcssgyBTIE+Nt gNTKtX75uD5PEu6u+0FmQKT3BHLwM53KONbFM66GjUln/jNuRWxTHi8VEI1RIesRO6dP ZTVeDOQ6nRDdx9VTlacxwQRPLEgjBpsE1CZE64JklSi3l4FwjnEPYLqLIIi+DXuP9nw4 bvg7Ub+nzVOJIlUKsCxIVdHWEqW3jm7V6Hz1vB9l1peO7Y/EwGmCd4HhSgShdCyYc497 ZDxTtr6J1iVXQCFfI/zpsmsf2ADSEsNdaaP3BOzkcfHQQUz+l043X78ZqDvQfUlUm+Ne QnWw== X-Forwarded-Encrypted: i=1; AJvYcCUjVony1cccuZGw2vsJ1NzL0Wc+efDPufSIP3RHdaj2xZxoRNb4XbdLq0UNgB5MTFTzLRsWdpt0AR+lwY0=@lists.ozlabs.org X-Gm-Message-State: AOJu0YxAyofaZ8S78C2WLqc2ENXVMY/mKOq1yaAllUOFUWOvRIJfpQ70 gUxQgItwZxy4kZl48oKZ5O9/T0tUHpgwZ+dXRCraUMTal4XI620a2LBupmh3sZsrnlGKZkLr2+N Ns4b1Lp0hkDPSg2AEFQ== X-Received: from edqp10.prod.google.com ([2002:aa7:d30a:0:b0:659:474e:caf2]) (user=aliceryhl job=prod-delivery.src-stubby-dispatcher) by 2002:a17:907:869e:b0:b8e:9e11:6615 with SMTP id a640c23a62f3a-b8fb44d5e4fmr626744366b.47.1771241346405; Mon, 16 Feb 2026 03:29:06 -0800 (PST) Date: Mon, 16 Feb 2026 11:29:05 +0000 In-Reply-To: X-Mailing-List: linuxppc-dev@lists.ozlabs.org List-Id: List-Help: List-Owner: List-Post: List-Archive: , List-Subscribe: , , List-Unsubscribe: Precedence: list Mime-Version: 1.0 References: <20260204210125.613350-1-mkchauras@gmail.com> <20260204210125.613350-4-mkchauras@gmail.com> <1ed12a72-06e4-461b-907e-2581e25e3e38@linux.ibm.com> Message-ID: Subject: Re: Rust version requirement (was: [PATCH V2 3/3] powerpc: Enable Rust for ppc64le) From: Alice Ryhl To: "=?utf-8?Q?J=2E_Neusch=C3=A4fer?=" Cc: Mukesh Kumar Chaurasiya , Venkat Rao Bagalkote , Link Mauve , ojeda@kernel.org, boqun.feng@gmail.com, gary@garyguo.net, bjorn3_gh@protonmail.com, lossin@kernel.org, a.hindborg@kernel.org, tmgross@umich.edu, dakr@kernel.org, corbet@lwn.net, maddy@linux.ibm.com, mpe@ellerman.id.au, npiggin@gmail.com, chleroy@kernel.org, peterz@infradead.org, jpoimboe@kernel.org, jbaron@akamai.com, rostedt@goodmis.org, ardb@kernel.org, rust-for-linux@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Mon, Feb 16, 2026 at 12:23:16PM +0100, J. Neusch=C3=A4fer wrote: > On Thu, Feb 05, 2026 at 09:12:01PM +0530, Mukesh Kumar Chaurasiya wrote: > [...] > > use rust version nightly-2026-01-28 > >=20 > > the latest one has some issue. I just raised a bug for the rustc > > here[1]. > >=20 > > [1] https://github.com/rust-lang/rust/issues/152177 >=20 > Another reason to use a nightly version is that Rust inline assembly for > PowerPC will only be stabilized[1] in version 1.94, so current release > versions fail like this (tested with 1.91.1): >=20 > error[E0658]: inline assembly is not stable yet on this architecture > --> ../rust/kernel/sync/barrier.rs:19:14 > | > 19 | unsafe { core::arch::asm!("") }; > | ^^^^^^^^^^^^^^^^^^^^ > | > =3D note: see issue #93335 for more information > =3D help: add `#![feature(asm_experimental_arch)]` to the crate at= tributes to enable > =3D note: this compiler was built on 2025-11-07; consider upgradin= g it if it is out of date >=20 > This is somewhat at odds with Documentation/process/changes.rst which > only requires Rust 1.78. I wonder if the rust version requirement should > generally be bumped, or if there should be arch-specific requirements > somewhere in changes.rst or rust/arch-support.rst. >=20 > Best regards, > J. Neusch=C3=A4fer >=20 > [1]: https://github.com/rust-lang/rust/pull/147996 The MSRV is planned to be bumped to 1.85. If it's available as a nightly feature on 1.78, then you can just add #![feature(asm_experimental_arch)] to lib.rs, which already enables several other stabilized feature on older compilers. Otherwise powerpc support can always be gated to require a larger rustc version than other platforms. Alice