get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 663681,
    "url": "http://patchwork.ozlabs.org/api/patches/663681/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/1472476010-4709-4-git-send-email-srikar@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": "<1472476010-4709-4-git-send-email-srikar@linux.vnet.ibm.com>",
    "list_archive_url": "https://lore.kernel.org/linuxppc-dev/1472476010-4709-4-git-send-email-srikar@linux.vnet.ibm.com/",
    "date": "2016-08-29T13:06:50",
    "name": "[v3,3/3] powerpc: Implement arch_reserved_kernel_pages",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "2009e37a6885459643be8f1454f151663c693e73",
    "submitter": {
        "id": 11795,
        "url": "http://patchwork.ozlabs.org/api/people/11795/?format=api",
        "name": "Srikar Dronamraju",
        "email": "srikar@linux.vnet.ibm.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/1472476010-4709-4-git-send-email-srikar@linux.vnet.ibm.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/663681/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/663681/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 AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3sNBrx0Ldqz9s8x\n\tfor <patchwork-incoming@ozlabs.org>;\n\tMon, 29 Aug 2016 23:12:33 +1000 (AEST)",
            "from ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3sNBrw6YvszDrp4\n\tfor <patchwork-incoming@ozlabs.org>;\n\tMon, 29 Aug 2016 23:12:32 +1000 (AEST)",
            "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 3sNBlp3jkMzDrhS\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tMon, 29 Aug 2016 23:08:05 +1000 (AEST)",
            "from pps.filterd (m0098419.ppops.net [127.0.0.1])\n\tby mx0b-001b2d01.pphosted.com (8.16.0.11/8.16.0.11) with SMTP id\n\tu7TD4WEp038962\n\tfor <linuxppc-dev@lists.ozlabs.org>; Mon, 29 Aug 2016 09:08:03 -0400",
            "from e23smtp06.au.ibm.com (e23smtp06.au.ibm.com [202.81.31.148])\n\tby mx0b-001b2d01.pphosted.com with ESMTP id 253r0ap2ua-1\n\t(version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT)\n\tfor <linuxppc-dev@lists.ozlabs.org>; Mon, 29 Aug 2016 09:08:03 -0400",
            "from localhost\n\tby e23smtp06.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use\n\tOnly! Violators will be prosecuted\n\tfor <linuxppc-dev@lists.ozlabs.org> from <srikar@linux.vnet.ibm.com>; \n\tMon, 29 Aug 2016 23:08:00 +1000",
            "from d23dlp01.au.ibm.com (202.81.31.203)\n\tby e23smtp06.au.ibm.com (202.81.31.212) with IBM ESMTP SMTP Gateway:\n\tAuthorized Use Only! Violators will be prosecuted; \n\tMon, 29 Aug 2016 23:07:57 +1000",
            "from d23relay07.au.ibm.com (d23relay07.au.ibm.com [9.190.26.37])\n\tby d23dlp01.au.ibm.com (Postfix) with ESMTP id 508782CE8059\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tMon, 29 Aug 2016 23:07:57 +1000 (EST)",
            "from d23av01.au.ibm.com (d23av01.au.ibm.com [9.190.234.96])\n\tby d23relay07.au.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id\n\tu7TD7voi61603982\n\tfor <linuxppc-dev@lists.ozlabs.org>; Mon, 29 Aug 2016 23:07:57 +1000",
            "from d23av01.au.ibm.com (localhost [127.0.0.1])\n\tby d23av01.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id\n\tu7TD7uZP013265\n\tfor <linuxppc-dev@lists.ozlabs.org>; Mon, 29 Aug 2016 23:07:57 +1000",
            "from srdronam.in.ibm.com (srdronam.in.ibm.com [9.124.31.34])\n\tby d23av01.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id\n\tu7TD7hkD012996; Mon, 29 Aug 2016 23:07:53 +1000"
        ],
        "X-IBM-Helo": "d23dlp01.au.ibm.com",
        "X-IBM-MailFrom": "srikar@linux.vnet.ibm.com",
        "X-IBM-RcptTo": "linuxppc-dev@lists.ozlabs.org",
        "From": "Srikar Dronamraju <srikar@linux.vnet.ibm.com>",
        "To": "Andrew Morton <akpm@linux-foundation.org>",
        "Subject": "[PATCH v3 3/3] powerpc: Implement arch_reserved_kernel_pages",
        "Date": "Mon, 29 Aug 2016 18:36:50 +0530",
        "X-Mailer": "git-send-email 2.1.4",
        "In-Reply-To": "<1472476010-4709-1-git-send-email-srikar@linux.vnet.ibm.com>",
        "References": "<1472476010-4709-1-git-send-email-srikar@linux.vnet.ibm.com>",
        "X-TM-AS-MML": "disable",
        "X-Content-Scanned": "Fidelis XPS MAILER",
        "x-cbid": "16082913-0040-0000-0000-000001D34EA2",
        "X-IBM-AV-DETECTION": "SAVI=unused REMOTE=unused XFE=unused",
        "x-cbparentid": "16082913-0041-0000-0000-00000A5F2ED7",
        "Message-Id": "<1472476010-4709-4-git-send-email-srikar@linux.vnet.ibm.com>",
        "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10432:, ,\n\tdefinitions=2016-08-29_05:, , signatures=0",
        "X-Proofpoint-Spam-Details": "rule=outbound_notspam policy=outbound score=0\n\tspamscore=0 suspectscore=0\n\tmalwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam\n\tadjust=0 reason=mlx scancount=1 engine=8.0.1-1604210000\n\tdefinitions=main-1608290132",
        "X-BeenThere": "linuxppc-dev@lists.ozlabs.org",
        "X-Mailman-Version": "2.1.22",
        "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": "Srikar Dronamraju <srikar@linux.vnet.ibm.com>,\n\tDave Hansen <dave.hansen@intel.com>, linuxppc-dev@lists.ozlabs.org,\n\tMichal Hocko <mhocko@kernel.org>, linux-mm@kvack.org,\n\tMahesh Salgaonkar <mahesh@linux.vnet.ibm.com>,\n\tHari Bathini <hbathini@linux.vnet.ibm.com>,\n\tMel Gorman <mgorman@techsingularity.net>,\n\tVlastimil Babka <vbabka@suse.cz>",
        "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": "Currently significant amount of memory is reserved only in kernel\nbooted to capture kernel dump using the fa_dump method.\n\nKernels compiled with CONFIG_DEFERRED_STRUCT_PAGE_INIT will initialize\nonly certain size memory per node. The certain size takes into account\nthe dentry and inode cache sizes. Currently the cache sizes are\ncalculated based on the total system memory including the reserved\nmemory. However such a kernel when booting the same kernel as fadump\nkernel will not be able to allocate the required amount of memory to\nsuffice for the dentry and inode caches. This results in crashes like\n\nHence only implement arch_reserved_kernel_pages() for CONFIG_FA_DUMP\nconfigurations. The amount reserved will be reduced while calculating\nthe large caches and will avoid crashes like the below on large systems\nsuch as 32 TB systems.\n\nDentry cache hash table entries: 536870912 (order: 16, 4294967296 bytes)\nvmalloc: allocation failure, allocated 4097114112 of 17179934720 bytes\nswapper/0: page allocation failure: order:0, mode:0x2080020(GFP_ATOMIC)\nCPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.6-master+ #3\nCall Trace:\n[c00000000108fb10] [c0000000007fac88] dump_stack+0xb0/0xf0 (unreliable)\n[c00000000108fb50] [c000000000235264] warn_alloc_failed+0x114/0x160\n[c00000000108fbf0] [c000000000281484] __vmalloc_node_range+0x304/0x340\n[c00000000108fca0] [c00000000028152c] __vmalloc+0x6c/0x90\n[c00000000108fd40] [c000000000aecfb0]\nalloc_large_system_hash+0x1b8/0x2c0\n[c00000000108fe00] [c000000000af7240] inode_init+0x94/0xe4\n[c00000000108fe80] [c000000000af6fec] vfs_caches_init+0x8c/0x13c\n[c00000000108ff00] [c000000000ac4014] start_kernel+0x50c/0x578\n[c00000000108ff90] [c000000000008c6c] start_here_common+0x20/0xa8\n\nCc: linux-mm@kvack.org\nCc: Mel Gorman <mgorman@techsingularity.net>\nCc: Vlastimil Babka <vbabka@suse.cz>\nCc: Michal Hocko <mhocko@kernel.org>\nCc: Andrew Morton <akpm@linux-foundation.org>\nCc: Michael Ellerman <mpe@ellerman.id.au>\nCc: linuxppc-dev@lists.ozlabs.org\nCc: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com>\nCc: Hari Bathini <hbathini@linux.vnet.ibm.com>\nCc: Dave Hansen <dave.hansen@intel.com>\nCc: Balbir Singh <bsingharora@gmail.com>\nSuggested-by: Michael Ellerman <mpe@ellerman.id.au>\nSigned-off-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>\n---\n arch/powerpc/include/asm/mmzone.h | 3 +++\n arch/powerpc/kernel/fadump.c      | 5 +++++\n 2 files changed, 8 insertions(+)",
    "diff": "diff --git a/arch/powerpc/include/asm/mmzone.h b/arch/powerpc/include/asm/mmzone.h\nindex 7b58917..4d52ccf 100644\n--- a/arch/powerpc/include/asm/mmzone.h\n+++ b/arch/powerpc/include/asm/mmzone.h\n@@ -41,6 +41,9 @@ u64 memory_hotplug_max(void);\n #else\n #define memory_hotplug_max() memblock_end_of_DRAM()\n #endif /* CONFIG_NEED_MULTIPLE_NODES */\n+#ifdef CONFIG_FA_DUMP\n+#define __HAVE_ARCH_RESERVED_KERNEL_PAGES\n+#endif\n \n #endif /* __KERNEL__ */\n #endif /* _ASM_MMZONE_H_ */\ndiff --git a/arch/powerpc/kernel/fadump.c b/arch/powerpc/kernel/fadump.c\nindex b3a6633..eeb80de 100644\n--- a/arch/powerpc/kernel/fadump.c\n+++ b/arch/powerpc/kernel/fadump.c\n@@ -333,6 +333,11 @@ int __init fadump_reserve_mem(void)\n \treturn 1;\n }\n \n+unsigned long __init arch_reserved_kernel_pages(void)\n+{\n+\treturn memblock_reserved_size() / PAGE_SIZE;\n+}\n+\n /* Look for fadump= cmdline option. */\n static int __init early_fadump_param(char *p)\n {\n",
    "prefixes": [
        "v3",
        "3/3"
    ]
}