Re: [PATCH V11 4/4] powerpc: Enable Rust for ppc64le

Gary Guo
2026-04-21T16:00:01Z

On Fri Apr 17, 2026 at 4:22 PM BST, Mukesh Kumar Chaurasiya (IBM) wrote:
> Enabling rust support for ppc64le.
>
> Tested on pseries Power11:
> ╰─❯ dmesg | grep rust
> [ 0.225728] Initialise system trusted keyrings
> [ 0.270961] rust_minimal: Rust minimal sample (init)
> [ 0.270968] rust_minimal: Am I built-in? true
> [ 0.270974] rust_minimal: test_parameter: 1
> [ 0.270983] rust_misc_device: Initialising Rust Misc Device Sample
> [ 0.271012] rust_print: Rust printing macros sample (init)
> [ 0.271019] rust_print: Emergency message (level 0) without args
> [ 0.271023] rust_print: Alert message (level 1) without args
> [ 0.271026] rust_print: Critical message (level 2) without args
> [ 0.271030] rust_print: Error message (level 3) without args
> [ 0.271033] rust_print: Warning message (level 4) without args
> [ 0.271037] rust_print: Notice message (level 5) without args
> [ 0.271040] rust_print: Info message (level 6) without args
> [ 0.271043] rust_print: A line that is continued without args
> [ 0.271054] rust_print: Emergency message (level 0) with args
> [ 0.271064] rust_print: Alert message (level 1) with args
> [ 0.271072] rust_print: Critical message (level 2) with args
> [ 0.271077] rust_print: Error message (level 3) with args
> [ 0.271083] rust_print: Warning message (level 4) with args
> [ 0.271091] rust_print: Notice message (level 5) with args
> [ 0.271097] rust_print: Info message (level 6) with args
> [ 0.271102] rust_print: A line that is continued with args
> [ 0.271110] rust_print: 1
> [ 0.271113] rust_print: "hello, world"
> [ 0.271121] rust_print: [samples/rust/rust_print_main.rs:35:5] c = "hello, world"
> [ 0.271129] rust_print: Arc<dyn Display> says 42
> [ 0.271130] rust_print: Arc<dyn Display> says hello, world
> [ 0.271136] rust_print: "hello, world"
> [ 0.271198] usbcore: registered new interface driver rust_driver_usb
> [ 0.271207] rust_faux_driver: Initialising Rust Faux Device Sample
> [ 0.271227] faux_driver rust-faux-sample-device: Hello from faux device!
> [ 0.271297] rust_configfs: Rust configfs sample (init)
>
> Reviewed-by: Link Mauve <linkmauve@linkmauve.fr>
> Tested-by: Link Mauve <linkmauve@linkmauve.fr>
> Reviewed-by: Christophe Leroy (CS GROUP) <chleroy@kernel.org>
> Tested-by: Venkat Rao Bagalkote <venkat88@linux.ibm.com>
> Link: https://github.com/Rust-for-Linux/linux/issues/105
> Link: https://github.com/linuxppc/issues/issues/451
> Signed-off-by: Mukesh Kumar Chaurasiya (IBM) <mkchauras@gmail.com>

Acked-by: Gary Guo <gary@garyguo.net>

> ---
> arch/powerpc/Kconfig | 1 +
> arch/powerpc/Makefile | 7 ++++++-
> rust/Makefile | 6 ++++++
> 3 files changed, 13 insertions(+), 1 deletion(-)