<feed xmlns='http://www.w3.org/2005/Atom'>
<title>opensbi.git/include/sbi/sbi_ecall_interface.h, branch master</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/opensbi.git/atom/include/sbi/sbi_ecall_interface.h?h=master</id>
<link rel='self' href='http://cgit.235523.xyz/opensbi.git/atom/include/sbi/sbi_ecall_interface.h?h=master'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/'/>
<updated>2026-06-10T12:43:10Z</updated>
<entry>
<title>include: sbi: Add SBI MPXY notification related defines</title>
<updated>2026-06-10T12:43:10Z</updated>
<author>
<name>David E. Garcia Porras</name>
<email>david.garcia@aheadcomputing.com</email>
</author>
<published>2026-06-08T12:52:56Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=b6e7c84ae2635f4cd3f951c8d6ea0ddd2aac425a'/>
<id>urn:sha1:b6e7c84ae2635f4cd3f951c8d6ea0ddd2aac425a</id>
<content type='text'>
The SBI MPXY notification header related offsets are missing from the
sbi_ecall_interface.h hence add these defines.

Signed-off-by: David E. Garcia Porras &lt;david.garcia@aheadcomputing.com&gt;
Signed-off-by: Anup Patel &lt;anup.patel@oss.qualcomm.com&gt;
Link: https://lore.kernel.org/r/20260608125257.3220114-5-anup.patel@oss.qualcomm.com
Signed-off-by: Anup Patel &lt;anup@brainfault.org&gt;
</content>
</entry>
<entry>
<title>lib: sbi: Fix undefined behavior in signed shifts in sbi_hart.c</title>
<updated>2026-03-09T06:43:20Z</updated>
<author>
<name>Marcos Oduardo</name>
<email>marcos.oduardo@gmail.com</email>
</author>
<published>2026-02-23T00:11:59Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=2727c43f8dcef9f6a0c3c117e30d00de145bde11'/>
<id>urn:sha1:2727c43f8dcef9f6a0c3c117e30d00de145bde11</id>
<content type='text'>
UBSan detected undefined behavior in sbi_hart.c and sbi_fwft.c (in
the case of sbi_fwft.c, the bug comes from a macro call defined at
sbi_ecall_interface.h) caused by shifting a signed integer into the
sign bit (1 &lt;&lt; 31)

This can be fixed by using the 1UL literal, ensuring defined arithmetic.

Please let me know if there’s any other most suitable solution for
this bug.

Signed-off-by: Marcos Oduardo &lt;marcos.oduardo@gmail.com&gt;
Reviewed-by: Anup Patel &lt;anup@brainfault.org&gt;
Link: https://lore.kernel.org/r/20260223001202.284612-1-marcos.oduardo@gmail.com
Signed-off-by: Anup Patel &lt;anup@brainfault.org&gt;
</content>
</entry>
<entry>
<title>lib: sbi_pmu: Fix xINH bits configuring</title>
<updated>2025-12-01T05:36:36Z</updated>
<author>
<name>Shifrin Dmitry</name>
<email>dmitry.shifrin@syntacore.com</email>
</author>
<published>2025-11-10T11:31:40Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=c9f856e23f61e7ccbd7d8414bb98c45a5f4f04f4'/>
<id>urn:sha1:c9f856e23f61e7ccbd7d8414bb98c45a5f4f04f4</id>
<content type='text'>
Before this patch sbi_pmu_ctr_start() ignores flags received in
sbi_pmu_ctr_cfg_match() including inhibit ones. To prevent it,
save flags together with event_data and use them both in
sbi_pmu_ctr_start().

Fixes: 1db95da2997b ("lib: sbi: sbi_pmu: fixed hw counters start for hart")
Signed-off-by: Shifrin Dmitry &lt;dmitry.shifrin@syntacore.com&gt;
Reviewed-by: Anup Patel &lt;anup@brainfault.org&gt;
Link: https://lore.kernel.org/r/20251110113140.80561-1-dmitry.shifrin@syntacore.com
Signed-off-by: Anup Patel &lt;anup@brainfault.org&gt;
</content>
</entry>
<entry>
<title>lib: sbi: sse: Add support for SSTATUS.SDT</title>
<updated>2025-03-27T12:46:44Z</updated>
<author>
<name>Clément Léger</name>
<email>cleger@rivosinc.com</email>
</author>
<published>2025-03-25T10:26:14Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=3ac49712e3bcfd8d64cd17511e27b7836821e41c'/>
<id>urn:sha1:3ac49712e3bcfd8d64cd17511e27b7836821e41c</id>
<content type='text'>
Similarly to what is done for SPELP, handle SSTATUS.SDT upon event
injection. In order to mimick an interrupt, set SDT to 1 for injection and
save its previous value in interrupted_flags[5:5]. Restore it upon
completion.

Signed-off-by: Clément Léger &lt;cleger@rivosinc.com&gt;
Reviewed-by: Andrew Jones &lt;ajones@ventanamicro.com&gt;
</content>
</entry>
<entry>
<title>lib: sbi: sse: Add support for SSTATUS.SPELP</title>
<updated>2025-03-27T12:46:28Z</updated>
<author>
<name>Clément Léger</name>
<email>cleger@rivosinc.com</email>
</author>
<published>2025-03-25T10:26:13Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=b4464b22e4d3780ad73318af6091cea1d72404d1'/>
<id>urn:sha1:b4464b22e4d3780ad73318af6091cea1d72404d1</id>
<content type='text'>
As raised during the ARC review, SPELP was not handled during the event
injection process. Save it as part of the interrupted flags, clear it
before injecting the event and restore it after completion.

Signed-off-by: Clément Léger &lt;cleger@rivosinc.com&gt;
Reviewed-by: Andrew Jones &lt;ajones@ventanamicro.com&gt;
</content>
</entry>
<entry>
<title>lib: sbi: sse: Rename STATUS* interrupted flags to SSTATUS*</title>
<updated>2025-03-27T12:45:44Z</updated>
<author>
<name>Clément Léger</name>
<email>cleger@rivosinc.com</email>
</author>
<published>2025-03-25T10:26:11Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=41fb89cb295e5b1c454c3e63cc382270b160c2b5'/>
<id>urn:sha1:41fb89cb295e5b1c454c3e63cc382270b160c2b5</id>
<content type='text'>
As raised by Andrew on the kvm-unit-test review, this flags are meant to
hold SSTATUS bits in the specification. Rename them to match that.

Signed-off-by: Clément Léger &lt;cleger@rivosinc.com&gt;
Reviewed-by: Andrew Jones &lt;ajones@ventanamicro.com&gt;
</content>
</entry>
<entry>
<title>lib: sbi: sse: Update SSE event ids</title>
<updated>2025-03-27T12:33:41Z</updated>
<author>
<name>Clément Léger</name>
<email>cleger@rivosinc.com</email>
</author>
<published>2025-03-25T10:26:08Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=601bea45c50664310aaf6470ff27935ca09fe987'/>
<id>urn:sha1:601bea45c50664310aaf6470ff27935ca09fe987</id>
<content type='text'>
The latest specification added new high priority RAS events and renamed
the PMU to PMU_OVERFLOW.

Signed-off-by: Clément Léger &lt;cleger@rivosinc.com&gt;
Reviewed-by: Andrew Jones &lt;ajones@ventanamicro.com&gt;
</content>
</entry>
<entry>
<title>lib: add tests for sbi_ecall functionality</title>
<updated>2025-03-23T11:26:54Z</updated>
<author>
<name>Akshay Behl</name>
<email>akshaybehl231@gmail.com</email>
</author>
<published>2025-03-23T11:18:51Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=0b78665a6c51a7b8b6da31e05590e6fd810d07e2'/>
<id>urn:sha1:0b78665a6c51a7b8b6da31e05590e6fd810d07e2</id>
<content type='text'>
This patch adds unit tests for verifying the sbi_ecall version,
impid handling, and extension registration functions. The tests
ensure that the extension registration and unregistration work
as expected.

Signed-off-by: Akshay Behl &lt;akshaybehl231@gmail.com&gt;
Reviewed-by: Anup Patel &lt;anup@brainfault.org&gt;
</content>
</entry>
<entry>
<title>include: sbi: Add SBI_ERR_DENIED_LOCKED</title>
<updated>2025-02-19T16:40:59Z</updated>
<author>
<name>Clément Léger</name>
<email>cleger@rivosinc.com</email>
</author>
<published>2025-01-24T16:51:56Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=b91ab20cd2419892107e5a6a3d7df6088540d5df'/>
<id>urn:sha1:b91ab20cd2419892107e5a6a3d7df6088540d5df</id>
<content type='text'>
Add SBI_ERR_DENIED_LOCKED and set it as the SBI_LAST_ERR which was
wrongly set to SBI_ERR_BAD_RANGE.

Signed-off-by: Clément Léger &lt;cleger@rivosinc.com&gt;
Reviewed-by: Anup Patel &lt;anup@brainfault.org&gt;
</content>
</entry>
<entry>
<title>lib: sbi: Update MPXY framework and SBI extension as per latest spec</title>
<updated>2025-02-13T05:40:03Z</updated>
<author>
<name>Anup Patel</name>
<email>apatel@ventanamicro.com</email>
</author>
<published>2025-01-21T12:06:29Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=ec09918426a5ccff5de09cd41c3f36d0ad5443f1'/>
<id>urn:sha1:ec09918426a5ccff5de09cd41c3f36d0ad5443f1</id>
<content type='text'>
The latest SBI 3.0 spec defines a new sbi_mpxy_get_shmem_size()
function and simplifies sbi_mpxy_set_shmem() function so update
the MPXY framework and SBI extension accordingly.

Signed-off-by: Anup Patel &lt;apatel@ventanamicro.com&gt;
</content>
</entry>
</feed>
