get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 1523757,
    "url": "http://patchwork.ozlabs.org/api/patches/1523757/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20210902130928.528803-12-clg@kaod.org/",
    "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": "<20210902130928.528803-12-clg@kaod.org>",
    "list_archive_url": null,
    "date": "2021-09-02T13:09:19",
    "name": "[v2,11/20] ppc/xive2: Add support for notification injection on ESB pages",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "55b6ba73b6afee0dfbc23fe64c5daa3f343a95ad",
    "submitter": {
        "id": 68548,
        "url": "http://patchwork.ozlabs.org/api/people/68548/?format=api",
        "name": "Cédric Le Goater",
        "email": "clg@kaod.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20210902130928.528803-12-clg@kaod.org/mbox/",
    "series": [
        {
            "id": 260743,
            "url": "http://patchwork.ozlabs.org/api/series/260743/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=260743",
            "date": "2021-09-02T13:09:11",
            "name": "ppc/pnv: Extend the powernv10 machine",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/260743/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/1523757/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/1523757/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 spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=<UNKNOWN>)",
            "garm.ovh; auth=pass\n (GARM-101G0048c719ff5-afb2-4b4f-a74f-e5f81a7b7081,\n 0F69C8711EE098B745CC44F7BEC1CAFBB1DDDEDC) smtp.auth=clg@kaod.org"
        ],
        "Received": [
            "from lists.gnu.org (lists.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 4H0hX21MCKz9sCD\n\tfor <incoming@patchwork.ozlabs.org>; Thu,  2 Sep 2021 23:26:10 +1000 (AEST)",
            "from localhost ([::1]:43294 helo=lists1p.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>)\n\tid 1mLmjH-0003qf-Uz\n\tfor incoming@patchwork.ozlabs.org; Thu, 02 Sep 2021 09:26:07 -0400",
            "from eggs.gnu.org ([2001:470:142:3::10]:42496)\n by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <clg@kaod.org>) id 1mLmTR-0005zW-0e\n for qemu-devel@nongnu.org; Thu, 02 Sep 2021 09:09:45 -0400",
            "from 5.mo52.mail-out.ovh.net ([188.165.45.220]:53405)\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <clg@kaod.org>) id 1mLmTL-0001xe-QY\n for qemu-devel@nongnu.org; Thu, 02 Sep 2021 09:09:44 -0400",
            "from mxplan5.mail.ovh.net (unknown [10.109.156.48])\n by mo52.mail-out.ovh.net (Postfix) with ESMTPS id 2A109295E7D;\n Thu,  2 Sep 2021 15:09:38 +0200 (CEST)",
            "from kaod.org (37.59.142.101) by DAG4EX1.mxp5.local (172.16.2.31)\n with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.14; Thu, 2 Sep\n 2021 15:09:35 +0200"
        ],
        "X-OVh-ClientIp": "82.64.250.170",
        "From": "=?utf-8?q?C=C3=A9dric_Le_Goater?= <clg@kaod.org>",
        "To": "David Gibson <david@gibson.dropbear.id.au>, Greg Kurz <groug@kaod.org>",
        "Subject": "[PATCH v2 11/20] ppc/xive2: Add support for notification injection on\n ESB pages",
        "Date": "Thu, 2 Sep 2021 15:09:19 +0200",
        "Message-ID": "<20210902130928.528803-12-clg@kaod.org>",
        "X-Mailer": "git-send-email 2.31.1",
        "In-Reply-To": "<20210902130928.528803-1-clg@kaod.org>",
        "References": "<20210902130928.528803-1-clg@kaod.org>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"UTF-8\"",
        "Content-Transfer-Encoding": "8bit",
        "X-Originating-IP": "[37.59.142.101]",
        "X-ClientProxiedBy": "DAG5EX1.mxp5.local (172.16.2.41) To DAG4EX1.mxp5.local\n (172.16.2.31)",
        "X-Ovh-Tracer-GUID": "65341003-1cc7-40d3-8903-9ccb1f97d701",
        "X-Ovh-Tracer-Id": "14776028906517269411",
        "X-VR-SPAMSTATE": "OK",
        "X-VR-SPAMSCORE": "-100",
        "X-VR-SPAMCAUSE": "\n gggruggvucftvghtrhhoucdtuddrgedvtddruddvhedgieduucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufffkffojghfgggtgfhisehtkeertdertdejnecuhfhrohhmpeevrogurhhitgcunfgvucfiohgrthgvrhcuoegtlhhgsehkrghougdrohhrgheqnecuggftrfgrthhtvghrnhepheehfeegjeeitdfffeetjeduveejueefuefgtdefueelueetveeliefhhffgtdelnecukfhppedtrddtrddtrddtpdefjedrheelrddugedvrddutddunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmohguvgepshhmthhpqdhouhhtpdhhvghlohepmhigphhlrghnhedrmhgrihhlrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpegtlhhgsehkrghougdrohhrghdprhgtphhtthhopegtlhhgsehkrghougdrohhrgh",
        "Received-SPF": "pass client-ip=188.165.45.220; envelope-from=clg@kaod.org;\n helo=5.mo52.mail-out.ovh.net",
        "X-Spam_score_int": "7",
        "X-Spam_score": "0.7",
        "X-Spam_bar": "/",
        "X-Spam_report": "(0.7 / 5.0 requ) RCVD_IN_DNSWL_NONE=-0.0001,\n RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001,\n SPF_SOFTFAIL=0.665 autolearn=no autolearn_force=no",
        "X-Spam_action": "no action",
        "X-BeenThere": "qemu-devel@nongnu.org",
        "X-Mailman-Version": "2.1.23",
        "Precedence": "list",
        "List-Id": "<qemu-devel.nongnu.org>",
        "List-Unsubscribe": "<https://lists.nongnu.org/mailman/options/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>",
        "List-Archive": "<https://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 <mailto:qemu-devel-request@nongnu.org?subject=subscribe>",
        "Cc": "qemu-ppc@nongnu.org, qemu-devel@nongnu.org, =?utf-8?q?C=C3=A9dric_Le_Goa?=\n\t=?utf-8?q?ter?= <clg@kaod.org>",
        "Errors-To": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org",
        "Sender": "\"Qemu-devel\"\n <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>"
    },
    "content": "This is an internal offset used to inject triggers when the PQ state\nbits are not controlled locally. Such as for LSIs when the PHB5 are\nusing the Address-Based Interrupt Trigger mode and on the END.\n\nSigned-off-by: Cédric Le Goater <clg@kaod.org>\n---\n include/hw/ppc/xive.h |  1 +\n hw/intc/xive.c        |  9 +++++++++\n hw/intc/xive2.c       | 10 ++++++++++\n 3 files changed, 20 insertions(+)",
    "diff": "diff --git a/include/hw/ppc/xive.h b/include/hw/ppc/xive.h\nindex 252c58a1d691..c270efd0e9a2 100644\n--- a/include/hw/ppc/xive.h\n+++ b/include/hw/ppc/xive.h\n@@ -278,6 +278,7 @@ uint8_t xive_esb_set(uint8_t *pq, uint8_t value);\n #define XIVE_ESB_STORE_EOI      0x400 /* Store */\n #define XIVE_ESB_LOAD_EOI       0x000 /* Load */\n #define XIVE_ESB_GET            0x800 /* Load */\n+#define XIVE_ESB_INJECT         0x800 /* Store */\n #define XIVE_ESB_SET_PQ_00      0xc00 /* Load */\n #define XIVE_ESB_SET_PQ_01      0xd00 /* Load */\n #define XIVE_ESB_SET_PQ_10      0xe00 /* Load */\ndiff --git a/hw/intc/xive.c b/hw/intc/xive.c\nindex 6c82326ec768..0a9149284dad 100644\n--- a/hw/intc/xive.c\n+++ b/hw/intc/xive.c\n@@ -1061,6 +1061,15 @@ static void xive_source_esb_write(void *opaque, hwaddr addr,\n         notify = xive_source_esb_eoi(xsrc, srcno);\n         break;\n \n+    /*\n+     * This is an internal offset used to inject triggers when the PQ\n+     * state bits are not controlled locally. Such as for LSIs when\n+     * under ABT mode.\n+     */\n+    case XIVE_ESB_INJECT ... XIVE_ESB_INJECT + 0x3FF:\n+        notify = true;\n+        break;\n+\n     case XIVE_ESB_SET_PQ_00 ... XIVE_ESB_SET_PQ_00 + 0x0FF:\n     case XIVE_ESB_SET_PQ_01 ... XIVE_ESB_SET_PQ_01 + 0x0FF:\n     case XIVE_ESB_SET_PQ_10 ... XIVE_ESB_SET_PQ_10 + 0x0FF:\ndiff --git a/hw/intc/xive2.c b/hw/intc/xive2.c\nindex 9e186bbb6cd9..d474476b5a55 100644\n--- a/hw/intc/xive2.c\n+++ b/hw/intc/xive2.c\n@@ -658,6 +658,16 @@ static void xive2_end_source_write(void *opaque, hwaddr addr,\n         notify = xive_esb_eoi(&pq);\n         break;\n \n+    case XIVE_ESB_INJECT ... XIVE_ESB_INJECT + 0x3FF:\n+        if (end_esmask == END2_W1_ESe) {\n+            qemu_log_mask(LOG_GUEST_ERROR,\n+                          \"XIVE: END %x/%x can not EQ inject on ESe\\n\",\n+                           end_blk, end_idx);\n+            return;\n+        }\n+        notify = true;\n+        break;\n+\n     default:\n         qemu_log_mask(LOG_GUEST_ERROR, \"XIVE: invalid END ESB write addr %d\\n\",\n                       offset);\n",
    "prefixes": [
        "v2",
        "11/20"
    ]
}