Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2194572/?format=api
{ "id": 2194572, "url": "http://patchwork.ozlabs.org/api/patches/2194572/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20260209105456.1551677-4-mkchauras@gmail.com/", "project": { "id": 2, "url": "http://patchwork.ozlabs.org/api/projects/2/?format=api", "name": "Linux PPC development", "link_name": "linuxppc-dev", "list_id": "linuxppc-dev.lists.ozlabs.org", "list_email": "linuxppc-dev@lists.ozlabs.org", "web_url": "https://github.com/linuxppc/wiki/wiki", "scm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git", "webscm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/", "list_archive_url": "https://lore.kernel.org/linuxppc-dev/", "list_archive_url_format": "https://lore.kernel.org/linuxppc-dev/{}/", "commit_url_format": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?id={}" }, "msgid": "<20260209105456.1551677-4-mkchauras@gmail.com>", "list_archive_url": "https://lore.kernel.org/linuxppc-dev/20260209105456.1551677-4-mkchauras@gmail.com/", "date": "2026-02-09T10:54:56", "name": "[V4,3/3] powerpc: Enable Rust for ppc64le", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "b880bb85a3b507a06b2ac513f25ddd954f064824", "submitter": { "id": 92575, "url": "http://patchwork.ozlabs.org/api/people/92575/?format=api", "name": "Mukesh Kumar Chaurasiya (IBM)", "email": "mkchauras@gmail.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20260209105456.1551677-4-mkchauras@gmail.com/mbox/", "series": [ { "id": 491491, "url": "http://patchwork.ozlabs.org/api/series/491491/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=491491", "date": "2026-02-09T10:54:53", "name": "Rust support for powerpc", "version": 4, "mbox": "http://patchwork.ozlabs.org/series/491491/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2194572/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2194572/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linuxppc-dev+bounces-16736-incoming=patchwork.ozlabs.org@lists.ozlabs.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "linuxppc-dev@lists.ozlabs.org" ], "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20230601 header.b=VQkpSkpy;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org\n (client-ip=2404:9400:21b9:f100::1; helo=lists.ozlabs.org;\n envelope-from=linuxppc-dev+bounces-16736-incoming=patchwork.ozlabs.org@lists.ozlabs.org;\n receiver=patchwork.ozlabs.org)", "lists.ozlabs.org;\n arc=none smtp.remote-ip=\"2607:f8b0:4864:20::434\"", "lists.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com", "lists.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20230601 header.b=VQkpSkpy;\n\tdkim-atps=neutral", "lists.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com\n (client-ip=2607:f8b0:4864:20::434; helo=mail-pf1-x434.google.com;\n envelope-from=mkchauras@gmail.com; receiver=lists.ozlabs.org)" ], "Received": [ "from lists.ozlabs.org (lists.ozlabs.org\n [IPv6:2404:9400:21b9:f100::1])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4f8hSF1BDNz1xvc\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 09 Feb 2026 21:55:41 +1100 (AEDT)", "from boromir.ozlabs.org (localhost [127.0.0.1])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 4f8hS26b4xz3bmM;\n\tMon, 09 Feb 2026 21:55:30 +1100 (AEDT)", "from mail-pf1-x434.google.com (mail-pf1-x434.google.com\n [IPv6:2607:f8b0:4864:20::434])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n\t(No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 4f8hS20JFYz2yFm\n\tfor <linuxppc-dev@lists.ozlabs.org>; Mon, 09 Feb 2026 21:55:29 +1100 (AEDT)", "by mail-pf1-x434.google.com with SMTP id\n d2e1a72fcca58-824484dba4dso2232793b3a.0\n for <linuxppc-dev@lists.ozlabs.org>;\n Mon, 09 Feb 2026 02:55:29 -0800 (PST)", "from li-1a3e774c-28e4-11b2-a85c-acc9f2883e29.in.ibm.com\n ([129.41.58.2])\n by smtp.gmail.com with ESMTPSA id\n d2e1a72fcca58-824418b31c2sm10635974b3a.50.2026.02.09.02.55.21\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Mon, 09 Feb 2026 02:55:27 -0800 (PST)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1770634530;\n\tcv=none;\n b=lZL1GaGMgZSvGh4y+Nd0/tlGwBv1A5NGevAW616Mvxpv9O7/rqvSbzgN555adj7lyHOPrBuj2JAvrhLQyfgvUSOz95evdvUgvsA38KvbhKAy1DKWc8wcdvd/60kcDoc940AUisx3ZTEYNVVE+Br47JrElZ+KScIOx2qpwdKBW/MwfxWPlSvFHsacu6TH9xmx9OC7BmgwX11PvfYAkKcNJ1sLaTjF/mDnRDSK0xR/fW8QO+9MROqe5nIZegvX0U65gIzm5MT15m0EaTAIhc4qKHtrUv1W6pYWOEqOh8TKGTwT8iU8gBC7adXkQzXhS3EpU6bNOeuVsTx9gKwA4U9lsQ==", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707;\n\tt=1770634530; c=relaxed/relaxed;\n\tbh=VqX1kx8OkcJ5Mo0woVEbmeLs+1j0cFsuz4Uvjc4HH9s=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=PimBNMkFH0fDaVGfbjd/6Eg3rLXfvKVu54NDJhIKVK+0UEBCLYBAf0uL4BsnZVu2h10qfa7KHYJO5JNTv+ZMlT5n/0eR6rSQK1Azbs/dUudFhl2NTwTSMmO3B3juWIMcI/XwKmcjdrix0Ip1qqDLzM79FwX4SxqkVSgeN3DXqPtddkL5tfK+Tw1N1u7i9zhNQ5ehCF4REL5k8GSRDa+9ZLTxALrQTFKomjXEmETPA9EU92faFSh/KMDm2DX3tebLPKgDZrbkPoV5FL31IUqKLayzTM15c2KJ2KQuiv3L05Q9LKW6y3VoxZoRDWcotpycIsZOAlCl+C/SIVRE/EDYwA==", "ARC-Authentication-Results": "i=1; lists.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com; dkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20230601 header.b=VQkpSkpy; dkim-atps=neutral;\n spf=pass (client-ip=2607:f8b0:4864:20::434; helo=mail-pf1-x434.google.com;\n envelope-from=mkchauras@gmail.com;\n receiver=lists.ozlabs.org) smtp.mailfrom=gmail.com", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20230601; t=1770634528; x=1771239328;\n darn=lists.ozlabs.org;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=VqX1kx8OkcJ5Mo0woVEbmeLs+1j0cFsuz4Uvjc4HH9s=;\n b=VQkpSkpy3EfZ6k/RjOqlcgRA7wXGT6eDjE7kKAVN+3ecS3Ll0SJRt+Gi7CVPn95hFe\n 0EcGmaAIdRcNVwnV0iisPNt7y3dPoJ+WUCowsyBpD+kNbTjYMCzi69djOuO+6kDpNzMI\n Vm6vaR3ysgy9xV6r1guK3BZCjFpxAxqqXMFv6zYaQMKF1+A7bm4dPx5m3jD+pNGp/si0\n u8MuHI61A9swQyreznnG3uNUfW4PSeQWU6v/AkjcpkAkdxWBdpaltpKfXWuFEFGzegHR\n +bKKdlN+C7KmjFmxJPfYBJfPFFOhtUCTq7hA0sqgk+j6+8ZbCEIlNa356mDnHVPVuRaQ\n Vb0Q==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1770634528; x=1771239328;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n :to:cc:subject:date:message-id:reply-to;\n bh=VqX1kx8OkcJ5Mo0woVEbmeLs+1j0cFsuz4Uvjc4HH9s=;\n b=h++n2RlFhiZRujcXBuwdAld1HL9iraTWpGlH08vjJ/MpRy72lOge4qfuUearto9HKE\n 7KfT3S79FD1EMePtRdeuvZmAX+GFOPzN2Ib59/wgLZhGMPzKdDUiNzuQUAsKzjnKLEAK\n ZsiWKuBtxwDI6agyv4nE8MIZApYhSoqDvcG/Q34uX3aqRTaz0kvuVim/0jM0GVK1JMra\n D8kKYIXdKUYyNlXrIQEWYhQR8oHotPvjm5EGwvnfYooDz75RB9xegUjhXO+Ovy2Ighrs\n fIhD6dQDrkDw0VSYKBqnwGyhwXbD2KSwDf6ajpDpZNMmWRYR9h53mboO+ErT2J2O4lHz\n UjxQ==", "X-Forwarded-Encrypted": "i=1;\n AJvYcCU0uBUdKP0f+pQtkVtK6rcifyHdsKUktk1K/dlBa4ult7zopUKDLtC88bk0D3TSUfmI3erKbFJQOx7+ZK0=@lists.ozlabs.org", "X-Gm-Message-State": "AOJu0YxlETsGnpCA4stGUd++noHqdljAE20Org6npQppBkjakPbabCYW\n\tScg4v84bqO6tEOruvMnT8trE8uDU6Ikiwk47f5ndXX67uUKgcLdaPYw7", "X-Gm-Gg": "AZuq6aIl6iF6QjY5n0e4kmtaXWhZ7+mtfHWZ21v2FGRv5jbKrW7QBzJW0XGk4tzcojs\n\tYqECZMVqpK/SVK+Nb4i/UoNpKdmBdKJ9jck1EgyhU/CpIW4LcLgFVT00Sh2vP6ReIkRZrHUuHKq\n\ttEaETZWCIbicW+W4yllRVoAKbKsDvV/bouuWwbwv/gowhf4iEy/Yu8bUmGzvrLj29hON+bEL1nN\n\tCf/dPq+0dT+osRMSSdfOz3ZO/tqQBQQbN+FBHmouP7d/p012TAk2UjXAjda03WBBOvm7LXhIWHZ\n\tZmx9laA+vSfkGzjzORnRXj+FzV8IshTzuXQdyxHe9yE+X1PEoYCdolLrKKlXo5S3r9fbKJPUIsy\n\t6r055Zj0slyCO1mBzyHl7CBHCULKLmNa95dEDY9cZq+dZ2KNG3WFFYJnwGjSovR5IMlcIVqqOp9\n\tOkZepqH92ptMYogxObw3pU3bh25e5ogW+qxWCReQrlcTAof8NCvKSomsbMT1s=", "X-Received": "by 2002:a05:6a00:b4f:b0:81f:de62:4b64 with SMTP id\n d2e1a72fcca58-824417a44bcmr10320971b3a.68.1770634527692;\n Mon, 09 Feb 2026 02:55:27 -0800 (PST)", "From": "\"Mukesh Kumar Chaurasiya (IBM)\" <mkchauras@gmail.com>", "To": "linkmauve@linkmauve.fr,\n\tojeda@kernel.org,\n\tboqun.feng@gmail.com,\n\tgary@garyguo.net,\n\tbjorn3_gh@protonmail.com,\n\tlossin@kernel.org,\n\ta.hindborg@kernel.org,\n\taliceryhl@google.com,\n\ttmgross@umich.edu,\n\tdakr@kernel.org,\n\tcorbet@lwn.net,\n\tmaddy@linux.ibm.com,\n\tmpe@ellerman.id.au,\n\tnpiggin@gmail.com,\n\tchleroy@kernel.org,\n\tpeterz@infradead.org,\n\tjpoimboe@kernel.org,\n\tjbaron@akamai.com,\n\trostedt@goodmis.org,\n\tardb@kernel.org,\n\trust-for-linux@vger.kernel.org,\n\tlinux-doc@vger.kernel.org,\n\tlinux-kernel@vger.kernel.org,\n\tlinuxppc-dev@lists.ozlabs.org", "Cc": "\"Mukesh Kumar Chaurasiya (IBM)\" <mkchauras@gmail.com>", "Subject": "[PATCH V4 3/3] powerpc: Enable Rust for ppc64le", "Date": "Mon, 9 Feb 2026 16:24:56 +0530", "Message-ID": "<20260209105456.1551677-4-mkchauras@gmail.com>", "X-Mailer": "git-send-email 2.53.0", "In-Reply-To": "<20260209105456.1551677-1-mkchauras@gmail.com>", "References": "<20260209105456.1551677-1-mkchauras@gmail.com>", "X-Mailing-List": "linuxppc-dev@lists.ozlabs.org", "List-Id": "<linuxppc-dev.lists.ozlabs.org>", "List-Help": "<mailto:linuxppc-dev+help@lists.ozlabs.org>", "List-Owner": "<mailto:linuxppc-dev+owner@lists.ozlabs.org>", "List-Post": "<mailto:linuxppc-dev@lists.ozlabs.org>", "List-Archive": "<https://lore.kernel.org/linuxppc-dev/>,\n <https://lists.ozlabs.org/pipermail/linuxppc-dev/>", "List-Subscribe": "<mailto:linuxppc-dev+subscribe@lists.ozlabs.org>,\n <mailto:linuxppc-dev+subscribe-digest@lists.ozlabs.org>,\n <mailto:linuxppc-dev+subscribe-nomail@lists.ozlabs.org>", "List-Unsubscribe": "<mailto:linuxppc-dev+unsubscribe@lists.ozlabs.org>", "Precedence": "list", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-Spam-Status": "No, score=-0.2 required=3.0 tests=DKIM_SIGNED,DKIM_VALID,\n\tDKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,\n\tSPF_HELO_NONE,SPF_PASS autolearn=disabled version=4.0.1 OzLabs 8", "X-Spam-Checker-Version": "SpamAssassin 4.0.1 (2024-03-25) on lists.ozlabs.org" }, "content": "Enabling rust support for ppc64le only.\n\nTested on powernv9:\n\n$ uname -rm\n6.19.0-rc8+ ppc64le\n\n$ sudo modprobe rust_minimal\n[ 632.890850] rust_minimal: Rust minimal sample (init)\n[ 632.890881] rust_minimal: Am I built-in? false\n[ 632.890898] rust_minimal: test_parameter: 1\n\n$ sudo rmmod rust_minimal\n[ 648.272832] rust_minimal: My numbers are [72, 108, 200]\n[ 648.272873] rust_minimal: Rust minimal sample (exit)\n\n$ sudo modprobe rust_print\n[ 843.410391] rust_print: Rust printing macros sample (init)\n[ 843.410424] rust_print: Emergency message (level 0) without args\n[ 843.410451] rust_print: Alert message (level 1) without args\n[ 843.410477] rust_print: Critical message (level 2) without args\n[ 843.410503] rust_print: Error message (level 3) without args\n[ 843.410530] rust_print: Warning message (level 4) without args\n[ 843.410557] rust_print: Notice message (level 5) without args\n[ 843.410594] rust_print: Info message (level 6) without args\n[ 843.410617] rust_print: A line that is continued without args\n[ 843.410646] rust_print: Emergency message (level 0) with args\n[ 843.410675] rust_print: Alert message (level 1) with args\n[ 843.410691] rust_print: Critical message (level 2) with args\n[ 843.410727] rust_print: Error message (level 3) with args\n[ 843.410761] rust_print: Warning message (level 4) with args\n[ 843.410796] rust_print: Notice message (level 5) with args\n[ 843.410821] rust_print: Info message (level 6) with args\n[ 843.410854] rust_print: A line that is continued with args\n[ 843.410892] rust_print: 1\n[ 843.410895] rust_print: \"hello, world\"\n[ 843.410924] rust_print: [samples/rust/rust_print_main.rs:35:5] c = \"hello, world\"\n[ 843.410977] rust_print: Arc<dyn Display> says 42\n[ 843.410979] rust_print: Arc<dyn Display> says hello, world\n\n$ sudo rmmod rust_print\n[ 843.411003] rust_print: \"hello, world\"\n[ 888.499935] rust_print: Rust printing macros sample (exit)\n\nReviewed-by: Link Mauve <linkmauve@linkmauve.fr>\nTested-by: Link Mauve <linkmauve@linkmauve.fr>\nReviewed-by: Christophe Leroy (CS GROUP) <chleroy@kernel.org>\nSigned-off-by: Mukesh Kumar Chaurasiya (IBM) <mkchauras@gmail.com>\n---\n Documentation/rust/arch-support.rst | 2 +-\n arch/powerpc/Kconfig | 1 +\n arch/powerpc/Makefile | 9 ++++++++-\n rust/Makefile | 8 ++++++++\n 4 files changed, 18 insertions(+), 2 deletions(-)", "diff": "diff --git a/Documentation/rust/arch-support.rst b/Documentation/rust/arch-support.rst\nindex e26a94808e97..627471ac9238 100644\n--- a/Documentation/rust/arch-support.rst\n+++ b/Documentation/rust/arch-support.rst\n@@ -18,7 +18,7 @@ Architecture Level of support Constraints\n ``arm`` Maintained ARMv7 Little Endian only.\n ``arm64`` Maintained Little Endian only.\n ``loongarch`` Maintained \\-\n-``powerpc`` Experimental 32-bit Big Endian only.\n+``powerpc`` Experimental 64-bit Little Endian. 32-bit Big Endian.\n ``riscv`` Maintained ``riscv64`` and LLVM/Clang only.\n ``um`` Maintained \\-\n ``x86`` Maintained ``x86_64`` only.\ndiff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig\nindex 17db23b82e91..954af27e10c5 100644\n--- a/arch/powerpc/Kconfig\n+++ b/arch/powerpc/Kconfig\n@@ -284,6 +284,7 @@ config PPC\n \tselect HAVE_RELIABLE_STACKTRACE\n \tselect HAVE_RSEQ\n \tselect HAVE_RUST\t\t\tif PPC32\n+\tselect HAVE_RUST\t\t\tif PPC64 && CPU_LITTLE_ENDIAN\n \tselect HAVE_SAMPLE_FTRACE_DIRECT\tif HAVE_DYNAMIC_FTRACE_WITH_DIRECT_CALLS\n \tselect HAVE_SAMPLE_FTRACE_DIRECT_MULTI\tif HAVE_DYNAMIC_FTRACE_WITH_DIRECT_CALLS\n \tselect HAVE_SETUP_PER_CPU_AREA\t\tif PPC64\ndiff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile\nindex 9fd82c75dcbd..f93816ddc036 100644\n--- a/arch/powerpc/Makefile\n+++ b/arch/powerpc/Makefile\n@@ -61,7 +61,14 @@ else\n KBUILD_LDFLAGS_MODULE += $(objtree)/arch/powerpc/lib/crtsavres.o\n endif\n \n-KBUILD_RUSTFLAGS += --target=powerpc-unknown-linux-gnu\n+ifdef CONFIG_PPC64\n+ifdef CONFIG_CPU_LITTLE_ENDIAN\n+KBUILD_RUSTFLAGS\t+= --target=powerpc64le-unknown-linux-gnu\n+endif\n+KBUILD_RUSTFLAGS\t+= -Ctarget-feature=-mma,-vsx,-hard-float,-altivec\n+else\n+KBUILD_RUSTFLAGS\t+= --target=powerpc-unknown-linux-gnu\n+endif\n \n ifdef CONFIG_CPU_LITTLE_ENDIAN\n KBUILD_CPPFLAGS\t+= -mlittle-endian\ndiff --git a/rust/Makefile b/rust/Makefile\nindex ae22f2c5f0b3..14febe9c7643 100644\n--- a/rust/Makefile\n+++ b/rust/Makefile\n@@ -392,7 +392,15 @@ BINDGEN_TARGET_x86\t:= x86_64-linux-gnu\n BINDGEN_TARGET_arm64\t:= aarch64-linux-gnu\n BINDGEN_TARGET_arm\t:= arm-linux-gnueabi\n BINDGEN_TARGET_loongarch\t:= loongarch64-linux-gnusf\n+\n+ifdef CONFIG_PPC64\n+ifdef CONFIG_CPU_LITTLE_ENDIAN\n+BINDGEN_TARGET_powerpc\t:= powerpc64le-linux-gnu\n+endif\n+else\n BINDGEN_TARGET_powerpc\t:= powerpc-linux-gnu\n+endif\n+\n BINDGEN_TARGET_um\t:= $(BINDGEN_TARGET_$(SUBARCH))\n BINDGEN_TARGET\t\t:= $(BINDGEN_TARGET_$(SRCARCH))\n \n", "prefixes": [ "V4", "3/3" ] }