get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2216889,
    "url": "http://patchwork.ozlabs.org/api/patches/2216889/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260327111700.795099-38-peter.maydell@linaro.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": "<20260327111700.795099-38-peter.maydell@linaro.org>",
    "list_archive_url": null,
    "date": "2026-03-27T11:16:32",
    "name": "[v2,37/65] target/arm: GICv5 cpuif: Implement PPI handling mode register",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "a0c0e3b0cd0f3b39ccc5093f54e004fe41f6e5d4",
    "submitter": {
        "id": 5111,
        "url": "http://patchwork.ozlabs.org/api/people/5111/?format=api",
        "name": "Peter Maydell",
        "email": "peter.maydell@linaro.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260327111700.795099-38-peter.maydell@linaro.org/mbox/",
    "series": [
        {
            "id": 497750,
            "url": "http://patchwork.ozlabs.org/api/series/497750/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=497750",
            "date": "2026-03-27T11:16:25",
            "name": "arm: Implement an emulation of GICv5 interrupt controller",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/497750/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2216889/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2216889/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@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256\n header.s=google header.b=gUdcvKvX;\n\tdkim-atps=neutral",
            "legolas.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=patchwork.ozlabs.org)"
        ],
        "Received": [
            "from lists.gnu.org (lists.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fhyr220cdz1xy1\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 27 Mar 2026 22:20:50 +1100 (AEDT)",
            "from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1w65CB-0006zt-D8; Fri, 27 Mar 2026 07:17:43 -0400",
            "from eggs.gnu.org ([2001:470:142:3::10])\n by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <peter.maydell@linaro.org>)\n id 1w65C9-0006vn-0l\n for qemu-devel@nongnu.org; Fri, 27 Mar 2026 07:17:41 -0400",
            "from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)\n (Exim 4.90_1) (envelope-from <peter.maydell@linaro.org>)\n id 1w65C7-0008Ca-6j\n for qemu-devel@nongnu.org; Fri, 27 Mar 2026 07:17:40 -0400",
            "by mail-wm1-x32b.google.com with SMTP id\n 5b1f17b1804b1-4852a9c6309so17943745e9.0\n for <qemu-devel@nongnu.org>; Fri, 27 Mar 2026 04:17:38 -0700 (PDT)",
            "from lanath.. (wildly.archaic.org.uk. [81.2.115.145])\n by smtp.gmail.com with ESMTPSA id\n ffacd0b85a97d-43b919cf2b2sm15484227f8f.18.2026.03.27.04.17.36\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Fri, 27 Mar 2026 04:17:37 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=linaro.org; s=google; t=1774610258; x=1775215058; darn=nongnu.org;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=22dNZBfMp70lJSs9tv9FQMfyO2cJBi2NY6IZf7t/OiY=;\n b=gUdcvKvXm4fBcAtzJLGSWsUZAg39DNLd9/C9pLboWIVW6iZ2vJU3ul9q2DPFRfIOYv\n 8sMvmxcX94PDK+TdqU9Xe2bfWWl5HWhIzb0SdWmf9c1GRxo/roJ6w7J/qJto/hAD4elp\n BFSKCdLs9eJzCSy2O+FCK+7Aa/8tXOT7WdGe6Ib5JCw5OncMNuInY2By+VBWsdCfWOQp\n dY8lcwW3U5xmec+0Kn2jXJEtFv3b4lHRoNV4tVOBGMm/J6cgmvcLHXmLpEj9fzKfJs6t\n +gcW0XHeaJ0sDxpC4fE4q9zwtVkGcMmUCGRqOZtTt0qgbIGQZco13SFOdGKfT8mggEXQ\n ga8Q==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1774610258; x=1775215058;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n :to:cc:subject:date:message-id:reply-to;\n bh=22dNZBfMp70lJSs9tv9FQMfyO2cJBi2NY6IZf7t/OiY=;\n b=i7I2POgTwbOpC+Sida0zfjPI2VJlIE4Y8M48WYDHRIFmlNNarhCWEMISpLerkM8rfr\n 8R2WeraS1ihI4xsL2/LkbC6alzW2qycJWMzEZ6JNmAwRGSlRkYoy39AW1cfzZ6r6R+J1\n ZyrbZuGwof4ZQTPIDIQwWzHqgHweeV/j7tidYLBRJhetzePIANbuavqopPjniw1CV6Wa\n fuAoE0bNzyR5aj8/gJJ5/2//RwNVogA+Vbu+GM9K1ixv/p/XMdYewu0Ugq/wk4Wd8PhD\n 3H0aYRERMIVnnSPKKwAxgDi7MwRhQh+AErzI3zDyeonkLgC5IWOhhswlXtMDAu28sQ2L\n kyxg==",
        "X-Forwarded-Encrypted": "i=1;\n AJvYcCVVi7ctML9f19AaEMOHUUE5TeRiY9zkv7pIhGl4xNbzceEeXf6Dl32Vbk2MTLLjMI0z0BG7sKlcQy0Z@nongnu.org",
        "X-Gm-Message-State": "AOJu0Yy8mAtj7iSpKxeWO711i8bQ60kfrPY52VK5CCA/44HzrhYxWFIe\n UZore8gwCgn5Fxb9TZrZQvfwcYjaR7P10i8+/qsFdMKOM7sVfu2PkpNSPIAx11kWDaA=",
        "X-Gm-Gg": "ATEYQzwK2EDi8oSDdAWJYOUj1BIQgiIl8UDjsj2k6+6u0+F3ZOPixxFXifxKQSpu0uC\n B/fyWZ/h4wie++GJ1jtReuIQ7yj9Du/Ys39GYUBHvjj++o7inqTyqb4VQXeA7NHrc5uu35qLgX1\n Vj5h644jaugpGLg9HeTCD4WBbHEurtmMy7CVNpSb9adPmSoSZFNNt1t+sSNYsYWCNB3h6iyYySb\n aLf7COc4tNn3ClkRRFUimaCPGzKXi1P7SnoaDIdmAvsvzJdyCkbNFdW0WgzbBh50Xwj4rkBeB5j\n 3C/gKc55mSHNGJVzPYWU+feTC9y8kR9moGuDO87iBhhKp4U2S6covobRzEKwqpo78tsbERm9y3l\n VuWNYZKcRkHecZrKFXfxQWZrYUR53VY9VPKV8oW4hlVNeNkAyV4wuKYjYEGoxK2vsbFg81kQ7ad\n gKXIhCkWotGFFvLMuHgmf+Jld637La6hbER8Y3YUp4Tmw8GyuErAu/dq2enBIlURwGrL2vK1u7b\n SYwrFp4Fxjc704mTc+EpHC+VkTPT8g=",
        "X-Received": "by 2002:a05:600c:1d15:b0:485:ae14:8191 with SMTP id\n 5b1f17b1804b1-48727ee99f6mr32789585e9.5.1774610257609;\n Fri, 27 Mar 2026 04:17:37 -0700 (PDT)",
        "From": "Peter Maydell <peter.maydell@linaro.org>",
        "To": "qemu-arm@nongnu.org,\n\tqemu-devel@nongnu.org",
        "Cc": "Jonathan Cameron <jonathan.cameron@huawei.com>",
        "Subject": "[PATCH v2 37/65] target/arm: GICv5 cpuif: Implement PPI handling mode\n register",
        "Date": "Fri, 27 Mar 2026 11:16:32 +0000",
        "Message-ID": "<20260327111700.795099-38-peter.maydell@linaro.org>",
        "X-Mailer": "git-send-email 2.43.0",
        "In-Reply-To": "<20260327111700.795099-1-peter.maydell@linaro.org>",
        "References": "<20260327111700.795099-1-peter.maydell@linaro.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Received-SPF": "pass client-ip=2a00:1450:4864:20::32b;\n envelope-from=peter.maydell@linaro.org; helo=mail-wm1-x32b.google.com",
        "X-Spam_score_int": "-20",
        "X-Spam_score": "-2.1",
        "X-Spam_bar": "--",
        "X-Spam_report": "(-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,\n DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,\n RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,\n SPF_PASS=-0.001 autolearn=ham autolearn_force=no",
        "X-Spam_action": "no action",
        "X-BeenThere": "qemu-devel@nongnu.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "qemu development <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>",
        "Errors-To": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org",
        "Sender": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org"
    },
    "content": "In the GICv5 the handling mode of a PPI is not software configurable;\nit is reported via read-only CPU interface registers ICC_PPI_HMR0_EL1\nand ICC_PPI_HMR1_EL1.\n\nSigned-off-by: Peter Maydell <peter.maydell@linaro.org>\nReviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>\n---\n target/arm/cpu.h             |  1 +\n target/arm/tcg/gicv5-cpuif.c | 22 ++++++++++++++++++++++\n 2 files changed, 23 insertions(+)",
    "diff": "diff --git a/target/arm/cpu.h b/target/arm/cpu.h\nindex dd4dc12feb..4574f7005d 100644\n--- a/target/arm/cpu.h\n+++ b/target/arm/cpu.h\n@@ -605,6 +605,7 @@ typedef struct CPUArchState {\n         uint64_t icc_icsr_el1;\n         /* Most PPI registers have 1 bit per PPI, so 64 PPIs to a register */\n         uint64_t ppi_active[GICV5_NUM_PPIS / 64];\n+        uint64_t ppi_hm[GICV5_NUM_PPIS / 64];\n     } gicv5_cpuif;\n \n     struct {\ndiff --git a/target/arm/tcg/gicv5-cpuif.c b/target/arm/tcg/gicv5-cpuif.c\nindex 6672cda37f..e65bd56b3d 100644\n--- a/target/arm/tcg/gicv5-cpuif.c\n+++ b/target/arm/tcg/gicv5-cpuif.c\n@@ -50,6 +50,16 @@ FIELD(ICC_IDR0_EL1, GCIE_LEGACY, 8, 4)\n     ((4 << R_ICC_IDR0_EL1_PRI_BITS_SHIFT) |     \\\n      (1 << R_ICC_IDR0_EL1_ID_BITS_SHIFT))\n \n+/*\n+ * PPI handling modes are fixed and not software configurable.\n+ * R_CFSKX defines them for the architected PPIs: they are all Level,\n+ * except that PPI 24 (CTIIRQ) is IMPDEF and PPI 3 (SW_PPI) is Edge.\n+ * For unimplemented PPIs the field is RES0.  The PPI register bits\n+ * are 1 for Level and 0 for Edge.\n+ */\n+#define PPI_HMR0_RESET (~(1ULL << GICV5_PPI_SW_PPI))\n+#define PPI_HMR1_RESET (~0ULL)\n+\n static GICv5Common *gicv5_get_gic(CPUARMState *env)\n {\n     return env->gicv5state;\n@@ -292,6 +302,18 @@ static const ARMCPRegInfo gicv5_cpuif_reginfo[] = {\n         .fieldoffset = offsetof(CPUARMState, gicv5_cpuif.ppi_active[1]),\n         .writefn = gic_ppi_sactive_write,\n     },\n+    {   .name = \"ICC_PPI_HMR0_EL1\", .state = ARM_CP_STATE_AA64,\n+        .opc0 = 3, .opc1 = 0, .crn = 12, .crm = 10, .opc2 = 0,\n+        .access = PL1_R, .type = ARM_CP_IO | ARM_CP_NO_RAW,\n+        .fieldoffset = offsetof(CPUARMState, gicv5_cpuif.ppi_hm[0]),\n+        .resetvalue = PPI_HMR0_RESET,\n+    },\n+    {   .name = \"ICC_PPI_HMR1_EL1\", .state = ARM_CP_STATE_AA64,\n+        .opc0 = 3, .opc1 = 0, .crn = 12, .crm = 10, .opc2 = 1,\n+        .access = PL1_R, .type = ARM_CP_IO | ARM_CP_NO_RAW,\n+        .fieldoffset = offsetof(CPUARMState, gicv5_cpuif.ppi_hm[1]),\n+        .resetvalue = PPI_HMR1_RESET,\n+    },\n };\n \n void define_gicv5_cpuif_regs(ARMCPU *cpu)\n",
    "prefixes": [
        "v2",
        "37/65"
    ]
}