<feed xmlns='http://www.w3.org/2005/Atom'>
<title>opensbi.git/include/sbi/sbi_platform.h, branch v0.6</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/opensbi.git/atom/include/sbi/sbi_platform.h?h=v0.6</id>
<link rel='self' href='http://cgit.235523.xyz/opensbi.git/atom/include/sbi/sbi_platform.h?h=v0.6'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/'/>
<updated>2020-02-05T05:07:11Z</updated>
<entry>
<title>platform: Add an platform ops to return platform specific tlb flush limit</title>
<updated>2020-02-05T05:07:11Z</updated>
<author>
<name>Atish Patra</name>
<email>atish.patra@wdc.com</email>
</author>
<published>2020-02-04T23:09:14Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=d79173b4b7519b537cf64c984d27daa26aad23c0'/>
<id>urn:sha1:d79173b4b7519b537cf64c984d27daa26aad23c0</id>
<content type='text'>
If a platform requires to perform a tlb full flush, they should set
the tlb_range_flush_limit value to zero. However, corresponding platform
API ignore the value and continue to return the default value.

Add a platform ops to retrieve platform specific tlb range flush limit.
The platform variable becomes redundant in presence of the platform ops.
Take this opportunity to remove the variable as well.

The default is still set to smallest page size in RISC-V (4KB), as there
is no way to figure out a best value for all platforms. Individual platform
should set it to the optimal value for their platform.

Signed-off-by: Atish Patra &lt;atish.patra@wdc.com&gt;
Reviewed-by: Anup Patel &lt;anup.patel@wdc.com&gt;
</content>
</entry>
<entry>
<title>lib: Add irqchip exit API</title>
<updated>2020-01-07T06:41:19Z</updated>
<author>
<name>Anup Patel</name>
<email>anup.patel@wdc.com</email>
</author>
<published>2020-01-03T04:21:58Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=1993182f032b71a4d16e39bff12c142dd25dd67e'/>
<id>urn:sha1:1993182f032b71a4d16e39bff12c142dd25dd67e</id>
<content type='text'>
We add an optional platform irqchip exit hook for exit path handling
in sbi_exit() implementation.

Signed-off-by: Anup Patel &lt;anup.patel@wdc.com&gt;
Reviewed-by: Atish Patra &lt;atish.patra@wdc.com&gt;
</content>
</entry>
<entry>
<title>lib: Add ipi exit API</title>
<updated>2020-01-07T06:41:02Z</updated>
<author>
<name>Anup Patel</name>
<email>anup.patel@wdc.com</email>
</author>
<published>2020-01-03T04:09:10Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=b325f6baefeafcee169e5f8a529882fdc0f47dc5'/>
<id>urn:sha1:b325f6baefeafcee169e5f8a529882fdc0f47dc5</id>
<content type='text'>
We add sbi_ipi_exit() API for exit path handling in sbi_exit()
implementation.

Signed-off-by: Anup Patel &lt;anup.patel@wdc.com&gt;
Reviewed-by: Atish Patra &lt;atish.patra@wdc.com&gt;
</content>
</entry>
<entry>
<title>lib: Add timer exit API</title>
<updated>2020-01-07T06:40:55Z</updated>
<author>
<name>Anup Patel</name>
<email>anup.patel@wdc.com</email>
</author>
<published>2020-01-03T03:48:42Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=6469ed101cb3c036cce1ead0d64160a7315f72af'/>
<id>urn:sha1:6469ed101cb3c036cce1ead0d64160a7315f72af</id>
<content type='text'>
We add sbi_timer_exit() API for OpenSBI exit path handling in
sbi_exit() implementation.

Signed-off-by: Anup Patel &lt;anup.patel@wdc.com&gt;
Reviewed-by: Atish Patra &lt;atish.patra@wdc.com&gt;
</content>
</entry>
<entry>
<title>lib: Add system early_exit and final_exit APIs</title>
<updated>2020-01-07T06:40:48Z</updated>
<author>
<name>Anup Patel</name>
<email>anup.patel@wdc.com</email>
</author>
<published>2020-01-03T03:40:41Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=55e191e3b09c4979212c592a4e86e0f561ce1f97'/>
<id>urn:sha1:55e191e3b09c4979212c592a4e86e0f561ce1f97</id>
<content type='text'>
This patch adds system-level early_exit and final_exit APIs
with corresponding platform hooks. These new APIs will be
primarily used by sbi_exit() in OpenSBI exit path.

Signed-off-by: Anup Patel &lt;anup.patel@wdc.com&gt;
Reviewed-by: Atish Patra &lt;atish.patra@wdc.com&gt;
</content>
</entry>
<entry>
<title>include: sbi_platform: fix compilation for GCC-9</title>
<updated>2019-12-05T21:45:50Z</updated>
<author>
<name>Martin Pietryka</name>
<email>martin@pietryka.at</email>
</author>
<published>2019-12-04T06:25:51Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=dc40042322fecd0c3eec90fcf4528f211ee2fa58'/>
<id>urn:sha1:dc40042322fecd0c3eec90fcf4528f211ee2fa58</id>
<content type='text'>
GCC-9 will throw a warning when using the %s format specifier with a
possible NULL parameter and since -Werror is used, the compilation breaks
for GCC-9.

In function 'sbi_boot_prints',
    inlined from 'init_coldboot' at &lt;redacted&gt;/opensbi/lib/sbi/sbi_init.c:107:3,
    inlined from 'sbi_init' at &lt;redacted&gt;/opensbi/lib/sbi/sbi_init.c:189:3:
&lt;redacted&gt;/opensbi/lib/sbi/sbi_init.c:56:2: error: '%s' directive argument is null [-Werror=format-overflow=]
   56 |  sbi_printf("Platform Name          : %s\n", sbi_platform_name(plat));
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors

This is one way to fix this, currently there is nothing in the tree
checking for `sbi_platfrom_name() == NULL` so we can just return "Unknown"
instead of NULL on failure.

Signed-off-by: Martin Pietryka &lt;martin@pietryka.at&gt;
Reviewed-by: Anup Patel &lt;anup.patel@wdc.com&gt;
Tested-by: David Abdurachmanov &lt;david.abdurachmanov@sifive.com&gt;
</content>
</entry>
<entry>
<title>lib: Fix CPU capabilities detection function</title>
<updated>2019-11-26T10:36:29Z</updated>
<author>
<name>Xiang Wang</name>
<email>merle@hardenedlinux.org</email>
</author>
<published>2019-11-26T10:36:29Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=c96cc03fcc2723fa007b65e5ae6fe2673ea41413'/>
<id>urn:sha1:c96cc03fcc2723fa007b65e5ae6fe2673ea41413</id>
<content type='text'>
On some platforms, misa may not be implemented. On such a platform,
reading misa will get 0. At this time, platform is required to
implement a non-standard function to detect the CPU's capabilities.
Therefore, this modification add interfaces for non-standard function.

The MXL field of misa is always at the highest two bits, whether it
is a 32-bit 64-bit or a 128-bit machine. Therefore, this modification
fixes the use of a fixed offset to detect the machine length.

Signed-off-by: Xiang Wang &lt;merle@hardenedlinux.org&gt;
Signed-off-by: Anup Patel &lt;anup.patel@wdc.com&gt;
</content>
</entry>
<entry>
<title>lib: Simplify trap parameters in sbi_ecall functions</title>
<updated>2019-11-21T08:28:14Z</updated>
<author>
<name>Anup Patel</name>
<email>anup.patel@wdc.com</email>
</author>
<published>2019-11-17T09:55:41Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=75f903dd78e2419057d04e14d6720fde764cbf78'/>
<id>urn:sha1:75f903dd78e2419057d04e14d6720fde764cbf78</id>
<content type='text'>
The out_tcause and out_tval parameters are not sufficient for most
sbi_ecall functions because this will grow in-future when we support
RISC-V hypervisor v0.5 draft. We replace these parameters with out_trap
which is a pointer to struct sbi_trap_info.

Signed-off-by: Anup Patel &lt;anup.patel@wdc.com&gt;
Reviewed-by: Atish Patra &lt;atish.patra@wdc.com&gt;
</content>
</entry>
<entry>
<title>lib: Provide a platform hook to implement vendor specific SBI extensions.</title>
<updated>2019-10-03T03:28:51Z</updated>
<author>
<name>Atish Patra</name>
<email>atish.patra@wdc.com</email>
</author>
<published>2019-10-02T20:59:40Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=30f09fbfd1ec0269dafb1dbb3c9c07f1b5c0ec81'/>
<id>urn:sha1:30f09fbfd1ec0269dafb1dbb3c9c07f1b5c0ec81</id>
<content type='text'>
SBI v0.2 specification allows vendor extensions and it should be
implemented in a independent of the core sbi library.

Introduce a single platform callback that will let platforms handle
all vendor extensions in platform specific code if they want.

Signed-off-by: Atish Patra &lt;atish.patra@wdc.com&gt;
Reviewed-by: Anup Patel &lt;anup.patel@wdc.com&gt;
</content>
</entry>
<entry>
<title>lib: Fix tlb flush range limit value</title>
<updated>2019-09-28T12:51:34Z</updated>
<author>
<name>Atish Patra</name>
<email>atish.patra@wdc.com</email>
</author>
<published>2019-09-27T01:34:17Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=0a482e2edbc4e0d0a88199b76de5591cc99a11ab'/>
<id>urn:sha1:0a482e2edbc4e0d0a88199b76de5591cc99a11ab</id>
<content type='text'>
Use platform defined flush range limit value only if it is non-zero.
Otherwise, use the default value.

Signed-off-by: Atish Patra &lt;atish.patra@wdc.com&gt;
Reviewed-by: Bin Meng &lt;bmeng.cn@gmail.com&gt;
</content>
</entry>
</feed>
