Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2194903/?format=api
{ "id": 2194903, "url": "http://patchwork.ozlabs.org/api/patches/2194903/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20260210053756.2088302-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": "<20260210053756.2088302-4-mkchauras@gmail.com>", "list_archive_url": "https://lore.kernel.org/linuxppc-dev/20260210053756.2088302-4-mkchauras@gmail.com/", "date": "2026-02-10T05:37:56", "name": "[V5,3/3] powerpc: Enable Rust for ppc64le", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "43285a6bd5b6c7241ef39aebf5763dc631e8c377", "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/20260210053756.2088302-4-mkchauras@gmail.com/mbox/", "series": [ { "id": 491605, "url": "http://patchwork.ozlabs.org/api/series/491605/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=491605", "date": "2026-02-10T05:37:54", "name": "Rust support for powerpc", "version": 5, "mbox": "http://patchwork.ozlabs.org/series/491605/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2194903/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2194903/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linuxppc-dev+bounces-16763-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=h+xQ6GQG;\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-16763-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::430\"", "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=h+xQ6GQG;\n\tdkim-atps=neutral", "lists.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com\n (client-ip=2607:f8b0:4864:20::430; helo=mail-pf1-x430.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)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4f9Cts2shXz1xvb\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 10 Feb 2026 18:32:05 +1100 (AEDT)", "from boromir.ozlabs.org (localhost [127.0.0.1])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 4f9Ctr5F2Qz30GV;\n\tTue, 10 Feb 2026 18:32:04 +1100 (AEDT)", "from mail-pf1-x430.google.com (mail-pf1-x430.google.com\n [IPv6:2607:f8b0:4864:20::430])\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 4f9Ctq4qKMz309N\n\tfor <linuxppc-dev@lists.ozlabs.org>; Tue, 10 Feb 2026 18:32:02 +1100 (AEDT)", "by mail-pf1-x430.google.com with SMTP id\n d2e1a72fcca58-81f4e36512aso3547345b3a.3\n for <linuxppc-dev@lists.ozlabs.org>;\n Mon, 09 Feb 2026 23:32:02 -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-8245b62d773sm7529056b3a.36.2026.02.09.21.38.21\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Mon, 09 Feb 2026 21:38:26 -0800 (PST)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1770708724;\n\tcv=none;\n b=Td6lrvHZDFItPZIrYC1DgZtXI2FAmFRjDWLxcXpcus1QCKVR3cl2g2sM55TAbC919I68AArP03zue7BdBQlc4sleACUy6XpgRWbc10JqakdSREJMZDr59BdJIozG5ALu5XDHUGaHedDFHe+aYo9Eg5tGK+Orl19esWfnb14gqllq+UKRU+SFHDSRBSp9ATnMIQ6K7SFE6flyf4jjZXNKOLszPc63WMhqdJA02QGAwrdIp6K/xDiq4AWdai/2fXp1N7KO22VE6kcEUusVKSorzHyIwcYYS00GGi3mVnsfZIf0TuX26atclXHP3ocXviJlPi034Gw1XNIoj+0kesST3Q==", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707;\n\tt=1770708724; c=relaxed/relaxed;\n\tbh=+ELct8JbGFslmyeZtvX1PbcqdzEj+R+mb18t5qqOGr8=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=I8oIp4aNecN3xelZg09wdXLgCD8dsTJmU99ltSBueve6byH+SIDjumVi/Ml2FS91Cz43WuWuuSmYon3NPf/WflX1R9+owT41xS/CuP6wDd8pfXgtXG63rzxNG6GHZqTyDNrHtuBfP/Nfkn9OlNTtieILvCsbTx7vdTg5cxhk5hGddzOzkitPxm+DHzm4ogyMl7gX58Fb9jbFoHu08I7S85L6H9hO1i2ucJ2ac9UcyidaatXKJa+bD8gbTyIhSmayBfnqAipS1hDA8BqfHqxJMI0wAaRLNT+XSeMCF2Gj6GsLIEFUictXO9Z4RZPo2yBr4m+dMDDqodvytyVnlILu8Q==", "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=h+xQ6GQG; dkim-atps=neutral;\n spf=pass (client-ip=2607:f8b0:4864:20::430; helo=mail-pf1-x430.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=1770708721; x=1771313521;\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=+ELct8JbGFslmyeZtvX1PbcqdzEj+R+mb18t5qqOGr8=;\n b=h+xQ6GQGG53T8GQDUl0Wq5z2LiDyDs4U60qG9Te+eSOfb72q+g0MBxfna4Up/hNk1m\n 7uezUl7kVx8xc1IhrLfKNmBvEMrJHpuasm40tgCTjZJyOOEZcNoMXGp1NCYA+a+c1h07\n dHcw1mpTUpyWUyVD3AMu33xjbwTSnsRDsQHfS8a3nnnd/OXGdNjgiO793EEY80dTfpyx\n 7ueU5/BETDinZNhCUNf54xjD6r7a3xGFcKSG8qU/ltgF7EHsDRMSiwDWURGsfoKQYHuG\n E9Xaot2AbnuIcL77jZdRCK+QKqDOzfdMhJGeOH97JB0qSLiOSHpWfM63Ki5CcgnXaynp\n kRhg==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1770708721; x=1771313521;\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=+ELct8JbGFslmyeZtvX1PbcqdzEj+R+mb18t5qqOGr8=;\n b=gORs5cmbjfXyGgq94FOqTSTfz+iP0wCQSS9u0YoTenMohxNh1ZJrwxiNJvnzlzcnsD\n rCo6tHsWfNNfDwc296jjj0eHwHpEtjl3a92MKozWmUsOP+DAPrZc+uyL5+xg9FwcfXtQ\n o2LCpdkVzDDL6PnSb0xOrwbQqyLiDb96BCffDoyzQPqH/gar+oQE2G87ZtDHvOV5GhCB\n QuukercWOdx4dhaAJFAK9UCYDoK1OxUbbX4QNOoveoMjfALnkdn7lrDjXq+LzrRTc3X3\n moU3507vkFPYOnz4kQqcSrX86muDNMPTrpYPNzOJ5YszvMlnZ6Rr3FskzOrTuHsfF1Hx\n XtSg==", "X-Forwarded-Encrypted": "i=1;\n AJvYcCXKO0OavdBXMWzL9CAQ1QUnrY6ReHoYeZ+yTEKib5IDIdaDHBTupGXOXCiwdlINSSTlLDMgUslHqZxu9Uk=@lists.ozlabs.org", "X-Gm-Message-State": "AOJu0YzpQJYjOneQyxZ+lftzSvFUDHoKPFyDsJnXxR7CPbumqgk8I23m\n\tFIZd0qmx2PZmfJHl5nwRVJaIct8z6kYu51x/wUjm8MllCrjsOX+ydk+rK2c6yg==", "X-Gm-Gg": "AZuq6aJ0VEBd5Leo33V6kTdEokFzjcJ4zyfT94ryFxWqsakO6UbWxucA7m8/fFz0WUs\n\t3qESamQ3HZqOweGLEm8XgtdAxtDOWrgEO1/mYZBYwNNj68C2CFuAEF+JLt+DwN1kmSz8975m3k6\n\tega/YcqyDT+vgL9UoEYBdIGg85Dvf2vmbJmAwtPrK2yxU7SGMaiWmx8yRsd1q2Y++UIA3h4yvWO\n\tjsIy5NsuADr7yOzbTdAKSkKwk4eEojz3iMKrXS4dD/AiEOM2GYh1dkfnDNKEimnLvfE3Y6g0CAT\n\ti4wKQDpcnUMMtV7txKvyM0sF6+GcysVD0W4hDL6ATaesZbUBDH05MUoeHGOQ80C5molebs4cQ7M\n\tgY0Z5E59S/r3fw67as/l9VYlqx8Ehd3PWvUGtLvsEFL5SfvmaDlyffuKBFAoTRC27CnMJGuHWL1\n\tA0f2Kg7f9YPnQgwnzevpgZRHzGPp647nnin2JdtniKRvE9slVZD3NrR91FYF9t4I5GJmXLikI=", "X-Received": "by 2002:a05:6a20:734f:b0:37e:7e93:99cf with SMTP id\n adf61e73a8af0-393ad310a05mr12386368637.37.1770701906995;\n Mon, 09 Feb 2026 21:38:26 -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 V5 3/3] powerpc: Enable Rust for ppc64le", "Date": "Tue, 10 Feb 2026 11:07:56 +0530", "Message-ID": "<20260210053756.2088302-4-mkchauras@gmail.com>", "X-Mailer": "git-send-email 2.53.0", "In-Reply-To": "<20260210053756.2088302-1-mkchauras@gmail.com>", "References": "<20260210053756.2088302-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 | 6 ++++++\n 4 files changed, 16 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..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": [ "V5", "3/3" ] }