get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 1112,
    "url": "http://patchwork.ozlabs.org/api/patches/1112/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/1222181221-13425-1-git-send-email-timur@freescale.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": "<1222181221-13425-1-git-send-email-timur@freescale.com>",
    "list_archive_url": "https://lore.kernel.org/linuxppc-dev/1222181221-13425-1-git-send-email-timur@freescale.com/",
    "date": "2008-09-23T14:47:01",
    "name": "powerpc: remove support for bootmem-allocated memory for the DIU driver",
    "commit_ref": "43c9f434922ff834a6589709714f83a78c399bc1",
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "6297f42549af4a0b7520e22d116de4c6316277df",
    "submitter": {
        "id": 124,
        "url": "http://patchwork.ozlabs.org/api/people/124/?format=api",
        "name": "Timur Tabi",
        "email": "timur@freescale.com"
    },
    "delegate": {
        "id": 9,
        "url": "http://patchwork.ozlabs.org/api/users/9/?format=api",
        "username": "galak",
        "first_name": "Kumar",
        "last_name": "Gala",
        "email": "galak@kernel.crashing.org"
    },
    "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/1222181221-13425-1-git-send-email-timur@freescale.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/1112/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/1112/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@ozlabs.org>",
        "X-Original-To": [
            "patchwork-incoming@ozlabs.org",
            "linuxppc-dev@ozlabs.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@ozlabs.org",
            "linuxppc-dev@ozlabs.org"
        ],
        "Received": [
            "from ozlabs.org (localhost [127.0.0.1])\n\tby ozlabs.org (Postfix) with ESMTP id 7B4CFDE2B8\n\tfor <patchwork-incoming@ozlabs.org>;\n\tWed, 24 Sep 2008 00:47:25 +1000 (EST)",
            "from de01egw01.freescale.net (de01egw01.freescale.net\n\t[192.88.165.102])\n\t(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\n\t(Client did not present a certificate)\n\tby ozlabs.org (Postfix) with ESMTPS id 03D9FDDF95\n\tfor <linuxppc-dev@ozlabs.org>; Wed, 24 Sep 2008 00:47:12 +1000 (EST)",
            "from de01smr01.freescale.net (de01smr01.freescale.net\n\t[10.208.0.31])\n\tby de01egw01.freescale.net (8.12.11/az33egw01) with ESMTP id\n\tm8NEl2gf015524; Tue, 23 Sep 2008 07:47:03 -0700 (MST)",
            "from localhost.localdomain (ld0169-tx32.am.freescale.net\n\t[10.82.19.119])\n\tby de01smr01.freescale.net (8.13.1/8.13.0) with ESMTP id\n\tm8NEl1wB020131; Tue, 23 Sep 2008 09:47:01 -0500 (CDT)"
        ],
        "From": "Timur Tabi <timur@freescale.com>",
        "To": "linuxppc-dev@ozlabs.org, galak@kernel.crashing.org, yorksun@freescale.com",
        "Subject": "[PATCH] powerpc: remove support for bootmem-allocated memory for the\n\tDIU driver",
        "Date": "Tue, 23 Sep 2008 09:47:01 -0500",
        "Message-Id": "<1222181221-13425-1-git-send-email-timur@freescale.com>",
        "X-Mailer": "git-send-email 1.5.5",
        "X-BeenThere": "linuxppc-dev@ozlabs.org",
        "X-Mailman-Version": "2.1.11",
        "Precedence": "list",
        "List-Id": "Linux on PowerPC Developers Mail List <linuxppc-dev.ozlabs.org>",
        "List-Unsubscribe": "<https://ozlabs.org/mailman/options/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@ozlabs.org?subject=unsubscribe>",
        "List-Archive": "<http://ozlabs.org/pipermail/linuxppc-dev>",
        "List-Post": "<mailto:linuxppc-dev@ozlabs.org>",
        "List-Help": "<mailto:linuxppc-dev-request@ozlabs.org?subject=help>",
        "List-Subscribe": "<https://ozlabs.org/mailman/listinfo/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@ozlabs.org?subject=subscribe>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Sender": "linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@ozlabs.org",
        "Errors-To": "linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@ozlabs.org"
    },
    "content": "Early versions of the Freescale DIU framebuffer driver depended on a bootmem\nallocation of memory for the video buffer.  The need for this feature was\nremoved in commit 6b51d51a, so now we can remove the platform-specific code\nthat allocated that memory.\n\nSigned-off-by: Timur Tabi <timur@freescale.com>\n---\n\nThis patch is for 2.6.28.\n\n arch/powerpc/platforms/86xx/mpc8610_hpcd.c |    1 -\n arch/powerpc/sysdev/fsl_soc.c              |   38 +---------------------------\n arch/powerpc/sysdev/fsl_soc.h              |    8 ------\n 3 files changed, 1 insertions(+), 46 deletions(-)",
    "diff": "diff --git a/arch/powerpc/platforms/86xx/mpc8610_hpcd.c b/arch/powerpc/platforms/86xx/mpc8610_hpcd.c\nindex 5eedb71..e8d54ac 100644\n--- a/arch/powerpc/platforms/86xx/mpc8610_hpcd.c\n+++ b/arch/powerpc/platforms/86xx/mpc8610_hpcd.c\n@@ -238,7 +238,6 @@ static void __init mpc86xx_hpcd_setup_arch(void)\n         }\n #endif\n #if defined(CONFIG_FB_FSL_DIU) || defined(CONFIG_FB_FSL_DIU_MODULE)\n-\tpreallocate_diu_videomemory();\n \tdiu_ops.get_pixel_format\t= mpc8610hpcd_get_pixel_format;\n \tdiu_ops.set_gamma_table\t\t= mpc8610hpcd_set_gamma_table;\n \tdiu_ops.set_monitor_port\t= mpc8610hpcd_set_monitor_port;\ndiff --git a/arch/powerpc/sysdev/fsl_soc.c b/arch/powerpc/sysdev/fsl_soc.c\nindex 214388e..a64a23e 100644\n--- a/arch/powerpc/sysdev/fsl_soc.c\n+++ b/arch/powerpc/sysdev/fsl_soc.c\n@@ -767,42 +767,6 @@ void fsl_rstcr_restart(char *cmd)\n #endif\n \n #if defined(CONFIG_FB_FSL_DIU) || defined(CONFIG_FB_FSL_DIU_MODULE)\n-struct platform_diu_data_ops diu_ops = {\n-\t.diu_size = 1280 * 1024 * 4,\t/* default one 1280x1024 buffer */\n-};\n+struct platform_diu_data_ops diu_ops;\n EXPORT_SYMBOL(diu_ops);\n-\n-int __init preallocate_diu_videomemory(void)\n-{\n-\tpr_debug(\"diu_size=%lu\\n\", diu_ops.diu_size);\n-\n-\tdiu_ops.diu_mem = __alloc_bootmem(diu_ops.diu_size, 8, 0);\n-\tif (!diu_ops.diu_mem) {\n-\t\tprintk(KERN_ERR \"fsl-diu: cannot allocate %lu bytes\\n\",\n-\t\t\tdiu_ops.diu_size);\n-\t\treturn -ENOMEM;\n-\t}\n-\n-\tpr_debug(\"diu_mem=%p\\n\", diu_ops.diu_mem);\n-\n-\trh_init(&diu_ops.diu_rh_info, 4096, ARRAY_SIZE(diu_ops.diu_rh_block),\n-\t\tdiu_ops.diu_rh_block);\n-\treturn rh_attach_region(&diu_ops.diu_rh_info,\n-\t\t\t\t(unsigned long) diu_ops.diu_mem,\n-\t\t\t\tdiu_ops.diu_size);\n-}\n-\n-static int __init early_parse_diufb(char *p)\n-{\n-\tif (!p)\n-\t\treturn 1;\n-\n-\tdiu_ops.diu_size = _ALIGN_UP(memparse(p, &p), 8);\n-\n-\tpr_debug(\"diu_size=%lu\\n\", diu_ops.diu_size);\n-\n-\treturn 0;\n-}\n-early_param(\"diufb\", early_parse_diufb);\n-\n #endif\ndiff --git a/arch/powerpc/sysdev/fsl_soc.h b/arch/powerpc/sysdev/fsl_soc.h\nindex 0242998..60f7f22 100644\n--- a/arch/powerpc/sysdev/fsl_soc.h\n+++ b/arch/powerpc/sysdev/fsl_soc.h\n@@ -20,14 +20,7 @@ extern int fsl_spi_init(struct spi_board_info *board_infos,\n extern void fsl_rstcr_restart(char *cmd);\n \n #if defined(CONFIG_FB_FSL_DIU) || defined(CONFIG_FB_FSL_DIU_MODULE)\n-#include <linux/bootmem.h>\n-#include <asm/rheap.h>\n struct platform_diu_data_ops {\n-\trh_block_t diu_rh_block[16];\n-\trh_info_t diu_rh_info;\n-\tunsigned long diu_size;\n-\tvoid *diu_mem;\n-\n \tunsigned int (*get_pixel_format) (unsigned int bits_per_pixel,\n \t\tint monitor_port);\n \tvoid (*set_gamma_table) (int monitor_port, char *gamma_table_base);\n@@ -38,7 +31,6 @@ struct platform_diu_data_ops {\n };\n \n extern struct platform_diu_data_ops diu_ops;\n-int __init preallocate_diu_videomemory(void);\n #endif\n \n #endif\n",
    "prefixes": []
}