get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2220657,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2220657/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260407043614.372871-4-alistair.francis@wdc.com/",
    "project": {
        "id": 14,
        "url": "http://patchwork.ozlabs.org/api/1.1/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": ""
    },
    "msgid": "<20260407043614.372871-4-alistair.francis@wdc.com>",
    "date": "2026-04-07T04:36:12",
    "name": "[3/5] target/riscv: Don't OR mip.SEIP when mvien is one",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "5f50e739b5daf69f54697724b71fe6130ebf35bb",
    "submitter": {
        "id": 64571,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/64571/?format=api",
        "name": "Alistair Francis",
        "email": "alistair23@gmail.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260407043614.372871-4-alistair.francis@wdc.com/mbox/",
    "series": [
        {
            "id": 499030,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/499030/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=499030",
            "date": "2026-04-07T04:36:12",
            "name": "target/riscv: A collection of bug fixes",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/499030/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2220657/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2220657/checks/",
    "tags": {},
    "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=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=DDGlJsY7;\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 4fqwy816tXz1xtJ\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 08 Apr 2026 05:20:16 +1000 (AEST)",
            "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 1wABXe-0000J4-Q9; Tue, 07 Apr 2026 14:52:50 -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 <alistair23@gmail.com>)\n id 1wABUK-0003zm-ET\n for qemu-devel@nongnu.org; Tue, 07 Apr 2026 14:49:24 -0400",
            "from mail-pj1-x1031.google.com ([2607:f8b0:4864:20::1031])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)\n (Exim 4.90_1) (envelope-from <alistair23@gmail.com>)\n id 1w9yDO-0007Hy-5x\n for qemu-devel@nongnu.org; Tue, 07 Apr 2026 00:39:03 -0400",
            "by mail-pj1-x1031.google.com with SMTP id\n 98e67ed59e1d1-35d971fb6f1so4018045a91.0\n for <qemu-devel@nongnu.org>; Mon, 06 Apr 2026 21:39:01 -0700 (PDT)",
            "from toolbx.alistair23.me ([2403:581e:fdf9:0:6209:4521:6813:45b7])\n by smtp.gmail.com with ESMTPSA id\n 41be03b00d2f7-c76c6491fedsm15809963a12.8.2026.04.06.21.38.56\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Mon, 06 Apr 2026 21:38:59 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1775536741; x=1776141541; 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=oiFezQHOAaqMmcJKMFlY6nIZQsohwq1z122fNT7RHvQ=;\n b=DDGlJsY7JlvlmWSMLWt+t9Ukpho7fx4xDhJyaDaI9X/s/pyT8qpYt/42U7akQYGX/+\n TBb0+iXn38TRxOOIHZXwN37WrdlMH5DE3qvB6pEwaUNJxSq4pqbWwLwotGjai9AZG0rv\n 3tcHXK16R1zaL7xfvjHzDRhVU2ArVqJoi9/5tAu7xqcBKZyKDnFoLqq/BZxyv+bOYLcd\n 5RRI83zKFccGeo3vNZoBnoIy/YsjsfsrQXvJKUaHXpG1E2uMvvowBgEBc1hUFgHrcPMI\n nXJWFAbDFHsQc5/6lUNBWJnCyNOR1PKzkbsgsO0+NLOkGM7xzqEKCsvt67xM1uPxO3sN\n zrMw==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1775536741; x=1776141541;\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=oiFezQHOAaqMmcJKMFlY6nIZQsohwq1z122fNT7RHvQ=;\n b=bfPhdbSKS+4Ps26vdSdV4vNuIvrG5OqdHVgrELjsM1oW0GLl1terra4O3wqgSpxYvh\n 62EZkfCHKj0IqFSeLIY6OeYyg70hLAPI/P7UlTV43t9/ylNpyAAxtZhyJM6Xmp+2lqFI\n O0kw1Kus5jGqqn10DlCUhUAuHFW7FnU2/PpZwTP6fJAxTcYOrNv7rJ6bo5XhvzC7qVbr\n Mj7EAGn4I/9DwixWQKOuzFQOsdpkO6rjj6D2xaFOsKYuyaXoidlgXQ2hWgXhRMA4dtSj\n xMssCXTLBG8K1wwqlWTROKFTN77WIWaiRmTDjCkBtXjdoyDp4LXZ307yOMAdg8SQd2yX\n u5iw==",
        "X-Forwarded-Encrypted": "i=1;\n AJvYcCUNUhsCsi6ako7+jzTgxwO62v3NNlrcmto+BxSrAGALtmnrw0H8d7/m+GWoPAmkcYu6QHDwHqlS7vlL@nongnu.org",
        "X-Gm-Message-State": "AOJu0YzuDsO3otlfrFxB/jc8tLOIY8R3/9Fm3Ww9pOLutxOe0CXO7VqG\n BfrdtHfgDFQgMqPbw1rbUisI323APSsNL4/1DjrO7JIDfVPF2n9Hq/5x",
        "X-Gm-Gg": "AeBDieuE+wKfLwJdrAjFW8eu3q+bEZuf2HnJDChKQjixNHN44cPdPJZZCVEYJiaQNOf\n Txz0/nQf2NaW02CvRmyPkd+DeCSs0HW4s6nptRZznX5EU6pzEKPb9c4WXwycxwCpShybxQgD/eN\n qKH+cm6HLU48oUwGimIj9xXSa/nP/FYOHHWzS0m+UDnr6QlXyRM0M6N5A1YNO1DB9MPxHpgYKxm\n ZV+89ldk6cDf0heK1ZK85zFNLcBxdiFl8sDwi0B+iE7FmXehJ1KS2vC8ocVz33easaFZIJXL6G9\n rvjcnbOUzhFpsOAKGRXQpd68WW4H682mwb9X8IRH9xFIp1gY3+KQDVqf0HVFF5cRkOp3uDR2W+S\n mi2cCphifXbm0vPfmyz+tQNbtRUrAR2bQDve+joZgd8y095vZJ3LacxzWCUwAAa5TJvNVktbm+f\n Iq3sj8txS2WGvlcH+xpi64mddF9ybbcaYrYshA5v6B",
        "X-Received": "by 2002:a17:90b:350e:b0:35b:9682:51e6 with SMTP id\n 98e67ed59e1d1-35de691ac13mr15140403a91.16.1775536740743;\n Mon, 06 Apr 2026 21:39:00 -0700 (PDT)",
        "From": "alistair23@gmail.com",
        "X-Google-Original-From": "alistair.francis@wdc.com",
        "To": "palmer@dabbelt.com, liwei1518@gmail.com, daniel.barboza@oss.qualcomm.com,\n zhiwei_liu@linux.alibaba.com, chao.liu.zevorn@gmail.com,\n qemu-riscv@nongnu.org, qemu-devel@nongnu.org",
        "Cc": "alistair23@gmail.com,\n\tAlistair Francis <alistair.francis@wdc.com>",
        "Subject": "[PATCH 3/5] target/riscv: Don't OR mip.SEIP when mvien is one",
        "Date": "Tue,  7 Apr 2026 14:36:12 +1000",
        "Message-ID": "<20260407043614.372871-4-alistair.francis@wdc.com>",
        "X-Mailer": "git-send-email 2.53.0",
        "In-Reply-To": "<20260407043614.372871-1-alistair.francis@wdc.com>",
        "References": "<20260407043614.372871-1-alistair.francis@wdc.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=UTF-8",
        "Content-Transfer-Encoding": "8bit",
        "Received-SPF": "pass client-ip=2607:f8b0:4864:20::1031;\n envelope-from=alistair23@gmail.com; helo=mail-pj1-x1031.google.com",
        "X-Spam_score_int": "-17",
        "X-Spam_score": "-1.8",
        "X-Spam_bar": "-",
        "X-Spam_report": "(-1.8 / 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 FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001,\n RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,\n SPF_PASS=-0.001 autolearn=unavailable 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": "From: Alistair Francis <alistair.francis@wdc.com>\n\nThe RISC-V spec states that\n\n\"\"\"\nBut when bit 9 of mvien is one, bit SEIP in mip is read-only and does\nnot include the value of bit 9 of mvip. Rather, the value of mip.SEIP\nis simply the supervisor external interrupt signal from the hart’s\nexternal interrupt controller (APLIC or IMSIC).\n\"\"\"\n\nFrom my understanding this means we should remove MIP_SEIP from the\nalias mask.\n\nResolves: https://gitlab.com/qemu-project/qemu/-/work_items/2828\nSigned-off-by: Alistair Francis <alistair.francis@wdc.com>\n---\n target/riscv/csr.c | 8 ++++++++\n 1 file changed, 8 insertions(+)",
    "diff": "diff --git a/target/riscv/csr.c b/target/riscv/csr.c\nindex a75281539b..2a2f9497db 100644\n--- a/target/riscv/csr.c\n+++ b/target/riscv/csr.c\n@@ -3796,6 +3796,14 @@ static RISCVException rmw_mvip64(CPURISCVState *env, int csrno,\n         /* Remove bits that are zero in both mideleg and mvien. */\n         alias_mask &= (env->mideleg | env->mvien);\n         nalias_mask &= (env->mideleg | env->mvien);\n+    } else {\n+        if (env->mvien & MIP_SEIP) {\n+            /*\n+             * Bit SEIP in mip is read-only and does not\n+             * include the value of bit 9 of mvip\n+             */\n+            alias_mask &= ~MIP_SEIP;\n+        }\n     }\n \n     /*\n",
    "prefixes": [
        "3/5"
    ]
}