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

[ON-OFF] Increase the size of the onoff cluster's eventControl array to handl… #26254

Merged
merged 8 commits into from
May 16, 2023

Conversation

jmartinez-silabs
Copy link
Member

@jmartinez-silabs jmartinez-silabs commented Apr 25, 2023

…e the max dynamic endpoint count.

fixes #26205

@github-actions
Copy link

PR #26254: Size comparison from 85fd5ce to 223f391

Increases (1 build for cc32xx)
platform target config section 85fd5ce 223f391 change % change
cc32xx lock CC3235SF_LAUNCHXL .debug_info 19489249 19489264 15 0.0
.debug_line 2678035 2678036 1 0.0
.debug_str 3024877 3024899 22 0.0
Full report (1 build for cc32xx)
platform target config section 85fd5ce 223f391 change % change
cc32xx lock CC3235SF_LAUNCHXL 0 0 0 0.0
(read only) 601114 601114 0 0.0
(read/write) 204132 204132 0 0.0
.ARM.attributes 44 44 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 197544 197544 0 0.0
.comment 206 206 0 0.0
.data 1468 1468 0 0.0
.debug_abbrev 956756 956756 0 0.0
.debug_aranges 103416 103416 0 0.0
.debug_frame 349704 349704 0 0.0
.debug_info 19489249 19489264 15 0.0
.debug_line 2678035 2678036 1 0.0
.debug_line_str 513 513 0 0.0
.debug_loc 33340 33340 0 0.0
.debug_loclists 1501882 1501882 0 0.0
.debug_ranges 4984 4984 0 0.0
.debug_rnglists 96008 96008 0 0.0
.debug_str 3024877 3024899 22 0.0
.ramVecs 780 780 0 0.0
.resetVecs 64 64 0 0.0
.rodata 104170 104170 0 0.0
.shstrtab 265 265 0 0.0
.stack 2048 2048 0 0.0
.strtab 477531 477531 0 0.0
.symtab 285936 285936 0 0.0
.text 494824 494824 0 0.0

…tains a specific cluster server, as stored in emAfEndpoints. Use it in Onoff cluster server to map the endpoint to the EventControl array of the server
@github-actions
Copy link

PR #26254: Size comparison from 0b4fba2 to 922dc60

Increases (4 builds for bl702, cc32xx, qpg)
platform target config section 0b4fba2 922dc60 change % change
bl702 lighting-app bl702 (read/write) 1185791 1186047 256 0.0
.debug_aranges 132944 132952 8 0.0
.debug_frame 488808 488848 40 0.0
.debug_info 40943093 40943242 149 0.0
.debug_line 5301455 5301540 85 0.0
.debug_loc 3424613 3424731 118 0.0
.debug_ranges 372344 372352 8 0.0
.debug_str 3708223 3708333 110 0.0
.strtab 580786 580829 43 0.0
.symtab 175264 175280 16 0.0
.text 965478 965734 256 0.0
bl702+rpc (read/write) 1273571 1273827 256 0.0
.debug_aranges 141224 141232 8 0.0
.debug_frame 516780 516820 40 0.0
.debug_info 45848908 45849057 149 0.0
.debug_line 5716360 5716445 85 0.0
.debug_loc 3626917 3627035 118 0.0
.debug_ranges 397648 397656 8 0.0
.debug_str 4133328 4133438 110 0.0
.strtab 641456 641499 43 0.0
.symtab 193600 193616 16 0.0
.text 1038106 1038362 256 0.0
cc32xx lock CC3235SF_LAUNCHXL (read only) 605018 605066 48 0.0
.debug_aranges 101232 101240 8 0.0
.debug_frame 342084 342112 28 0.0
.debug_info 19674634 19674786 152 0.0
.debug_line 2671903 2671974 71 0.0
.debug_loclists 1491139 1491202 63 0.0
.debug_rnglists 94412 94418 6 0.0
.debug_str 3131828 3131938 110 0.0
.strtab 483089 483132 43 0.0
.symtab 287232 287280 48 0.0
.text 498572 498620 48 0.0
qpg lighting-app qpg6105+debug (read/write) 1169632 1169688 56 0.0
.text 616732 616788 56 0.0
Decreases (1 build for bl602)
platform target config section 0b4fba2 922dc60 change % change
bl602 lighting-app bl602 .text 1035988 1035986 -2 -0.0
Full report (9 builds for bl602, bl702, cc32xx, linux, qpg)
platform target config section 0b4fba2 922dc60 change % change
bl602 lighting-app bl602 (read/write) 1355010 1355010 0 0.0
.bss 87886 87886 0 0.0
.data 9648 9648 0 0.0
.text 1035988 1035986 -2 -0.0
bl602+rpc (read/write) 1401278 1401278 0 0.0
.bss 95934 95934 0 0.0
.data 10040 10040 0 0.0
.text 1067342 1067342 0 0.0
bl702 lighting-app bl702 0 0 0 0.0
(read only) 3358 3358 0 0.0
(read/write) 1185791 1186047 256 0.0
.bleromro 6342 6342 0 0.0
.bleromrw 124 124 0 0.0
.boot2 328 328 0 0.0
.bss 67585 67585 0 0.0
.bss_psram 24368 24368 0 0.0
.comment 48 48 0 0.0
.data 3952 3952 0 0.0
.debug_abbrev 1550204 1550204 0 0.0
.debug_aranges 132944 132952 8 0.0
.debug_frame 488808 488848 40 0.0
.debug_info 40943093 40943242 149 0.0
.debug_line 5301455 5301540 85 0.0
.debug_loc 3424613 3424731 118 0.0
.debug_ranges 372344 372352 8 0.0
.debug_str 3708223 3708333 110 0.0
.hbn 536 536 0 0.0
.hbn_noinit 260 260 0 0.0
.init 342 342 0 0.0
.init_array 140 140 0 0.0
.psram 0 0 0 0.0
.riscv.attributes 47 47 0 0.0
.rodata 106320 106320 0 0.0
.rsvd 4 4 0 0.0
.sha_ocram 72 72 0 0.0
.shstrtab 304 304 0 0.0
.stack 2048 2048 0 0.0
.strtab 580786 580829 43 0.0
.symtab 175264 175280 16 0.0
.tcm_data 28 28 0 0.0
.tcmcode 3358 3358 0 0.0
.text 965478 965734 256 0.0
bl702+rpc 0 0 0 0.0
(read only) 3358 3358 0 0.0
(read/write) 1273571 1273827 256 0.0
.bleromro 6342 6342 0 0.0
.bleromrw 124 124 0 0.0
.boot2 328 328 0 0.0
.bss 75633 75633 0 0.0
.bss_psram 24768 24768 0 0.0
.comment 48 48 0 0.0
.data 4504 4504 0 0.0
.debug_abbrev 1706954 1706954 0 0.0
.debug_aranges 141224 141232 8 0.0
.debug_frame 516780 516820 40 0.0
.debug_info 45848908 45849057 149 0.0
.debug_line 5716360 5716445 85 0.0
.debug_loc 3626917 3627035 118 0.0
.debug_ranges 397648 397656 8 0.0
.debug_str 4133328 4133438 110 0.0
.hbn 536 536 0 0.0
.hbn_noinit 260 260 0 0.0
.init 342 342 0 0.0
.init_array 156 156 0 0.0
.psram 0 0 0 0.0
.riscv.attributes 47 47 0 0.0
.rodata 120144 120144 0 0.0
.rsvd 4 4 0 0.0
.sha_ocram 72 72 0 0.0
.shstrtab 304 304 0 0.0
.stack 2048 2048 0 0.0
.strtab 641456 641499 43 0.0
.symtab 193600 193616 16 0.0
.tcm_data 28 28 0 0.0
.tcmcode 3358 3358 0 0.0
.text 1038106 1038362 256 0.0
cc32xx lock CC3235SF_LAUNCHXL 0 0 0 0.0
(read only) 605018 605066 48 0.0
(read/write) 204164 204164 0 0.0
.ARM.attributes 44 44 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 197576 197576 0 0.0
.comment 206 206 0 0.0
.data 1468 1468 0 0.0
.debug_abbrev 957619 957619 0 0.0
.debug_aranges 101232 101240 8 0.0
.debug_frame 342084 342112 28 0.0
.debug_info 19674634 19674786 152 0.0
.debug_line 2671903 2671974 71 0.0
.debug_line_str 513 513 0 0.0
.debug_loc 33340 33340 0 0.0
.debug_loclists 1491139 1491202 63 0.0
.debug_ranges 4984 4984 0 0.0
.debug_rnglists 94412 94418 6 0.0
.debug_str 3131828 3131938 110 0.0
.ramVecs 780 780 0 0.0
.resetVecs 64 64 0 0.0
.rodata 104322 104322 0 0.0
.shstrtab 265 265 0 0.0
.stack 2048 2048 0 0.0
.strtab 483089 483132 43 0.0
.symtab 287232 287280 48 0.0
.text 498572 498620 48 0.0
linux chip-tool-ipv6only arm64 (read only) 12259740 12259740 0 0.0
(read/write) 746696 746696 0 0.0
.bss 34392 34392 0 0.0
.data 3008 3008 0 0.0
.data.rel.ro 688336 688336 0 0.0
.dynamic 560 560 0 0.0
.got 15752 15752 0 0.0
.init 24 24 0 0.0
.init_array 216 216 0 0.0
.rodata 570208 570208 0 0.0
.text 9916788 9916788 0 0.0
thermostat-no-ble arm64 (read only) 2528324 2528324 0 0.0
(read/write) 145816 145816 0 0.0
.bss 56392 56392 0 0.0
.data 1784 1784 0 0.0
.data.rel.ro 78048 78048 0 0.0
.dynamic 560 560 0 0.0
.got 5472 5472 0 0.0
.init 24 24 0 0.0
.init_array 432 432 0 0.0
.rodata 130136 130136 0 0.0
.text 2133456 2133456 0 0.0
qpg lighting-app qpg6105+debug (read/write) 1169632 1169688 56 0.0
.bss 99632 99632 0 0.0
.data 856 856 0 0.0
.text 616732 616788 56 0.0
lock-app qpg6105+debug (read/write) 1139500 1139500 0 0.0
.bss 94824 94824 0 0.0
.data 856 856 0 0.0
.text 586600 586600 0 0.0

src/app/util/af.h Outdated Show resolved Hide resolved
src/app/util/attribute-storage.cpp Outdated Show resolved Hide resolved
src/app/util/af.h Outdated Show resolved Hide resolved
src/app/util/af.h Outdated Show resolved Hide resolved
src/app/util/af.h Outdated Show resolved Hide resolved
src/app/util/af.h Outdated Show resolved Hide resolved
src/app/util/af.h Outdated Show resolved Hide resolved
src/app/util/attribute-storage.cpp Outdated Show resolved Hide resolved
src/app/util/attribute-storage.cpp Outdated Show resolved Hide resolved
src/app/util/attribute-storage.cpp Outdated Show resolved Hide resolved
src/app/util/attribute-storage.cpp Outdated Show resolved Hide resolved
src/app/util/attribute-storage.cpp Show resolved Hide resolved
Copy link
Contributor

@bzbarsky-apple bzbarsky-apple left a comment

Choose a reason for hiding this comment

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

If we're keeping that loop, this looks good, with these bits fixed up.

src/app/util/attribute-storage.cpp Outdated Show resolved Hide resolved
src/app/util/attribute-storage.cpp Outdated Show resolved Hide resolved
src/app/util/attribute-storage.cpp Outdated Show resolved Hide resolved
src/app/util/attribute-storage.cpp Outdated Show resolved Hide resolved
src/app/util/attribute-storage.cpp Outdated Show resolved Hide resolved
src/app/util/attribute-storage.cpp Outdated Show resolved Hide resolved
src/app/util/attribute-storage.cpp Outdated Show resolved Hide resolved
@jmartinez-silabs jmartinez-silabs merged commit b7c4222 into project-chip:master May 16, 2023
@jmartinez-silabs jmartinez-silabs deleted the OO_dynamic_ep branch May 16, 2023 19:59
tianfeng-yang pushed a commit to tianfeng-yang/connectedhomeip that referenced this pull request May 17, 2023
…to handl… (project-chip#26254)

* Increase the size of  the onoff cluster's eventControl array to handle the max dynamic enpoints count

* Create a new function to get the real index of the endpoint, that contains a specific cluster server,  as stored in emAfEndpoints. Use it in Onoff cluster server to map the endpoint to the EventControl array of the server

* Fix emberAfGetClusterServerEndpointIndex so the returned index is adjusted to the cluster server implementation

* Update function brief as macOS Build complains about the : after the param name [-Werror,-Wdocumentation

* Apply suggestions from code review

Co-authored-by: Boris Zbarsky <[email protected]>

* Add a VerifyorDie, Invert condition check for early return and outdent rest of the code

* Restyled by clang-format

* Apply suggestions from code review

Co-authored-by: Boris Zbarsky <[email protected]>

---------

Co-authored-by: Boris Zbarsky <[email protected]>
Co-authored-by: Restyled.io <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants