{"id":2223457,"url":"http://patchwork.ozlabs.org/api/1.2/covers/2223457/?format=json","web_url":"http://patchwork.ozlabs.org/project/opensbi/cover/20260415110002.2610929-1-anup.patel@oss.qualcomm.com/","project":{"id":67,"url":"http://patchwork.ozlabs.org/api/1.2/projects/67/?format=json","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":"<20260415110002.2610929-1-anup.patel@oss.qualcomm.com>","list_archive_url":null,"date":"2026-04-15T10:59:59","name":"[0/3] Timer events for OpenSBI","submitter":{"id":92322,"url":"http://patchwork.ozlabs.org/api/1.2/people/92322/?format=json","name":"Anup Patel","email":"anup.patel@oss.qualcomm.com"},"mbox":"http://patchwork.ozlabs.org/project/opensbi/cover/20260415110002.2610929-1-anup.patel@oss.qualcomm.com/mbox/","series":[{"id":499967,"url":"http://patchwork.ozlabs.org/api/1.2/series/499967/?format=json","web_url":"http://patchwork.ozlabs.org/project/opensbi/list/?series=499967","date":"2026-04-15T11:00:00","name":"Timer events for OpenSBI","version":1,"mbox":"http://patchwork.ozlabs.org/series/499967/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/covers/2223457/comments/","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=vF2Dv3lD;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n unprotected) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256\n header.s=qcppdkim1 header.b=ocmGCnbU;\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 4fwdTq1M4Bz1yDF\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 15 Apr 2026 21:00:31 +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 1wCxyq-000000010Ww-2Wy8;\n\tWed, 15 Apr 2026 11:00:24 +0000","from mx0a-0031df01.pphosted.com ([205.220.168.131])\n\tby bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1wCxyn-000000010Ve-2Lwp\n\tfor opensbi@lists.infradead.org;\n\tWed, 15 Apr 2026 11:00:22 +0000","from pps.filterd (m0279863.ppops.net [127.0.0.1])\n\tby mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id\n 63F5xTKq2773230;\n\tWed, 15 Apr 2026 11:00:08 GMT","from apblrppmta01.qualcomm.com\n (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19])\n\tby mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4dj50v126r-1\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n\tWed, 15 Apr 2026 11:00:07 +0000 (GMT)","from pps.filterd (APBLRPPMTA01.qualcomm.com [127.0.0.1])\n\tby APBLRPPMTA01.qualcomm.com (8.18.1.7/8.18.1.7) with ESMTP id\n 63FB03jj029579;\n\tWed, 15 Apr 2026 11:00:03 GMT","from pps.reinject (localhost [127.0.0.1])\n\tby APBLRPPMTA01.qualcomm.com (PPS) with ESMTPS id 4dg5d11e7d-1\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n\tWed, 15 Apr 2026 11:00:03 +0000 (GMT)","from APBLRPPMTA01.qualcomm.com (APBLRPPMTA01.qualcomm.com\n [127.0.0.1])\n\tby pps.reinject (8.18.1.12/8.18.1.12) with ESMTP id 63FB03V9029541;\n\tWed, 15 Apr 2026 11:00:03 GMT","from hu-devc-blr-u24-a.qualcomm.com (hu-anuppate-blr.qualcomm.com\n [10.131.36.165])\n\tby APBLRPPMTA01.qualcomm.com (PPS) with ESMTPS id 63FB03Id029529\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n\tWed, 15 Apr 2026 11:00:03 +0000 (GMT)","by hu-devc-blr-u24-a.qualcomm.com (Postfix, from userid 486687)\n\tid D0FC421A6C; Wed, 15 Apr 2026 16:30:02 +0530 (+0530)"],"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=MfZ6TR6Np1HV7e70NoCGoFS8qn2D333tXI8WDpKC++k=; b=vF2Dv3lDecGopf\n\tmI1TRPHBwtxcLi9mIZDjtmAB9/r0Lc4i/jQNh1TqA2Yfhf3R7BejiAW0KcDHOR8foQJeJMSK5mUus\n\tqzM8KwKxtFcu4gGHFF6wygiJzfHc6fFtmGwJDWHyTrwd5yKWmY63o6/D35B6iXrCycRDUReNXfXMF\n\tV5qQztiulAA5yMIsXo9yYbJCZLO7cEwbUhtMbhUg8FMpFL3Eskwh/zhxpCyn6S7qednE4rSUvHyyA\n\t8szEbBTQD0+GKEO0/9gDTn3Z8yiVyW/z8oF/uibgPfXCzWC3VWZ1bs1sR3JxlgWzzfYjhDg/N7H73\n\tXrdfwEdSMFhnmchx5NXg==;","v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h=\n\tcc:content-transfer-encoding:date:from:message-id:mime-version\n\t:subject:to; s=qcppdkim1; bh=P91YyvlpDfyZW49bbaDuic7nuidmewwd1Wv\n\tIVImUMy8=; b=ocmGCnbUgDdvlZjccwACZscb9eAP5tqGE2jvYCMJFijdVwZz+dw\n\tEp4xwkqHZSUaluF9jmYwU6jZHuhNvUpdOm0qPdLC14TSEsh768UARBNLS9gx0KvQ\n\tlEcOX86DTH3IlMa8VbZxF0OYnikxiV1rCXbv7A6z1aXSL2BqM3i6sWbuYpoGTy4o\n\tNVYUlFjLSAodn/Ocfrt/3JgCVcmDAilBCrfhWHWOHU3abOL9k6UMzhFquIsus3yU\n\t7K6CuaTvSQsQE8nExy+5Mcje+ebT+wNhdPT0Jh6XBQ0jqNVJBATa1BStD8xpaCyb\n\ta7bqoGBTRjiP4dtmMABWQsAlnm6QniSxGoA=="],"From":"Anup Patel <anup.patel@oss.qualcomm.com>","To":"Atish Patra <atish.patra@linux.dev>","Cc":"Andrew Jones <andrew.jones@oss.qualcomm.com>,\n        Samuel Holland <samuel.holland@sifive.com>,\n        Anup Patel <anup@brainfault.org>, opensbi@lists.infradead.org,\n        Anup Patel <anup.patel@oss.qualcomm.com>","Subject":"[PATCH 0/3] Timer events for OpenSBI","Date":"Wed, 15 Apr 2026 16:29:59 +0530","Message-ID":"<20260415110002.2610929-1-anup.patel@oss.qualcomm.com>","X-Mailer":"git-send-email 2.43.0","MIME-Version":"1.0","X-QCInternal":["smtphost","smtphost"],"X-Proofpoint-GUID":"aGQiiAYRpIrj5BRfkY8hMBi1aGeOtFRB","X-Authority-Analysis":"v=2.4 cv=eLMjSnp1 c=1 sm=1 tr=0 ts=69df6fb7 cx=c_pps\n a=Ou0eQOY4+eZoSc0qltEV5Q==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17\n a=A5OVakUREuEA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22\n a=yOCtJkima9RkubShWh1s:22 a=NEAV23lmAAAA:8 a=amyLw63ENV4AMvtQeHgA:9","X-Proofpoint-Spam-Details-Enc":"AW1haW4tMjYwNDE1MDEwMSBTYWx0ZWRfX3Y36w9/A8+T5\n qahRu41tBVK9XR9expqflEj2ndfpro2KFWUwcfUiKoboIhEuNpBhfsLtCda6fgR/6z5lpm97G7Z\n lNzUPXuCTjOOaZZQ02J/1Zd1OFh0cvVc1aJvI5iuktiJFPLhnYb3qe8behGvv0OtUhz7cQjKq3Y\n Vfv2YYIKVLaf2msS/C3vuXXP1/FyeWL/yuM+1eyxij/8BVmE0xsieO8OnNiDHikdwJtlDY6v423\n fPbagZRmP7Jcel8OL5F2c5yuMV3k324hyfqthlmkTo5E0VQmvb2qriGPWhJm3M5thh+CxoJRXh8\n mvuadrtzAP+Bs1A1y2Yxp0bBXBTGTjDskii7jO14+c+d8eIyUczD6oRsSCkxXQpEulJvDV5YJzD\n 58ZC5HHeNKtg3v/43n9gI1c/18+lkFNUJ5DNyeNfiiibyJSbg9K4/uRCzYVDnjsuBF5/rEy9rih\n E87NzXoVhYFAk9KU2VA==","X-Proofpoint-ORIG-GUID":"aGQiiAYRpIrj5BRfkY8hMBi1aGeOtFRB","X-Proofpoint-Virus-Version":"vendor=baseguard\n engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49\n definitions=2026-04-14_04,2026-04-13_04,2025-10-01_01","X-Proofpoint-Spam-Details":"rule=outbound_notspam policy=outbound score=0\n adultscore=0 clxscore=1011 bulkscore=0 lowpriorityscore=0 impostorscore=0\n suspectscore=0 malwarescore=0 priorityscore=1501 spamscore=0 phishscore=0\n classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0\n reason=mlx scancount=1 engine=8.22.0-2604070000 definitions=main-2604150101","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20260415_040021_601670_F8D3BBA9 ","X-CRM114-Status":"UNSURE (   8.70  )","X-CRM114-Notice":"Please train this message.","X-Spam-Score":"-2.7 (--)","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:  This series extends the sbi_timer framework to support\n timer\n    events usable from any part of OpenSBI. The platform drivers in OpenSBI\n can\n    use timer events for timeouts or periodic checks. These patches can also\n   be found in sbi_timer_imp_v1 branch at:\n https://github.com/avpatel/opensbi.git    \n Content analysis details:   (-2.7 points, 5.0 required)\n  pts rule name              description\n ---- ----------------------\n --------------------------------------------------\n  0.0 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED RBL: ADMINISTRATOR NOTICE: The\n                             query to Validity was blocked.  See\n                             https://knowledge.validity.com/hc/en-us/articles/20961730681243\n                              for more information.\n                        [205.220.168.131 listed in\n sa-trusted.bondedsender.org]\n  0.0 RCVD_IN_VALIDITY_SAFE_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to\n                              Validity was blocked.  See\n                             https://knowledge.validity.com/hc/en-us/articles/20961730681243\n                              for more information.\n                             [205.220.168.131 listed in\n sa-accredit.habeas.com]\n  0.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to\n                              Validity was blocked.  See\n                             https://knowledge.validity.com/hc/en-us/articles/20961730681243\n                              for more information.\n                           [205.220.168.131 listed in\n bl.score.senderscore.com]\n -0.7 RCVD_IN_DNSWL_LOW      RBL: Sender listed at https://www.dnswl.org/, low\n                             trust\n                             [205.220.168.131 listed in list.dnswl.org]\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             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":"This series extends the sbi_timer framework to support\ntimer events usable from any part of OpenSBI. The platform\ndrivers in OpenSBI can use timer events for timeouts or\nperiodic checks.\n\nThese patches can also be found in sbi_timer_imp_v1 branch\nat: https://github.com/avpatel/opensbi.git\n\nAnup Patel (3):\n  include: sbi: Add sbi_scratch_hartindex() macro\n  lib: sbi_timer: Introduce per-HART timer state\n  lib: sbi_timer: Add support for timer events\n\n include/sbi/sbi_scratch.h  |   6 +-\n include/sbi/sbi_timer.h    |  43 +++++++-\n lib/sbi/sbi_ecall_legacy.c |   4 +-\n lib/sbi/sbi_ecall_time.c   |   4 +-\n lib/sbi/sbi_timer.c        | 221 +++++++++++++++++++++++++++++++------\n 5 files changed, 234 insertions(+), 44 deletions(-)"}