get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 808357,
    "url": "http://patchwork.ozlabs.org/api/patches/808357/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/glibc/patch/1504198860-12951-29-git-send-email-Dave.Martin@arm.com/",
    "project": {
        "id": 41,
        "url": "http://patchwork.ozlabs.org/api/projects/41/?format=api",
        "name": "GNU C Library",
        "link_name": "glibc",
        "list_id": "libc-alpha.sourceware.org",
        "list_email": "libc-alpha@sourceware.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<1504198860-12951-29-git-send-email-Dave.Martin@arm.com>",
    "list_archive_url": null,
    "date": "2017-08-31T17:01:00",
    "name": "[RFC,v2,28/28] arm64/sve: signal: Include SVE when computing AT_MINSIGSTKSZ",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "d16b14f6fb6ec764d778264ff67bfdbea70b3de2",
    "submitter": {
        "id": 26612,
        "url": "http://patchwork.ozlabs.org/api/people/26612/?format=api",
        "name": "Dave Martin",
        "email": "Dave.Martin@arm.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/glibc/patch/1504198860-12951-29-git-send-email-Dave.Martin@arm.com/mbox/",
    "series": [
        {
            "id": 882,
            "url": "http://patchwork.ozlabs.org/api/series/882/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/glibc/list/?series=882",
            "date": "2017-08-31T17:00:32",
            "name": "ARM Scalable Vector Extension (SVE)",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/882/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/808357/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/808357/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<libc-alpha-return-83983-incoming=patchwork.ozlabs.org@sourceware.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": [
            "patchwork-incoming@bilbo.ozlabs.org",
            "mailing list libc-alpha@sourceware.org"
        ],
        "Authentication-Results": [
            "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=sourceware.org\n\t(client-ip=209.132.180.131; helo=sourceware.org;\n\tenvelope-from=libc-alpha-return-83983-incoming=patchwork.ozlabs.org@sourceware.org;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org; dkim=pass (1024-bit key;\n\tsecure) header.d=sourceware.org header.i=@sourceware.org\n\theader.b=\"QgpkfLYS\"; dkim-atps=neutral",
            "sourceware.org; auth=none"
        ],
        "Received": [
            "from sourceware.org (server1.sourceware.org [209.132.180.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xjpl14bygz9s81\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri,  1 Sep 2017 03:09:33 +1000 (AEST)",
            "(qmail 122161 invoked by alias); 31 Aug 2017 17:09:17 -0000",
            "(qmail 122110 invoked by uid 89); 31 Aug 2017 17:09:17 -0000"
        ],
        "DomainKey-Signature": "a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:from:to:cc:subject:date:message-id:in-reply-to\n\t:references:mime-version:content-type:content-transfer-encoding;\n\tq=dns; s=default; b=pjcM3qR+Zpzc6ZmDVo+5KdNN8JzSyPaqhzulazti44p\n\tv5/C3nvo86ufcqHvdSF6wkOUMxUtNBiZy2uVfz5uZfQFHzM0Z8k50dGEOWt0mgP3\n\tvhlDQisWd1bA50YoOwQRnJzSRLgzvaw0NyuGhScJYOIIHE2twRPCUzsfz5sTlTUU\n\t=",
        "DKIM-Signature": "v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:from:to:cc:subject:date:message-id:in-reply-to\n\t:references:mime-version:content-type:content-transfer-encoding;\n\ts=default; bh=1Y54woCEDcjyXYSCpKnR2H4XyUE=; b=QgpkfLYSLR6xf4KNX\n\tYLXISVTCNvODbMOfamx5j24F8WnBjcHKveSrxMuL6NYn1gMraU+S5Q3sn4cBhTnB\n\tLO6zDmnIk4uwc1dXZC1SdJx0lchH5b3451vE26zCrgAFTTmGLLE+bLiruZU81pdr\n\tlyUZmFAB4R3Yy44aQjov197N4k=",
        "Mailing-List": "contact libc-alpha-help@sourceware.org; run by ezmlm",
        "Precedence": "bulk",
        "List-Id": "<libc-alpha.sourceware.org>",
        "List-Unsubscribe": "<mailto:libc-alpha-unsubscribe-incoming=patchwork.ozlabs.org@sourceware.org>",
        "List-Subscribe": "<mailto:libc-alpha-subscribe@sourceware.org>",
        "List-Archive": "<http://sourceware.org/ml/libc-alpha/>",
        "List-Post": "<mailto:libc-alpha@sourceware.org>",
        "List-Help": "<mailto:libc-alpha-help@sourceware.org>,\n\t<http://sourceware.org/ml/#faqs>",
        "Sender": "libc-alpha-owner@sourceware.org",
        "X-Virus-Found": "No",
        "X-Spam-SWARE-Status": "No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0,\n\tGIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RP_MATCHES_RCVD,\n\tSPF_PASS autolearn=ham version=3.3.2 spammy=",
        "X-HELO": "foss.arm.com",
        "From": "Dave Martin <Dave.Martin@arm.com>",
        "To": "linux-arm-kernel@lists.infradead.org",
        "Cc": "Catalin Marinas <catalin.marinas@arm.com>, Will Deacon\n\t<will.deacon@arm.com>, \tArd Biesheuvel <ard.biesheuvel@linaro.org>,\n\t=?utf-8?q?Alex_Benn=C3=A9?= =?utf-8?q?e?= <alex.bennee@linaro.org>,\n\tSzabolcs Nagy <szabolcs.nagy@arm.com>, Richard Sandiford\n\t<richard.sandiford@arm.com>, \tkvmarm@lists.cs.columbia.edu,\n\tlibc-alpha@sourceware.org, \tlinux-arch@vger.kernel.org,\n\tMichael Ellerman <mpe@ellerman.id.au>",
        "Subject": "[RFC PATCH v2 28/28] arm64/sve: signal: Include SVE when computing\n\tAT_MINSIGSTKSZ",
        "Date": "Thu, 31 Aug 2017 18:01:00 +0100",
        "Message-Id": "<1504198860-12951-29-git-send-email-Dave.Martin@arm.com>",
        "In-Reply-To": "<1504198860-12951-1-git-send-email-Dave.Martin@arm.com>",
        "References": "<1504198860-12951-1-git-send-email-Dave.Martin@arm.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=UTF-8",
        "Content-Transfer-Encoding": "8bit"
    },
    "content": "The SVE context block in the signal frame needs to be considered\ntoo when computing the maximum possible signal frame size.\n\nBecause the size of this block depends on the vector length, this\npatch computes the size based not on the thread's current vector\nlength but instead on the maximum possible vector length: this\ndetermines the maximum size of SVE context block that can be\nobserved in any signal frame for the lifetime of the process.\n\nSigned-off-by: Dave Martin <Dave.Martin@arm.com>\nCc: Ard Biesheuvel <ard.biesheuvel@linaro.org>\nCc: Alex Bennée <alex.bennee@linaro.org>\n\n---\n\nChanges since v1\n----------------\n\nChanges related to Ard Biesheuvel's comments:\n\n* Fix unbalanced ifelse bracing to conform to the kernel coding style.\n\nRequested by Alex Bennée:\n\n* Thin out BUG_ON()s:\nRedundant BUG_ON()s and ones that just check invariants are removed.\nImportant sanity-checks are migrated to WARN_ON()s, with some\nminimal best-effort patch-up code.\n---\n arch/arm64/kernel/signal.c | 14 ++++++++++++--\n 1 file changed, 12 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/arch/arm64/kernel/signal.c b/arch/arm64/kernel/signal.c\nindex 7a3d6d2..c5ae575 100644\n--- a/arch/arm64/kernel/signal.c\n+++ b/arch/arm64/kernel/signal.c\n@@ -594,8 +594,18 @@ static int setup_sigframe_layout(struct rt_sigframe_user_layout *user,\n \tif (system_supports_sve()) {\n \t\tunsigned int vq = 0;\n \n-\t\tif (test_thread_flag(TIF_SVE))\n-\t\t\tvq = sve_vq_from_vl(current->thread.sve_vl);\n+\t\tif (add_all || test_thread_flag(TIF_SVE)) {\n+\t\t\tint vl = sve_max_vl;\n+\n+\t\t\tif (!add_all)\n+\t\t\t\tvl = current->thread.sve_vl;\n+\n+\t\t\t/* Fail safe if something wasn't initialised */\n+\t\t\tif (WARN_ON(!sve_vl_valid(vl)))\n+\t\t\t\tvl = SVE_VL_MIN;\n+\n+\t\t\tvq = sve_vq_from_vl(vl);\n+\t\t}\n \n \t\terr = sigframe_alloc(user, &user->sve_offset,\n \t\t\t\t     SVE_SIG_CONTEXT_SIZE(vq));\n",
    "prefixes": [
        "RFC",
        "v2",
        "28/28"
    ]
}