From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f73.google.com (mail-ej1-f73.google.com [209.85.218.73]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 717334A21 for ; Mon, 16 Feb 2026 11:29:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.73 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771241350; cv=none; b=i7ImVSqBfguFvJNEi4d/MY5yrXBwD0/g6ndk9XiOk7TwzPKNr0AvUrjb31sVVsEuUehhNVUa++Ct8d9YGyNy9jvp2k1VP8bwFnlFr54VB1oJ1ik/sYB6/xgcRY7T8sczHgw6RS3ERKzLkE+y3AI2RBebXkScR2B2/LLbZxMZnmI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771241350; c=relaxed/simple; bh=rfGNZt4wfm2MdI7paUPyGtc4ybUASyTm3360vtReSHs=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=GxMFAtHdtYSqz35odieW5T8Wx5P2afzi67qKaRdCqldHGwZFYFQrX7PQFa07jeVR2JTtzcr4dPm3QgvrP5z/DXgDAjNafiFa+ObkkSoenzJld48KmJ/PDk9w1Cpp6ybz7Cgr/TjneoZ2+F4NOvx32wRjRnXHayUu4ZpP2MMGGQw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--aliceryhl.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=NhSoLJXb; arc=none smtp.client-ip=209.85.218.73 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--aliceryhl.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="NhSoLJXb" Received: by mail-ej1-f73.google.com with SMTP id a640c23a62f3a-b88632ba0b5so315734766b.2 for ; Mon, 16 Feb 2026 03:29:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1771241347; x=1771846147; darn=vger.kernel.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=NhSoLJXb5+wQ3rXesgYnIcrBSYag52n1o/LYG8bQep1F8/GAYLSlmUOu6PuMafFO3G BJQEVil1Mv805XVwMzfVglDRbO2qLMwh2x2OGdKSrRAo3tE2T26ffZHlWCwMNUgIBuRf 9rs8Q8jqAmwDXceBhBIpSnzvefl2vtwgOR9aTQu4zRV21WYaTUlR3f6WfE3vLH2PP8Oz 3J21F/M9tEqPH2dcnYi63wV4sYkfpAZuklRzV/rvnWsWMZtfi0jpaOpBz2dC3FdqsVmm VtU5IG7HYC/FdShSM4R8yaQ5j57Vs08S2I+NEhCbJg8Hf8Sygaio5qt2xHH0HF6wWab0 8dJg== 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=QJIXg47WJhDxQOsrrq1BMqcwPiKN34OO6nM9Rn1Ik3Hdw0k8u9wuu3zCVxZxu637nf 1hyOqFbVGvH9Yue5vwCDRsUPuf97M0sGr9GpJgOmxFkWiDPzeOGv4Zqka+5vb3OrdWJB O3cwD+6sLz9ccXgTikdL6mpoxOjaNK0LZSluLQjTum65/76Sqvu7+Q0Pdpevfxe7jxJ7 z4CS66cwmrOXf0hAIygumqz7CoBzjrcPnMqzqB08lxAJF+ejkB5ujNLHadKP/QgS2Vvi w4OoSclN++yexmF+Og8orC12tgdoOgAaeKjK9gwyAAhNQUp1fwUgAYtjC1bmSpkRLsZA UFdQ== X-Forwarded-Encrypted: i=1; AJvYcCUNGzv6HGYDLTPkY/Pet1j2GXR8D9S5BewqiBPvv2ukdUptsfGYLYFBQvtrJzp931brhjGvw05mKho=@vger.kernel.org X-Gm-Message-State: AOJu0YyASOtBVGSMZNwKFrv5aCfthBo+jRv3lycBEdMvyTcVoE2ntWlv 0dA1zOeiJQn5Bc6rdwNzhegyxYbL2FHn5vXyyDXvUzXBjaPpN8WLN/ln+E1SwsJEDssHXJxMnfd HpeqXLsHapLOF7zNn1Q== 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: Precedence: bulk X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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