get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2196414,
    "url": "http://patchwork.ozlabs.org/api/patches/2196414/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/opensbi/patch/20260213190459.2540597-3-raymondmaoca@gmail.com/",
    "project": {
        "id": 67,
        "url": "http://patchwork.ozlabs.org/api/projects/67/?format=api",
        "name": "OpenSBI development",
        "link_name": "opensbi",
        "list_id": "opensbi.lists.infradead.org",
        "list_email": "opensbi@lists.infradead.org",
        "web_url": "https://github.com/riscv/opensbi",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": "https://github.com/riscv/opensbi/commit/{}"
    },
    "msgid": "<20260213190459.2540597-3-raymondmaoca@gmail.com>",
    "list_archive_url": null,
    "date": "2026-02-13T19:04:58",
    "name": "[RFC,2/3] platform: generic: Add sample dts overlay for testing hwirq/domain route rules",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "3f33b0cdba4c299c7d4d83f034cb7cb86c7ebd59",
    "submitter": {
        "id": 91989,
        "url": "http://patchwork.ozlabs.org/api/people/91989/?format=api",
        "name": "Raymond Mao",
        "email": "raymondmaoca@gmail.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/opensbi/patch/20260213190459.2540597-3-raymondmaoca@gmail.com/mbox/",
    "series": [
        {
            "id": 492133,
            "url": "http://patchwork.ozlabs.org/api/series/492133/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/opensbi/list/?series=492133",
            "date": "2026-02-13T19:04:57",
            "name": "VIRQ (Virtual IRQ) layer to support paravirtual interrupt delivery",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/492133/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2196414/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2196414/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.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 secure) header.d=lists.infradead.org header.i=@lists.infradead.org\n header.a=rsa-sha256 header.s=bombadil.20210309 header.b=osm1TCqZ;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20230601 header.b=C+p+WdsS;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=none (no SPF record) smtp.mailfrom=lists.infradead.org\n (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org;\n envelope-from=opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org;\n receiver=patchwork.ozlabs.org)"
        ],
        "Received": [
            "from bombadil.infradead.org (bombadil.infradead.org\n [IPv6:2607:7c80:54:3::133])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fCM7Y1zdSz1xxM\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 14 Feb 2026 06:05:25 +1100 (AEDT)",
            "from localhost ([::1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1vqyTX-00000003pCq-2myl;\n\tFri, 13 Feb 2026 19:05:11 +0000",
            "from mail-qv1-xf32.google.com ([2607:f8b0:4864:20::f32])\n\tby bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1vqyTV-00000003pBh-26Y3\n\tfor opensbi@lists.infradead.org;\n\tFri, 13 Feb 2026 19:05:10 +0000",
            "by mail-qv1-xf32.google.com with SMTP id\n 6a1803df08f44-895071c5527so16158106d6.1\n        for <opensbi@lists.infradead.org>;\n Fri, 13 Feb 2026 11:05:09 -0800 (PST)",
            "from ubuntu.localdomain (174-138-202-16.cpe.distributel.net.\n [174.138.202.16])\n        by smtp.gmail.com with ESMTPSA id\n 6a1803df08f44-8971cd8b1bfsm70420096d6.28.2026.02.13.11.05.07\n        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n        Fri, 13 Feb 2026 11:05:07 -0800 (PST)"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20210309; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:\n\tMessage-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:\n\tResent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n\tList-Owner; bh=5e0C/cdPBRUbp6HPqTRJKerVFIOwRlwsBILxGDfDDpY=; b=osm1TCqZhOHeVf\n\t4OGxGr0xBfqPNATUQV7Nu7u/XRgwfsfClq0fSt1Qx6MABnHIorUUwT9I7xv3HvdDdzP/wA1IxjMsG\n\tZBD9/Fr9k2JDow8aQJJjXHTeA6SNpS7f3EUdDkPLPJhy826bP/tyhkP2VUrcVTNvqmqEAfZ+Y9PQA\n\tjMt6zT0L/MV48QqoaWwwSkUlrQDD9PSn6N5qSWgX5wfxt/QymzSf2tUlhHHkVCMfNoFlpt+xqKG9y\n\txDEYD5gvK+SKeYPjx7I2lei3DyIn5PlqpRTxCAh0kCcmFFG0p0f8OZb2GB0Yi67kwH0MGm5qO7DKu\n\tLLBENGGFlomk/Pr9JuLw==;",
            "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=gmail.com; s=20230601; t=1771009508; x=1771614308;\n darn=lists.infradead.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=sniyK3wcs5gTAY3FkwDMDQQvPdFT0dn3n9/tPeMD4QI=;\n        b=C+p+WdsSdcRdifhIo/+axFutGQ6UPj+USfMLwVGZi+RO7kzJ6vXu68vsQS178d9nMo\n         L9vJHTp2tkMP+4qmhRkSBS/noo1JY+1JAMUiYjfeN1ntAkjrGA+1DmTQKUj2MQTrbcfi\n         wDiy7yVK95GPRYf5Uh4uRdmLkbmKVQK4Wy1t0JGYE2RaU0jCBpGbXMWtMsc7oT/WLF6R\n         K1ip+x4MbYV6u/l7g88dH1dqTjXB33v/bPJv2nH5nLPWmp3wiJsbIcue62kBStaTxBKS\n         RL38VwpDbJtmY3bewIKaOTyCPI2zGn3WChu5AQincPCf4e/+Y8EiH9LMfWMHq9/17cxY\n         +fgQ=="
        ],
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20230601; t=1771009508; x=1771614308;\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=sniyK3wcs5gTAY3FkwDMDQQvPdFT0dn3n9/tPeMD4QI=;\n        b=rf1jhLCfFMYAXSY/O7OcWSrga2zQlslY1Z3MBp+O68GUeoc5oXJuWxCHNLHcttRcEC\n         C1UIzToHrd/h6v9bSZ1KA2YvW9ouy6nGq+G+f3LRzWikQBV1QVnES1eDPGC2Cw5ohsVw\n         +LWHI76hzRSGaNyVJ/WKl4Qr8pMnyEHqrNiocFZxBImVBYtSQwIz68g1DZF9kz+wuZd1\n         xDVP4ytf/N2JiIE4V41kZtO3G+eeB7GK+4mUMzGaHyyuaC07Ty6ekcyoaUwGw+wWmrUM\n         ST87F3CJmwDNEMUAX4Y0v4eypbjlV8q0Xq3p1BDVgeESEzi+tmgXECnmk15ih7NLDB9R\n         X3aA==",
        "X-Gm-Message-State": "AOJu0YyV7BhYl1cDB+leyfrNre4z3g+eAsDK1L/ZBE99EPZ5uVhkducG\n\tmc6UlpKgSp9m2KXI1DnvWOaftyLHZ8LeH5DGw6jOMz68301EqPpC35OdAIwAxw==",
        "X-Gm-Gg": "AZuq6aIzI0ZD5MY3dwDrJzG7yUq/B9gLuruQ8s56/ZfaVjdDg/oeKKmYOk8XeMFN6D9\n\t9y0HkTQH/pmSkwt3tKmdY9Aff2ijCzi6wMMh0eUVZwKzfu5iO9yYwLWoqMBgLmk4C9yCMdCnHfL\n\t7gSpfrOtpyGJgxgX3EgUJL0Au23wl3wAO6LdIWgB/ZFZMJSXSKmyMXvc3C3U7Gp9xmodmQzkevN\n\tKLeu7xtsvh9LdtQZBeCfXYUeFMN0hsyvkEJ2IfMrSfxAN3uAgexLvT04y/3T90dLA82KPpBjO3r\n\t4ZGKtNDSDXMjzxZQiwWefK38cCVfcOhLcd38a090Lnda7Nidget5HpO4ScpYvvKFwzRIcmP4fhY\n\tgwfnYVADT2Z7xggdTPyWnuy1wcsKyczWw5Dt7GWiUxZFDI/nWZ9Xi+8ZCtD24XYv6dtPN7xjAo+\n\tz2vXp6dQ3K3xTzfV/AwaDJwRGQFTqxlPCGAHGDPZT0nzNWonfFFMw6ft0iAagffXQtGOzFCDolV\n\tXiGioORTIo=",
        "X-Received": "by 2002:ac8:7d48:0:b0:4ed:64c1:16ec with SMTP id\n d75a77b69052e-506b3fa5bd8mr7455711cf.23.1771009508118;\n        Fri, 13 Feb 2026 11:05:08 -0800 (PST)",
        "From": "Raymond Mao <raymondmaoca@gmail.com>",
        "To": "opensbi@lists.infradead.org",
        "Cc": "scott@riscstar.com,\n\tdave.patel@riscstar.com,\n\traymond.mao@riscstar.com,\n\trobin.randhawa@sifive.com,\n\tsamuel.holland@sifive.com,\n\tanup.patel@qti.qualcomm.com,\n\tanuppate@qti.qualcomm.com,\n\tdhaval@rivosinc.com,\n\tpeter.lin@sifive.com",
        "Subject": "[PATCH RFC 2/3] platform: generic: Add sample dts overlay for testing\n hwirq/domain route rules",
        "Date": "Fri, 13 Feb 2026 14:04:58 -0500",
        "Message-Id": "<20260213190459.2540597-3-raymondmaoca@gmail.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20260213190459.2540597-1-raymondmaoca@gmail.com>",
        "References": "<20260213190459.2540597-1-raymondmaoca@gmail.com>",
        "MIME-Version": "1.0",
        "X-CRM114-Version": "20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ",
        "X-CRM114-CacheID": "sfid-20260213_110509_548052_4B98180E ",
        "X-CRM114-Status": "GOOD (  12.04  )",
        "X-Spam-Score": "-1.1 (-)",
        "X-Spam-Report": "Spam detection software,\n running on the system \"bombadil.infradead.org\",\n has NOT identified this incoming email as spam.  The original\n message has been attached to this so you can view it or label\n similar future email.  If you have any questions, see\n the administrator of that system for details.\n Content preview:  From: Raymond Mao Add sample dts overlay for testing\n hwirq/domain\n    route rules. Each domain uses property \"opensbi,host-irqs\" to describe one\n    hwirq route rule. 'opensbi,host-irqs = <first_hwirq count> ...;'\n Content analysis details:   (-1.1 points, 5.0 required)\n  pts rule name              description\n ---- ----------------------\n --------------------------------------------------\n -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/, no\n                             trust\n                             [2607:f8b0:4864:20:0:0:0:f32 listed in]\n                             [list.dnswl.org]\n  0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record\n -0.0 SPF_PASS               SPF: sender matches SPF record\n -0.1 DKIM_VALID_AU          Message has a valid DKIM or DK signature from\n author's\n                             domain\n -0.1 DKIM_VALID             Message has at least one valid DKIM or DK\n signature\n  0.1 DKIM_SIGNED            Message has a DKIM or DK signature,\n not necessarily valid\n -0.1 DKIM_VALID_EF          Message has a valid DKIM or DK signature from\n                             envelope-from domain\n -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n                             [score: 0.0000]\n  0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail\n provider\n                             [raymondmaoca(at)gmail.com]\n  1.0 FORGED_GMAIL_RCVD      'From' gmail.com does not match 'Received'\n headers",
        "X-BeenThere": "opensbi@lists.infradead.org",
        "X-Mailman-Version": "2.1.34",
        "Precedence": "list",
        "List-Id": "<opensbi.lists.infradead.org>",
        "List-Unsubscribe": "<http://lists.infradead.org/mailman/options/opensbi>,\n <mailto:opensbi-request@lists.infradead.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.infradead.org/pipermail/opensbi/>",
        "List-Post": "<mailto:opensbi@lists.infradead.org>",
        "List-Help": "<mailto:opensbi-request@lists.infradead.org?subject=help>",
        "List-Subscribe": "<http://lists.infradead.org/mailman/listinfo/opensbi>,\n <mailto:opensbi-request@lists.infradead.org?subject=subscribe>",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Sender": "\"opensbi\" <opensbi-bounces@lists.infradead.org>",
        "Errors-To": "opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org"
    },
    "content": "From: Raymond Mao <raymond.mao@riscstar.com>\n\nAdd sample dts overlay for testing hwirq/domain route rules.\nEach domain uses property \"opensbi,host-irqs\" to describe one hwirq\nroute rule.\n  'opensbi,host-irqs = <first_hwirq count> ...;'\n\nDuring cold boot, route rules are converted and cached for VIRQ\nrouting/couriering purpose.\n\nUsage:\n1. Compile the overlay.\n   $ dtc -@ -I dts -O dtb -o hwirq_bind_domain.dto \\\n         platform/generic/virt/hwirq_bind_domain.dts\n2. Dump the base dtb from QEMU.\n   $ qemu-system-riscv64 -M virt,aia=aplic-imsic -cpu rv64,zkr=on -m 4096 \\\n         -nographic -bios out/platform/generic/firmware/fw_jump.bin \\\n         -machine dumpdtb=qemu.dtb\n3. Apply the overlay on the base.\n   $ fdtoverlay -i qemu.dtb -o qemu_merge.dtb hwirq_bind_domain.dto\n4. Re-run QEMU with adding argument '-dtb qemu_merge.dtb'\n\nSigned-off-by: Raymond Mao <raymond.mao@riscstar.com>\n---\n platform/generic/virt/hwirq_bind_domain.dts | 79 +++++++++++++++++++++\n 1 file changed, 79 insertions(+)\n create mode 100644 platform/generic/virt/hwirq_bind_domain.dts",
    "diff": "diff --git a/platform/generic/virt/hwirq_bind_domain.dts b/platform/generic/virt/hwirq_bind_domain.dts\nnew file mode 100644\nindex 00000000..b836901e\n--- /dev/null\n+++ b/platform/generic/virt/hwirq_bind_domain.dts\n@@ -0,0 +1,79 @@\n+/dts-v1/;\n+/plugin/;\n+\n+/ {\n+\t/*\n+\t * Fragment 0: OpenSBI domain configuration under /chosen\n+\t */\n+\tfragment@0 {\n+\t\ttarget-path = \"/chosen\";\n+\t\t__overlay__ {\n+\t\t\topensbi-domains {\n+\t\t\t\tcompatible = \"opensbi,domain,config\";\n+\n+\t\t\t\t/*\n+\t\t\t\t * DRAM region for domain1 (2GB from 0x8000_0000).\n+\t\t\t\t * base is 64-bit: <hi lo>, order is log2(size).\n+\t\t\t\t */\n+\t\t\t\tmemregion_dram_2g: memregion_dram_2g {\n+\t\t\t\t\tcompatible = \"opensbi,domain,memregion\";\n+\t\t\t\t\tbase  = <0x0 0x80000000>;\n+\t\t\t\t\torder = <31>;\n+\t\t\t\t};\n+\n+\t\t\t\t/*\n+\t\t\t\t * UART MMIO region so S-mode payload can access UART registers\n+\t\t\t\t * without fault. 0x1000_0000 size 4KB.\n+\t\t\t\t */\n+\t\t\t\tuart0_mmio: memregion_uart0 {\n+\t\t\t\t\tcompatible = \"opensbi,domain,memregion\";\n+\t\t\t\t\tbase  = <0x0 0x10000000>;\n+\t\t\t\t\torder = <12>;\n+\t\t\t\t};\n+\n+\t\t\t\t/*\n+\t\t\t\t * Domain instance:\n+\t\t\t\t * - possible-harts = <cpu0 phandle> (your cpu@0 phandle is 1)\n+\t\t\t\t * - regions use label references (fdtoverlay will fixup phandles)\n+\t\t\t\t * - opensbi,host-irqs uses <first count> pairs (NO chip phandle)\n+\t\t\t\t */\n+\t\t\t\tdomain1: domain1 {\n+\t\t\t\t\tcompatible = \"opensbi,domain,instance\";\n+\n+\t\t\t\t\t/* cpu@0 phandle in your base qemu dtb is 1 */\n+\t\t\t\t\tpossible-harts = <0x1>;\n+\n+\t\t\t\t\t/*\n+\t\t\t\t\t * Keep permissive for test.\n+\t\t\t\t\t * access=0x3f: enable all M+SU R/W/X flags (test only).\n+\t\t\t\t\t */\n+\t\t\t\t\tregions = <&memregion_dram_2g 0x3f>,\n+\t\t\t\t\t\t  <&uart0_mmio 0x3f>;\n+\n+\t\t\t\t\t/*\n+\t\t\t\t\t * Route rule: Bind host HWIRQs ranges to this domain.\n+\t\t\t\t\t * Format: <first_hwirq count> ...\n+\t\t\t\t\t * If no route rule matches, HWIRQs default to root domain.\n+\t\t\t\t\t *\n+\t\t\t\t\t * UART RX is hwirq=10 on QEMU virt:\n+\t\t\t\t\t *   fdtget -t i qemu_merge.dtb /soc/serial@10000000 interrupts\n+\t\t\t\t\t *     => \"10 4\"\n+\t\t\t\t\t *\n+\t\t\t\t\t * Start with only <10 1> for clean bring-up.\n+\t\t\t\t\t */\n+\t\t\t\t\topensbi,host-irqs = <10 1>;\n+\t\t\t\t};\n+\t\t\t};\n+\t\t};\n+\t};\n+\n+\t/*\n+\t * Fragment 1: Assign cpu0 to domain1 using label reference\n+\t */\n+\tfragment@1 {\n+\t\ttarget-path = \"/cpus/cpu@0\";\n+\t\t__overlay__ {\n+\t\t\topensbi-domain = <&domain1>;\n+\t\t};\n+\t};\n+};\n\\ No newline at end of file\n",
    "prefixes": [
        "RFC",
        "2/3"
    ]
}