get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 783337,
    "url": "http://patchwork.ozlabs.org/api/patches/783337/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20170703073130.27258-1-khandual@linux.vnet.ibm.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": "<20170703073130.27258-1-khandual@linux.vnet.ibm.com>",
    "list_archive_url": "https://lore.kernel.org/linuxppc-dev/20170703073130.27258-1-khandual@linux.vnet.ibm.com/",
    "date": "2017-07-03T07:31:30",
    "name": "powerpc/mm: Check gigantic page range correctly inside memblock",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "c8bfc727aded8577460c170578d2ad275e6fbbbd",
    "submitter": {
        "id": 9057,
        "url": "http://patchwork.ozlabs.org/api/people/9057/?format=api",
        "name": "Anshuman Khandual",
        "email": "khandual@linux.vnet.ibm.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20170703073130.27258-1-khandual@linux.vnet.ibm.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/783337/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/783337/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 3x1Jkm4Jk3z9s76\n\tfor <patchwork-incoming@ozlabs.org>;\n\tMon,  3 Jul 2017 17:32:48 +1000 (AEST)",
            "from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3x1Jkm2s0YzDr96\n\tfor <patchwork-incoming@ozlabs.org>;\n\tMon,  3 Jul 2017 17:32:48 +1000 (AEST)",
            "from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com\n\t[148.163.156.1])\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 3x1Jjb1yZHzDr4D\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tMon,  3 Jul 2017 17:31:46 +1000 (AEST)",
            "from pps.filterd (m0098409.ppops.net [127.0.0.1])\n\tby mx0a-001b2d01.pphosted.com (8.16.0.20/8.16.0.20) with SMTP id\n\tv637Sg8X073623\n\tfor <linuxppc-dev@lists.ozlabs.org>; Mon, 3 Jul 2017 03:31:44 -0400",
            "from e23smtp01.au.ibm.com (e23smtp01.au.ibm.com [202.81.31.143])\n\tby mx0a-001b2d01.pphosted.com with ESMTP id 2bf1f245g1-1\n\t(version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT)\n\tfor <linuxppc-dev@lists.ozlabs.org>; Mon, 03 Jul 2017 03:31:43 -0400",
            "from localhost\n\tby e23smtp01.au.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<khandual@linux.vnet.ibm.com>; Mon, 3 Jul 2017 17:31:41 +1000",
            "from d23relay09.au.ibm.com (202.81.31.228)\n\tby e23smtp01.au.ibm.com (202.81.31.207) with IBM ESMTP SMTP Gateway:\n\tAuthorized Use Only! Violators will be prosecuted; \n\tMon, 3 Jul 2017 17:31:39 +1000",
            "from d23av02.au.ibm.com (d23av02.au.ibm.com [9.190.235.138])\n\tby d23relay09.au.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id\n\tv637VcPU60555458\n\tfor <linuxppc-dev@lists.ozlabs.org>; Mon, 3 Jul 2017 17:31:38 +1000",
            "from d23av02.au.ibm.com (localhost [127.0.0.1])\n\tby d23av02.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id\n\tv637VTci022136\n\tfor <linuxppc-dev@lists.ozlabs.org>; Mon, 3 Jul 2017 17:31:29 +1000",
            "from dhcp-9-202-24-168.in.ibm.com ([9.202.24.168])\n\tby d23av02.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id\n\tv637VRs9022089; Mon, 3 Jul 2017 17:31:28 +1000"
        ],
        "From": "Anshuman Khandual <khandual@linux.vnet.ibm.com>",
        "To": "linuxppc-dev@lists.ozlabs.org",
        "Subject": "[PATCH] powerpc/mm: Check gigantic page range correctly inside\n\tmemblock",
        "Date": "Mon,  3 Jul 2017 13:01:30 +0530",
        "X-Mailer": "git-send-email 2.9.3",
        "X-TM-AS-MML": "disable",
        "x-cbid": "17070307-1617-0000-0000-000001F0B60C",
        "X-IBM-AV-DETECTION": "SAVI=unused REMOTE=unused XFE=unused",
        "x-cbparentid": "17070307-1618-0000-0000-00004837FB9A",
        "Message-Id": "<20170703073130.27258-1-khandual@linux.vnet.ibm.com>",
        "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10432:, ,\n\tdefinitions=2017-07-03_04:, , signatures=0",
        "X-Proofpoint-Spam-Details": "rule=outbound_notspam policy=outbound score=0\n\tspamscore=0 suspectscore=5\n\tmalwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam\n\tadjust=0 reason=mlx scancount=1 engine=8.0.1-1703280000\n\tdefinitions=main-1707030123",
        "X-BeenThere": "linuxppc-dev@lists.ozlabs.org",
        "X-Mailman-Version": "2.1.23",
        "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": "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": "The gigantic page range received from platform actually extends\nupto (block_size * expeted_pages) starting at any given address\ninstead of just a single 16GB page.\n\nFixes: 4792adbac9eb (\"powerpc: Don't use a 16G page if beyond mem= limits\")\nSigned-off-by: Anshuman Khandual <khandual@linux.vnet.ibm.com>\n---\nThough in actual experiments never seen multiple gigantic pages (16GB)\nstarting at the same address. But again its very much possible looking\nat the device tree property interfaces and depending upon what PowerVM\nprovides.\n\n arch/powerpc/mm/hash_utils_64.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)",
    "diff": "diff --git a/arch/powerpc/mm/hash_utils_64.c b/arch/powerpc/mm/hash_utils_64.c\nindex f2095ce..a3f1e7d 100644\n--- a/arch/powerpc/mm/hash_utils_64.c\n+++ b/arch/powerpc/mm/hash_utils_64.c\n@@ -507,7 +507,7 @@ static int __init htab_dt_scan_hugepage_blocks(unsigned long node,\n \tprintk(KERN_INFO \"Huge page(16GB) memory: \"\n \t\t\t\"addr = 0x%lX size = 0x%lX pages = %d\\n\",\n \t\t\tphys_addr, block_size, expected_pages);\n-\tif (phys_addr + (16 * GB) <= memblock_end_of_DRAM()) {\n+\tif (phys_addr + block_size * expected_pages <= memblock_end_of_DRAM()) {\n \t\tmemblock_reserve(phys_addr, block_size * expected_pages);\n \t\tadd_gpage(phys_addr, block_size, expected_pages);\n \t}\n",
    "prefixes": []
}