get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2221496,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2221496/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/opensbi/patch/20260409145716.2611852-2-david.garcia@aheadcomputing.com/",
    "project": {
        "id": 67,
        "url": "http://patchwork.ozlabs.org/api/1.1/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": ""
    },
    "msgid": "<20260409145716.2611852-2-david.garcia@aheadcomputing.com>",
    "date": "2026-04-09T14:57:15",
    "name": "[1/2] lib: sbi_mpxy: Enable MPXY channel MSI availability determination",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "96ce9f6ec7ca9cce03cdf253f2141a329871d89f",
    "submitter": {
        "id": 92994,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/92994/?format=api",
        "name": "David E. Garcia Porras",
        "email": "david.garcia@aheadcomputing.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/opensbi/patch/20260409145716.2611852-2-david.garcia@aheadcomputing.com/mbox/",
    "series": [
        {
            "id": 499310,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/499310/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/opensbi/list/?series=499310",
            "date": "2026-04-09T14:57:14",
            "name": "MPXY MSI availability and RPMI notification updates",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/499310/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2221496/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2221496/checks/",
    "tags": {},
    "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=DW/mzsvr;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n unprotected) header.d=aheadcomputing.com header.i=@aheadcomputing.com\n header.a=rsa-sha256 header.s=selector1 header.b=gvcwCGcO;\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 4fs32K0tDrz1yD3\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 10 Apr 2026 00:57:45 +1000 (AEST)",
            "from localhost ([::1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1wAqp7-0000000AkN5-46Mu;\n\tThu, 09 Apr 2026 14:57:37 +0000",
            "from mail-westus2azlp170120002.outbound.protection.outlook.com\n ([2a01:111:f403:c007::2] helo=MW6PR02CU001.outbound.protection.outlook.com)\n\tby bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1wAqp5-0000000AkLv-2SEu\n\tfor opensbi@lists.infradead.org;\n\tThu, 09 Apr 2026 14:57:36 +0000",
            "from CH2PR03CA0008.namprd03.prod.outlook.com (2603:10b6:610:59::18)\n by BL1PPFAA7FD2635.namprd22.prod.outlook.com (2603:10b6:20f:fc04::f43) with\n Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9769.15; Thu, 9 Apr\n 2026 14:57:27 +0000",
            "from CH3PEPF0000000D.namprd04.prod.outlook.com\n (2603:10b6:610:59:cafe::6f) by CH2PR03CA0008.outlook.office365.com\n (2603:10b6:610:59::18) with Microsoft SMTP Server (version=TLS1_3,\n cipher=TLS_AES_256_GCM_SHA384) id 15.20.9769.40 via Frontend Transport; Thu,\n 9 Apr 2026 14:57:27 +0000",
            "from mail.aheadcomputing.com (50.45.236.54) by\n CH3PEPF0000000D.mail.protection.outlook.com (10.167.244.43) with Microsoft\n SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9745.21\n via Frontend Transport; Thu, 9 Apr 2026 14:57:27 +0000",
            "from davidAhead.lan (unknown [10.8.0.20])\n\tby mail.aheadcomputing.com (Postfix) with ESMTP id 09DDA80AAA;\n\tThu,  9 Apr 2026 07:57:25 -0700 (PDT)"
        ],
        "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=LZzXakTNVgkaowJH17ZwK9BD3p7wLHTkHE47B9hJtns=; b=DW/mzsvrHi5vyH\n\tq2iWxehEsQS+CjNMM5LGFJ8BQSmtZqplnwyV1rdU1ANJfZU5JoDCoki/XQU5uNLecFr7QB7zWxKPU\n\t2oepF3OzqYL+QL5HgAlyIWBOYHzMFOblrsmo2cxFyhJAuW0kEhd5jnlYgGmYa/fpuR8xRdsIVXhwi\n\tBEw6z/k+pDKX8jJ2HzUXBvww+hro6CW3o9HBn/N5VcTrGdAbt1rBVwEzSNU0ebLFLWFA7qL2y+Xq3\n\tX3PDP+9gt2dqT8dHYKZMmazgqDtMsJhnQfT+2/XravM3A+3dPdNvMDJupqVVtQnmFzsHfYiiRYTVl\n\tErg7W+/XAWFhbLrOt5uw==;",
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=aheadcomputing.com;\n s=selector1;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n bh=NfE7BfuuM8827ErVFI0GZyGqnOyhgG8j5KJFpG1bZ0s=;\n b=gvcwCGcOKL7JO4AKCOLuTRd3JfhKKhS1JaGZSISdOk/QhlChMyCi2HCosbBPN23yg4nhc8cI2N3YxF1ZvgUpoQu++6lYQ0e6RGYe+uS2zipqOerpVcC9DAzf39zWuWE4VXcAIs8STDeN2QM70M0YWpcJfyRA2B1sDm3y/vpq+vlcLCKjDOZpCQcIWFkWoXGFt1iRq5R76E2dSw/MahOuuveIefPqAqo9ch24Grs3qTpyjj2L4RG1+ekVAghW1oh3k5n9iBFJYOaiAFKOQYEXHPTgpmordy2S0py/OdQo0AymCe9PLtA1wntAjVVEacRH8dRi2lbzn3Scp3/GjR2FUA=="
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none;\n b=aZFI0pTi3cCkwuuIMk5krlCsYkDnf/fOTJ/3PEk0FKUx2/upD0eyrXXceDtp3DEqFU2FtUvRx13zkUt3c95e6Wm//HlCBPK4cBV0wuwNlsS1PKnwRJwspdTpyWJJcy3YuEpbaOISkSxaHr/grjkaV40cO4D/0FTOAHFwduzXyuAdnxUbQWoRGSVdmFx/lcslW54l82Xi8RIWcrCavS5kinlA583hd5RcMzjtTc/sNDK7bWkNuGBtBILjrTGqcFI8NMJuRbqp0fqmlQu66Rx2SQnk7MjLwzdGwCLfcaT/k8u5rtwtbKi1xKCHtwAsCqKo3j5wfm9Tp4mpp+q3sdB49A==",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;\n s=arcselector10001;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;\n bh=NfE7BfuuM8827ErVFI0GZyGqnOyhgG8j5KJFpG1bZ0s=;\n b=pUtkrwEHs6c1YWvdkjF0shp4TefAw7+7UuFM7W1kSFTPkKlPRNxLt1sc34eKvFNl6rty8jbqnUaPXqA3DZsyffJ7uzLFip1UWPs53lSe4WQKHuOeZIxVD6D6QAULwiqwH2Zs92j4eeNNdLb4HoNcPWs1W33JOxm9k/3I/oijtXaieTCLHXqpL2A+H9nXMSbftBsWaRx97R3tMQu45tNlDNN27yJUjNhbscJ5eaPAvW+hZEIezd0FETzwNfupI4lIGEF8QxBX6+c1Cm1wpePhpZflpo2UnhkP3J8EiTPH8FodBJ3C//JgfTNjKtkewDyElyfYNqpZ8YpRQtXzOZzHlQ==",
        "ARC-Authentication-Results": "i=1; mx.microsoft.com 1; spf=fail (sender ip is\n 50.45.236.54) smtp.rcpttodomain=aheadcomputing.com\n smtp.mailfrom=aheadcomputing.com; dmarc=fail (p=none sp=none pct=100)\n action=none header.from=aheadcomputing.com; dkim=none (message not signed);\n arc=none (0)",
        "X-MS-Exchange-Authentication-Results": "spf=fail (sender IP is 50.45.236.54)\n smtp.mailfrom=aheadcomputing.com; dkim=none (message not signed)\n header.d=none;dmarc=fail action=none header.from=aheadcomputing.com;",
        "Received-SPF": "Fail (protection.outlook.com: domain of aheadcomputing.com does\n not designate 50.45.236.54 as permitted sender)\n receiver=protection.outlook.com; client-ip=50.45.236.54;\n helo=mail.aheadcomputing.com;",
        "From": "\"David E. Garcia Porras\" <david.garcia@aheadcomputing.com>",
        "To": "opensbi@lists.infradead.org",
        "Cc": "\"David E. Garcia Porras\" <david.garcia@aheadcomputing.com>",
        "Subject": "[PATCH 1/2] lib: sbi_mpxy: Enable MPXY channel MSI availability\n determination",
        "Date": "Thu,  9 Apr 2026 08:57:15 -0600",
        "Message-ID": "<20260409145716.2611852-2-david.garcia@aheadcomputing.com>",
        "X-Mailer": "git-send-email 2.43.0",
        "In-Reply-To": "<20260409145716.2611852-1-david.garcia@aheadcomputing.com>",
        "References": "<20260409145716.2611852-1-david.garcia@aheadcomputing.com>",
        "MIME-Version": "1.0",
        "X-EOPAttributedMessage": "0",
        "X-MS-PublicTrafficType": "Email",
        "X-MS-TrafficTypeDiagnostic": "CH3PEPF0000000D:EE_|BL1PPFAA7FD2635:EE_",
        "X-MS-Office365-Filtering-Correlation-Id": "46232891-7368-45e7-55b0-08de964850fb",
        "X-MS-Exchange-AtpMessageProperties": "SA",
        "X-MS-Exchange-SenderADCheck": "1",
        "X-MS-Exchange-AntiSpam-Relay": "0",
        "X-Microsoft-Antispam": "\n BCL:0;ARA:13230040|1800799024|36860700016|82310400026|376014|22082099003|18002099003|56012099003|55112099003;",
        "X-Microsoft-Antispam-Message-Info": "\n oT1wp/9Zrf5d0KObSpXr69dA5wQDBUVjRaC9U8QpyELqQUDMPQTvPujUFwi6xdFw6YeBuy16JkMlR73DjEBy66bJXgbCYM4+x9l5Eoghz2n7WkcnwZM8TGylxeLF8Nu+4yXR0/BncZ7tjmVceP72USCgq1M/zeGjGPA4CRf0Bpv+/e23BeWkIB7DvCJfIGhpywKtuCKtjDNOlEKwtFValr+NZM+XrmxIulfewX/Yy47Owoxr6wiMvfme4tA4hY31vUsjceCQt6UdM2DJQd6A8EDWwmjB+D6JVLFBIKIHrVwpLz74t9tv4SyTcz51TLFhK/+ReDnVsUMR5BG8Gf78t50PMRNKPupUlpWnIUZlAQTmCmwbDOH4Q6qQ/MKJuhNWEIdz2ZuRlvxn7BFd9M7hRvcym3io/niTo3duY2CokWOwZ3CHU26zs1DznxMncvza0dgZjDe0fInAPjsyLjIcmy1d40EDgX34lXiqEMTiu6GVMDpHBoZR0TToTMrYXWW6YSLJzCoYy8mCTCwOuqOPQLzSgq631Zw/mkc+1E+2lpCcvuPof1Q1n3sKH0+oYrv65xNcUxCjlq8tasz3pIB5zD1lQ1M1GkuNFfgOVhy8bxBLfTlj7N7D3U2xUaMVbyOmEu3fqwcZVAOBfaHT6xbqAyrseG2/CjZK8O2xE5u1deinEPAcYSIHz+b2nwjZ+nUVs2YFIHB0al6qsr0hON57K4z/RpbhhyQz6WoWbmBnkzA1N11Z0sB07TYLZmsWE2A872UlmW954N2n4SlYu/ATIQ==",
        "X-Forefront-Antispam-Report": "\n CIP:50.45.236.54;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.aheadcomputing.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(1800799024)(36860700016)(82310400026)(376014)(22082099003)(18002099003)(56012099003)(55112099003);DIR:OUT;SFP:1102;",
        "X-MS-Exchange-AntiSpam-MessageData-ChunkCount": "1",
        "X-MS-Exchange-AntiSpam-MessageData-0": "\n c8QpK8uVpPEaOi/YdukvrbhZscPTzcIE4p4S+siZ4bnZuCDNudxYJ4olv+9EjUxIjF8hQG2iQDqIjRAkVecauQzWbqAdFxyxsoYsXPME5R5Ve4XQu2bsMk7EvDvhJPldQkdKa3lBHbuEThWuxhs0wpb5U1aFrHrWIjcZzTy0vbl/9pp9ATsZCCN84L3nAHf5B5msN9kQkiXHb5z5vh5S17we55Mv1qZO59PkAgioZpKTOwN6lf5PsnCTwvxHx1k2hYdrtaUI8kkVm8RfScK8Q1FJa0AU6Arkr+TDyf1HICr6jCyKExpxUApmt14CzChy6MItGp8RVWETTL0yn1YHCRDzEd62wHCghRoBJ+aBXFlObNN6udtG3gFgfK76SHsBs+aesGTIMpQ7w/43/I7I/Z5dm9GdDrkJoKcabPTEdgAVbxH5xXEX+jAdxq9+becY",
        "X-OriginatorOrg": "aheadcomputing.com",
        "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "09 Apr 2026 14:57:27.2582\n (UTC)",
        "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n 46232891-7368-45e7-55b0-08de964850fb",
        "X-MS-Exchange-CrossTenant-Id": "53cf747c-7b8f-4d06-8b1e-b22383a3fabf",
        "X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp": "\n TenantId=53cf747c-7b8f-4d06-8b1e-b22383a3fabf;Ip=[50.45.236.54];Helo=[mail.aheadcomputing.com]",
        "X-MS-Exchange-CrossTenant-AuthSource": "\n CH3PEPF0000000D.namprd04.prod.outlook.com",
        "X-MS-Exchange-CrossTenant-AuthAs": "Anonymous",
        "X-MS-Exchange-CrossTenant-FromEntityHeader": "HybridOnPrem",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "BL1PPFAA7FD2635",
        "X-CRM114-Version": "20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ",
        "X-CRM114-CacheID": "sfid-20260409_075735_624145_D12C2414 ",
        "X-CRM114-Status": "GOOD (  10.91  )",
        "X-Spam-Score": "-2.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:  Use imsic_get_data() to determine MSI availability for each\n    MPXY channel based on IMSIC presence per hart, instead of unconditionally\n    disabling it. Add a static inline stub for imsic_get_data() when\n CONFIG_IRQCHIP_IMSIC\n    is not enabled.\n Content analysis details:   (-2.1 points, 5.0 required)\n  pts rule name              description\n ---- ----------------------\n --------------------------------------------------\n -0.0 SPF_PASS               SPF: sender matches SPF record\n  0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record\n -0.1 DKIM_VALID_EF          Message has a valid DKIM or DK signature from\n                             envelope-from domain\n  0.1 DKIM_SIGNED            Message has a DKIM or DK signature,\n not necessarily valid\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 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n                             [score: 0.0000]",
        "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": "Use imsic_get_data() to determine MSI availability for each MPXY\nchannel based on IMSIC presence per hart, instead of unconditionally\ndisabling it.\n\nAdd a static inline stub for imsic_get_data() when CONFIG_IRQCHIP_IMSIC\nis not enabled.\n\nSigned-off-by: David E. Garcia Porras <david.garcia@aheadcomputing.com>\n---\n include/sbi_utils/irqchip/imsic.h | 2 ++\n lib/sbi/sbi_mpxy.c                | 8 ++++----\n 2 files changed, 6 insertions(+), 4 deletions(-)",
    "diff": "diff --git a/include/sbi_utils/irqchip/imsic.h b/include/sbi_utils/irqchip/imsic.h\nindex 88dd3cfb..68f3c4ad 100644\n--- a/include/sbi_utils/irqchip/imsic.h\n+++ b/include/sbi_utils/irqchip/imsic.h\n@@ -54,6 +54,8 @@ static inline void imsic_local_irqchip_init(void) { }\n \n static inline int imsic_data_check(struct imsic_data *imsic) { return 0; }\n \n+static inline struct imsic_data *imsic_get_data(u32 hartindex) { return NULL; }\n+\n #endif\n \n #endif\ndiff --git a/lib/sbi/sbi_mpxy.c b/lib/sbi/sbi_mpxy.c\nindex a83cf16c..8ff52bb6 100644\n--- a/lib/sbi/sbi_mpxy.c\n+++ b/lib/sbi/sbi_mpxy.c\n@@ -20,6 +20,7 @@\n #include <sbi/sbi_bitops.h>\n #include <sbi/sbi_console.h>\n #include <sbi/sbi_byteorder.h>\n+#include <sbi_utils/irqchip/imsic.h>\n \n /** Shared memory size across all harts */\n static unsigned long mpxy_shmem_size = PAGE_SIZE;\n@@ -255,11 +256,10 @@ static int domain_mpxy_state_data_setup(struct sbi_domain *dom,\n \t\t\treturn SBI_ENOMEM;\n \n \t\t/*\n-\t\t * TODO: Proper support for checking msi support from\n-\t\t * platform. Currently disable msi and sse and use\n-\t\t * polling\n+\t\t * TODO: Proper support for checking sse support from\n+\t\t * platform. Currently disable sse and use polling\n \t\t */\n-\t\tms->msi_avail = false;\n+\t\tms->msi_avail = !!imsic_get_data(i);\n \t\tms->sse_avail = false;\n \n \t\tsbi_mpxy_shmem_disable(ms);\n",
    "prefixes": [
        "1/2"
    ]
}