get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 1444224,
    "url": "http://patchwork.ozlabs.org/api/patches/1444224/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/1614244979-48216-39-git-send-email-bmeng.cn@gmail.com/",
    "project": {
        "id": 18,
        "url": "http://patchwork.ozlabs.org/api/projects/18/?format=api",
        "name": "U-Boot",
        "link_name": "uboot",
        "list_id": "u-boot.lists.denx.de",
        "list_email": "u-boot@lists.denx.de",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<1614244979-48216-39-git-send-email-bmeng.cn@gmail.com>",
    "list_archive_url": null,
    "date": "2021-02-25T09:22:59",
    "name": "[v3,38/38] doc: Add a reST document for qemu-ppce500",
    "commit_ref": "b75ca06836567a467b8b5a9ee8ce0a8efde45e08",
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "8e4ec0fb58cb876e4e2151f07b9c9589811b9741",
    "submitter": {
        "id": 64981,
        "url": "http://patchwork.ozlabs.org/api/people/64981/?format=api",
        "name": "Bin Meng",
        "email": "bmeng.cn@gmail.com"
    },
    "delegate": {
        "id": 87636,
        "url": "http://patchwork.ozlabs.org/api/users/87636/?format=api",
        "username": "priyankajain",
        "first_name": "Priyanka",
        "last_name": "Jain",
        "email": "priyanka.jain@nxp.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/1614244979-48216-39-git-send-email-bmeng.cn@gmail.com/mbox/",
    "series": [
        {
            "id": 230985,
            "url": "http://patchwork.ozlabs.org/api/series/230985/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=230985",
            "date": "2021-02-25T09:22:22",
            "name": "ppc: qemu: Convert qemu-ppce500 to driver model and enable additional driver support",
            "version": 3,
            "mbox": "http://patchwork.ozlabs.org/series/230985/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/1444224/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/1444224/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<u-boot-bounces@lists.denx.de>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org",
        "Authentication-Results": [
            "ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=85.214.62.61; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>)",
            "ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20161025 header.b=KoMc8nqY;\n\tdkim-atps=neutral",
            "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=gmail.com",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de",
            "phobos.denx.de;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.b=\"KoMc8nqY\";\n\tdkim-atps=neutral",
            "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=gmail.com",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=bmeng.cn@gmail.com"
        ],
        "Received": [
            "from phobos.denx.de (phobos.denx.de [85.214.62.61])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature RSA-PSS (4096 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 4DmSDg5PChz9s1l\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 25 Feb 2021 20:29:55 +1100 (AEDT)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 9F88080EFF;\n\tThu, 25 Feb 2021 10:29:52 +0100 (CET)",
            "by phobos.denx.de (Postfix, from userid 109)\n id A8EC3806C3; Thu, 25 Feb 2021 10:26:22 +0100 (CET)",
            "from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com\n [IPv6:2a00:1450:4864:20::62b])\n (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id 61D8481444\n for <u-boot@lists.denx.de>; Thu, 25 Feb 2021 10:26:10 +0100 (CET)",
            "by mail-ej1-x62b.google.com with SMTP id g5so7676849ejt.2\n for <u-boot@lists.denx.de>; Thu, 25 Feb 2021 01:26:10 -0800 (PST)",
            "from pek-vx-bsp2.wrs.com\n (ec2-44-242-66-180.us-west-2.compute.amazonaws.com. [44.242.66.180])\n by smtp.gmail.com with ESMTPSA id k22sm2987368edv.33.2021.02.25.01.26.06\n (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);\n Thu, 25 Feb 2021 01:26:09 -0800 (PST)"
        ],
        "X-Spam-Checker-Version": "SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_BLOCKED,\n SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n h=from:to:cc:subject:date:message-id:in-reply-to:references;\n bh=pEKCD/6Ska43nFzAk/ybEfWL3gMZ5wG1B8n1Ool8r2U=;\n b=KoMc8nqYXy2BT/wQtqACS9CqwwfSLmF7UBnA2yzWCl1DRJj1WvhjFqscbgFoE4wF8v\n K4rIHbuAXlOshUzoMiNwvrAWpp11Nh/Ki9/gPb7PQa+J8UXoOcHRyAourSnAp64cOrq2\n MpmVjzsYEV14ZqN3c+Rh8yfW4iusdRvHerHXAEbYuhrMd/4QgO6Cbf2jwMiQTFeOoXJZ\n l73Yw6H3p/p7J6kBCiCWM3mwIC1rZq+LiQc5XxqvvlHBBnsONrOM1m7GyzSpg8I/xTTt\n wxtMkFmoobKWvYV7ulW43nkj82YEGe3O6ZBwhUsyVxCc//iXOikjtpabpV9AcGwjj9hr\n j+yA==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20161025;\n h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n :references;\n bh=pEKCD/6Ska43nFzAk/ybEfWL3gMZ5wG1B8n1Ool8r2U=;\n b=HSk+qoNz92pHXr9kdoFVAB6pFmzqNdAx3CoCLHs7iZoz3Bw7UJ/e+7ZzceMUyNSnnv\n rJQOy7Dmn7LpSQpIZeZ1XTQS5rLN4P2RbEgZ6I5h/HB9XPlsOdnjSQV1ijnIui8XZnpo\n sLE5X6g4tV+e5buG0o2tKrR2gQMYdDYAhezFe1FAU3fEnrIDtkHmnlgIehzKE4sbQ8fV\n A2H0WAwiHcNPWHs4O6ru9wJtYNvfvmTy4wZ2I14xSHbsmxApjcZ8N7s/MJLeGP7yOq8g\n /XBFcLoQtXeAOEirlZidiSlvtKf3bUo7FA7xoe4Eat2NaGUjz24+dgI9oqQKseXikiCG\n OMCQ==",
        "X-Gm-Message-State": "AOAM530czIryslSfyrh0Aw5SQsoo3lQhI56AZes4jnWyFzjZbam+glsd\n oUFd7OOJjczXu/FdRl3dM0w=",
        "X-Google-Smtp-Source": "\n ABdhPJzNu3JQIqNuybB1sAz8kvrsoF+zwLcReS9O5CBwAihKkSKHTxRDqsspzEGUBQW28VvzLzahkQ==",
        "X-Received": "by 2002:a17:906:4e99:: with SMTP id\n v25mr283353eju.532.1614245170047;\n Thu, 25 Feb 2021 01:26:10 -0800 (PST)",
        "From": "Bin Meng <bmeng.cn@gmail.com>",
        "To": "Simon Glass <sjg@chromium.org>, Alexander Graf <agraf@csgraf.de>,\n Priyanka Jain <priyanka.jain@nxp.com>",
        "Cc": "U-Boot Mailing List <u-boot@lists.denx.de>, Tom Rini <trini@konsulko.com>",
        "Subject": "[PATCH v3 38/38] doc: Add a reST document for qemu-ppce500",
        "Date": "Thu, 25 Feb 2021 17:22:59 +0800",
        "Message-Id": "<1614244979-48216-39-git-send-email-bmeng.cn@gmail.com>",
        "X-Mailer": "git-send-email 2.7.4",
        "In-Reply-To": "<1614244979-48216-1-git-send-email-bmeng.cn@gmail.com>",
        "References": "<1614244979-48216-1-git-send-email-bmeng.cn@gmail.com>",
        "X-BeenThere": "u-boot@lists.denx.de",
        "X-Mailman-Version": "2.1.34",
        "Precedence": "list",
        "List-Id": "U-Boot discussion <u-boot.lists.denx.de>",
        "List-Unsubscribe": "<https://lists.denx.de/options/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>",
        "List-Archive": "<https://lists.denx.de/pipermail/u-boot/>",
        "List-Post": "<mailto:u-boot@lists.denx.de>",
        "List-Help": "<mailto:u-boot-request@lists.denx.de?subject=help>",
        "List-Subscribe": "<https://lists.denx.de/listinfo/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=subscribe>",
        "Errors-To": "u-boot-bounces@lists.denx.de",
        "Sender": "\"U-Boot\" <u-boot-bounces@lists.denx.de>",
        "X-Virus-Scanned": "clamav-milter 0.102.4 at phobos.denx.de",
        "X-Virus-Status": "Clean"
    },
    "content": "Add a reST document to describe how to build and run U-Boot for\nthe QEMU ppce500 machine.\n\nSigned-off-by: Bin Meng <bmeng.cn@gmail.com>\nReviewed-by: Simon Glass <sjg@chromium.org>\nReviewed-by: Priyanka Jain <priyanka.jain@nxp.com>\n\n---\n\nChanges in v3:\n- rebase on top of u-boot/master\n\nChanges in v2:\n- add descriptions for VirtIO BLK, RTC and power off\n\n doc/board/emulation/index.rst        |  1 +\n doc/board/emulation/qemu-ppce500.rst | 88 ++++++++++++++++++++++++++++++++++++\n 2 files changed, 89 insertions(+)\n create mode 100644 doc/board/emulation/qemu-ppce500.rst",
    "diff": "diff --git a/doc/board/emulation/index.rst b/doc/board/emulation/index.rst\nindex a09ead1..be66b6b 100644\n--- a/doc/board/emulation/index.rst\n+++ b/doc/board/emulation/index.rst\n@@ -8,6 +8,7 @@ Emulation\n \n    qemu-arm\n    qemu-mips\n+   qemu-ppce500\n    qemu-riscv\n    qemu-x86\n    qemu_capsule_update\ndiff --git a/doc/board/emulation/qemu-ppce500.rst b/doc/board/emulation/qemu-ppce500.rst\nnew file mode 100644\nindex 0000000..0a5c86c\n--- /dev/null\n+++ b/doc/board/emulation/qemu-ppce500.rst\n@@ -0,0 +1,88 @@\n+.. SPDX-License-Identifier: GPL-2.0+\n+.. Copyright (C) 2021, Bin Meng <bmeng.cn@gmail.com>\n+\n+QEMU PPC E500\n+=============\n+\n+QEMU for PPC supports a special 'ppce500' machine designed for emulation and\n+virtualization purposes. This document describes how to run U-Boot under it.\n+\n+The QEMU ppce500 machine models a generic PowerPC E500 virtual machine with\n+support for the VirtIO standard networking device connected to the built-in\n+PCI host controller. Some common devices in the CCSBAR space are modeled,\n+including MPIC, 16550A UART devices, GPIO, I2C and PCI host controller with\n+MSI delivery to MPIC. It uses device-tree to pass configuration information\n+to guest software.\n+\n+Building U-Boot\n+---------------\n+Set the CROSS_COMPILE environment variable as usual, and run::\n+\n+    $ make qemu-ppce500_defconfig\n+    $ make\n+\n+Running U-Boot\n+--------------\n+The minimal QEMU command line to get U-Boot up and running is::\n+\n+    $ qemu-system-ppc -nographic -machine ppce500 -bios u-boot\n+\n+You can also run U-Boot using 'qemu-system-ppc64'::\n+\n+    $ qemu-system-ppc64 -nographic -machine ppce500 -bios u-boot\n+\n+The commands above create a target with 128 MiB memory by default. A freely\n+configurable amount of RAM can be created via the '-m' parameter. For example,\n+'-m 2G' creates 2 GiB memory for the target, and the memory node in the\n+embedded DTB created by QEMU reflects the new setting.\n+\n+Both qemu-system-ppc and qemu-system-ppc64 provide emulation for the following\n+32-bit PowerPC CPUs:\n+\n+* e500v2\n+* e500mc\n+\n+Additionally qemu-system-ppc64 provides support for the following 64-bit CPUs:\n+\n+* e5500\n+* e6500\n+\n+The CPU type can be specified via the '-cpu' command line. If not specified,\n+it creates a machine with e500v2 core. The following example shows an e6500\n+based machine creation::\n+\n+    $ qemu-system-ppc64 -nographic -machine ppce500 -cpu e6500 -bios u-boot\n+\n+When U-Boot boots, you will notice the following::\n+\n+    CPU:   Unknown, Version: 0.0, (0x00000000)\n+    Core:  e6500, Version: 2.0, (0x80400020)\n+\n+This is because we only specified a core name to QEMU and it does not have a\n+meaningful SVR value which represents an actual SoC that integrates such core.\n+You can specify a real world SoC device that QEMU has built-in support but all\n+these SoCs are e500v2 based MPC85xx series, hence you cannot test anything\n+built for P4080 (e500mc), P5020 (e5500) and T2080 (e6500).\n+\n+By default a VirtIO standard PCI networking device is connected as an ethernet\n+interface at PCI address 0.1.0, but we can switch that to an e1000 NIC by::\n+\n+    $ qemu-system-ppc -nographic -machine ppce500 -bios u-boot \\\n+                      -nic tap,ifname=tap0,script=no,downscript=no,model=e1000\n+\n+VirtIO BLK driver is also enabled to support booting from a disk image where\n+a kernel image is stored. Append the following to QEMU::\n+\n+    -drive file=disk.img,format=raw,id=disk0 -device virtio-blk-pci,drive=disk0\n+\n+Pericom pt7c4338 RTC is supported so we can use the 'date' command::\n+\n+    => date\n+    Date: 2021-02-18 (Thursday)    Time: 15:33:20\n+\n+Additionally, 'poweroff' command is supported to shut down the QEMU session::\n+\n+    => poweroff\n+    poweroff ...\n+\n+These have been tested in QEMU 5.2.0.\n",
    "prefixes": [
        "v3",
        "38/38"
    ]
}