Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tizen] Add Thread stack manager implementation #16749

Closed
wants to merge 3 commits into from

Conversation

ay-agarwal
Copy link
Contributor

Problem
Thread Stack Manager is not implemented for Tizen.

Change overview
Add Thread Stack Manager implementation and thread network commissioning driver for Tizen.

Testing
chip-tool and chip-lighting-app examples

@CLAassistant
Copy link

CLAassistant commented Mar 29, 2022

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@wootak-jung wootak-jung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@github-actions
Copy link

github-actions bot commented Mar 29, 2022

PR #16749: Size comparison from a19de20 to 6a48eac

Full report (27 builds for cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
platform target config section a19de20 6a48eac change % change
cyw30739 light cyw930739m2evb_01 (read/write) 605498 605498 0 0.0
.app_xip_area 512428 512428 0 0.0
.bss 75816 75816 0 0.0
.data 604 604 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
lock cyw930739m2evb_01 (read/write) 563286 563286 0 0.0
.app_xip_area 471744 471744 0 0.0
.bss 74320 74320 0 0.0
.data 568 568 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 575546 575546 0 0.0
.app_xip_area 474356 474356 0 0.0
.bss 83648 83648 0 0.0
.data 508 508 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A (read only) 926664 926664 0 0.0
(read/write) 128952 128952 0 0.0
.bss 126952 126952 0 0.0
.data 1996 1996 0 0.0
.text 926656 926656 0 0.0
BRD4161A+rpc (read only) 955480 955480 0 0.0
(read/write) 144904 144904 0 0.0
.bss 142728 142728 0 0.0
.data 2176 2176 0 0.0
.text 955472 955472 0 0.0
window-app BRD4161A (read only) 856052 856052 0 0.0
(read/write) 126912 126912 0 0.0
.bss 125040 125040 0 0.0
.data 1872 1872 0 0.0
.text 856044 856044 0 0.0
esp32 all-clusters-app c3devkit (read only) 966788 966788 0 0.0
(read/write) 1394810 1394810 0 0.0
.dram0.bss 62240 62240 0 0.0
.dram0.data 14204 14204 0 0.0
.flash.rodata 199456 199456 0 0.0
.flash.text 966788 966788 0 0.0
.iram0.text 62016 62016 0 0.0
m5stack (read only) 1023211 1023211 0 0.0
(read/write) 462572 462572 0 0.0
.dram0.bss 67768 67768 0 0.0
.dram0.data 34024 34024 0 0.0
.flash.rodata 228944 228944 0 0.0
.flash.text 1017827 1017827 0 0.0
.iram0.text 123107 123107 0 0.0
k32w light k32w061+release (read/write) 704320 704320 0 0.0
.bss 77808 77808 0 0.0
.data 1876 1876 0 0.0
.text 618836 618836 0 0.0
lock k32w061+release (read/write) 703428 703428 0 0.0
.bss 77784 77784 0 0.0
.data 1916 1916 0 0.0
.text 617928 617928 0 0.0
linux all-clusters-app debug (read only) 2526169 2526169 0 0.0
(read/write) 143352 143352 0 0.0
.bss 57408 57408 0 0.0
.data 1280 1280 0 0.0
.data.rel.ro 78920 78920 0 0.0
.dynamic 592 592 0 0.0
.got 4184 4184 0 0.0
.init 27 27 0 0.0
.init_array 944 944 0 0.0
.rodata 216549 216549 0 0.0
.text 2145794 2145794 0 0.0
bridge-app debug+rpc (read only) 1765389 1765389 0 0.0
(read/write) 89520 89520 0 0.0
.bss 44520 44520 0 0.0
.data 1984 1984 0 0.0
.data.rel.ro 37936 37936 0 0.0
.dynamic 592 592 0 0.0
.got 3928 3928 0 0.0
.init 27 27 0 0.0
.init_array 544 544 0 0.0
.rodata 144684 144684 0 0.0
.text 1505349 1505349 0 0.0
chip-tool debug (read only) 10228469 10228469 0 0.0
(read/write) 355656 355656 0 0.0
.bss 22464 22464 0 0.0
.data 1072 1072 0 0.0
.data.rel.ro 326008 326008 0 0.0
.dynamic 608 608 0 0.0
.got 4824 4824 0 0.0
.init 27 27 0 0.0
.init_array 640 640 0 0.0
.rodata 519125 519125 0 0.0
.text 8924805 8924805 0 0.0
chip-tool-ipv6only arm64 (read only) 9849660 9849660 0 0.0
(read/write) 473713 473713 0 0.0
.bss 40737 40737 0 0.0
.data 1144 1144 0 0.0
.data.rel.ro 372656 372656 0 0.0
.dynamic 560 560 0 0.0
.got 55368 55368 0 0.0
.init 24 24 0 0.0
.init_array 192 192 0 0.0
.rodata 494468 494468 0 0.0
.text 8301972 8301972 0 0.0
door-lock-app debug (read only) 2017217 2017217 0 0.0
(read/write) 116896 116896 0 0.0
.bss 47648 47648 0 0.0
.data 992 992 0 0.0
.data.rel.ro 62840 62840 0 0.0
.dynamic 592 592 0 0.0
.got 4128 4128 0 0.0
.init 27 27 0 0.0
.init_array 664 664 0 0.0
.rodata 181276 181276 0 0.0
.text 1686130 1686130 0 0.0
lighting-app debug+rpc (read only) 2191665 2191665 0 0.0
(read/write) 123888 123888 0 0.0
.bss 48928 48928 0 0.0
.data 1472 1472 0 0.0
.data.rel.ro 67928 67928 0 0.0
.dynamic 608 608 0 0.0
.got 4176 4176 0 0.0
.init 27 27 0 0.0
.init_array 744 744 0 0.0
.rodata 175356 175356 0 0.0
.text 1857138 1857138 0 0.0
ota-provider-app debug (read only) 1958057 1958057 0 0.0
(read/write) 112688 112688 0 0.0
.bss 47584 47584 0 0.0
.data 1256 1256 0 0.0
.data.rel.ro 58184 58184 0 0.0
.dynamic 608 608 0 0.0
.got 4384 4384 0 0.0
.init 27 27 0 0.0
.init_array 616 616 0 0.0
.rodata 167115 167115 0 0.0
.text 1639074 1639074 0 0.0
ota-requestor-app debug (read only) 1985649 1985649 0 0.0
(read/write) 115912 115912 0 0.0
.bss 48512 48512 0 0.0
.data 1480 1480 0 0.0
.data.rel.ro 60440 60440 0 0.0
.dynamic 592 592 0 0.0
.got 4192 4192 0 0.0
.init 27 27 0 0.0
.init_array 640 640 0 0.0
.rodata 163236 163236 0 0.0
.text 1669538 1669538 0 0.0
shell debug (read only) 2441801 2441801 0 0.0
(read/write) 147368 147368 0 0.0
.bss 67304 67304 0 0.0
.data 800 800 0 0.0
.data.rel.ro 73568 73568 0 0.0
.dynamic 592 592 0 0.0
.got 4160 4160 0 0.0
.init 27 27 0 0.0
.init_array 920 920 0 0.0
.rodata 210034 210034 0 0.0
.text 2074818 2074818 0 0.0
thermostat-no-ble arm64 (read only) 2275348 2275348 0 0.0
(read/write) 148369 148369 0 0.0
.bss 62817 62817 0 0.0
.data 1040 1040 0 0.0
.data.rel.ro 77000 77000 0 0.0
.dynamic 560 560 0 0.0
.got 4504 4504 0 0.0
.init 24 24 0 0.0
.init_array 360 360 0 0.0
.rodata 140036 140036 0 0.0
.text 1911952 1911952 0 0.0
tv-app debug (read only) 2691473 2691473 0 0.0
(read/write) 247520 247520 0 0.0
.bss 164288 164288 0 0.0
.data 3136 3136 0 0.0
.data.rel.ro 74048 74048 0 0.0
.dynamic 592 592 0 0.0
.got 4552 4552 0 0.0
.init 27 27 0 0.0
.init_array 888 888 0 0.0
.rodata 206059 206059 0 0.0
.text 2310786 2310786 0 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2355708 2355708 0 0.0
.bss 184860 184860 0 0.0
.data 5760 5760 0 0.0
.text 1318308 1318308 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1143459 1143459 0 0.0
bss 142892 142892 0 0.0
rodata 142364 142364 0 0.0
text 783316 783316 0 0.0
p6 all-clusters-app default (read/write) 2498448 2498448 0 0.0
.bss 118280 118280 0 0.0
.data 2640 2640 0 0.0
.text 1456712 1456712 0 0.0
light-app default (read/write) 2400896 2400896 0 0.0
.bss 111752 111752 0 0.0
.data 2496 2496 0 0.0
.text 1359160 1359160 0 0.0
lock-app default (read/write) 2364400 2364400 0 0.0
.bss 111496 111496 0 0.0
.data 2456 2456 0 0.0
.text 1322664 1322664 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 787556 787556 0 0.0
bss 70092 70092 0 0.0
noinit 40416 40416 0 0.0
text 557952 557952 0 0.0

Copy link
Contributor

@woody-apple woody-apple left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fast tracking platform changes.

Copy link
Contributor

@hyunuktak hyunuktak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@woody-apple
Copy link
Contributor

/rebase

@github-actions
Copy link

github-actions bot commented Apr 5, 2022

PR #16749: Size comparison from 913aca0 to a7ccdf0

Full report (19 builds for cc13x2_26x2, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
platform target config section 913aca0 a7ccdf0 change % change
cc13x2_26x2 lock-ftd LP_CC2652R7 (read only) 670511 670511 0 0.0
(read/write) 181200 181200 0 0.0
.bss 81752 81752 0 0.0
.data 3164 3164 0 0.0
.rodata 79975 79975 0 0.0
.text 590056 590056 0 0.0
lock-mtd LP_CC2652R7 (read only) 619639 619639 0 0.0
(read/write) 154500 154500 0 0.0
.bss 77480 77480 0 0.0
.data 3164 3164 0 0.0
.rodata 79863 79863 0 0.0
.text 539288 539288 0 0.0
pump-app LP_CC2652R7 (read only) 689983 689983 0 0.0
(read/write) 162896 162896 0 0.0
.bss 82152 82152 0 0.0
.data 3196 3196 0 0.0
.rodata 82063 82063 0 0.0
.text 607436 607436 0 0.0
pump-controller-app LP_CC2652R7 (read only) 672207 672207 0 0.0
(read/write) 180408 180408 0 0.0
.bss 81888 81888 0 0.0
.data 3160 3160 0 0.0
.rodata 78399 78399 0 0.0
.text 593324 593324 0 0.0
efr32 lighting-app BRD4161A (read only) 919164 919164 0 0.0
(read/write) 129784 129784 0 0.0
.bss 127792 127792 0 0.0
.data 1992 1992 0 0.0
.text 919156 919156 0 0.0
BRD4161A+rpc (read only) 947060 947060 0 0.0
(read/write) 145732 145732 0 0.0
.bss 143560 143560 0 0.0
.data 2172 2172 0 0.0
.text 947052 947052 0 0.0
window-app BRD4161A (read only) 854380 854380 0 0.0
(read/write) 127808 127808 0 0.0
.bss 125936 125936 0 0.0
.data 1872 1872 0 0.0
.text 854372 854372 0 0.0
esp32 all-clusters-app c3devkit (read only) 988094 988094 0 0.0
(read/write) 1460842 1460842 0 0.0
.dram0.bss 62944 62944 0 0.0
.dram0.data 14196 14196 0 0.0
.flash.rodata 198224 198224 0 0.0
.flash.text 988094 988094 0 0.0
.iram0.text 62572 62572 0 0.0
m5stack (read only) 1040455 1040455 0 0.0
(read/write) 461840 461840 0 0.0
.dram0.bss 68472 68472 0 0.0
.dram0.data 34056 34056 0 0.0
.flash.rodata 227168 227168 0 0.0
.flash.text 1035071 1035071 0 0.0
.iram0.text 123415 123415 0 0.0
k32w light k32w061+release (read/write) 710388 710388 0 0.0
.bss 77952 77952 0 0.0
.data 1904 1904 0 0.0
.text 624732 624732 0 0.0
lock k32w061+release (read/write) 709784 709784 0 0.0
.bss 77952 77952 0 0.0
.data 1944 1944 0 0.0
.text 624088 624088 0 0.0
linux chip-tool-no-interactive-ipv6only arm64 (read only) 10083572 10083572 0 0.0
(read/write) 486977 486977 0 0.0
.bss 40337 40337 0 0.0
.data 1128 1128 0 0.0
.data.rel.ro 384712 384712 0 0.0
.dynamic 560 560 0 0.0
.got 57008 57008 0 0.0
.init 24 24 0 0.0
.init_array 184 184 0 0.0
.rodata 508404 508404 0 0.0
.text 8484324 8484324 0 0.0
thermostat-no-ble arm64 (read only) 2324428 2324428 0 0.0
(read/write) 149441 149441 0 0.0
.bss 62945 62945 0 0.0
.data 1136 1136 0 0.0
.data.rel.ro 77704 77704 0 0.0
.dynamic 560 560 0 0.0
.got 4632 4632 0 0.0
.init 24 24 0 0.0
.init_array 368 368 0 0.0
.rodata 143308 143308 0 0.0
.text 1955408 1955408 0 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2362700 2362700 0 0.0
.bss 185036 185036 0 0.0
.data 5784 5784 0 0.0
.text 1325300 1325300 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1151231 1151231 0 0.0
bss 143060 143060 0 0.0
rodata 143592 143592 0 0.0
text 789708 789708 0 0.0
p6 all-clusters-app default (read/write) 2507528 2507528 0 0.0
.bss 118472 118472 0 0.0
.data 2672 2672 0 0.0
.text 1465792 1465792 0 0.0
light-app default (read/write) 2408704 2408704 0 0.0
.bss 111928 111928 0 0.0
.data 2528 2528 0 0.0
.text 1366968 1366968 0 0.0
lock-app default (read/write) 2372352 2372352 0 0.0
.bss 111672 111672 0 0.0
.data 2488 2488 0 0.0
.text 1330616 1330616 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 794808 794808 0 0.0
bss 70288 70288 0 0.0
noinit 40416 40416 0 0.0
text 564354 564354 0 0.0

@dh79pyun
Copy link
Contributor

dh79pyun commented Apr 5, 2022

We will raise the additional PR to add a command to download Tizen thread stack in Tizen docker file.
After applying Tizen docker's change, the fail issue will be resolved.
https://github.com/project-chip/connectedhomeip/runs/5826718468?check_suite_focus=true

ay-agarwal and others added 3 commits April 5, 2022 10:57
Problem
Thread Stack Manager is not implemented for Tizen.

Change overview
Add Tizen Stack Manager implementation for Tizen.

Co-authored-by: Anupam Roy <[email protected]>
Co-authored-by: hyunuktak <[email protected]>

Signed-off-by: Abhay Agarwal <[email protected]>
@ay-agarwal
Copy link
Contributor Author

Refer the PR for tizen docker modifications
#17041

@stale
Copy link

stale bot commented Apr 12, 2022

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale Stale issue or PR label Apr 12, 2022
@dh79pyun
Copy link
Contributor

dh79pyun commented Apr 13, 2022

@woody-apple
Can we re-trigger the workflows?

@stale stale bot removed the stale Stale issue or PR label Apr 13, 2022
@MoonkiHong
Copy link

MoonkiHong commented Apr 18, 2022

@hrajendran-samsung @electrocucaracha Please take a look at the request above

@dh79pyun
Copy link
Contributor

When I see the fail log no build fail, the test works with the previous tizen-docker. 0.5.58

https://github.com/project-chip/connectedhomeip/runs/6119450320?check_suite_focus=true

Digest: sha256:a8d0e5007519adf36d5d15b0f46f73a9cc8d7aae865d261ca854088bb9ad3aee
Status: Downloaded newer image for connectedhomeip/chip-build-tizen:0.5.58
docker.io/connectedhomeip/chip-build-tizen:0.5.58
/usr/bin/docker create --name cdbdfe4ef69e43d198e9786302cac2a7_connectedhomeipchipbuildtizen0558_b63be3 --label 294b31 --workdir /__w/connectedhomeip/connectedhomeip --network github_network_615c3f187f6b4ef1b62d451a4cb1c41a --user root -e "HOME=/github/home" -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/tmp/bloat_reports":"/tmp/bloat_reports" -v "/tmp/output_binaries":"/tmp/output_binaries" -v "/home/runner/work":"/__w" -v "/home/runner/runners/2.290.1/externals":"/__e":ro -v "/home/runner/work/_temp":"/__w/_temp" -v "/home/runner/work/_actions":"/__w/_actions" -v "/opt/hostedtoolcache":"/__t" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" --entrypoint "tail" connectedhomeip/chip-build-tizen:0.5.58 "-f" "/dev/null"

We applied Tizen docker change into 0.5.61 version.

https://github.com/project-chip/connectedhomeip/pull/17041/files

So need to run the testing using the latest docker.

@dh79pyun
Copy link
Contributor

When I see the fail log no build fail, the test works with the previous tizen-docker. 0.5.58

https://github.com/project-chip/connectedhomeip/runs/6119450320?check_suite_focus=true

Digest: sha256:a8d0e5007519adf36d5d15b0f46f73a9cc8d7aae865d261ca854088bb9ad3aee Status: Downloaded newer image for connectedhomeip/chip-build-tizen:0.5.58 docker.io/connectedhomeip/chip-build-tizen:0.5.58 /usr/bin/docker create --name cdbdfe4ef69e43d198e9786302cac2a7_connectedhomeipchipbuildtizen0558_b63be3 --label 294b31 --workdir /__w/connectedhomeip/connectedhomeip --network github_network_615c3f187f6b4ef1b62d451a4cb1c41a --user root -e "HOME=/github/home" -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/tmp/bloat_reports":"/tmp/bloat_reports" -v "/tmp/output_binaries":"/tmp/output_binaries" -v "/home/runner/work":"/__w" -v "/home/runner/runners/2.290.1/externals":"/__e":ro -v "/home/runner/work/_temp":"/__w/_temp" -v "/home/runner/work/_actions":"/__w/_actions" -v "/opt/hostedtoolcache":"/__t" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" --entrypoint "tail" connectedhomeip/chip-build-tizen:0.5.58 "-f" "/dev/null"

We applied Tizen docker change into 0.5.61 version.

https://github.com/project-chip/connectedhomeip/pull/17041/files

So need to run the testing using the latest docker.

If I see the latest PR, it works on the latest tizen docker.

#17675
https://github.com/project-chip/connectedhomeip/runs/6145754553?check_suite_focus=true

Status: Downloaded newer image for connectedhomeip/chip-build-tizen:0.5.64
docker.io/connectedhomeip/chip-build-tizen:0.5.64

So can you re-trriger the work flow? Then the fail issue will be resolved

@dh79pyun
Copy link
Contributor

When I see the fail log no build fail, the test works with the previous tizen-docker. 0.5.58
https://github.com/project-chip/connectedhomeip/runs/6119450320?check_suite_focus=true
Digest: sha256:a8d0e5007519adf36d5d15b0f46f73a9cc8d7aae865d261ca854088bb9ad3aee Status: Downloaded newer image for connectedhomeip/chip-build-tizen:0.5.58 docker.io/connectedhomeip/chip-build-tizen:0.5.58 /usr/bin/docker create --name cdbdfe4ef69e43d198e9786302cac2a7_connectedhomeipchipbuildtizen0558_b63be3 --label 294b31 --workdir /__w/connectedhomeip/connectedhomeip --network github_network_615c3f187f6b4ef1b62d451a4cb1c41a --user root -e "HOME=/github/home" -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/tmp/bloat_reports":"/tmp/bloat_reports" -v "/tmp/output_binaries":"/tmp/output_binaries" -v "/home/runner/work":"/__w" -v "/home/runner/runners/2.290.1/externals":"/__e":ro -v "/home/runner/work/_temp":"/__w/_temp" -v "/home/runner/work/_actions":"/__w/_actions" -v "/opt/hostedtoolcache":"/__t" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" --entrypoint "tail" connectedhomeip/chip-build-tizen:0.5.58 "-f" "/dev/null"
We applied Tizen docker change into 0.5.61 version.
https://github.com/project-chip/connectedhomeip/pull/17041/files
So need to run the testing using the latest docker.

If I see the latest PR, it works on the latest tizen docker.

#17675 https://github.com/project-chip/connectedhomeip/runs/6145754553?check_suite_focus=true

Status: Downloaded newer image for connectedhomeip/chip-build-tizen:0.5.64 docker.io/connectedhomeip/chip-build-tizen:0.5.64

So can you re-trriger the work flow? Then the fail issue will be resolved

The same change is success to build on next PR.
#16749

Maybe some env issue in the current PR.

@stale
Copy link

stale bot commented May 4, 2022

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale Stale issue or PR label May 4, 2022
@ay-agarwal
Copy link
Contributor Author

Closing this PR since, same changes get merged via
#17677

@ay-agarwal ay-agarwal closed this May 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants