Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2196388/?format=api
{ "id": 2196388, "url": "http://patchwork.ozlabs.org/api/patches/2196388/?format=api", "web_url": "http://patchwork.ozlabs.org/project/opensbi/patch/20260213171359.244248-1-dave.patel@riscstar.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": "<20260213171359.244248-1-dave.patel@riscstar.com>", "list_archive_url": null, "date": "2026-02-13T17:13:59", "name": "paravirt place holder for ecall", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "1207c9695bd79be00275102dfa13fd7cda2bfa56", "submitter": { "id": 92617, "url": "http://patchwork.ozlabs.org/api/people/92617/?format=api", "name": null, "email": "dave.patel@riscstar.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/opensbi/patch/20260213171359.244248-1-dave.patel@riscstar.com/mbox/", "series": [ { "id": 492122, "url": "http://patchwork.ozlabs.org/api/series/492122/?format=api", "web_url": "http://patchwork.ozlabs.org/project/opensbi/list/?series=492122", "date": "2026-02-13T17:13:59", "name": "paravirt place holder for ecall", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/492122/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2196388/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2196388/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=RlAHCzhQ;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n unprotected) header.d=riscstar-com.20230601.gappssmtp.com\n header.i=@riscstar-com.20230601.gappssmtp.com header.a=rsa-sha256\n header.s=20230601 header.b=jHQE9F+l;\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 4fCJgB34lMz1xr1\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 14 Feb 2026 04:14:14 +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 1vqwk4-00000003jD7-1Gps;\n\tFri, 13 Feb 2026 17:14:08 +0000", "from mail-wr1-x431.google.com ([2a00:1450:4864:20::431])\n\tby bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1vqwk2-00000003jCf-0gM7\n\tfor opensbi@lists.infradead.org;\n\tFri, 13 Feb 2026 17:14:07 +0000", "by mail-wr1-x431.google.com with SMTP id\n ffacd0b85a97d-4327790c4e9so888951f8f.2\n for <opensbi@lists.infradead.org>;\n Fri, 13 Feb 2026 09:14:05 -0800 (PST)", "from Dev-EliteBook.Home (97e782b0.skybroadband.com.\n [151.231.130.176])\n by smtp.gmail.com with ESMTPSA id\n ffacd0b85a97d-43796abd259sm6853190f8f.24.2026.02.13.09.14.03\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Fri, 13 Feb 2026 09:14:03 -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:Message-ID:Date:Subject:Cc\n\t:To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:\n\tResent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:\n\tList-Owner; bh=GxXKQMZgRZF/ClfD+x3cDRo6bcYGxXoWhkbl2A7SDhA=; b=RlAHCzhQJvljwv\n\tKyVHH/Ebnb0OUKN/1Up2gK3/wEucfEOE5z7RCZ98VPcWPqM2VqxFGY0n/wbbVVjk8j4NsQpC0/brN\n\thR55YYy5UW7T8XltAguhyw9lPkKtLQfaxL5InaLD5eb7I8p786taqbsh5EGZGBHWiVp7fRyyLZcb9\n\tBzeq19CeXPOVDRAG3JYt/bBm9H1uLAmxn5icM/rrmg3cz0kX/RP1OiGF8F8LdHAbjfNs9G6MLLy+H\n\tB0RKWDBHIxEE7RXT2CPacLg5vkzzSRFz5XqQGNGqq4Mybdwlk53fL92uYKIX5wx/+ch8Y0+f3dpKp\n\tj++GuOlu2ppc2VRVF7ZQ==;", "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=riscstar-com.20230601.gappssmtp.com; s=20230601; t=1771002844;\n x=1771607644; darn=lists.infradead.org;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:from:to:cc:subject:date:message-id:reply-to;\n bh=3Env/s5NPd8ap8n11XTGghpFimOuIGepAKXPSOc5rzo=;\n b=jHQE9F+le8JWHmhQg7mJHCFx0/XxAveudoV/PJAXu/CseGotdWxr4tvOiP1vSTUIZQ\n jRcZMeI4VIneZwE3et/uFeOV8sHSRVH78/GdsjTjYgUabZRx/Op5Qp1+Fe+pfF8DyZG6\n 5hxYpWNN+x9QVAIzJXXpp5vU1mwsRrGmuSczi92e/zlaKTjQ4i0Sifbq2yE+PzkmM2WQ\n ocOIXXrj5InZGS1pUtNkAPfLYb43IxrHPIth89W9Eytq5x/+MHnVApRO7EU+ZK/iQCym\n i584f/DKp5EZd4/BdpxeDnfzOr+gWub7fV5d7F8nVfZg4ay5qVuMLCrlNu+2sLwt9aoc\n VaiA==" ], "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1771002844; x=1771607644;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id:reply-to;\n bh=3Env/s5NPd8ap8n11XTGghpFimOuIGepAKXPSOc5rzo=;\n b=DXZXLRQRkJKHLei/Vxyg/WjvfvktdXMmotv+lUrgDOw3cxiznzgFL/mYYEFnTk8kI3\n +aYId/xrs4inb7LOMJQC9rQ9zPK1142afEEs48e1pul0w96cG7FVaiArYG3czilGfcJ1\n YblgszvxvOxvFu/5PBGWu4k9QHwdSu+jHnXgVCfPIKNLsDTZj0QZctLsDWzsldlRyevm\n BrTkDVC3WBOdVdCB4UofgYoMvCZURgc6J7RJmwuY/90+vulyqVk2OlBgTYcBPxvFSDTV\n l4ntf2WCoCiffPQrDBIAdztn5B9JE0Eq3YfFMY7/qcZZYOhE2TEIew36vDfCavnSgaEL\n 4ySw==", "X-Gm-Message-State": "AOJu0YwVDnqMrbn5WharBOijWXRpeP458WG/MaClelhIZX9HLXWqvBsY\n\tE8wxlOAVNstg9ZYZodlGPayWJpQhHAh97K0BtuSjoUinVyWkXvtsfWOeh9/zCck83R5bzgeK+PL\n\t0nLUA00E=", "X-Gm-Gg": "AZuq6aLmmwzWxwLXk5pCZ/PxPQUMpNqJHz4j8XtJ6noV/hCW8S8V2PE6mfK3igSi/I0\n\tMlFoIwVFpI4EZ0mISBi9L8nDRBZZF6tqiviRPhB4ml/N25M49b7z0yFyVcJE4n55OMz3YrJEtVQ\n\tllqh10eEKa5Ev3lozm9Lql3wWrHK56+CmtpKENWmV2E37EEVqAYI2AwY0SOddKJBRSZKyfqz8Xf\n\t73Mo057FR5wXO/6WVGBdsxl9eMV48RScGFLyL8nqZqcNLjjj+HK4+pcJuXR2euMmruwblAyBp6v\n\tMSr8857yOwj1s8dfundKNcwae1zejPm0KmNb7gmLEija6T2k/6nyn/YjUXDvX50ZZ73QI8O4Ujt\n\tyZmqpXWuMUU+vd5evRbtAKvEkcYWkgltnfGXkaTVzgl5YQNrdnB1mVCL1Wh0NYdYWOFzF++20XP\n\tbmc7p6SR1Bo3rA32cYy7H/Yy40w9/WTMgIY1YX5aS0obNPGSu1c0zoSsbsRJh2W37w5Rg=", "X-Received": "by 2002:a05:6000:26cb:b0:436:307c:b756 with SMTP id\n ffacd0b85a97d-43796afa0d3mr5648547f8f.47.1771002843738;\n Fri, 13 Feb 2026 09:14:03 -0800 (PST)", "From": "dave.patel@riscstar.com", "To": "opensbi@lists.infradead.org", "Cc": "Scott Bambrough <scott@riscstar.com>,\n\tDave Patel <dave.patel@riscstar.com>,\n\tRay Mao <raymond.mao@riscstar.com>,\n\tRobin Randhawa <robin.randhawa@sifive.com>,\n\tAnup Patel <anup.patel@qti.qualcomm.com>,\n\tSamuel Holland <samuel.holland@sifive.com>,\n\tAnup Patel <anuppate@qti.qualcomm.com>,\n\tDhaval <dhaval@rivosinc.com>,\n\tPeter Lin <peter.lin@sifive.com>", "Subject": "[PATCH] paravirt place holder for ecall", "Date": "Fri, 13 Feb 2026 17:13:59 +0000", "Message-ID": "<20260213171359.244248-1-dave.patel@riscstar.com>", "X-Mailer": "git-send-email 2.43.0", "MIME-Version": "1.0", "X-CRM114-Version": "20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ", "X-CRM114-CacheID": "sfid-20260213_091406_224462_191939E7 ", "X-CRM114-Status": "GOOD ( 14.70 )", "X-Spam-Score": "-1.9 (-)", "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: Dave Patel <dave.patel@riscstar.com> Signed-off-by:\n Dave Patel <dave.patel@riscstar.com> --- include/sbi/sbi_ecall_interface.h\n | 2 ++ lib/sbi/Kconfig | 4 +++ lib/sbi/objects.mk | 3 ++\n lib/sbi/sbi_ecall_addn.c\n | 54 +++++++++++++++++++++++ [...]\n Content analysis details: (-1.9 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 [2a00:1450:4864:20:0:0:0:431 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 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 -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": "From: Dave Patel <dave.patel@riscstar.com>\n\nSigned-off-by: Dave Patel <dave.patel@riscstar.com>\n---\n include/sbi/sbi_ecall_interface.h | 2 ++\n lib/sbi/Kconfig | 4 +++\n lib/sbi/objects.mk | 3 ++\n lib/sbi/sbi_ecall_addn.c | 54 +++++++++++++++++++++++++++++++\n 4 files changed, 63 insertions(+)\n create mode 100644 lib/sbi/sbi_ecall_addn.c", "diff": "diff --git a/include/sbi/sbi_ecall_interface.h b/include/sbi/sbi_ecall_interface.h\nindex 76624e3f..5abfee28 100644\n--- a/include/sbi/sbi_ecall_interface.h\n+++ b/include/sbi/sbi_ecall_interface.h\n@@ -38,6 +38,7 @@\n #define SBI_EXT_SSE\t\t\t\t0x535345\n #define SBI_EXT_FWFT\t\t\t\t0x46574654\n #define SBI_EXT_MPXY\t\t\t\t0x4D505859\n+#define SBI_EXT_ADDN\t\t\t\t0x3342634E\n \n /* SBI function IDs for BASE extension*/\n #define SBI_EXT_BASE_GET_SPEC_VERSION\t\t0x0\n@@ -468,6 +469,7 @@ enum sbi_sse_state {\n #define SBI_EXT_MPXY_SEND_MSG_WITH_RESP\t\t0x5\n #define SBI_EXT_MPXY_SEND_MSG_WITHOUT_RESP\t0x6\n #define SBI_EXT_MPXY_GET_NOTIFICATION_EVENTS\t0x7\n+#define MPXY_FUNC_ADD 0x8\n \n /* SBI base specification related macros */\n #define SBI_SPEC_VERSION_MAJOR_OFFSET\t\t24\ndiff --git a/lib/sbi/Kconfig b/lib/sbi/Kconfig\nindex c6cc04bc..e9117046 100644\n--- a/lib/sbi/Kconfig\n+++ b/lib/sbi/Kconfig\n@@ -10,6 +10,10 @@ config SBI_ECALL_TIME\n \tbool \"Timer extension\"\n \tdefault y\n \n+config SBI_ECALL_ADDN\n+\tbool \"Debug ADDN extension\"\n+\tdefault y\n+\n config SBI_ECALL_RFENCE\n \tbool \"RFENCE extension\"\n \tdefault y\ndiff --git a/lib/sbi/objects.mk b/lib/sbi/objects.mk\nindex bfe196c9..3e9d1569 100644\n--- a/lib/sbi/objects.mk\n+++ b/lib/sbi/objects.mk\n@@ -19,6 +19,9 @@ libsbi-objs-y += sbi_ecall_exts.carray.o\n carray-sbi_ecall_exts-$(CONFIG_SBI_ECALL_TIME) += ecall_time\n libsbi-objs-$(CONFIG_SBI_ECALL_TIME) += sbi_ecall_time.o\n \n+carray-sbi_ecall_exts-$(CONFIG_SBI_ECALL_DBCN) += ecall_addn\n+libsbi-objs-$(CONFIG_SBI_ECALL_DBCN) += sbi_ecall_addn.o\n+\n carray-sbi_ecall_exts-$(CONFIG_SBI_ECALL_RFENCE) += ecall_rfence\n libsbi-objs-$(CONFIG_SBI_ECALL_RFENCE) += sbi_ecall_rfence.o\n \ndiff --git a/lib/sbi/sbi_ecall_addn.c b/lib/sbi/sbi_ecall_addn.c\nnew file mode 100644\nindex 00000000..73e7dd53\n--- /dev/null\n+++ b/lib/sbi/sbi_ecall_addn.c\n@@ -0,0 +1,54 @@\n+/* SPDX-License-Identifier: GPL-2.0\n+ *\n+ * Copyright (c) 2026 RISCstar Solutions.\n+ *\n+ * Authors:\n+ * Dave Patel <dave.patel@riscstar.com>\n+ */\n+\n+#include <sbi/sbi_console.h>\n+#include <sbi/sbi_domain.h>\n+#include <sbi/sbi_error.h>\n+#include <sbi/sbi_ecall.h>\n+#include <sbi/sbi_ecall_interface.h>\n+#include <sbi/sbi_trap.h>\n+#include <sbi/riscv_asm.h>\n+#include <sbi/sbi_hart_protection.h>\n+#include <sbi_utils/irqchip/aplic.h>\n+\n+static int sbi_ecall_addn_handler(unsigned long extid,\n+ unsigned long funcid,\n+ struct sbi_trap_regs *regs,\n+ struct sbi_ecall_return *out)\n+{\n+ /*\n+ // This is were the virtirq vlaue is fetched\n+ if (prev_mode == PRV_S && sbi_emulate_irq_read(&irq_val))\n+ return truly_illegal_insn(insn, regs);\n+ */\n+\n+ unsigned long a = regs->a0;\n+ unsigned long b = regs->a1;\n+\n+ unsigned long result = a + b;\n+\n+ out->value = result;\n+\n+ return SBI_SUCCESS;\n+}\n+\n+\n+struct sbi_ecall_extension ecall_addn;\n+\n+static int sbi_ecall_addn_register_extensions(void)\n+{\n+ return sbi_ecall_register_extension(&ecall_addn);\n+}\n+\n+struct sbi_ecall_extension ecall_addn = {\n+ .name = \"addn\",\n+ .extid_start = SBI_EXT_ADDN,\n+ .extid_end = SBI_EXT_ADDN,\n+ .register_extensions = sbi_ecall_addn_register_extensions,\n+ .handle = sbi_ecall_addn_handler,\n+};\n", "prefixes": [] }