<feed xmlns='http://www.w3.org/2005/Atom'>
<title>starfive-tech/opensbi.git, branch debug</title>
<subtitle>StarFive Tech OpenSBI for VisionFive (JH7110) boards (mirror)</subtitle>
<id>https://git.radix-linux.su/starfive-tech/opensbi.git/atom?h=debug</id>
<link rel='self' href='https://git.radix-linux.su/starfive-tech/opensbi.git/atom?h=debug'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/opensbi.git/'/>
<updated>2021-04-28T18:22:36+00:00</updated>
<entry>
<title>firmware/fw_payload: reduce the size by getting rid of padding</title>
<updated>2021-04-28T18:22:36+00:00</updated>
<author>
<name>Tekkaman Ninja</name>
<email>tekkamanninja@163.com</email>
</author>
<published>2021-04-01T01:16:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/opensbi.git/commit/?id=2524b0ecd8684b42bc7a4c69794f40f11cbbe2a5'/>
<id>urn:sha1:2524b0ecd8684b42bc7a4c69794f40f11cbbe2a5</id>
<content type='text'>
Signed-off-by: Tekkaman Ninja &lt;tekkamanninja@163.com&gt;
</content>
</entry>
<entry>
<title>add starfive_vic7100 support in generic</title>
<updated>2021-04-28T13:59:10+00:00</updated>
<author>
<name>Tekkaman Ninja</name>
<email>tekkamanninja@163.com</email>
</author>
<published>2021-01-24T14:46:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/opensbi.git/commit/?id=fb50238d6e8665fdd637a95d95ed6f26fdc6e671'/>
<id>urn:sha1:fb50238d6e8665fdd637a95d95ed6f26fdc6e671</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add "snps,dw-apb-uart" in uart8250 driver.</title>
<updated>2021-04-28T13:59:10+00:00</updated>
<author>
<name>Tekkaman Ninja</name>
<email>tekkamanninja@163.com</email>
</author>
<published>2020-12-13T17:25:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/opensbi.git/commit/?id=56850b495bc1818d4a02312f27613411ab67c69b'/>
<id>urn:sha1:56850b495bc1818d4a02312f27613411ab67c69b</id>
<content type='text'>
This patch add "snps,dw-apb-uart".compatible ID in uart8250 driver for
StarFive VIC-7100.

Signed-off-by: Tekkaman Ninja &lt;tekkamanninja@163.com&gt;
</content>
</entry>
<entry>
<title>Add StarFive VIC-7100 support</title>
<updated>2021-04-28T13:59:10+00:00</updated>
<author>
<name>Tekkaman Ninja</name>
<email>tekkamanninja@163.com</email>
</author>
<published>2020-12-13T17:24:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/opensbi.git/commit/?id=b5facf907299c0bf263b30c92f17b79ccf2379da'/>
<id>urn:sha1:b5facf907299c0bf263b30c92f17b79ccf2379da</id>
<content type='text'>
This patch add StarFive VIC-7100 support.

Signed-off-by: Tekkaman Ninja &lt;tekkamanninja@163.com&gt;
</content>
</entry>
<entry>
<title>include: headers: Replace __ASSEMBLY__ with __ASSEMBLER__</title>
<updated>2021-03-22T10:32:48+00:00</updated>
<author>
<name>Marouene Boubakri</name>
<email>marouene.boubakri@nxp.com</email>
</author>
<published>2021-03-12T11:00:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/opensbi.git/commit/?id=bfc85c70e7517dc633b74e33768247b4df6a661c'/>
<id>urn:sha1:bfc85c70e7517dc633b74e33768247b4df6a661c</id>
<content type='text'>
GCC has already a predefined macro __ASSEMBLER__ therefore, it can be
used without the need to define a new flag with -D__ASSEMBLY__.
This is useful when adding the library to projects having a build
system such one can build without the need to make changes.
THe build system does not use the Makefile in the sources tree.

Signed-off-by: Marouene Boubakri &lt;marouene.boubakri@nxp.com&gt;
Signed-off-by: Anup Patel &lt;anup.patel@wdc.com&gt;
</content>
</entry>
<entry>
<title>lib: sbi: illegal CSR 0x306 access in hpm_allowed()</title>
<updated>2021-03-22T03:48:56+00:00</updated>
<author>
<name>Heinrich Schuchardt</name>
<email>xypron.glpk@gmx.de</email>
</author>
<published>2021-03-19T10:04:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/opensbi.git/commit/?id=ddad02d62550ca8884a2bd21345dad8c6c216777'/>
<id>urn:sha1:ddad02d62550ca8884a2bd21345dad8c6c216777</id>
<content type='text'>
The trap handler sbi_emulate_csr_read() invokes hpm_allowed() which reads
CSR 0x306 (mcounteren). The K210 does not support CSR 0x306. While trying
to handle a trap occurring in S-mode code this creates an additional trap
in M-mode. This results in failure to redirect to S-mode and the system
hanging in sbi_hart_hang().

In hart_detect_features() we have already determined if CSR 0x306 is
available and stored that information in the scratch area. We can use this
information to decide if CSR 0x306 shall be accessed in hpm_allowed() and
thus avoid the M-mode trap.

Likewise if CSR scounteren is not available we have to avoid reading CSR
0x106.

Signed-off-by: Heinrich Schuchardt &lt;xypron.glpk@gmx.de&gt;
Reviewed-by: Anup Patel &lt;anup.patel@wdc.com&gt;
</content>
</entry>
<entry>
<title>firmware: Support position independent execution</title>
<updated>2021-03-19T09:30:50+00:00</updated>
<author>
<name>Vincent Chen</name>
<email>vincent.chen@sifive.com</email>
</author>
<published>2021-03-17T01:16:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/opensbi.git/commit/?id=0f20e8adcf42d31bc478d6700b625d00a68cb30e'/>
<id>urn:sha1:0f20e8adcf42d31bc478d6700b625d00a68cb30e</id>
<content type='text'>
Enable OpenSBI to support position independent execution. Because the
position independent code will cause an additional GOT reference when
accessing the global variables, it will reduce performance a bit. Therefore,
the position independent execution is disabled by default. Users can
through specifying "FW_PIC=y" on the make command to enable this feature.

In theory, after enabling position-independent execution, the OpenSBI
can run at arbitrary address with appropriate alignment. Therefore, the
original relocation mechanism will be skipped. In other words, OpenSBI will
directly run at the load address without any code movement.

Signed-off-by: Vincent Chen &lt;vincent.chen@sifive.com&gt;
Reviewed-by: Anup Patel &lt;anup.patel@wdc.com&gt;
</content>
</entry>
<entry>
<title>firmware: Use lla to access all global symbols</title>
<updated>2021-03-19T09:27:45+00:00</updated>
<author>
<name>Vincent Chen</name>
<email>vincent.chen@sifive.com</email>
</author>
<published>2021-03-17T01:16:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/opensbi.git/commit/?id=22d8ee9758128070aa838f7c8c46f9e50d6aaf5a'/>
<id>urn:sha1:22d8ee9758128070aa838f7c8c46f9e50d6aaf5a</id>
<content type='text'>
When OpenSBI is compiled as fPIE mode, the assembler will translate "la"
to GOT reference pattern. It will cause to cost an additional load
instruction when obtaining the symbol address. However, if the symbol
locates within the positive or negative 2GB region, we can use "lla"
instead of "la" to avoid unneeded GOT references. This patch assumes that
the OpenSBI image excluding the payload does not exceed 2GB. Based on
this assumption, all "la" instructions are replaced by "lla" to avoid
performance degradation when compiling as fPIE mode.

Signed-off-by: Vincent Chen &lt;vincent.chen@sifive.com&gt;
Reviewed-by: Anup Patel &lt;anup.patel@wdc.com&gt;
</content>
</entry>
<entry>
<title>include: sbi: SBI function IDs for RFENCE extension</title>
<updated>2021-03-12T04:02:53+00:00</updated>
<author>
<name>Heinrich Schuchardt</name>
<email>xypron.glpk@gmx.de</email>
</author>
<published>2021-03-09T11:31:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/opensbi.git/commit/?id=ff5bd949d55b14e1d308288ace71366b090f822d'/>
<id>urn:sha1:ff5bd949d55b14e1d308288ace71366b090f822d</id>
<content type='text'>
The SBI function IDs for RFENCE extension must match the SBI specification.

Signed-off-by: Heinrich Schuchardt &lt;xypron.glpk@gmx.de&gt;
Reviewed-by: Atish Patra &lt;atish.patra@wdc.com&gt;
</content>
</entry>
<entry>
<title>lib: Remove redundant sbi_platform_ipi_clear() calls</title>
<updated>2021-03-03T08:24:50+00:00</updated>
<author>
<name>Anup Patel</name>
<email>anup.patel@wdc.com</email>
</author>
<published>2021-02-19T04:24:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/opensbi.git/commit/?id=50d4fde1c5a4ceb063d7f9a402769fb5be6d59ad'/>
<id>urn:sha1:50d4fde1c5a4ceb063d7f9a402769fb5be6d59ad</id>
<content type='text'>
The sbi_platform_ipi_clear() called from wait_for_coldboot() and
sbi_hsm_hart_wait() is redundant because IPI will be automatically
cleared by sbi_platform_ipi_init() called from sbi_ipi_init().

Further, wait_for_coldboot() is common for warm startup and warm
resume path so the sbi_platform_ipi_clear() called in warm resume
path cause resuming HART to miss an IPI injected other HART to
wakeup the HART.

Signed-off-by: Anup Patel &lt;anup.patel@wdc.com&gt;
Reviewed-by: Atish Patra &lt;atish.patra@wdc.com&gt;
</content>
</entry>
</feed>
