get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 1173,
    "url": "http://patchwork.ozlabs.org/api/patches/1173/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20080923203857.GB10935@www.tglx.de/",
    "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": "<20080923203857.GB10935@www.tglx.de>",
    "list_archive_url": "https://lore.kernel.org/linuxppc-dev/20080923203857.GB10935@www.tglx.de/",
    "date": "2008-09-23T20:38:57",
    "name": "[RFC] powerpc/boot: compare _start against ei.loadsize instead ei.memsize",
    "commit_ref": null,
    "pull_url": null,
    "state": "rfc",
    "archived": true,
    "hash": "f907d2dbb47ddfa6b9e47923a3564b305e3dfa78",
    "submitter": {
        "id": 86,
        "url": "http://patchwork.ozlabs.org/api/people/86/?format=api",
        "name": "Sebastian Andrzej Siewior",
        "email": "bigeasy@linutronix.de"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20080923203857.GB10935@www.tglx.de/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/1173/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/1173/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 50957DE776\n\tfor <patchwork-incoming@ozlabs.org>;\n\tWed, 24 Sep 2008 06:39:20 +1000 (EST)",
            "from www.tglx.de (www.tglx.de [62.245.132.106])\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 0FA87DE578\n\tfor <linuxppc-dev@ozlabs.org>; Wed, 24 Sep 2008 06:39:06 +1000 (EST)",
            "from www.tglx.de (www.tglx.de [127.0.0.1])\n\tby www.tglx.de (8.13.8/8.13.8/TGLX-2007100201) with ESMTP id\n\tm8NKcvdE020936\n\t(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)\n\tfor <linuxppc-dev@ozlabs.org>; Tue, 23 Sep 2008 22:38:57 +0200",
            "(from bigeasy@localhost)\n\tby www.tglx.de (8.13.8/8.13.8/Submit) id m8NKcvaq020935\n\tfor linuxppc-dev@ozlabs.org; Tue, 23 Sep 2008 22:38:57 +0200"
        ],
        "Date": "Tue, 23 Sep 2008 22:38:57 +0200",
        "From": "Sebastian Siewior <bigeasy@linutronix.de>",
        "To": "linuxppc-dev@ozlabs.org",
        "Subject": "[RFC] powerpc/boot: compare _start against ei.loadsize instead\n\tei.memsize",
        "Message-ID": "<20080923203857.GB10935@www.tglx.de>",
        "Mime-Version": "1.0",
        "Content-Disposition": "inline",
        "User-Agent": "Mutt/1.4.2.2i",
        "X-Key-Id": "97C4700B",
        "X-Key-Fingerprint": "09E2 D1F3 9A3A FF13 C3D3  961C 0688 1C1E 97C4 700B",
        "X-Virus-Scanned": "ClamAV 0.93.2/8314/Tue Sep 23 02:50:20 2008 on www.tglx.de",
        "X-Virus-Status": "Clean",
        "X-Spam-Status": "No, score=-1.4 required=5.0 tests=ALL_TRUSTED,\n\tAWL autolearn=ham version=3.2.4",
        "X-Spam-Checker-Version": "SpamAssassin 3.2.4 (2008-01-01) on www.tglx.de",
        "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>",
        "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": "My mylinux binary incl. bss is ~5 MiB without bss less than 4 MiB.\nTherefore I though that I could replace ei.memsize with ei.loadsize. It\ndidn't work. I'm not sure why it did not work but I guess that the\nmemset() of bss in the initial kernel code overwrote the cuimage code\nwhich is required for some reason. Maybe some device-tree callbacks.\n\nMy current (working) solution is to move cuImage from 4 MiB to 8 MiB.\nSomething similar has been done for pSeries in 9b09c6d \"powerpc: Change\nthe default link address for pSeries zImage kernels\". Would it be\nappropriate to move initial address to 64 MiB as the default loading\naddress or do we have here some boards which have only 64 MiB of memory?\nDoes someone have another idea?",
    "diff": "--- a/arch/powerpc/boot/main.c\n+++ b/arch/powerpc/boot/main.c\n@@ -56,7 +56,7 @@ static struct addr_range prep_kernel(void)\n \tif (platform_ops.vmlinux_alloc) {\n \t\taddr = platform_ops.vmlinux_alloc(ei.memsize);\n \t} else {\n-\t\tif ((unsigned long)_start < ei.memsize)\n+\t\tif ((unsigned long)_start < ei.loadsize)\n \t\t\tfatal(\"Insufficient memory for kernel at address 0!\"\n \t\t\t       \" (_start=%p)\\n\\r\", _start);\n \t}\n-- \n\n--- a/arch/powerpc/boot/wrapper\n+++ b/arch/powerpc/boot/wrapper\n@@ -138,7 +138,7 @@ objflags=-S\n tmp=$tmpdir/zImage.$$.o\n ksection=.kernel:vmlinux.strip\n isection=.kernel:initrd\n-link_address='0x400000'\n+link_address='0x800000'\n \n case \"$platform\" in\n pseries)\n",
    "prefixes": [
        "RFC"
    ]
}