Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2217486/?format=api
{ "id": 2217486, "url": "http://patchwork.ozlabs.org/api/patches/2217486/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20260329160254.2592207-5-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": "<20260329160254.2592207-5-mkchauras@gmail.com>", "list_archive_url": "https://lore.kernel.org/linuxppc-dev/20260329160254.2592207-5-mkchauras@gmail.com/", "date": "2026-03-29T16:02:54", "name": "[V7,4/4] powerpc: Enable Rust for ppc64le", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": false, "hash": "02708c7c39018663cac037376bc28bf806ad39b9", "submitter": { "id": 92575, "url": "http://patchwork.ozlabs.org/api/people/92575/?format=api", "name": "Mukesh Kumar Chaurasiya", "email": "mkchauras@gmail.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20260329160254.2592207-5-mkchauras@gmail.com/mbox/", "series": [ { "id": 497928, "url": "http://patchwork.ozlabs.org/api/series/497928/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=497928", "date": "2026-03-29T16:02:50", "name": "Rust support for powerpc", "version": 7, "mbox": "http://patchwork.ozlabs.org/series/497928/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2217486/comments/", "check": "success", "checks": "http://patchwork.ozlabs.org/api/patches/2217486/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linuxppc-dev+bounces-18975-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=20251104 header.b=bhnnkwdf;\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-18975-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::629\"", "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=20251104 header.b=bhnnkwdf;\n\tdkim-atps=neutral", "lists.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com\n (client-ip=2607:f8b0:4864:20::629; helo=mail-pl1-x629.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 4fkK1X0p6Wz1xtJ\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 30 Mar 2026 03:03:44 +1100 (AEDT)", "from boromir.ozlabs.org (localhost [127.0.0.1])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 4fkK1V6yg1z2yhD;\n\tMon, 30 Mar 2026 03:03:42 +1100 (AEDT)", "from mail-pl1-x629.google.com (mail-pl1-x629.google.com\n [IPv6:2607:f8b0:4864:20::629])\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 4fkK1V11JZz2ySS\n\tfor <linuxppc-dev@lists.ozlabs.org>; Mon, 30 Mar 2026 03:03:42 +1100 (AEDT)", "by mail-pl1-x629.google.com with SMTP id\n d9443c01a7336-2ab39b111b9so15792355ad.1\n for <linuxppc-dev@lists.ozlabs.org>;\n Sun, 29 Mar 2026 09:03:42 -0700 (PDT)", "from li-1a3e774c-28e4-11b2-a85c-acc9f2883e29.ibm.com.com\n ([106.51.160.14])\n by smtp.gmail.com with ESMTPSA id\n d9443c01a7336-2b2427c176fsm52521175ad.77.2026.03.29.09.03.32\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Sun, 29 Mar 2026 09:03:39 -0700 (PDT)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1774800222;\n\tcv=none;\n b=GjO7qsLy57O2hS7t9L/KY1JmGRuAQhpPLAOrCUGEC/RQnuwaqr6qXST1iQiOyBoR3tQ1JB2vWJGFKI7Tinz5y/s9CY1pvug8jGarqNH6Mg3ZtBcrw4GLYGm4TunU4lQBATKOx60j1u23+GKBF+k0jpyDqjTVd7sftiFWz6QYbJLAjmXzhe5v89hMhljaDUdEPp9GzNB29AE5SXuUJkv4lyueMvIYww3UWUQkjyC47FktBlaEF7wQP2NbAgVMoXzRE+UwDPM3HHLjGhVU2c2aaxo8j22re67PYGWGgWTPouRgwPB8hS4AYR+xC3SaWrGSvb+/gMxDU0LKbONlPfJG3A==", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707;\n\tt=1774800222; c=relaxed/relaxed;\n\tbh=288wnweBkfKS80Aih7eMbYVxj6PiM5xDcY9weWSozU0=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=SkiQGsefJOokrhRVDLyMnGrZ5BKmzb9re0lFwz8ER6QN6ETxD2rW/OKOIdwLEE96u7FIG+1RidQsbiOSsCmaXGjm5PIIH++42yCTY7ZnMmqugp3fFXcfReJW5nyyPUkuQHtNcscfVi7+wXhcZxo5b1KoUKiocaUsFWk9aG1RLCrWA9wxUdK1nFMdetRL2Qyt8mG7Nqkj2sn30tWgGgGCODqylCb/PHKe+pkKgdFLuOJu5KrdlfeLPxcU9PlkaqHp/78kSjyjG+RFH1XVaVSbHo/u9NlHAT9eFMb4hBt22bgkU9JiGRsxaWs7RuqiJLGkeam7vreZ9yTY/zCySh1qRQ==", "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=20251104 header.b=bhnnkwdf; dkim-atps=neutral;\n spf=pass (client-ip=2607:f8b0:4864:20::629; helo=mail-pl1-x629.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=20251104; t=1774800220; x=1775405020;\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=288wnweBkfKS80Aih7eMbYVxj6PiM5xDcY9weWSozU0=;\n b=bhnnkwdfGO+MpVKmKAXITjCzb1LOeqg+LqwfQKCin7aOTZSCHR0daLi+BAymPIIS2b\n Ez492JGw+6prrYpfsL8s+Lv82uL62XVlPTvbYSmIPKs9cMfSwKng3W+32JnF3Fq6Yq5H\n ZLnxk+NerZEpYInWhW8UYXO8Lp0ou8DMHYEJ33b7izz0PEYoobQko1Kcih8N+U77tk4n\n asIO6MALksfolAXnUAUcW6iURqAJydVgS24gzL06j7qEh5KPzqndeF0LwMJe4v5FmGnA\n OXWQLBLLyAgtriJ2Ke8UYfqEw15eoQQEzV+hcYZWpX8dc914JWvce2HROA1yOrTnzRKb\n d5Bg==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1774800220; x=1775405020;\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=288wnweBkfKS80Aih7eMbYVxj6PiM5xDcY9weWSozU0=;\n b=Mi+lrZ3ap/mlrszpXDgdwF79Mta6eBcLxmj5Exyb95NemUqBtJtxRF6fVVTgiXliHO\n cRJXSihhIeMLZQPqUUUH2EwGzSRP3vbv4QhYQGLbbMrCqWwMs7SqEI5leaU2pz4m3IbN\n BGbVBRyTSxWE20Vvp7NJneGnaeEtFbz+q+vmmIc7MLSfgLAtDZGv1xUvTFn0YvbUxohD\n RkF7oc7yQeE/PExp6lU/pCKvFb8neVAuq7faG9fvC8mUHudEordtMtpZjrpJJz3mgEvZ\n xtlhxUryeb6jG8k3m21EBiD8Xnk/lYosd2YDPRoy1ZUf6L3ohshNmH23fTemLh4DRgKR\n juGg==", "X-Forwarded-Encrypted": "i=1;\n AJvYcCXEdpHDqbH0NXKcGE2mV8uf3PjxWNxOD95uY17rgN8cF/vhTHrcV4NRELOffiAMy9swsGyh/XAbDwyA3CE=@lists.ozlabs.org", "X-Gm-Message-State": "AOJu0Yy5u7QPdkx6mnbjVcCsPI9qOejtDIdLrZYot6aCU42gpBgjHOs3\n\tjF8lGYNHNGLNGpr6SShIr8i8YeosEz6iYenon7AzpObf5s0gQt3vdT9r", "X-Gm-Gg": "ATEYQzx4MifjiWQWh8iIrBIEZgLtF5w0AmCkJkHg4scM5/IRUn3PHKdUKj7tDlz+Cw4\n\txy3L1qE2eSqkytkYzulTZPPgwzIxLGA2Bk6bzcaZwHI5SGoPdL+kdWLlO5h+sKR1yb1MoTy+Ubx\n\tQ+pmycwrkTjAZbim1R408XJBLI0TZQdNJa1AHyDNDN6Ysa1sTbNxew19CyKc5C2nz+X/6VHUDZV\n\tyk/dqoFF/MWuWs/Irtms49FBwXSBh3W5OOScE86rYcmYCTSYc4ciJr2i2vrONE5n9Qop1OPxi6a\n\toi8nn1SAyXnXs1YCZhsH6LbLAmhsBDxoNxrrFBzmXFuMe6n12EIUwYao3Ss4uOByqc0Pa0v5898\n\tF9rsZ87RA6EyohlYiZcuTUJKRE+Asm9z23084hUxdAgolq1iYiG1Xfio+R0YgPwT8MMpmplBAGZ\n\tpyd/izKTa+YLl3wkllBkvTodWIXl1tCFku5KesIpD6vThoEVSGXSmW9/q622dwMW5jWq2Equnwq\n\tyg=", "X-Received": "by 2002:a17:902:e847:b0:2b2:5124:d068 with SMTP id\n d9443c01a7336-2b25124d224mr13168265ad.10.1774800220154;\n Sun, 29 Mar 2026 09:03:40 -0700 (PDT)", "From": "\"Mukesh Kumar Chaurasiya (IBM)\" <mkchauras@gmail.com>", "To": "maddy@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\taliceryhl@google.com,\n\trostedt@goodmis.org,\n\tardb@kernel.org,\n\tojeda@kernel.org,\n\tboqun@kernel.org,\n\tgary@garyguo.net,\n\tbjorn3_gh@protonmail.com,\n\tlossin@kernel.org,\n\ta.hindborg@kernel.org,\n\ttmgross@umich.edu,\n\tdakr@kernel.org,\n\tlinuxppc-dev@lists.ozlabs.org,\n\tlinux-kernel@vger.kernel.org,\n\trust-for-linux@vger.kernel.org", "Cc": "\"Mukesh Kumar Chaurasiya (IBM)\" <mkchauras@gmail.com>,\n\tLink Mauve <linkmauve@linkmauve.fr>,\n\tVenkat Rao Bagalkote <venkat88@linux.ibm.com>", "Subject": "[PATCH V7 4/4] powerpc: Enable Rust for ppc64le", "Date": "Sun, 29 Mar 2026 21:32:54 +0530", "Message-ID": "<20260329160254.2592207-5-mkchauras@gmail.com>", "X-Mailer": "git-send-email 2.53.0", "In-Reply-To": "<20260329160254.2592207-1-mkchauras@gmail.com>", "References": "<20260329160254.2592207-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>\nTested-by: Venkat Rao Bagalkote <venkat88@linux.ibm.com>\nSigned-off-by: Mukesh Kumar Chaurasiya (IBM) <mkchauras@gmail.com>\n---\n arch/powerpc/Kconfig | 1 +\n arch/powerpc/Makefile | 7 ++++++-\n rust/Makefile | 6 ++++++\n 3 files changed, 13 insertions(+), 1 deletion(-)", "diff": "diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig\nindex 1246b3add8ff..a5f50434daf3 100644\n--- a/arch/powerpc/Kconfig\n+++ b/arch/powerpc/Kconfig\n@@ -285,6 +285,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 589613eaa5dc..9385db478c59 100644\n--- a/arch/powerpc/Makefile\n+++ b/arch/powerpc/Makefile\n@@ -61,7 +61,12 @@ else\n KBUILD_LDFLAGS_MODULE += $(objtree)/arch/powerpc/lib/crtsavres.o\n endif\n \n-KBUILD_RUSTFLAGS \t+= --target=powerpc-unknown-linux-gnu\n+ifdef CONFIG_PPC64\n+KBUILD_RUSTFLAGS\t+= --target=powerpc64le-unknown-linux-gnu\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 7ea7570e3f17..7fe4cbbd176e 100644\n--- a/rust/Makefile\n+++ b/rust/Makefile\n@@ -410,7 +410,13 @@ 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+BINDGEN_TARGET_powerpc\t:= powerpc64le-linux-gnu\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": [ "V7", "4/4" ] }