<feed xmlns='http://www.w3.org/2005/Atom'>
<title>platform_system_libufdt/include, branch android11-dev</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_system_libufdt/'/>
<entry>
<title>Add capability to verify application of multiple overlays</title>
<updated>2018-02-07T19:20:57+00:00</updated>
<author>
<name>Hridya Valsaraju</name>
<email>hridya@google.com</email>
</author>
<published>2018-01-25T22:28:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_system_libufdt/commit/?id=4c7735ac0173b71aceb489470fca15b56e64c4d4'/>
<id>4c7735ac0173b71aceb489470fca15b56e64c4d4</id>
<content type='text'>
Bug: 67779848
Test: sh apply_verify_multiple_overlay.sh

Change-Id: I022a9b222161c279cfb7ba8546d465b478786d9c
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Bug: 67779848
Test: sh apply_verify_multiple_overlay.sh

Change-Id: I022a9b222161c279cfb7ba8546d465b478786d9c
</pre>
</div>
</content>
</entry>
<entry>
<title>Refactor code to find overlay target</title>
<updated>2018-02-02T18:22:17+00:00</updated>
<author>
<name>Hridya Valsaraju</name>
<email>hridya@google.com</email>
</author>
<published>2018-01-30T21:01:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_system_libufdt/commit/?id=c0957f2fa7c1b47b61044b3af3d7d82ca44e0680'/>
<id>c0957f2fa7c1b47b61044b3af3d7d82ca44e0680</id>
<content type='text'>
Test: mm
Bug: 67779848

Change-Id: Iec654609d12e1925076ff65aafb94bf6bdf4775d
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Test: mm
Bug: 67779848

Change-Id: Iec654609d12e1925076ff65aafb94bf6bdf4775d
</pre>
</div>
</content>
</entry>
<entry>
<title>Create libufdt_verify</title>
<updated>2018-01-24T01:01:09+00:00</updated>
<author>
<name>Hridya Valsaraju</name>
<email>hridya@google.com</email>
</author>
<published>2017-12-06T01:31:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_system_libufdt/commit/?id=5168cab4cb068dc964e6354167bc857a0e948ff7'/>
<id>5168cab4cb068dc964e6354167bc857a0e948ff7</id>
<content type='text'>
Exposes an API to verify if a device tree overlay has been correctly
applied on an FDT.

Bug: 67779848
Test: vts-tradefed run vts -m VtsVerifyDTBOTest
Change-Id: I0606fd79784b8beed1d912129dfbc9b7634e7708
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Exposes an API to verify if a device tree overlay has been correctly
applied on an FDT.

Bug: 67779848
Test: vts-tradefed run vts -m VtsVerifyDTBOTest
Change-Id: I0606fd79784b8beed1d912129dfbc9b7634e7708
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix misc-macro-parentheses warnings in system/libufdt.</title>
<updated>2017-08-01T22:35:06+00:00</updated>
<author>
<name>Chih-Hung Hsieh</name>
<email>chh@google.com</email>
</author>
<published>2017-08-01T22:35:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_system_libufdt/commit/?id=218b61705049a8e0f901a19725c57bd308ae17b5'/>
<id>218b61705049a8e0f901a19725c57bd308ae17b5</id>
<content type='text'>
Bug: 28705665
Test: make with WITH_TIDY=1 WITH_TIDY_CHECKS=-*,misc-macro-* \
      WITH_TIDY_FLAGS=-header-filter=system/libufdt/.*

Change-Id: Idbc766c3fe84f26509ec60b5ca7577ed05739258
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Bug: 28705665
Test: make with WITH_TIDY=1 WITH_TIDY_CHECKS=-*,misc-macro-* \
      WITH_TIDY_FLAGS=-header-filter=system/libufdt/.*

Change-Id: Idbc766c3fe84f26509ec60b5ca7577ed05739258
</pre>
</div>
</content>
</entry>
<entry>
<title>libufdt: reduce the number of malloc/free calling</title>
<updated>2017-04-25T09:16:18+00:00</updated>
<author>
<name>SzuWei Lin</name>
<email>szuweilin@google.com</email>
</author>
<published>2017-04-24T02:17:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_system_libufdt/commit/?id=d62a849ab43430326c33d3e004a42e9b34080731'/>
<id>d62a849ab43430326c33d3e004a42e9b34080731</id>
<content type='text'>
The performance of some bootloader malloc/free implementation isn't
optimized, but libufdt calls huge number of malloc/free to build a
real tree data structure.

The patch adds an ufdt_node_pool to reduce the number of malloc/free.
ufdt_node_pool asks a larger memory block in each time, and
distributes the memory into several ufdt_node (ufdt_node_fdt_prop
or ufdt_node_fdt_node). libufdt doesn't need to call malloc()
to allocate memory until out of larger memory block.

The setting of this patch is 1024 nodes in each memory block,
so it can reduce ~1023/1024 malloc/free calling times after the patch
is applied.

Bug: 32969430
Test: ./tests/run_tests.sh
Test: ./tests/run_performance_test.sh
Change-Id: Id95e74da1235b9e2fc306500686515ee6b93017d
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The performance of some bootloader malloc/free implementation isn't
optimized, but libufdt calls huge number of malloc/free to build a
real tree data structure.

The patch adds an ufdt_node_pool to reduce the number of malloc/free.
ufdt_node_pool asks a larger memory block in each time, and
distributes the memory into several ufdt_node (ufdt_node_fdt_prop
or ufdt_node_fdt_node). libufdt doesn't need to call malloc()
to allocate memory until out of larger memory block.

The setting of this patch is 1024 nodes in each memory block,
so it can reduce ~1023/1024 malloc/free calling times after the patch
is applied.

Bug: 32969430
Test: ./tests/run_tests.sh
Test: ./tests/run_performance_test.sh
Change-Id: Id95e74da1235b9e2fc306500686515ee6b93017d
</pre>
</div>
</content>
</entry>
<entry>
<title>Correct code placement for different license</title>
<updated>2017-04-17T02:31:11+00:00</updated>
<author>
<name>SzuWei Lin</name>
<email>szuweilin@google.com</email>
</author>
<published>2017-04-17T02:24:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_system_libufdt/commit/?id=e78aa56232a888c30b5de559797578eac6bc1663'/>
<id>e78aa56232a888c30b5de559797578eac6bc1663</id>
<content type='text'>
Previous code revising moved some code into a file with different license.
Fix it in this patch.

Test: ./tests/run_tests.sh
Change-Id: Ie50000bba7a6bf8d9d65dcc1a1cf21135ac3b97a
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previous code revising moved some code into a file with different license.
Fix it in this patch.

Test: ./tests/run_tests.sh
Change-Id: Ie50000bba7a6bf8d9d65dcc1a1cf21135ac3b97a
</pre>
</div>
</content>
</entry>
<entry>
<title>Code revise</title>
<updated>2017-04-15T03:09:17+00:00</updated>
<author>
<name>SzuWei Lin</name>
<email>szuweilin@google.com</email>
</author>
<published>2017-04-14T07:38:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_system_libufdt/commit/?id=8a7039c218527bfc25a2831f480a9558e64f84e5'/>
<id>8a7039c218527bfc25a2831f480a9558e64f84e5</id>
<content type='text'>
- Remove unused code
- Remove internel functions from header file
- Fix typos
- Revise all function names with prefix ufdt_*

Test: ./tests/run_tests.sh
Change-Id: I4f89e90eb983540e78aadb092c07de62d219e454
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- Remove unused code
- Remove internel functions from header file
- Fix typos
- Revise all function names with prefix ufdt_*

Test: ./tests/run_tests.sh
Change-Id: I4f89e90eb983540e78aadb092c07de62d219e454
</pre>
</div>
</content>
</entry>
<entry>
<title>Add Apache2 module license</title>
<updated>2017-04-15T02:49:05+00:00</updated>
<author>
<name>SzuWei Lin</name>
<email>szuweilin@google.com</email>
</author>
<published>2017-04-06T09:12:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_system_libufdt/commit/?id=6ad4caae73191bdc2403185b6482969c17604c95'/>
<id>6ad4caae73191bdc2403185b6482969c17604c95</id>
<content type='text'>
Bug: 36678371
Test: mmm system/libufdt, and success build
Change-Id: I73059f5beca2242f8883fca86cb49d53d0f543b8
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Bug: 36678371
Test: mmm system/libufdt, and success build
Change-Id: I73059f5beca2242f8883fca86cb49d53d0f543b8
</pre>
</div>
</content>
</entry>
<entry>
<title>Avoid to re-generate string table from ufdt to fdt</title>
<updated>2017-04-13T07:28:55+00:00</updated>
<author>
<name>SzuWei Lin</name>
<email>szuweilin@google.com</email>
</author>
<published>2017-03-30T03:44:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_system_libufdt/commit/?id=1be68ae53e645de1b2ec26140b302fbfcbbb919f'/>
<id>1be68ae53e645de1b2ec26140b302fbfcbbb919f</id>
<content type='text'>
String table contains the strings of all property name in a fdt.

The ufdt_apply_overlay() converts two dtbs from fdt to ufdt,
overlays, and converts merged ufdt to fdt. These operations
shouldn't create new peroperty names, so we can just re-use the
string tables in original dtbs, and just copy them into merged
fdt. This solution can enhance a lot of performance for device
tree overlaying.

To avoid the error that some users could use string offset in
string table, the solution also give a same string offset for
the name properties by ufdt_prop_dict;

Futher, the patch also removed unused header files after
changing algorithm.

Bug: 35255584
Test: ./tests/run_tests.sh
Change-Id: Id422730115531bd20d21117285291bdd860915ff
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
String table contains the strings of all property name in a fdt.

The ufdt_apply_overlay() converts two dtbs from fdt to ufdt,
overlays, and converts merged ufdt to fdt. These operations
shouldn't create new peroperty names, so we can just re-use the
string tables in original dtbs, and just copy them into merged
fdt. This solution can enhance a lot of performance for device
tree overlaying.

To avoid the error that some users could use string offset in
string table, the solution also give a same string offset for
the name properties by ufdt_prop_dict;

Futher, the patch also removed unused header files after
changing algorithm.

Bug: 35255584
Test: ./tests/run_tests.sh
Change-Id: Id422730115531bd20d21117285291bdd860915ff
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix the libufdt overlay node order</title>
<updated>2017-02-21T03:42:14+00:00</updated>
<author>
<name>SzuWei Lin</name>
<email>szuweilin@google.com</email>
</author>
<published>2017-02-20T02:38:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_system_libufdt/commit/?id=08dd727484a9f5619e0be18a1f601c21f371c5b7'/>
<id>08dd727484a9f5619e0be18a1f601c21f371c5b7</id>
<content type='text'>
libufdt could reversed the node order during overlaying.

However, the libfdt overlay in dtc doesn't promise the node order.
But looks there are some implementation of kernel drivers depend on
the order in DTS.

The patch keeps the DTB/DTBO node order during libufdt overlaying.
Notes that the node order merged by libufdt could not match the
result of libfdt.

Bug: 35429321
Test: run test scripts (see libufdt/tests/README)
Change-Id: I7209ebfaa21d6640d547b029ea0f0edf6e58fca1
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
libufdt could reversed the node order during overlaying.

However, the libfdt overlay in dtc doesn't promise the node order.
But looks there are some implementation of kernel drivers depend on
the order in DTS.

The patch keeps the DTB/DTBO node order during libufdt overlaying.
Notes that the node order merged by libufdt could not match the
result of libfdt.

Bug: 35429321
Test: run test scripts (see libufdt/tests/README)
Change-Id: I7209ebfaa21d6640d547b029ea0f0edf6e58fca1
</pre>
</div>
</content>
</entry>
</feed>
