Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2194982/?format=api
{ "id": 2194982, "url": "http://patchwork.ozlabs.org/api/patches/2194982/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20260210090023.2587534-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": "<20260210090023.2587534-4-mkchauras@gmail.com>", "list_archive_url": "https://lore.kernel.org/linuxppc-dev/20260210090023.2587534-4-mkchauras@gmail.com/", "date": "2026-02-10T09:00:22", "name": "[V6,3/3] powerpc: Enable Rust for ppc64le", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "8892f2bc64198a4c0fea0788ba01a93bf5e59889", "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/20260210090023.2587534-4-mkchauras@gmail.com/mbox/", "series": [ { "id": 491624, "url": "http://patchwork.ozlabs.org/api/series/491624/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=491624", "date": "2026-02-10T09:00:19", "name": "Rust support for powerpc", "version": 6, "mbox": "http://patchwork.ozlabs.org/series/491624/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2194982/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2194982/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linuxppc-dev+bounces-16772-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=Y4PdIx7C;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org\n (client-ip=112.213.38.117; helo=lists.ozlabs.org;\n envelope-from=linuxppc-dev+bounces-16772-incoming=patchwork.ozlabs.org@lists.ozlabs.org;\n receiver=patchwork.ozlabs.org)", "lists.ozlabs.org;\n arc=none smtp.remote-ip=\"2001:4860:4864:20::34\"", "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=Y4PdIx7C;\n\tdkim-atps=neutral", "lists.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com\n (client-ip=2001:4860:4864:20::34; helo=mail-oa1-x34.google.com;\n envelope-from=mkchauras@gmail.com; receiver=lists.ozlabs.org)" ], "Received": [ "from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1 raw public key)\n server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4f9JR21Lqnz1xtV\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 10 Feb 2026 21:56:45 +1100 (AEDT)", "from boromir.ozlabs.org (localhost [127.0.0.1])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 4f9JR02w8Zz2yFm;\n\tTue, 10 Feb 2026 21:56:44 +1100 (AEDT)", "from mail-oa1-x34.google.com (mail-oa1-x34.google.com\n [IPv6:2001:4860:4864:20::34])\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 4f9JQx6ZLDz2x99\n\tfor <linuxppc-dev@lists.ozlabs.org>; Tue, 10 Feb 2026 21:56:40 +1100 (AEDT)", "by mail-oa1-x34.google.com with SMTP id\n 586e51a60fabf-4096aab5521so3153978fac.3\n for <linuxppc-dev@lists.ozlabs.org>;\n Tue, 10 Feb 2026 02:56:40 -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 d9443c01a7336-2a951c7a342sm129536605ad.26.2026.02.10.01.00.48\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Tue, 10 Feb 2026 01:00:55 -0800 (PST)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1770721004;\n\tcv=none;\n b=OvinQEifCOW/3Kf9CFE/fiLF+B5YNLcE4MuQgj9eBlnvGa67nCsmhzJRseqMdiy5Ug/gS9DKDM22GsAFKmJC4LYhSmWHKOw3oYde8Gxo8epVEVQY3DxIQOCJjMEzaNhVE1pSxRR4HeOuyn2VPcFXcR6+Vi2uMouF5LLFC5fDUmeNO2fVIs47jgbYpCtHNj7xrjMbyeykY3Ll7+rbicmi2qcMWfsbMjIvLFLpQaDGqjXF/NWshMEZ3107VFyvMr5w9UiPXZvUFbYSQhSeyELSxBkIZtCayfftOzQUrn64P3f9hE5mqAK7Ou3epUmG7FQn+hFsrgtGK0Bda262QnAV/g==", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707;\n\tt=1770721004; c=relaxed/relaxed;\n\tbh=fIJz3kYN33qG3Fl2V6Bqi8+KcSudbe9ldFTSf7iXp3g=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=hac7pzlRQ3tKpaUunzz8ExE1DtdjSUzH7Ny3nIw13IAR1qdu9osqMo4QrBhpdcOR12eeljb3xIfgvqfTYYXS6LFVBkYe7xj/+x87lccSjUNvQ5MefVLn4+J4b9LmNMuvJTXEUc8K9r9HAqaxVKdceru+PBg8JN6B1Zs72ihXgs4YVfxQjM8/p/+DJRfpSAtfJdnOGgYpdd4DRMbaqL2NYH72XjFGbbVf5RJXEh2d8p3+xx5IZJVpjcreuMmbQcsZzbjvDtcEj64rjy/Pa68FBS0xIVnq2Zd3akeTPUTqnEEfN4NiGaaHN4pQ9bz93ZzpJI3WAhx0N/IoXX7WO35MHw==", "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=Y4PdIx7C; dkim-atps=neutral;\n spf=pass (client-ip=2001:4860:4864:20::34; helo=mail-oa1-x34.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=1770720993; x=1771325793;\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=fIJz3kYN33qG3Fl2V6Bqi8+KcSudbe9ldFTSf7iXp3g=;\n b=Y4PdIx7C6/S1dTzAxNiTT3yP8mC/fg6jGnF2O071sZjLGdQ6c9r+Zaer8FAwVGcxQJ\n p541E14ftgNNzjtsRTDQLl3dOl2kJ86q70vxat5B+ilelsFoak52DEZO9vqRGFWMKi0c\n xIctUlNEJbkX4NKMALbF4Cni53LXyeHUHoHjDlLa8awtHB3A4Hn6lZhrhe6kbQtcHyTU\n DqlwkcRY9q1t+4TOWDVX3+RMbn9U1fjXQgmrpocjkdHRHMqRExF3YeYdk3CSnY8Rmy+C\n hs+vmleVUyf+EtkDrEqIW/t7wcorVEScmqwSGkQ+T3BkcYE1XzUqJaLR/RxStZAnuVa9\n dugQ==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1770720993; x=1771325793;\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=fIJz3kYN33qG3Fl2V6Bqi8+KcSudbe9ldFTSf7iXp3g=;\n b=uNKeSyQ1hJrC7skuoCPtmFlSu3lRGcKQWBV91q4mGP43YCyXLJO9fNrLAxp4Hn7VOx\n DUpOGNow7MsP0fGAd7RHrz7xTG5ibotwgwPD2qiU/FYTpDSQCWGZkdGXErmi9XvUm7LS\n 9i8AZ2UghatU9EJ8ei36R5BmtqK0RgWKyj13o3H4QT+7CQ/DfJWcxnBfN8mpa5lP98gm\n P74l6b+3WFeVH8NH64CI9IVtt4Tdf9m2wNXUpeMeX11TM00RynYPISFeBonZDdJ5ybdG\n FTe3qbB8dJ+SnGfl8D3RCPaY/K+4+sSApVVivzQ4qznd1Vd0TMPd6y8QexC5gcXKfZaQ\n JhaQ==", "X-Forwarded-Encrypted": "i=1;\n AJvYcCUUc05RwvnDuBa7O2iu5v09K4KDHTIqvKLNcQ475iNLMS360R45N7iHBC1/qVrwmpH2ApSARraQkUz87Lc=@lists.ozlabs.org", "X-Gm-Message-State": "AOJu0Yzc0Ot+KnFu9WnJEhKLuUH0mxzrXMQdnhtW2jXp6VTabJPzQodo\n\tntnOssNdT9yiNZRQYdOHVqDmDB9y5Jr9sojqoe1SU8/HtuSxdfgLN4Nw1fBp2w==", "X-Gm-Gg": "AZuq6aI0syQDfRyXTk7yWxLjffis4wbnFF9rxu08MB3NiNJ58X+euetogsw4zIX86bS\n\t10TdKxqV7sBbjbbw7NqpM1KfQWA7ZsEXcw+mlGvT/mI67dmrAJxtqGyaXFdZ67hlFU12AyYfNc9\n\trwOrYqbBpQw8+aAiz6PSlJH/62UkdefhOdH+9uKywaZLdb7n2LdeqTkJzx9aH2EET6/MOlniZyE\n\tjIdfDNU1fnA544Bmnc37UP0qfiZq4zhNAC10p29ZDj5W3zw/J5z/eqzwtHk5EJGwDUrvHVnfVVC\n\tRIAvQXQAph0n1k6oQmv1DpS7T5yt1WS9CfjU0pWvxS4YLWRrLLwwcbgNjVh3iF+Qq32ZKeMt8zE\n\tWB5ZZdmdW6U1+EixaVIiGg+/9gcVpT/WQSfRbli+2/dM0qjx8JUJO+4d0QLbzzkQE4JOj/CwG4/\n\tBr7lq9YdyXnyEIhyBmTU3y6c9ePknFYOA1CJCZg3cNRj1Pb4HEAzHkj7iwAavyFMY+zZHxF2M=", "X-Received": "by 2002:a17:903:b4e:b0:2a0:fe9f:1884 with SMTP id\n d9443c01a7336-2a95194aaeamr120907585ad.55.1770714055465;\n Tue, 10 Feb 2026 01:00:55 -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>,\n\tVenkat Rao Bagalkote <venkat88@linux.ibm.com>", "Subject": "[PATCH V6 3/3] powerpc: Enable Rust for ppc64le", "Date": "Tue, 10 Feb 2026 14:30:22 +0530", "Message-ID": "<20260210090023.2587534-4-mkchauras@gmail.com>", "X-Mailer": "git-send-email 2.53.0", "In-Reply-To": "<20260210090023.2587534-1-mkchauras@gmail.com>", "References": "<20260210090023.2587534-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 Documentation/rust/arch-support.rst | 2 +-\n arch/powerpc/Kconfig | 1 +\n arch/powerpc/Makefile | 7 ++++++-\n rust/Makefile | 6 ++++++\n 4 files changed, 14 insertions(+), 2 deletions(-)", "diff": "diff --git a/Documentation/rust/arch-support.rst b/Documentation/rust/arch-support.rst\nindex 70b9e192a7a0..70bcd726ad0e 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`` Maintained 32-bit Big Endian only.\n+``powerpc`` Maintained 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..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 += --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 ae22f2c5f0b3..0aef472c6cf5 100644\n--- a/rust/Makefile\n+++ b/rust/Makefile\n@@ -392,7 +392,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": [ "V6", "3/3" ] }