<feed xmlns='http://www.w3.org/2005/Atom'>
<title>opensbi.git/lib/utils, branch v0.6</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/opensbi.git/atom/lib/utils?h=v0.6</id>
<link rel='self' href='http://cgit.235523.xyz/opensbi.git/atom/lib/utils?h=v0.6'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/'/>
<updated>2020-02-18T05:00:16Z</updated>
<entry>
<title>lib: utils: htif: Fix 32-bit build</title>
<updated>2020-02-18T05:00:16Z</updated>
<author>
<name>Bin Meng</name>
<email>bmeng.cn@gmail.com</email>
</author>
<published>2020-02-18T04:55:12Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=c66543d049d33b94f1915babaed6eb1f90e05f78'/>
<id>urn:sha1:c66543d049d33b94f1915babaed6eb1f90e05f78</id>
<content type='text'>
When building 32-bit OpenSBI images, we get:

  lib/utils/sys/htif.c: In function '__check_fromhost':
  lib/utils/sys/htif.c:12:31: error: left shift count &gt;= width of type
                                     [-Werror=shift-count-overflow]
   #define HTIF_DATA_MASK  ((1UL &lt;&lt; HTIF_DATA_BITS) - 1)
                                 ^~

Fixes: c2f23cc6edd7 ("platform: Add Spike initial support")
Signed-off-by: Bin Meng &lt;bmeng.cn@gmail.com&gt;
Reviewed-by: Anup Patel &lt;anup.patel@wdc.com&gt;
</content>
</entry>
<entry>
<title>platform: Add Spike initial support</title>
<updated>2020-02-17T12:12:52Z</updated>
<author>
<name>James Clarke</name>
<email>jrtc27@jrtc27.com</email>
</author>
<published>2020-02-01T01:07:51Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=c2f23cc6edd7ee2dc6a07991312d44233080ae6b'/>
<id>urn:sha1:c2f23cc6edd7ee2dc6a07991312d44233080ae6b</id>
<content type='text'>
This patch adds initial platform support Spike emulator.

Signed-off-by: James Clarke &lt;jrtc27@jrtc27.com&gt;
Signed-off-by: Anup Patel &lt;anup.patel@wdc.com&gt;
Reviewed-by: Bin Meng &lt;bmeng.cn@gmail.com&gt;
Reviewed-by: Atish Patra &lt;atish.patra@wdc.com&gt;
</content>
</entry>
<entry>
<title>lib: irqchip/plic: Disable all contexts and IRQs</title>
<updated>2020-02-13T04:28:27Z</updated>
<author>
<name>Atish Patra</name>
<email>atish.patra@wdc.com</email>
</author>
<published>2020-02-12T01:42:50Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=c2bfa2bff30312679cfee986bbed9b974c6760bb'/>
<id>urn:sha1:c2bfa2bff30312679cfee986bbed9b974c6760bb</id>
<content type='text'>
To initialize PLIC in sane state, we should:
1. set maximum threshold value of M-mode PLIC contexts
2. set maximum threshold value of S-mode PLIC contexts
3. set irq priorities to miniumum

Fix the comment and initialize the threshold/priorities correctly.

Signed-off-by: Anup Patel &lt;anup.patel@wdc.com&gt;
Signed-off-by: Atish Patra &lt;atish.patra@wdc.com&gt;
</content>
</entry>
<entry>
<title>lib: utils: Support CLINT with 32bit MMIO access on RV64 system</title>
<updated>2020-01-02T03:44:36Z</updated>
<author>
<name>Anup Patel</name>
<email>anup.patel@wdc.com</email>
</author>
<published>2019-12-30T06:01:59Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=46a90d90e7dca6eeb66700b6970171119c51fd66'/>
<id>urn:sha1:46a90d90e7dca6eeb66700b6970171119c51fd66</id>
<content type='text'>
It is possible to have a CLINT implementation which supports
only 32bit MMIO accesses on RV64 system so this patch extends
our CLINT driver such that platform code can specify whether
CLINT supports 64bit MMIO access.

Signed-off-by: Anup Patel &lt;anup.patel@wdc.com&gt;
Reviewed-by: Atish Patra&lt;atish.patra@wdc.com&gt;
Reviewed-by: Zong Li &lt;zong.li@sifive.com&gt;
</content>
</entry>
<entry>
<title>lib: Fix timer for 32 bit</title>
<updated>2019-08-31T07:43:12Z</updated>
<author>
<name>Atish Patra</name>
<email>atish.patra@wdc.com</email>
</author>
<published>2019-08-29T22:19:11Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=2e5cc9051b5daf0b164f0454e28e08c2b952089a'/>
<id>urn:sha1:2e5cc9051b5daf0b164f0454e28e08c2b952089a</id>
<content type='text'>
To read 64bit time in 32 bit we have to read lower &amp; upper half
separately and 'or' them together. However, upper half time may
have changed by the time we read lower half. Thus, the resultant
64 bit time may not be accurate.

Consider lower half time value only if upper half time value has
not changed.

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>platform: Remove the ipi_sync method from all platforms.</title>
<updated>2019-08-16T03:12:58Z</updated>
<author>
<name>Atish Patra</name>
<email>atish.patra@wdc.com</email>
</author>
<published>2019-08-15T01:02:15Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=75229705a0bf804099fbf32b61d7f6ba459226ec'/>
<id>urn:sha1:75229705a0bf804099fbf32b61d7f6ba459226ec</id>
<content type='text'>
OpenSBI manages outstanding TLB flush requests by queueing
them in a fifo synchronously. An ipi sync which uses an
atomic operation on MMIO address is no longer required.

Remove the ipi sync method from platform header and all usage.

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: Use correct type for return value</title>
<updated>2019-08-12T03:53:28Z</updated>
<author>
<name>Jacob Garber</name>
<email>jgarber1@ualberta.ca</email>
</author>
<published>2019-08-09T23:13:58Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=6ddf71e6e90878ee107b0d9f98492ad27d31c73a'/>
<id>urn:sha1:6ddf71e6e90878ee107b0d9f98492ad27d31c73a</id>
<content type='text'>
The error check 'plic_off &lt; 0' does nothing, since plic_off is stored as
a u32. Fix this by changing it to an int, which matches the return type of
fdt_node_offset_by_compatible().

Signed-off-by: Jacob Garber &lt;jgarber1@ualberta.ca&gt;
Reviewed-by: Bin Meng &lt;bmeng.cn@gmail.com&gt;
Reviewed-by: Atish Patra &lt;atish.patra@wdc.com&gt;
</content>
</entry>
<entry>
<title>utils: Use cpu_to_fdt32() when writing to fdt</title>
<updated>2019-07-25T03:29:50Z</updated>
<author>
<name>Georg Kotheimer</name>
<email>georg.kotheimer@kernkonzept.com</email>
</author>
<published>2019-07-24T09:38:14Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=bf2ee7bcdc9b94aa4c62f197adeb71bab20bcfa3'/>
<id>urn:sha1:bf2ee7bcdc9b94aa4c62f197adeb71bab20bcfa3</id>
<content type='text'>
Although it does not make a functional difference, both cpu_to_fdt32()
and fdt32_to_cpu() pass on to CPU_TO_FDT32, we should use cpu_to_fdt32()
to be semantically correct.

Signed-off-by: Georg Kotheimer &lt;georg.kotheimer@kernkonzept.com&gt;
Reviewed-by: Atish Patra &lt;atish.patra@wdc.com&gt;
Acked-by: Anup Patel &lt;anup.patel@wdc.com&gt;
</content>
</entry>
<entry>
<title>Changed plic_set_thresh() and plic_set_ie() to public</title>
<updated>2019-06-29T11:34:06Z</updated>
<author>
<name>Panagiotis Peristerakis</name>
<email>perister@ics.forth.gr</email>
</author>
<published>2019-06-21T08:47:35Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=c6d06a94486479bf36f5325d83847d478907195a'/>
<id>urn:sha1:c6d06a94486479bf36f5325d83847d478907195a</id>
<content type='text'>
Signed-off-by: Panagiotis Peristerakis &lt;perister@ics.forth.gr&gt;
</content>
</entry>
<entry>
<title>utils: Remove tinyfdt.c</title>
<updated>2019-06-19T04:25:13Z</updated>
<author>
<name>Atish Patra</name>
<email>atish.patra@wdc.com</email>
</author>
<published>2019-06-18T21:54:06Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=5dd93e88fe3c9775107402bd32b91f8ccc2abe82'/>
<id>urn:sha1:5dd93e88fe3c9775107402bd32b91f8ccc2abe82</id>
<content type='text'>
tinyfdt.c was originally added to provide a minimal implementation of
fdt parsing. However, we have already included libfdt in OpenSBI for
more complicated operations.

Remove tinfdt and replace its functiolity using libfdt.

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