get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 815405,
    "url": "http://patchwork.ozlabs.org/api/patches/815405/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/1505815439-18720-4-git-send-email-wei.guo.simon@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": "<1505815439-18720-4-git-send-email-wei.guo.simon@gmail.com>",
    "list_archive_url": "https://lore.kernel.org/linuxppc-dev/1505815439-18720-4-git-send-email-wei.guo.simon@gmail.com/",
    "date": "2017-09-19T10:03:59",
    "name": "[v1,3/3] powerpc:selftest update memcmp selftest according to kernel change",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "0693e5a0473c770e5c2fdd3616397172988fcca4",
    "submitter": {
        "id": 68632,
        "url": "http://patchwork.ozlabs.org/api/people/68632/?format=api",
        "name": "Simon Guo",
        "email": "wei.guo.simon@gmail.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/1505815439-18720-4-git-send-email-wei.guo.simon@gmail.com/mbox/",
    "series": [
        {
            "id": 3823,
            "url": "http://patchwork.ozlabs.org/api/series/3823/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=3823",
            "date": "2017-09-19T10:03:56",
            "name": "powerpc: memcmp() optimization",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/3823/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/815405/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/815405/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<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"
        ],
        "Received": [
            "from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68])\n\t(using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xxJZX1t6cz9ryr\n\tfor <patchwork-incoming@ozlabs.org>;\n\tTue, 19 Sep 2017 20:12:04 +1000 (AEST)",
            "from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3xxJZX0SSXzDqNh\n\tfor <patchwork-incoming@ozlabs.org>;\n\tTue, 19 Sep 2017 20:12:04 +1000 (AEST)",
            "from mail-pg0-x243.google.com (mail-pg0-x243.google.com\n\t[IPv6:2607:f8b0:400e:c05::243])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128\n\tbits)) (No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 3xxJPq1Ks2zDqTc\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tTue, 19 Sep 2017 20:04:30 +1000 (AEST)",
            "by mail-pg0-x243.google.com with SMTP id m30so1783886pgn.5\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tTue, 19 Sep 2017 03:04:30 -0700 (PDT)",
            "from simonLocalRHEL7.x64 ([112.73.6.48])\n\tby smtp.gmail.com with ESMTPSA id\n\tf10sm2911307pgr.67.2017.09.19.03.04.26\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tTue, 19 Sep 2017 03:04:28 -0700 (PDT)"
        ],
        "Authentication-Results": [
            "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"B5xEZcgG\"; dkim-atps=neutral",
            "lists.ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"B5xEZcgG\"; dkim-atps=neutral",
            "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=gmail.com\n\t(client-ip=2607:f8b0:400e:c05::243; helo=mail-pg0-x243.google.com;\n\tenvelope-from=wei.guo.simon@gmail.com; receiver=<UNKNOWN>)",
            "lists.ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"B5xEZcgG\"; dkim-atps=neutral"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=2cyJzENAMMDZf5j11ZwTYQArY5z/vcuUcknu9U1tjWo=;\n\tb=B5xEZcgGSImzjNVCOQvka9YenpEX36y2ShiG30P60Xd+SdMZRr7wG/zqRr3eXxNqK5\n\tQWvnvYjSVZ6TQ91qIfbBPvV0smD7ey8+D+iQZIBLjtvrduA11beLRRgB2IYOzStDNHve\n\t+n6wHEqG+CNS8b0MOaTjOTE6hLZ3ntlajgX1LO2OyZDvPPna2LuSztPIWqNkIeFYMA/g\n\tszrZjl6Z2AJsG2D6SRT1xJO+t85heY31qjbiEVJyr2Pk2ZUTdYUxoZMLIkQ+mPOuwXH/\n\tyidbysOuhapT+Zoz+Ccg8ay6utvZGsVPyssEePW1l8/oFSBCatQcDtbNdpeIOgMw9cad\n\tCt9A==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=2cyJzENAMMDZf5j11ZwTYQArY5z/vcuUcknu9U1tjWo=;\n\tb=BXYVVuoS90Q4V9czuqvVL4i03fcHdD7Fn+ESeTBrMomf0+k6FQO7b/rUZmXEuY6PsE\n\t8sJEJpajIikHGCkKstHy5Y4YQofXGrpp6ilY9XhfQlJEZLGFiwiuQjWHlPSJh4om9TG3\n\ttHZnw+nkFyHFoMqXTTAMfm8V/exA/kxZDATPcQP+kpddO3d93phToFND4FwgCGs+lfg7\n\tzALUz1qiqLPET2tB2518YNhqqsaamdBirSJSgbyfYgiPk40EJnTPJCs1LqJzGdm1etdh\n\tSqGTS24QoiujWdFdLXZQ+OqSEzK6tP3Uabh20QLff/FOb3u9z5/8HYCUyPrKimSC57tO\n\tkQ3A==",
        "X-Gm-Message-State": "AHPjjUjag8CPNmc7f4zfJD9UvU4gPpc2fk1EOYjOVYhswB8nnk4JBatK\n\t1BA2tYmarZ5QfWkJziY/ZjpvcQ==",
        "X-Google-Smtp-Source": "AOwi7QACti5i9xSI3MuMpQgZ1Vs6Z2HIyGTLt/RWfOAkmtEA/Xksqbv8y2ab6veHZQUKNUcPoydXYA==",
        "X-Received": "by 10.101.86.196 with SMTP id w4mr816486pgs.16.1505815468944;\n\tTue, 19 Sep 2017 03:04:28 -0700 (PDT)",
        "From": "wei.guo.simon@gmail.com",
        "To": "linuxppc-dev@lists.ozlabs.org",
        "Subject": "[PATCH v1 3/3] powerpc:selftest update memcmp selftest according to\n\tkernel change",
        "Date": "Tue, 19 Sep 2017 18:03:59 +0800",
        "Message-Id": "<1505815439-18720-4-git-send-email-wei.guo.simon@gmail.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "In-Reply-To": "<1505815439-18720-1-git-send-email-wei.guo.simon@gmail.com>",
        "References": "<1505815439-18720-1-git-send-email-wei.guo.simon@gmail.com>",
        "X-BeenThere": "linuxppc-dev@lists.ozlabs.org",
        "X-Mailman-Version": "2.1.24",
        "Precedence": "list",
        "List-Id": "Linux on PowerPC Developers Mail List\n\t<linuxppc-dev.lists.ozlabs.org>",
        "List-Unsubscribe": "<https://lists.ozlabs.org/options/linuxppc-dev>,\n\t<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\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=subscribe>",
        "Cc": "\"Naveen N.  Rao\" <naveen.n.rao@linux.vnet.ibm.com>,\n\tSimon Guo <wei.guo.simon@gmail.com>",
        "Errors-To": "linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org",
        "Sender": "\"Linuxppc-dev\"\n\t<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>"
    },
    "content": "From: Simon Guo <wei.guo.simon@gmail.com>\n\nThis patch adjust selftest files related with memcmp so that memcmp\nselftest can be compiled successfully.\n\nSigned-off-by: Simon Guo <wei.guo.simon@gmail.com>\n---\n .../selftests/powerpc/copyloops/asm/ppc_asm.h      |  2 +-\n .../selftests/powerpc/stringloops/asm/ppc_asm.h    | 31 ++++++++++++++++++++++\n 2 files changed, 32 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/tools/testing/selftests/powerpc/copyloops/asm/ppc_asm.h b/tools/testing/selftests/powerpc/copyloops/asm/ppc_asm.h\nindex 80d34a9..a9da02d 100644\n--- a/tools/testing/selftests/powerpc/copyloops/asm/ppc_asm.h\n+++ b/tools/testing/selftests/powerpc/copyloops/asm/ppc_asm.h\n@@ -35,7 +35,7 @@\n \tli\tr3,0\n \tblr\n \n-FUNC_START(enter_vmx_copy)\n+FUNC_START(enter_vmx_ops)\n \tli\tr3,1\n \tblr\n \ndiff --git a/tools/testing/selftests/powerpc/stringloops/asm/ppc_asm.h b/tools/testing/selftests/powerpc/stringloops/asm/ppc_asm.h\nindex 11bece8..793ee54 100644\n--- a/tools/testing/selftests/powerpc/stringloops/asm/ppc_asm.h\n+++ b/tools/testing/selftests/powerpc/stringloops/asm/ppc_asm.h\n@@ -1,3 +1,5 @@\n+#ifndef _PPC_ASM_H\n+#define __PC_ASM_H\n #include <ppc-asm.h>\n \n #ifndef r1\n@@ -5,3 +7,32 @@\n #endif\n \n #define _GLOBAL(A) FUNC_START(test_ ## A)\n+\n+#define CONFIG_ALTIVEC\n+\n+#define R14 r14\n+#define R15 r15\n+#define R16 r16\n+#define R17 r17\n+#define R18 r18\n+#define R19 r19\n+#define R20 r20\n+#define R21 r21\n+#define R22 r22\n+#define R29 r29\n+#define R30 r30\n+#define R31 r31\n+\n+#define STACKFRAMESIZE\t256\n+#define STK_REG(i)\t(112 + ((i)-14)*8)\n+\n+#define _GLOBAL(A) FUNC_START(test_ ## A)\n+#define _GLOBAL_TOC(A) _GLOBAL(A)\n+\n+#define PPC_MTOCRF(A, B)\tmtocrf A, B\n+\n+FUNC_START(enter_vmx_ops)\n+\tli      r3, 1\n+\tblr\n+\n+#endif\n",
    "prefixes": [
        "v1",
        "3/3"
    ]
}