Skip to content

Conversation

mtomczykmobica
Copy link

…ion. TDB_INTERNAL is always for first choose.

Summary of changes

Chenged order of choosed KVStore to TDB_INTERNAL for default configuration.
Updated tests and documentation.

Impact of changes

Migration actions required

Documentation


Pull request type

[X] Patch update (Bug fix / Target update / Docs update / Test update / Refactor)
[] Feature update (New feature / Functionality change / New API)
[] Major update (Breaking change E.g. Return code change / API behaviour change)

Test results

[] No Tests required for this change (E.g docs only update)
[X] Covered by existing mbed-os tests (Greentea or Unittest)
[] Tests / results supplied as part of this PR

Reviewers

@SeppoTakalo
@VeijoPesonen
@0xc0170

SeppoTakalo
SeppoTakalo previously approved these changes Mar 18, 2020
#if COMPONENT_FLASHIAP
internal_start_address = MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_BASE_ADDRESS;
internal_rbp_size = MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_SIZE;
#elif COMPONENT_QSPIF || COMPONENT_SPIF || COMPONENT_DATAFLASH
Copy link
Contributor

@VeijoPesonen VeijoPesonen Mar 18, 2020

Choose a reason for hiding this comment

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

I would say this configuration isn't even possible without FLASHIAP - please see TDB_External documentation. What I'm saying is that the TDB_External option should be dropped from default configurations. Only possibility would be to use TDB_External_no_RBP configuration (which means there isn't Root of Trust neither)

Copy link
Author

Choose a reason for hiding this comment

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

Removed @VeijoPesonen please check.

@mergify mergify bot added the needs: CI label Mar 18, 2020
@mergify mergify bot dismissed SeppoTakalo’s stale review March 18, 2020 10:30

Pull request has been modified.

@ciarmcom ciarmcom requested review from 0xc0170, SeppoTakalo, VeijoPesonen and a team March 18, 2020 12:00
@ciarmcom
Copy link
Member

@mtomczykmobica, thank you for your changes.
@VeijoPesonen @SeppoTakalo @0xc0170 @ARMmbed/mbed-os-storage @ARMmbed/mbed-os-maintainers please review.

#if COMPONENT_FLASHIAP
internal_start_address = MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_BASE_ADDRESS;
internal_rbp_size = MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_SIZE;
#elif COMPONENT_SD
Copy link
Contributor

@VeijoPesonen VeijoPesonen Mar 18, 2020

Choose a reason for hiding this comment

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

Actually we should touch this tests case. We of course want to test all combinations. We need to remember that there is a distinction between what are possible default configurations and what configurations we do test.

#if COMPONENT_QSPIF || COMPONENT_SPIF || COMPONENT_DATAFLASH
#if COMPONENT_FLASHIAP
return _storage_config_TDB_INTERNAL();
#elif COMPONENT_QSPIF || COMPONENT_SPIF || COMPONENT_DATAFLASH
Copy link
Contributor

@VeijoPesonen VeijoPesonen Mar 18, 2020

Choose a reason for hiding this comment

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

This should be removed. If COMPONENT_FLASHIAP is not defined compiler error should be removed.

return _storage_config_TDB_INTERNAL();
#elif COMPONENT_QSPIF || COMPONENT_SPIF || COMPONENT_DATAFLASH
return _storage_config_TDB_EXTERNAL();
#elif COMPONENT_SD
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be removed.

…ion. TDB_INTERNAL is always for first choose.
@mtomczykmobica
Copy link
Author

From ticket:
"We discussed with Veijo Pesonen and decided that we should modify the scope of this ticket a little bit.

By default, the KVStore should go to internal flash. No other defaults should exist.

KVStorore should go to external device ONLY if requested by configuration values.

So you can simplify the code a lot."

Changes done.
@SeppoTakalo and @VeijoPesonen please review.

@mergify mergify bot removed the needs: review label Mar 18, 2020
@SeppoTakalo
Copy link
Contributor

@VeijoPesonen Please check also..

Copy link
Contributor

@VeijoPesonen VeijoPesonen 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

@0xc0170
Copy link
Contributor

0xc0170 commented Mar 18, 2020

CI started

@mbed-ci
Copy link

mbed-ci commented Mar 18, 2020

Test run: FAILED

Summary: 1 of 7 test jobs failed
Build number : 1
Build artifacts

Failed test jobs:

  • jenkins-ci/mbed-os-ci_dynamic-memory-usage

@mtomczykmobica
Copy link
Author

CI, failed first in PR: #12528

@VeijoPesonen
Copy link
Contributor

@0xc0170 the bot doesn't care about the test results?

@mtomczykmobica
Copy link
Author

@0xc0170 the bot doesn't care about the test results?

Rerun test on master and have the same error:
https://mbed-os.mbedcloudtesting.com/blue/organizations/jenkins/mbed-os-ci_dynamic-memory-usage/detail/mbed-os-ci_dynamic-memory-usage/4786/pipeline
Looks like some problem with CI.
Suspected commit:
https://github.com/ARMmbed/mbed-os-ci/commit/4c6c1d9f44dca2ec811f9164233bf948e2d6be3e

@0xc0170
Copy link
Contributor

0xc0170 commented Mar 19, 2020

@jamesbeyond @VeliMattiLahtela Can you review ^^ ? Looks like dynamic test is failing in PRs today

@0xc0170
Copy link
Contributor

0xc0170 commented Mar 19, 2020

As it was aborted, I restarted it to get the failure

@0xc0170 0xc0170 changed the title [Storage] Use internal flash for KVStore always if default configurat… Storage: Use internal flash for KVStore always if default config Mar 19, 2020
@mtomczykmobica
Copy link
Author

@0xc0170 Now CI works, thank you Martin.

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.

6 participants