get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 1460189,
    "url": "http://patchwork.ozlabs.org/api/patches/1460189/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/be8847438abbfa4972dd792eb616973816af9290.1617126961.git.danielwa@cisco.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": "<be8847438abbfa4972dd792eb616973816af9290.1617126961.git.danielwa@cisco.com>",
    "list_archive_url": "https://lore.kernel.org/linuxppc-dev/be8847438abbfa4972dd792eb616973816af9290.1617126961.git.danielwa@cisco.com/",
    "date": "2021-03-30T17:57:03",
    "name": "[8/8] CMDLINE: arm64: convert to generic builtin command line",
    "commit_ref": null,
    "pull_url": null,
    "state": "not-applicable",
    "archived": false,
    "hash": "93c380b798c97ba269dac3580c2e38081536e91d",
    "submitter": {
        "id": 67374,
        "url": "http://patchwork.ozlabs.org/api/people/67374/?format=api",
        "name": "Daniel Walker (danielwa)",
        "email": "danielwa@cisco.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/be8847438abbfa4972dd792eb616973816af9290.1617126961.git.danielwa@cisco.com/mbox/",
    "series": [
        {
            "id": 236583,
            "url": "http://patchwork.ozlabs.org/api/series/236583/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=236583",
            "date": "2021-03-30T17:56:56",
            "name": "[1/8] CMDLINE: add generic builtin command line",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/236583/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/1460189/comments/",
    "check": "warning",
    "checks": "http://patchwork.ozlabs.org/api/patches/1460189/checks/",
    "tags": {},
    "related": [
        {
            "id": 1466842,
            "url": "http://patchwork.ozlabs.org/api/patches/1466842/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20210416040924.2882771-9-danielwa@cisco.com/",
            "msgid": "<20210416040924.2882771-9-danielwa@cisco.com>",
            "list_archive_url": "https://lore.kernel.org/linuxppc-dev/20210416040924.2882771-9-danielwa@cisco.com/",
            "date": "2021-04-16T04:09:19",
            "name": "[8/8] CMDLINE: arm64: convert to generic builtin command line",
            "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20210416040924.2882771-9-danielwa@cisco.com/mbox/"
        }
    ],
    "headers": {
        "Return-Path": "\n <linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>",
        "X-Original-To": [
            "patchwork-incoming@ozlabs.org",
            "linuxppc-dev@lists.ozlabs.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@ozlabs.org",
            "linuxppc-dev@lists.ozlabs.org"
        ],
        "Authentication-Results": [
            "ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org\n (client-ip=2404:9400:2:0:216:3eff:fee1:b9f1; helo=lists.ozlabs.org;\n envelope-from=linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org;\n receiver=<UNKNOWN>)",
            "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n unprotected) header.d=cisco.com header.i=@cisco.com header.a=rsa-sha256\n header.s=iport header.b=iR/wJlGG;\n\tdkim-atps=neutral",
            "lists.ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n unprotected) header.d=cisco.com header.i=@cisco.com header.a=rsa-sha256\n header.s=iport header.b=iR/wJlGG;\n\tdkim-atps=neutral",
            "lists.ozlabs.org; spf=pass (sender SPF authorized)\n smtp.mailfrom=cisco.com (client-ip=173.37.142.90;\n helo=alln-iport-3.cisco.com;\n envelope-from=danielwa@cisco.com; receiver=<UNKNOWN>)",
            "lists.ozlabs.org; dkim=pass (1024-bit key;\n unprotected) header.d=cisco.com header.i=@cisco.com header.a=rsa-sha256\n header.s=iport header.b=iR/wJlGG; dkim-atps=neutral"
        ],
        "Received": [
            "from lists.ozlabs.org (lists.ozlabs.org\n [IPv6:2404:9400:2:0:216:3eff:fee1:b9f1])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature RSA-PSS (4096 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 4F8y130MKXz9sVm\n\tfor <patchwork-incoming@ozlabs.org>; Wed, 31 Mar 2021 05:00:55 +1100 (AEDT)",
            "from boromir.ozlabs.org (localhost [IPv6:::1])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 4F8y126frHz3dc1\n\tfor <patchwork-incoming@ozlabs.org>; Wed, 31 Mar 2021 05:00:54 +1100 (AEDT)",
            "from alln-iport-3.cisco.com (alln-iport-3.cisco.com [173.37.142.90])\n (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n bits)) (No client certificate requested)\n by lists.ozlabs.org (Postfix) with ESMTPS id 4F8xx36YJDz3bsm\n for <linuxppc-dev@lists.ozlabs.org>; Wed, 31 Mar 2021 04:57:27 +1100 (AEDT)",
            "from rcdn-core-2.cisco.com ([173.37.93.153])\n by alln-iport-3.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA;\n 30 Mar 2021 17:57:24 +0000",
            "from zorba.cisco.com ([10.24.8.123])\n by rcdn-core-2.cisco.com (8.15.2/8.15.2) with ESMTP id 12UHv6CL024502;\n Tue, 30 Mar 2021 17:57:22 GMT"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=cisco.com; i=@cisco.com; l=3559; q=dns/txt; s=iport;\n t=1617127048; x=1618336648;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=qd9oUIm458Aa8NrbzxxHcRM50MFT4YpUd/nN6uaHB5Q=;\n b=iR/wJlGGwPceACxzUOOyFMr4qCbfma83vzciz4QQ1Ip7JMRoVSsCRYiI\n uHVMmvVQEnPN2Dj3VtmkX5+cVIrqMos50AWlvFHRBvPSsYJKCbChC+/Uy\n /uC4Tiy+DzJ7K7rDw+/88UoQslIq5IpU5ZAxc70ENpHcJqJAEFxNNsoop g=;",
        "X-IPAS-Result": "\n A0AEAACmZWNg/5ldJa1aGgEBAQEBAQEBAQEDAQEBARIBAQEBAgIBAQEBgXwFAQEBAQsBgiqBTAE5MYxlpBKBfAsBAQEPNAQBAYRQAoF6AiU0CQ4CAwEBAQMCAwEBAQEBBQEBAQIBBgRxhW6GRQYyAUYQUVcGARKFeKsygimJC4FEFIElAYhjdINyJhyBSUKBEjODJ4o2BIJGAYEPggSRYgSNPpwigxGBI5tFIqRSlQeeLYUHgVQ6gVkzGggbFYMkUBkNjisWjWoBWyEDLzgCBgoBAQMJiR8BAQ",
        "IronPort-HdrOrdr": "A9a23:zZeFBaHz0wV689mgpLqFtZHXdLJzesId70hD6mlaQ3VuHvCwvc\n aogfgdyFvIkz4XQn4tgpStP6OHTHPa+/dOkO0sFJqrQQWOggWVBa5464+K+VfdMg34stVQzK\n JxN5V5YeeAbmRSqebfzE2GH807wN+BmZrY4Nv263t2VwllZ+VB4m5CazqzKUF9SAlYCZdRLv\n P1jfZvnDaudW8aac62HBA+Lor+jufWn5HrawNuPXEawTSJ5AnE1JfKVzCFwxFbaD9U2LEk62\n SAqRDh/76uqevT8G6660bjq7BfmN7s0bJ4ZPCku4wyNijmjBquacBHXbCP1QpF2d2H2RINjM\n TGpQsmMoBIz07pOkuxoRfrxmDboVAT10M=",
        "X-IronPort-Anti-Spam-Filtered": "true",
        "X-IronPort-AV": "E=Sophos;i=\"5.81,291,1610409600\"; d=\"scan'208\";a=\"671912618\"",
        "From": "Daniel Walker <danielwa@cisco.com>",
        "To": "Will Deacon <will@kernel.org>,\n Christophe Leroy <christophe.leroy@csgroup.eu>,\n ob Herring <robh@kernel.org>,\n Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>,\n Andrew Morton <akpm@linux-foundation.org>, x86@kernel.org,\n linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org,\n Catalin Marinas <catalin.marinas@arm.com>",
        "Subject": "[PATCH 8/8] CMDLINE: arm64: convert to generic builtin command line",
        "Date": "Tue, 30 Mar 2021 10:57:03 -0700",
        "Message-Id": "\n <be8847438abbfa4972dd792eb616973816af9290.1617126961.git.danielwa@cisco.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "\n <41021d66db2ab427c14255d2a24bb4517c8b58fd.1617126961.git.danielwa@cisco.com>",
        "References": "\n <41021d66db2ab427c14255d2a24bb4517c8b58fd.1617126961.git.danielwa@cisco.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-Auto-Response-Suppress": "DR, OOF, AutoReply",
        "X-Outbound-SMTP-Client": "10.24.8.123, [10.24.8.123]",
        "X-Outbound-Node": "rcdn-core-2.cisco.com",
        "X-BeenThere": "linuxppc-dev@lists.ozlabs.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "Linux on PowerPC Developers Mail List <linuxppc-dev.lists.ozlabs.org>",
        "List-Unsubscribe": "<https://lists.ozlabs.org/options/linuxppc-dev>,\n <mailto:linuxppc-dev-request@lists.ozlabs.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.ozlabs.org/pipermail/linuxppc-dev/>",
        "List-Post": "<mailto:linuxppc-dev@lists.ozlabs.org>",
        "List-Help": "<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=help>",
        "List-Subscribe": "<https://lists.ozlabs.org/listinfo/linuxppc-dev>,\n <mailto:linuxppc-dev-request@lists.ozlabs.org?subject=subscribe>",
        "Cc": "linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org,\n xe-linux-external@cisco.com",
        "Errors-To": "linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org",
        "Sender": "\"Linuxppc-dev\"\n <linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>"
    },
    "content": "This updates the arm64 code to use the CONFIG_GENERIC_CMDLINE\noption.\n\nCc: xe-linux-external@cisco.com\nSigned-off-by: Daniel Walker <danielwa@cisco.com>\n---\n arch/arm64/Kconfig                 | 33 +-----------------------------\n arch/arm64/kernel/idreg-override.c |  8 +++++---\n arch/arm64/kernel/setup.c          |  4 ++++\n 3 files changed, 10 insertions(+), 35 deletions(-)",
    "diff": "diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig\nindex e4e1b6550115..9781ba3758b1 100644\n--- a/arch/arm64/Kconfig\n+++ b/arch/arm64/Kconfig\n@@ -105,6 +105,7 @@ config ARM64\n \tselect GENERIC_ALLOCATOR\n \tselect GENERIC_ARCH_TOPOLOGY\n \tselect GENERIC_CLOCKEVENTS_BROADCAST\n+\tselect GENERIC_CMDLINE\n \tselect GENERIC_CPU_AUTOPROBE\n \tselect GENERIC_CPU_VULNERABILITIES\n \tselect GENERIC_EARLY_IOREMAP\n@@ -1841,38 +1842,6 @@ config ARM64_ACPI_PARKING_PROTOCOL\n \t  protocol even if the corresponding data is present in the ACPI\n \t  MADT table.\n \n-config CMDLINE\n-\tstring \"Default kernel command string\"\n-\tdefault \"\"\n-\thelp\n-\t  Provide a set of default command-line options at build time by\n-\t  entering them here. As a minimum, you should specify the the\n-\t  root device (e.g. root=/dev/nfs).\n-\n-choice\n-\tprompt \"Kernel command line type\" if CMDLINE != \"\"\n-\tdefault CMDLINE_FROM_BOOTLOADER\n-\thelp\n-\t  Choose how the kernel will handle the provided default kernel\n-\t  command line string.\n-\n-config CMDLINE_FROM_BOOTLOADER\n-\tbool \"Use bootloader kernel arguments if available\"\n-\thelp\n-\t  Uses the command-line options passed by the boot loader. If\n-\t  the boot loader doesn't provide any, the default kernel command\n-\t  string provided in CMDLINE will be used.\n-\n-config CMDLINE_FORCE\n-\tbool \"Always use the default kernel command string\"\n-\thelp\n-\t  Always use the default kernel command string, even if the boot\n-\t  loader passes other arguments to the kernel.\n-\t  This is useful if you cannot or don't want to change the\n-\t  command-line options your boot loader passes to the kernel.\n-\n-endchoice\n-\n config EFI_STUB\n \tbool\n \ndiff --git a/arch/arm64/kernel/idreg-override.c b/arch/arm64/kernel/idreg-override.c\nindex 83f1c4b92095..fb10cd860a26 100644\n--- a/arch/arm64/kernel/idreg-override.c\n+++ b/arch/arm64/kernel/idreg-override.c\n@@ -9,6 +9,7 @@\n #include <linux/ctype.h>\n #include <linux/kernel.h>\n #include <linux/libfdt.h>\n+#include <linux/cmdline.h>\n \n #include <asm/cacheflush.h>\n #include <asm/cpufeature.h>\n@@ -188,11 +189,12 @@ static __init void parse_cmdline(void)\n {\n \tconst u8 *prop = get_bootargs_cmdline();\n \n-\tif (IS_ENABLED(CONFIG_CMDLINE_FORCE) || !prop)\n-\t\t__parse_cmdline(CONFIG_CMDLINE, true);\n+\t__parse_cmdline(CMDLINE_PREPEND, true);\n \n-\tif (!IS_ENABLED(CONFIG_CMDLINE_FORCE) && prop)\n+\tif (IS_ENABLED(CMDLINE_OVERRIDE) && prop)\n \t\t__parse_cmdline(prop, true);\n+\n+\t__parse_cmdline(CMDLINE_APPEND, true);\n }\n \n /* Keep checkers quiet */\ndiff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c\nindex 61845c0821d9..01791ce5244c 100644\n--- a/arch/arm64/kernel/setup.c\n+++ b/arch/arm64/kernel/setup.c\n@@ -30,6 +30,7 @@\n #include <linux/psci.h>\n #include <linux/sched/task.h>\n #include <linux/mm.h>\n+#include <linux/cmdline.h>\n \n #include <asm/acpi.h>\n #include <asm/fixmap.h>\n@@ -322,6 +323,9 @@ void __init __no_sanitize_address setup_arch(char **cmdline_p)\n \t * cpufeature code and early parameters.\n \t */\n \tjump_label_init();\n+\n+\tcmdline_add_builtin(boot_command_line, NULL, COMMAND_LINE_SIZE);\n+\n \tparse_early_param();\n \n \t/*\n",
    "prefixes": [
        "8/8"
    ]
}