get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 809004,
    "url": "http://patchwork.ozlabs.org/api/patches/809004/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/15b2a02d1aae37b49a13a32c5af466e2b63c11ac.1504293917.git.alistair.francis@xilinx.com/",
    "project": {
        "id": 14,
        "url": "http://patchwork.ozlabs.org/api/projects/14/?format=api",
        "name": "QEMU Development",
        "link_name": "qemu-devel",
        "list_id": "qemu-devel.nongnu.org",
        "list_email": "qemu-devel@nongnu.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<15b2a02d1aae37b49a13a32c5af466e2b63c11ac.1504293917.git.alistair.francis@xilinx.com>",
    "list_archive_url": null,
    "date": "2017-09-01T21:00:35",
    "name": "[v2,1/6] xlnx-zynqmp-pmu: Initial commit of the ZynqMP PMU",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "01cdee88bc972eb7c164cad13418b0558bee0b6f",
    "submitter": {
        "id": 47878,
        "url": "http://patchwork.ozlabs.org/api/people/47878/?format=api",
        "name": "Alistair Francis",
        "email": "alistair.francis@xilinx.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/15b2a02d1aae37b49a13a32c5af466e2b63c11ac.1504293917.git.alistair.francis@xilinx.com/mbox/",
    "series": [
        {
            "id": 1116,
            "url": "http://patchwork.ozlabs.org/api/series/1116/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=1116",
            "date": "2017-09-01T21:00:45",
            "name": "Add the ZynqMP PMU and IPI",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/1116/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/809004/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/809004/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org",
        "Authentication-Results": [
            "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=nongnu.org\n\t(client-ip=2001:4830:134:3::11; helo=lists.gnu.org;\n\tenvelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=xilinx.onmicrosoft.com\n\theader.i=@xilinx.onmicrosoft.com header.b=\"W/YCeZrW\"; \n\tdkim-atps=neutral",
            "spf=pass (sender IP is 149.199.60.83)\n\tsmtp.mailfrom=xilinx.com; nongnu.org; dkim=none (message not signed)\n\theader.d=none;nongnu.org; dmarc=bestguesspass action=none\n\theader.from=xilinx.com;"
        ],
        "Received": [
            "from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11])\n\t(using TLSv1 with cipher AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xkX365N0fz9sPk\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSat,  2 Sep 2017 07:10:55 +1000 (AEST)",
            "from localhost ([::1]:60824 helo=lists.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.71) (envelope-from\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>)\n\tid 1dntDH-0005rO-Hp\n\tfor incoming@patchwork.ozlabs.org; Fri, 01 Sep 2017 17:10:51 -0400",
            "from eggs.gnu.org ([2001:4830:134:3::10]:52827)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <alistai@xilinx.com>) id 1dnt7D-0000Sj-Vc\n\tfor qemu-devel@nongnu.org; Fri, 01 Sep 2017 17:04:40 -0400",
            "from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <alistai@xilinx.com>) id 1dnt79-0006pB-Nh\n\tfor qemu-devel@nongnu.org; Fri, 01 Sep 2017 17:04:35 -0400",
            "from mail-by2nam03on0059.outbound.protection.outlook.com\n\t([104.47.42.59]:61310\n\thelo=NAM03-BY2-obe.outbound.protection.outlook.com)\n\tby eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)\n\t(Exim 4.71) (envelope-from <alistai@xilinx.com>)\n\tid 1dnt6z-0006hs-4w; Fri, 01 Sep 2017 17:04:21 -0400",
            "from MWHPR0201CA0036.namprd02.prod.outlook.com (10.167.160.177) by\n\tCY4PR02MB2696.namprd02.prod.outlook.com (10.175.59.18) with\n\tMicrosoft SMTP Server (version=TLS1_2,\n\tcipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id\n\t15.1.1385.9; Fri, 1 Sep 2017 21:04:18 +0000",
            "from BL2NAM02FT027.eop-nam02.prod.protection.outlook.com\n\t(2a01:111:f400:7e46::203) by MWHPR0201CA0036.outlook.office365.com\n\t(2603:10b6:301:74::49) with Microsoft SMTP Server (version=TLS1_2,\n\tcipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.13.10 via\n\tFrontend Transport; Fri, 1 Sep 2017 21:04:17 +0000",
            "from xsj-pvapsmtpgw01 (149.199.60.83) by\n\tBL2NAM02FT027.mail.protection.outlook.com (10.152.77.160) with\n\tMicrosoft SMTP Server (version=TLS1_0,\n\tcipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1385.11\n\tvia Frontend Transport; Fri, 1 Sep 2017 21:04:17 +0000",
            "from unknown-38-66.xilinx.com ([149.199.38.66] helo=xsj-pvapsmtp01)\n\tby xsj-pvapsmtpgw01 with esmtp (Exim 4.63)\n\t(envelope-from <alistair.francis@xilinx.com>)\n\tid 1dnt6u-0004gE-LB; Fri, 01 Sep 2017 14:04:16 -0700",
            "from [127.0.0.1] (helo=localhost)\n\tby xsj-pvapsmtp01 with smtp (Exim 4.63)\n\t(envelope-from <alistair.francis@xilinx.com>)\n\tid 1dnt6u-0007fC-Hf; Fri, 01 Sep 2017 14:04:16 -0700",
            "from xsj-pvapsmtp01 (mailhub.xilinx.com [149.199.38.66])\n\tby xsj-smtp-dlp2.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id\n\tv81L4BaA021007; Fri, 1 Sep 2017 14:04:11 -0700",
            "from [172.19.2.220] (helo=localhost.localdomain)\n\tby xsj-pvapsmtp01 with esmtp (Exim 4.63)\n\t(envelope-from <alistair.francis@xilinx.com>)\n\tid 1dnt6o-0007eP-Ub; Fri, 01 Sep 2017 14:04:10 -0700"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=xilinx.onmicrosoft.com; s=selector1-xilinx-com;\n\th=From:Date:Subject:Message-ID:Content-Type:MIME-Version;\n\tbh=FNAzIUiukrqNoMRKfQ1Q6SiXhV7sOE9PEpQnRfqV1lc=;\n\tb=W/YCeZrW58wm4lxpwueEmf4m24iAM3gbVFEkEZN/ze4qWBjLYQUnNRiY05nGQTo9cYSC51S6wg+onvQ9PDtIDO8kscDCsUwWpMo8RHAkWNL/8JOF2/1VIwsev3Auwfr/ATCLFpahiyVNJ4f4O7QwCuw2pNmVToR+smu6vy+JKeY=",
        "Received-SPF": "Pass (protection.outlook.com: domain of xilinx.com designates\n\t149.199.60.83 as permitted sender)\n\treceiver=protection.outlook.com; \n\tclient-ip=149.199.60.83; helo=xsj-pvapsmtpgw01;",
        "From": "Alistair Francis <alistair.francis@xilinx.com>",
        "To": "<qemu-devel@nongnu.org>, <edgar.iglesias@xilinx.com>,\n\t<edgar.iglesias@gmail.com>",
        "Date": "Fri, 1 Sep 2017 14:00:35 -0700",
        "Message-ID": "<15b2a02d1aae37b49a13a32c5af466e2b63c11ac.1504293917.git.alistair.francis@xilinx.com>",
        "X-Mailer": "git-send-email 2.11.0",
        "In-Reply-To": "<cover.1504293917.git.alistair.francis@xilinx.com>",
        "References": "<cover.1504293917.git.alistair.francis@xilinx.com>",
        "X-RCIS-Action": "ALLOW",
        "X-TM-AS-Product-Ver": "IMSS-7.1.0.1224-8.1.0.1062-23296.003",
        "X-TM-AS-User-Approved-Sender": "Yes;Yes",
        "X-EOPAttributedMessage": "0",
        "X-MS-Office365-Filtering-HT": "Tenant",
        "X-Forefront-Antispam-Report": "CIP:149.199.60.83; IPV:NLI; CTRY:US; EFV:NLI;\n\tSFV:NSPM;\n\tSFS:(10009020)(6009001)(39860400002)(2980300002)(438002)(199003)(189002)(2906002)(63266004)(9786002)(5660300001)(305945005)(77096006)(33646002)(81156014)(76176999)(50986999)(106466001)(81166006)(5003940100001)(8676002)(8936002)(47776003)(189998001)(2201001)(36756003)(478600001)(626005)(36386004)(39060400002)(118296001)(48376002)(50466002)(50226002)(2950100002)(356003)(6666003)(54906002)(230783001)(4326008)(2004002)(107986001)(2101003);\n\tDIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR02MB2696; H:xsj-pvapsmtpgw01;\n\tFPR:; SPF:Pass; PTR:unknown-60-83.xilinx.com; A:1; MX:1; LANG:en;",
        "X-Microsoft-Exchange-Diagnostics": [
            "1; BL2NAM02FT027;\n\t1:6l5TA89FYD+s3xGgT2uFw2PpebnSNPML5hOY7VQkEmyGVa+JsbfpeopenJEAA/QLzamk28lVMRXZIR7owySulnkPn/DyJJhmbGjNMUQYXb2jfqcOPF23wpk20huwnY4Q",
            "1; CY4PR02MB2696;\n\t3:26w2OZN4AWOowXALJeilsNhrUwTWgK5R3NsVXbItYoMflqyct5pvVKcekRdIGeLSl7MONbaF8WgqI8oEeZFaLNRYvsE+qK3XCu/CIFHvEuj9VfpxBaz/5lbkAbEGo75D7vaSdjVAiHTiqG6jQbLIsz1Y8blSqvOaqJSipG9HRWslUiFrQcf2Fb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PC4rdABODkHLZXHkkk7FsRVM5bMeZ/7x2i/E7g5VFRzUNPJyce/SdQrdvc+rmpf6ng13ptBO1cLJGPJgQ==;\n\t24:dnVGAaAwNxNpthNw0Ff8tpD0p6To2fYyPLu7BVlCLMFbNvoNyc8t0SD9ywPncoZIdjfsXNfRZ3l56zbFzW1+ZJhgeiJtoKaSd9dnoxh9Joo=;\n\t7:18wPGo00L1udMMn/TXkXUF3iEq2sRy/uG7IyKFKiPF13ymZElrzBT7+JOUbrDmuvFGwNtIocl6x71K3+ljxC4olSJLJxcLQufeJelz1c+1qxSQq0L9hDHQOCllr+4JQD1MlwAO+JaJnTKIrM1lBfNY/Ckpx0SWAsqlJN/QUTJYfKFsTifeqnbmYtQf9uk1atdBsZV3SspEI5LSvddMzpzpQogyJrxPYvrYWsxkoNMgw="
        ],
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-MS-PublicTrafficType": "Email",
        "X-MS-Office365-Filtering-Correlation-Id": "25bd4ad4-bab5-45d1-fd45-08d4f17d0222",
        "X-Microsoft-Antispam": "UriScan:; BCL:0; PCL:0;\n\tRULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(8251501002)(300000503095)(300135400095)(2017052603199)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);\n\tSRVR:CY4PR02MB2696; ",
        "X-MS-TrafficTypeDiagnostic": "CY4PR02MB2696:",
        "X-Exchange-Antispam-Report-Test": "UriScan:(192813158149592)(21532816269658);",
        "X-Microsoft-Antispam-PRVS": "<CY4PR02MB2696EDB9387691D9FFF4D8AEDC920@CY4PR02MB2696.namprd02.prod.outlook.com>",
        "X-Exchange-Antispam-Report-CFA-Test": "BCL:0; PCL:0;\n\tRULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(13016025)(13018025)(100000703101)(100105400095)(93006095)(93004095)(3002001)(10201501046)(6055026)(6041248)(20161123562025)(20161123560025)(20161123555025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);\n\tSRVR:CY4PR02MB2696; BCL:0; PCL:0;\n\tRULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);\n\tSRVR:CY4PR02MB2696; ",
        "X-Forefront-PRVS": "0417A3FFD2",
        "SpamDiagnosticOutput": "1:99",
        "SpamDiagnosticMetadata": "NSPM",
        "X-OriginatorOrg": "xilinx.com",
        "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "01 Sep 2017 21:04:17.1073\n\t(UTC)",
        "X-MS-Exchange-CrossTenant-Id": "657af505-d5df-48d0-8300-c31994686c5c",
        "X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp": "TenantId=657af505-d5df-48d0-8300-c31994686c5c; \n\tIp=[149.199.60.83]; Helo=[xsj-pvapsmtpgw01]",
        "X-MS-Exchange-CrossTenant-FromEntityHeader": "HybridOnPrem",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "CY4PR02MB2696",
        "X-detected-operating-system": "by eggs.gnu.org: Windows 7 or 8 [fuzzy]",
        "X-Received-From": "104.47.42.59",
        "Subject": "[Qemu-devel] [PATCH v2 1/6] xlnx-zynqmp-pmu: Initial commit of the\n\tZynqMP PMU",
        "X-BeenThere": "qemu-devel@nongnu.org",
        "X-Mailman-Version": "2.1.21",
        "Precedence": "list",
        "List-Id": "<qemu-devel.nongnu.org>",
        "List-Unsubscribe": "<https://lists.nongnu.org/mailman/options/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.nongnu.org/archive/html/qemu-devel/>",
        "List-Post": "<mailto:qemu-devel@nongnu.org>",
        "List-Help": "<mailto:qemu-devel-request@nongnu.org?subject=help>",
        "List-Subscribe": "<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=subscribe>",
        "Cc": "alistair23@gmail.com, qemu-arm@nongnu.org, alistair.francis@xilinx.com",
        "Errors-To": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org",
        "Sender": "\"Qemu-devel\"\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>"
    },
    "content": "The Xilinx ZynqMP SoC has two main processing systems in it. The ARM\nprocessing system (which is already modeled in QEMU) and the MicroBlaze\nPower Management Unit (PMU). This is the inital work for adding support\nfor the PMU.\n\nThe PMU susbsystem runs along side the ARM system on hardware, but due\nto architecture limitations in QEMU the two instances are seperate for\nthe time being.\n\nLet's follow the same setup we do with the ARM system, where there is an\nSoC device and a ZCU102 board. Although the PMU is less board specific\nwe are still going to follow the same split as maybe in future we can\nconnect the PMU device to the ARM ZCU102 board. As the machine will be\nfairly small let's keep them both together in one file.\n\nSigned-off-by: Alistair Francis <alistair.francis@xilinx.com>\n---\n\n hw/microblaze/Makefile.objs     |  1 +\n hw/microblaze/xlnx-zynqmp-pmu.c | 83 +++++++++++++++++++++++++++++++++++++++++\n 2 files changed, 84 insertions(+)\n create mode 100644 hw/microblaze/xlnx-zynqmp-pmu.c",
    "diff": "diff --git a/hw/microblaze/Makefile.objs b/hw/microblaze/Makefile.objs\nindex b2517d87fe..ae9fd40de7 100644\n--- a/hw/microblaze/Makefile.objs\n+++ b/hw/microblaze/Makefile.objs\n@@ -1,3 +1,4 @@\n obj-y += petalogix_s3adsp1800_mmu.o\n obj-y += petalogix_ml605_mmu.o\n+obj-y += xlnx-zynqmp-pmu.o\n obj-y += boot.o\ndiff --git a/hw/microblaze/xlnx-zynqmp-pmu.c b/hw/microblaze/xlnx-zynqmp-pmu.c\nnew file mode 100644\nindex 0000000000..fc3c8b236f\n--- /dev/null\n+++ b/hw/microblaze/xlnx-zynqmp-pmu.c\n@@ -0,0 +1,83 @@\n+/*\n+ * Xilinx Zynq MPSoC PMU (Power Management Unit) emulation\n+ *\n+ * Copyright (C) 2017 Xilinx Inc\n+ * Written by Alistair Francis <alistair.francis@xilinx.com>\n+ *\n+ * This program is free software; you can redistribute it and/or modify it\n+ * under the terms of the GNU General Public License as published by the\n+ * Free Software Foundation; either version 2 of the License, or\n+ * (at your option) any later version.\n+ *\n+ * This program is distributed in the hope that it will be useful, but WITHOUT\n+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or\n+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License\n+ * for more details.\n+ */\n+\n+#include \"qemu/osdep.h\"\n+#include \"qapi/error.h\"\n+#include \"qemu-common.h\"\n+#include \"hw/boards.h\"\n+#include \"cpu.h\"\n+\n+/* Define the PMU device */\n+\n+#define TYPE_XLNX_ZYNQMP_PMU \"xlnx,zynqmp-pmu\"\n+#define XLNX_ZYNQMP_PMU(obj) OBJECT_CHECK(XlnxZynqMPPMUState, (obj), \\\n+                                          TYPE_XLNX_ZYNQMP_PMU)\n+\n+typedef struct XlnxZynqMPPMUState {\n+    /*< private >*/\n+    DeviceState parent_obj;\n+\n+    /*< public >*/\n+}  XlnxZynqMPPMUState;\n+\n+static void xlnx_zynqmp_pmu_init(Object *obj)\n+{\n+\n+}\n+\n+static void xlnx_zynqmp_pmu_realize(DeviceState *dev, Error **errp)\n+{\n+\n+}\n+\n+static void xlnx_zynqmp_pmu_class_init(ObjectClass *oc, void *data)\n+{\n+    DeviceClass *dc = DEVICE_CLASS(oc);\n+\n+    dc->realize = xlnx_zynqmp_pmu_realize;\n+}\n+\n+static const TypeInfo xlnx_zynqmp_pmu_type_info = {\n+    .name = TYPE_XLNX_ZYNQMP_PMU,\n+    .parent = TYPE_DEVICE,\n+    .instance_size = sizeof(XlnxZynqMPPMUState),\n+    .instance_init = xlnx_zynqmp_pmu_init,\n+    .class_init = xlnx_zynqmp_pmu_class_init,\n+};\n+\n+static void xlnx_zynqmp_pmu_register_types(void)\n+{\n+    type_register_static(&xlnx_zynqmp_pmu_type_info);\n+}\n+\n+type_init(xlnx_zynqmp_pmu_register_types)\n+\n+/* Define the PMU Machine */\n+\n+static void xlnx_zcu102_pmu_init(MachineState *machine)\n+{\n+\n+}\n+\n+static void xlnx_zcu102_pmu_machine_init(MachineClass *mc)\n+{\n+    mc->desc = \"Xilinx ZynqMP ZCU102 PMU machine\";\n+    mc->init = xlnx_zcu102_pmu_init;\n+}\n+\n+DEFINE_MACHINE(\"xlnx-zcu102-pmu\", xlnx_zcu102_pmu_machine_init)\n+\n",
    "prefixes": [
        "v2",
        "1/6"
    ]
}