get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/1.2/patches/2224563/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2224563,
    "url": "http://patchwork.ozlabs.org/api/1.2/patches/2224563/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20260417152253.2312961-5-mkchauras@gmail.com/",
    "project": {
        "id": 2,
        "url": "http://patchwork.ozlabs.org/api/1.2/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": "<20260417152253.2312961-5-mkchauras@gmail.com>",
    "list_archive_url": "https://lore.kernel.org/linuxppc-dev/20260417152253.2312961-5-mkchauras@gmail.com/",
    "date": "2026-04-17T15:22:53",
    "name": "[V11,4/4] powerpc: Enable Rust for ppc64le",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "02708c7c39018663cac037376bc28bf806ad39b9",
    "submitter": {
        "id": 92575,
        "url": "http://patchwork.ozlabs.org/api/1.2/people/92575/?format=api",
        "name": "Mukesh Kumar Chaurasiya (IBM)",
        "email": "mkchauras@gmail.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20260417152253.2312961-5-mkchauras@gmail.com/mbox/",
    "series": [
        {
            "id": 500363,
            "url": "http://patchwork.ozlabs.org/api/1.2/series/500363/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=500363",
            "date": "2026-04-17T15:22:49",
            "name": "Rust support for powerpc",
            "version": 11,
            "mbox": "http://patchwork.ozlabs.org/series/500363/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2224563/comments/",
    "check": "success",
    "checks": "http://patchwork.ozlabs.org/api/patches/2224563/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linuxppc-dev+bounces-19838-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=GNs+fjZj;\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-19838-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::42f\"",
            "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=GNs+fjZj;\n\tdkim-atps=neutral",
            "lists.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com\n (client-ip=2607:f8b0:4864:20::42f; helo=mail-pf1-x42f.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 4fxzF43c7yz1yDF\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 18 Apr 2026 01:24:08 +1000 (AEST)",
            "from boromir.ozlabs.org (localhost [127.0.0.1])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 4fxzF42gjDz2yvR;\n\tSat, 18 Apr 2026 01:24:08 +1000 (AEST)",
            "from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com\n [IPv6:2607:f8b0:4864:20::42f])\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 4fxzF33xCvz2xS3\n\tfor <linuxppc-dev@lists.ozlabs.org>; Sat, 18 Apr 2026 01:24:07 +1000 (AEST)",
            "by mail-pf1-x42f.google.com with SMTP id\n d2e1a72fcca58-82f1f6103afso398104b3a.1\n        for <linuxppc-dev@lists.ozlabs.org>;\n Fri, 17 Apr 2026 08:24:07 -0700 (PDT)",
            "from li-1a3e774c-28e4-11b2-a85c-acc9f2883e29.ibm.com.com\n ([106.51.164.157])\n        by smtp.gmail.com with ESMTPSA id\n d2e1a72fcca58-82f8ebb3829sm2384373b3a.31.2026.04.17.08.23.55\n        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n        Fri, 17 Apr 2026 08:24:05 -0700 (PDT)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1776439448;\n\tcv=none;\n b=b98xEQYIbTmznNI7+FcFP4ccr/KQEVXlzAlYYizmIz2Lzhf0kIQplFyFi/Jwrrf/ahmZDbC+8NXdxSqZD7VGV+6fhgIX+FdCO160c2lYOEATDGBowTSoFv0d5xhuVx6q5XgikPJz3ro34xTybMBuCFkWHHDtSx48qeCCHx83J/rxhbXzmAq7Hi17vD9ArgA8hAfjJcWkV2tV2D8x+WYWVxUL1YSAwlwkovxUQBdVrgo/vuZJdyQH+wbAMBuwjyT/VX3xwkn/ehtEyaagicrCiOl3DleGpTKrvpCzRDol11rviU2obH7ivvmVfoyZcUJE6FzGwUrTqTfJd2Zsr+Q+7w==",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707;\n\tt=1776439448; c=relaxed/relaxed;\n\tbh=B58d6JHjS7h5Y5vjFZ6dbGJt4nx8a8vTRSygt806S6s=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version:Content-Type;\n b=DwQsfTQUdLM2cP20h4/hF8qjPFVhNALpjg9mDrjkh+RwCfIL36kFbX4XU3B6cR1rXqVNOastuBxE7bgCztvxRlnrxZyq+Jd6iCPhCdWj7THNXaRTuFNtO2b8w3H7Rep+42eZDKkzrze7zkdnooWwR7Tjv6o++qHqVUIht6/InKceTEKPqJ79EsQTSlfUxnQcbGs37VdoCZr94U6DbJoSubgwPxbJER1h0pFsapFo1kw2nDdkAhoKoOORPUCPiM9l22qPbkjAEufakFzCprujRcBg08W0PQdxp4lriClCr023sqyVAgcN3TmP18WJV9LU4726Vlz6++gm8p1ZDsIN3Q==",
        "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=GNs+fjZj; dkim-atps=neutral;\n spf=pass (client-ip=2607:f8b0:4864:20::42f; helo=mail-pf1-x42f.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=1776439445; x=1777044245;\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=B58d6JHjS7h5Y5vjFZ6dbGJt4nx8a8vTRSygt806S6s=;\n        b=GNs+fjZj8t7kLVjmrgLZJBjWvosKg6vvFKNoajWVkIgE2jQjlzD0okc4HOl2hqBaRN\n         TlGVdx6YDPOywnAXDxNveSpTbE7V7Q0jMvULyLnnpmeB+oQr078k+JzCvV6tjRcepq3f\n         Onyclv9eM9to2JA9lRhJ/ByYmM3IGVvbp6XfxjT0ChIDyRMWxRCuu/6Xt+bAL9A2VGR2\n         YENurfVgspleeW0kNNzkxj0juR9rIqfZ8vPnV4sMIlqyUcsxUMCNcYlViQeztrlQ6oJV\n         cNeEvHY/fr7Z7BpWD+Dr9ak6TyVCC1TIFtBHSWjspBb+i7Dz7Hk5N3TvSCC+6rJ5Q6ry\n         P9ew==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1776439445; x=1777044245;\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=B58d6JHjS7h5Y5vjFZ6dbGJt4nx8a8vTRSygt806S6s=;\n        b=RPWxQRZDzzqyNb+Dd31EnFqkBgn61e6OHtP4JkeQFlS4vxBp89vmgf96tC83u171hm\n         NFmeVeEJqV1fthpD5yZpRwt2SmT+/0mIVY+z2eJq4uHhVrTJdlYhGmSWKmuliZoh3HW6\n         ZvF2YuZBNp3COxhVNoAkdRsszMdyfUBgF4/kQ4hf9VFIQob0Shj692Jodmkp6NmLtnuk\n         D99WUmwIx0UjxTsuBTJhunVXenpcQCRACU3S7mwngyGJGOzyAaeIwBnlwOkd6QgJdTpL\n         2yii5jaA+XaX/Gsv1W3LH7X8KuQBx/og6zTSqByT0OE2h/4pXd2KcFSpH6iea0P4BRg7\n         s/zg==",
        "X-Forwarded-Encrypted": "i=1;\n AFNElJ87Tlj6eqA8izdB16toXUT+pYWZjakkZlFivYVpQ86vhDNXU4zzrcJjE4W/MwLYAxpectcY5gENJRbLtLA=@lists.ozlabs.org",
        "X-Gm-Message-State": "AOJu0YwTVfByLbMP1wXnzCdpyg+2SKJAmdgqVLhcYnMSuSyDCo6EUEFl\n\tLKTgXmY+VXOZB+X//NHpltdoeCnS5ie79d9TniXdvOsQRM32f2DiGJo4",
        "X-Gm-Gg": "AeBDiev5ac4/RUjU3uMzozWeciHb5EJsGeoblPt4fpNarIdRBdAZAN9Z4k3oDMuuv9Y\n\taRHQuBjyKfeHHHKCDPoIP7TICk/bOb5pUjSQsMA4ihz5aJnPJu/FdeIwq9+Ux4N4NqveeseUWg0\n\txsVZ0+2yHvGmaGpAltrzGpIu3k3aBzl+aQv4RL0qdocXzVbo9glhTzf9dTdtIRduiieSfNb/adp\n\tm9uV0a+eFAL5HLOOnvxm5Vk6bvJ3M1dASWHuGoRwsqhLU09FgHozTeTovVbtFt20H2Ypj/XUb99\n\trRpAjQLwqNJgd7StbDu317yMXMNCuDT9l2KNPq5iiiEIDlFqZP5HPdVezBkgG92y1DuELX2B1LM\n\tWmZ3E3yObYCr9up/PgPyPMknWpSZt6n9jymPln8o56dQ6ufmY59JThd7urz1hqU99PPtOGbfR74\n\tJ9edmNK8DNRFBT+rtxWwrWCamlZA8z3hl+xnEWa7mxhvRPRafodZ4xZ5Cc8iKQszG8bBET0G5bA\n\tnQL2kwH+Xk/e/tADiJ/ZPwBsw==",
        "X-Received": "by 2002:a05:6a00:984:b0:82f:6cd5:1ead with SMTP id\n d2e1a72fcca58-82f8c86b573mr3320740b3a.16.1776439445297;\n        Fri, 17 Apr 2026 08:24:05 -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\tnathan@kernel.org,\n\tnick.desaulniers+lkml@gmail.com,\n\tmorbo@google.com,\n\tjustinstitt@google.com,\n\tlinuxppc-dev@lists.ozlabs.org,\n\tlinux-kernel@vger.kernel.org,\n\trust-for-linux@vger.kernel.org,\n\tllvm@lists.linux.dev",
        "Cc": "\"Mukesh Kumar Chaurasiya (IBM)\" <mkchauras@gmail.com>,\n\tLink Mauve <linkmauve@linkmauve.fr>,\n\tVenkat Rao Bagalkote <venkat88@linux.ibm.com>",
        "Subject": "[PATCH V11 4/4] powerpc: Enable Rust for ppc64le",
        "Date": "Fri, 17 Apr 2026 20:52:53 +0530",
        "Message-ID": "<20260417152253.2312961-5-mkchauras@gmail.com>",
        "X-Mailer": "git-send-email 2.53.0",
        "In-Reply-To": "<20260417152253.2312961-1-mkchauras@gmail.com>",
        "References": "<20260417152253.2312961-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-Type": "text/plain; charset=UTF-8",
        "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.\n\nTested on pseries Power11:\n╰─❯ dmesg | grep rust\n[    0.225728] Initialise system trusted keyrings\n[    0.270961] rust_minimal: Rust minimal sample (init)\n[    0.270968] rust_minimal: Am I built-in? true\n[    0.270974] rust_minimal: test_parameter: 1\n[    0.270983] rust_misc_device: Initialising Rust Misc Device Sample\n[    0.271012] rust_print: Rust printing macros sample (init)\n[    0.271019] rust_print: Emergency message (level 0) without args\n[    0.271023] rust_print: Alert message (level 1) without args\n[    0.271026] rust_print: Critical message (level 2) without args\n[    0.271030] rust_print: Error message (level 3) without args\n[    0.271033] rust_print: Warning message (level 4) without args\n[    0.271037] rust_print: Notice message (level 5) without args\n[    0.271040] rust_print: Info message (level 6) without args\n[    0.271043] rust_print: A line that is continued without args\n[    0.271054] rust_print: Emergency message (level 0) with args\n[    0.271064] rust_print: Alert message (level 1) with args\n[    0.271072] rust_print: Critical message (level 2) with args\n[    0.271077] rust_print: Error message (level 3) with args\n[    0.271083] rust_print: Warning message (level 4) with args\n[    0.271091] rust_print: Notice message (level 5) with args\n[    0.271097] rust_print: Info message (level 6) with args\n[    0.271102] rust_print: A line that is continued with args\n[    0.271110] rust_print: 1\n[    0.271113] rust_print: \"hello, world\"\n[    0.271121] rust_print: [samples/rust/rust_print_main.rs:35:5] c = \"hello, world\"\n[    0.271129] rust_print: Arc<dyn Display> says 42\n[    0.271130] rust_print: Arc<dyn Display> says hello, world\n[    0.271136] rust_print: \"hello, world\"\n[    0.271198] usbcore: registered new interface driver rust_driver_usb\n[    0.271207] rust_faux_driver: Initialising Rust Faux Device Sample\n[    0.271227] faux_driver rust-faux-sample-device: Hello from faux device!\n[    0.271297] rust_configfs: Rust configfs sample (init)\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>\nLink: https://github.com/Rust-for-Linux/linux/issues/105\nLink: https://github.com/linuxppc/issues/issues/451\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 af0c8ab2e5b6..99537c2c55ee 100644\n--- a/rust/Makefile\n+++ b/rust/Makefile\n@@ -414,7 +414,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": [
        "V11",
        "4/4"
    ]
}