get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 831057,
    "url": "http://patchwork.ozlabs.org/api/1.2/patches/831057/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20171027040833.3644-10-aneesh.kumar@linux.vnet.ibm.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": "<20171027040833.3644-10-aneesh.kumar@linux.vnet.ibm.com>",
    "list_archive_url": "https://lore.kernel.org/linuxppc-dev/20171027040833.3644-10-aneesh.kumar@linux.vnet.ibm.com/",
    "date": "2017-10-27T04:08:26",
    "name": "[09/16] powerpc/mm: Add new firmware feature HASH API",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": false,
    "hash": "21ac6a80dbf2d2384dac99fa6ef00f08a7cea6fe",
    "submitter": {
        "id": 664,
        "url": "http://patchwork.ozlabs.org/api/1.2/people/664/?format=api",
        "name": "Aneesh Kumar K.V",
        "email": "aneesh.kumar@linux.vnet.ibm.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20171027040833.3644-10-aneesh.kumar@linux.vnet.ibm.com/mbox/",
    "series": [
        {
            "id": 10486,
            "url": "http://patchwork.ozlabs.org/api/1.2/series/10486/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=10486",
            "date": "2017-10-27T04:08:17",
            "name": "Remove hash page table slot tracking from linux PTE",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/10486/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/831057/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/831057/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 [IPv6:2401:3900:2:1::3])\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 3yNW8p14KTz9t2d\n\tfor <patchwork-incoming@ozlabs.org>;\n\tFri, 27 Oct 2017 15:28:42 +1100 (AEDT)",
            "from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3yNW8n7582zDrnj\n\tfor <patchwork-incoming@ozlabs.org>;\n\tFri, 27 Oct 2017 15:28:41 +1100 (AEDT)",
            "from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com\n\t[148.163.158.5])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 3yNVlN0SzkzDrbr\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tFri, 27 Oct 2017 15:10:07 +1100 (AEDT)",
            "from pps.filterd (m0098419.ppops.net [127.0.0.1])\n\tby mx0b-001b2d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id\n\tv9R4A1Gv023269\n\tfor <linuxppc-dev@lists.ozlabs.org>; Fri, 27 Oct 2017 00:10:05 -0400",
            "from e33.co.us.ibm.com (e33.co.us.ibm.com [32.97.110.151])\n\tby mx0b-001b2d01.pphosted.com with ESMTP id 2dupjy9cah-1\n\t(version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT)\n\tfor <linuxppc-dev@lists.ozlabs.org>; Fri, 27 Oct 2017 00:10:01 -0400",
            "from localhost\n\tby e33.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use\n\tOnly! Violators will be prosecuted\n\tfor <linuxppc-dev@lists.ozlabs.org> from\n\t<aneesh.kumar@linux.vnet.ibm.com>; Thu, 26 Oct 2017 22:09:36 -0600",
            "from b03cxnp08025.gho.boulder.ibm.com (9.17.130.17)\n\tby e33.co.us.ibm.com (192.168.1.133) with IBM ESMTP SMTP Gateway:\n\tAuthorized Use Only! Violators will be prosecuted; \n\tThu, 26 Oct 2017 22:09:34 -0600",
            "from b03ledav001.gho.boulder.ibm.com\n\t(b03ledav001.gho.boulder.ibm.com [9.17.130.232])\n\tby b03cxnp08025.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with\n\tESMTP id v9R49XWH1442288; Thu, 26 Oct 2017 21:09:33 -0700",
            "from b03ledav001.gho.boulder.ibm.com (unknown [127.0.0.1])\n\tby IMSVA (Postfix) with ESMTP id B81E26E175;\n\tThu, 26 Oct 2017 22:09:33 -0600 (MDT)",
            "from skywalker.ibmmodules.com (unknown [9.85.199.61])\n\tby b03ledav001.gho.boulder.ibm.com (Postfix) with ESMTP id B34266E121;\n\tThu, 26 Oct 2017 22:09:30 -0600 (MDT)"
        ],
        "Authentication-Results": "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=linux.vnet.ibm.com\n\t(client-ip=148.163.158.5; helo=mx0a-001b2d01.pphosted.com;\n\tenvelope-from=aneesh.kumar@linux.vnet.ibm.com; receiver=<UNKNOWN>)",
        "From": "\"Aneesh Kumar K.V\" <aneesh.kumar@linux.vnet.ibm.com>",
        "To": "benh@kernel.crashing.org, paulus@samba.org, mpe@ellerman.id.au",
        "Subject": "[PATCH 09/16] powerpc/mm: Add new firmware feature HASH API",
        "Date": "Fri, 27 Oct 2017 09:38:26 +0530",
        "X-Mailer": "git-send-email 2.13.6",
        "In-Reply-To": "<20171027040833.3644-1-aneesh.kumar@linux.vnet.ibm.com>",
        "References": "<20171027040833.3644-1-aneesh.kumar@linux.vnet.ibm.com>",
        "X-TM-AS-GCONF": "00",
        "x-cbid": "17102704-0008-0000-0000-000008C66562",
        "X-IBM-SpamModules-Scores": "",
        "X-IBM-SpamModules-Versions": "BY=3.00007958; HX=3.00000241; KW=3.00000007;\n\tPH=3.00000004; SC=3.00000239; SDB=6.00937034; UDB=6.00472245;\n\tIPR=6.00717297; \n\tBA=6.00005660; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009;\n\tZB=6.00000000; \n\tZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00017735;\n\tXFM=3.00000015; UTC=2017-10-27 04:09:35",
        "X-IBM-AV-DETECTION": "SAVI=unused REMOTE=unused XFE=unused",
        "x-cbparentid": "17102704-0009-0000-0000-00004486880E",
        "Message-Id": "<20171027040833.3644-10-aneesh.kumar@linux.vnet.ibm.com>",
        "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10432:, ,\n\tdefinitions=2017-10-27_02:, , signatures=0",
        "X-Proofpoint-Spam-Details": "rule=outbound_notspam policy=outbound score=0\n\tpriorityscore=1501\n\tmalwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0\n\tclxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0\n\tclassifier=spam adjust=0 reason=mlx scancount=1\n\tengine=8.0.1-1707230000\n\tdefinitions=main-1710270053",
        "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": "linuxppc-dev@lists.ozlabs.org,\n\t\"Aneesh Kumar K.V\" <aneesh.kumar@linux.vnet.ibm.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": "We will use this feature to check whether hypervisor implements hash based\nremove and protect hcalls\n\nSigned-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>\n---\n arch/powerpc/include/asm/firmware.h       | 3 ++-\n arch/powerpc/kvm/powerpc.c                | 4 ++++\n arch/powerpc/platforms/pseries/firmware.c | 1 +\n include/uapi/linux/kvm.h                  | 1 +\n 4 files changed, 8 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/arch/powerpc/include/asm/firmware.h b/arch/powerpc/include/asm/firmware.h\nindex 8645897472b1..152d704ac3c3 100644\n--- a/arch/powerpc/include/asm/firmware.h\n+++ b/arch/powerpc/include/asm/firmware.h\n@@ -51,6 +51,7 @@\n #define FW_FEATURE_BEST_ENERGY\tASM_CONST(0x0000000080000000)\n #define FW_FEATURE_TYPE1_AFFINITY ASM_CONST(0x0000000100000000)\n #define FW_FEATURE_PRRN\t\tASM_CONST(0x0000000200000000)\n+#define FW_FEATURE_HASH_API\tASM_CONST(0x0000000400000000)\n \n #ifndef __ASSEMBLY__\n \n@@ -67,7 +68,7 @@ enum {\n \t\tFW_FEATURE_CMO | FW_FEATURE_VPHN | FW_FEATURE_XCMO |\n \t\tFW_FEATURE_SET_MODE | FW_FEATURE_BEST_ENERGY |\n \t\tFW_FEATURE_TYPE1_AFFINITY | FW_FEATURE_PRRN |\n-\t\tFW_FEATURE_HPT_RESIZE,\n+\t\tFW_FEATURE_HPT_RESIZE | FW_FEATURE_HASH_API,\n \tFW_FEATURE_PSERIES_ALWAYS = 0,\n \tFW_FEATURE_POWERNV_POSSIBLE = FW_FEATURE_OPAL,\n \tFW_FEATURE_POWERNV_ALWAYS = 0,\ndiff --git a/arch/powerpc/kvm/powerpc.c b/arch/powerpc/kvm/powerpc.c\nindex 3480faaf1ef8..6fb91198dc90 100644\n--- a/arch/powerpc/kvm/powerpc.c\n+++ b/arch/powerpc/kvm/powerpc.c\n@@ -637,6 +637,10 @@ int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext)\n \t\t/* Disable this on POWER9 until code handles new HPTE format */\n \t\tr = !!hv_enabled && !cpu_has_feature(CPU_FTR_ARCH_300);\n \t\tbreak;\n+\tcase KVM_CAP_SPAPR_HASH_API:\n+\t\t/* Only enable for HV kvm */\n+\t\tr = is_kvmppc_hv_enabled(kvm);\n+\t\tbreak;\n #endif\n #ifdef CONFIG_KVM_BOOK3S_HV_POSSIBLE\n \tcase KVM_CAP_PPC_FWNMI:\ndiff --git a/arch/powerpc/platforms/pseries/firmware.c b/arch/powerpc/platforms/pseries/firmware.c\nindex 63cc82ad58ac..32081d4406e8 100644\n--- a/arch/powerpc/platforms/pseries/firmware.c\n+++ b/arch/powerpc/platforms/pseries/firmware.c\n@@ -65,6 +65,7 @@ hypertas_fw_features_table[] = {\n \t{FW_FEATURE_SET_MODE,\t\t\"hcall-set-mode\"},\n \t{FW_FEATURE_BEST_ENERGY,\t\"hcall-best-energy-1*\"},\n \t{FW_FEATURE_HPT_RESIZE,\t\t\"hcall-hpt-resize\"},\n+\t{FW_FEATURE_HASH_API,\t\t\"hcall-hash-api\"},\n };\n \n /* Build up the firmware features bitmask using the contents of\ndiff --git a/include/uapi/linux/kvm.h b/include/uapi/linux/kvm.h\nindex 838887587411..780433b1f179 100644\n--- a/include/uapi/linux/kvm.h\n+++ b/include/uapi/linux/kvm.h\n@@ -930,6 +930,7 @@ struct kvm_ppc_resize_hpt {\n #define KVM_CAP_PPC_SMT_POSSIBLE 147\n #define KVM_CAP_HYPERV_SYNIC2 148\n #define KVM_CAP_HYPERV_VP_INDEX 149\n+#define KVM_CAP_SPAPR_HASH_API 150\n \n #ifdef KVM_CAP_IRQ_ROUTING\n \n",
    "prefixes": [
        "09/16"
    ]
}