get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 808366,
    "url": "http://patchwork.ozlabs.org/api/patches/808366/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-imx/patch/1504198860-12951-29-git-send-email-Dave.Martin@arm.com/",
    "project": {
        "id": 19,
        "url": "http://patchwork.ozlabs.org/api/projects/19/?format=api",
        "name": "Linux IMX development",
        "link_name": "linux-imx",
        "list_id": "linux-imx-kernel.lists.patchwork.ozlabs.org",
        "list_email": "linux-imx-kernel@lists.patchwork.ozlabs.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "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/linux-imx/patch/1504198860-12951-29-git-send-email-Dave.Martin@arm.com/mbox/",
    "series": [
        {
            "id": 883,
            "url": "http://patchwork.ozlabs.org/api/series/883/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-imx/list/?series=883",
            "date": "2017-08-31T17:00:33",
            "name": "ARM Scalable Vector Extension (SVE)",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/883/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/808366/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/808366/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org>",
        "X-Original-To": "incoming-imx@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming-imx@bilbo.ozlabs.org",
        "Authentication-Results": [
            "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.infradead.org\n\t(client-ip=65.50.211.133; helo=bombadil.infradead.org;\n\tenvelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org header.b=\"QLfB7/w6\"; \n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=infradead.org header.i=@infradead.org\n\theader.b=\"GnRu09AP\"; dkim-atps=neutral"
        ],
        "Received": [
            "from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\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 3xjpxH70Yzz9s81\n\tfor <incoming-imx@patchwork.ozlabs.org>;\n\tFri,  1 Sep 2017 03:18:27 +1000 (AEST)",
            "from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dnT6m-0004F8-F2; Thu, 31 Aug 2017 17:18:24 +0000",
            "from casper.infradead.org ([2001:8b0:10b:1236::1])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dnT6k-00040p-4f for linux-arm-kernel@bombadil.infradead.org;\n\tThu, 31 Aug 2017 17:18:22 +0000",
            "from foss.arm.com ([217.140.101.70])\n\tby casper.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dnSrQ-0000iH-4x for linux-arm-kernel@lists.infradead.org;\n\tThu, 31 Aug 2017 17:02:34 +0000",
            "from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249])\n\tby usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 06CBC16BA;\n\tThu, 31 Aug 2017 10:02:12 -0700 (PDT)",
            "from e103592.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com\n\t[10.72.51.249])\n\tby usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id\n\t3745E3F58F; Thu, 31 Aug 2017 10:02:10 -0700 (PDT)"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:\n\tMessage-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description:\n\tResent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n\tList-Owner; bh=Fp6A7NaB83obs91Nddw47vHbTQyanFFWLLyY+tTOB3g=;\n\tb=QLfB7/w6VjdSbM\n\t5TEcf9pNVaRjLglpW2UU5x/jrDnkh2mjOztFyb2PX45iTJhM9Ixh8q1JOqwycQBdo+Yg8SlN/zMWx\n\tavthUKUFUYKwKFm266JJ1Ipmm12vzjHiunkcUCPG2vxqzDD+d9LUh/c5koxaPxnMe5Nw4UnKxJIah\n\tUuui1FemV4PwqTTFRyMLjbYlDKyPWjLMcu0cwfdMroRueAhLZhXoYy4RHfc1HpT78t2oJU+XMxSJs\n\tmgcFll68+iZCiqOoKbrxHUOj5CrYKU9vk1ipJ/KjglzNw1j9U27LB3ajuHaO/kyC9IDFuxWL7iQmt\n\tby5ebBxtHBJH1wut8LXA==;",
            "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=infradead.org; s=casper.20170209;\n\th=Content-Transfer-Encoding:Content-Type:\n\tMIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender\n\t:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:\n\tResent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:\n\tList-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive;\n\tbh=QEzbweOJNkEgQpzAi+Q1XxfEqmXirVIEAsJzg1+RmXE=;\n\tb=GnRu09APJ3dD9BIZQ/JAanyB+X\n\tVPTaNvpV/Awd9olHJ8/6QfRcVmNS1GVhIyq4FgwkVZyCChISnsHijvFFJ+UfSdY4u0VW/oWHFUNFj\n\tkDcNKl0JU0TS4uArsGucRB/jYnQUQfOz5rSJEk/Qf9LSqT5PZx6TaWTBG8Q9HQ0PyGMiQRCJ23uGQ\n\tFdyWabNDLeXXrRNfOHQaUGMMkXmEFiAznZQkXSKRAPKthev6p4iQTtBV3pFHdxrSfRyyeQKqEP1fv\n\tjpy68Fnd6YN3qKGuqB54+zLNGeKrqJjW7JKH4K/szXO/ALUrBsMTcFKrkPitBXIImX2xx/Z3MCOlt\n\t9npQikMg==;"
        ],
        "From": "Dave Martin <Dave.Martin@arm.com>",
        "To": "linux-arm-kernel@lists.infradead.org",
        "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>",
        "X-Mailer": "git-send-email 2.1.4",
        "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",
        "X-CRM114-Version": "20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ",
        "X-CRM114-CacheID": "sfid-20170831_180232_340157_902C1B41 ",
        "X-CRM114-Status": "GOOD (  13.85  )",
        "X-Spam-Score": "-6.9 (------)",
        "X-Spam-Report": "SpamAssassin version 3.4.1 on casper.infradead.org summary:\n\tContent analysis details:   (-6.9 points, 5.0 required)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/,\n\thigh trust [217.140.101.70 listed in list.dnswl.org]\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t-0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay\n\tdomain\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]",
        "X-BeenThere": "linux-arm-kernel@lists.infradead.org",
        "X-Mailman-Version": "2.1.21",
        "Precedence": "list",
        "List-Unsubscribe": "<http://lists.infradead.org/mailman/options/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.infradead.org/pipermail/linux-arm-kernel/>",
        "List-Post": "<mailto:linux-arm-kernel@lists.infradead.org>",
        "List-Help": "<mailto:linux-arm-kernel-request@lists.infradead.org?subject=help>",
        "List-Subscribe": "<http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe>",
        "Cc": "linux-arch@vger.kernel.org, libc-alpha@sourceware.org, Ard Biesheuvel\n\t<ard.biesheuvel@linaro.org>,  Szabolcs Nagy <szabolcs.nagy@arm.com>,\n\tCatalin Marinas\n\t<catalin.marinas@arm.com>, Will Deacon <will.deacon@arm.com>, Michael\n\tEllerman <mpe@ellerman.id.au>, Richard Sandiford\n\t<richard.sandiford@arm.com>, =?utf-8?q?Alex_Benn=C3=A9e?=\n\t<alex.bennee@linaro.org>,  kvmarm@lists.cs.columbia.edu",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "base64",
        "Sender": "\"linux-arm-kernel\" <linux-arm-kernel-bounces@lists.infradead.org>",
        "Errors-To": "linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org",
        "List-Id": "linux-imx-kernel.lists.patchwork.ozlabs.org"
    },
    "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"
    ]
}