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

tests: lib: cmsis:transform: cf64 min_ram 128k #27850

Merged
merged 2 commits into from Sep 10, 2020

Conversation

ABOSTM
Copy link
Collaborator

@ABOSTM ABOSTM commented Aug 27, 2020

tests: lib: cmsis:transform: cf64 min_ram 128k

tests/lib/cmsis_dsp/transform/ with config:

  • libraries.cmsis_dsp.transform.cf64
    Needs more than 64k RAM.
    128k is sufficient if tests steps are reordered
    (decreasing malloc size)

Fixes #27849

@ABOSTM ABOSTM added the area: Tests Issues related to a particular existing or missing test label Aug 27, 2020
@ABOSTM ABOSTM requested a review from erwango August 27, 2020 14:42
Copy link
Member

@stephanosio stephanosio left a comment

Choose a reason for hiding this comment

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

Could you split the changes in testcase.yml and cf64.c into separate commits?

Ideally, updating the memory requirement in testcase.yml should be sufficient; but, it seems an additional change (reordering) is required due to something funny going on inside newlib malloc -- which ought to be investigated and fixed; after which, it should no longer be necessary and therefore reverted.

tests/lib/cmsis_dsp/transform/testcase.yaml Outdated Show resolved Hide resolved
tests/lib/cmsis_dsp/transform/src/cf64.c Show resolved Hide resolved
tests/lib/cmsis_dsp/transform/ with config:
   * libraries.cmsis_dsp.transform.cf64
Needs more than 64k RAM.

Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
tests/lib/cmsis_dsp/transform/ with config:
   * libraries.cmsis_dsp.transform.cf64
96k is sufficient if tests steps are reordered
(decreasing malloc size)
Tested on nucleo_l476rg

Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
@ABOSTM
Copy link
Collaborator Author

ABOSTM commented Sep 1, 2020

Similar PR for tests/lib/cmsis_dsp/matrix/: #27925

@carlescufi
Copy link
Member

@erwango @ioannisg please review

@carlescufi carlescufi added this to the v2.4.0 milestone Sep 4, 2020
Copy link
Member

@ioannisg ioannisg left a comment

Choose a reason for hiding this comment

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

Even if the fragmentation is not the root cause if this problem (which this PR is trying to fix), I think this PR is fine as it is, theoretically, a "no-op" : it only re-orders the tests.

@ioannisg
Copy link
Member

ioannisg commented Sep 4, 2020

Not urgent to be merged before the 2.4 freeze - this is probably fixing a bug, so it can be dealt with later.

@galak galak added the bug The issue is a bug, or the PR is fixing a bug label Sep 4, 2020
@ioannisg ioannisg merged commit 29f4c5e into zephyrproject-rtos:master Sep 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Tests Issues related to a particular existing or missing test bug The issue is a bug, or the PR is fixing a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tests: lib: cmsis_dsp: transform: malloc out of memory
6 participants