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

Do Not Review, Do Not Merge: Do Not Review, Do Not Merge: Prototype for single file PSA/Legacy Mbed TLS configs #116

Open
wants to merge 46 commits into
base: main
Choose a base branch
from

Commits on Oct 19, 2023

  1. [nrf noup] add missing items in TF-M interface headers

    -crypto_types.h: Added definition of mbedtls_svc_key_id_t needed
     for NS build TLS/DTLS APIs
    
    -crypto_values.h: Added lots of functions for mbedtls_svc_key_id_t
     needed for NS build TLS/DTLS APIs
    
    Add missing function for TLS/DTLS usage in crypto_extra.h. This needs
    to go upstream, but most likely containing more functions.
    
    Signed-off-by: Frank Audun Kvamtrø <[email protected]>
    Signed-off-by: Joakim Andersson <[email protected]>
    (cherry picked from commit 08bb0ce)
    (cherry picked from commit c93707c)
    Signed-off-by: Joakim Andersson <[email protected]>
    (cherry picked from commit 7466755)
    Signed-off-by: Markus Swarowsky <[email protected]>
    frkv authored and joerchan committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    ef19839 View commit details
    Browse the repository at this point in the history
  2. [nrf noup] crypto: Have CRYPTO_HW_ACCELERATOR support nrf_security

    Adjust CRYPTO_HW_ACCELERATOR build scripts to also support
    nrf_security.
    
    Signed-off-by: Sebastian Bøe <[email protected]>
    Signed-off-by: Joakim Andersson <[email protected]>
    (cherry picked from commit c136210)
    (cherry picked from commit 3834117)
    Signed-off-by: Joakim Andersson <[email protected]>
    (cherry picked from commit 2bdad64)
    Signed-off-by: Markus Swarowsky <[email protected]>
    Change-Id: Ied8e378ef55fe398ea4e45f65b3c270e9e9cd030
    Signed-off-by: Markus Swarowsky <[email protected]>
    SebastianBoe authored and joerchan committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    5903966 View commit details
    Browse the repository at this point in the history
  3. [nrf toup] secure_fw: Add option to log output on a shared UART insta…

    …nce.
    
    Add an option to send the log output from the secure firmware on a
    UART instance that would be shared with the non-secure application.
    
    This option is added where the number of UART instances is limited
    and the application only cares about the receiving the TF-M log
    on fatal errors.
    
    To allow this option to be enabled the log is disabled in the boot
    process before the non-secure application is started.
    It is enabled again when an unrecoverable exception has occurred in
    the secure firmware.
    
    NCSDK-18595
    
    Signed-off-by: Joakim Andersson <[email protected]>
    (cherry picked from commit 19403a8)
    Signed-off-by: Joakim Andersson <[email protected]>
    (cherry picked from commit 54af7a2)
    Signed-off-by: Markus Swarowsky <[email protected]>
    Change-Id: I65e33f48bd7c6334d04b528c28e8b2d4a3331d0d
    Signed-off-by: Markus Swarowsky <[email protected]>
    joerchan committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    8f000f6 View commit details
    Browse the repository at this point in the history
  4. [nrf toup] platform: nordic_nrf: Add support shared UART and using UA…

    …RT0 instance
    
    Add support for selecting which UART instance to use as the secure UART
    instance. The supported options are UART0 and UART1.
    
    Add support for the secure UART instance being shared with the non-secure
    application.
    The UART instance is configured as non-secure after it has been
    uninitialized, and configured as secure when it is initialized again
    on a fatal error.
    
    NCSDK-18595
    
    Signed-off-by: Joakim Andersson <[email protected]>
    (cherry picked from commit b2346e8)
    Signed-off-by: Joakim Andersson <[email protected]>
    (cherry picked from commit 97224b0)
    Signed-off-by: Markus Swarowsky <[email protected]>
    Change-Id: I2da826ec4817143ece52baeceaab14999f0d2d96
    Signed-off-by: Markus Swarowsky <[email protected]>
    joerchan committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    d2a1b89 View commit details
    Browse the repository at this point in the history
  5. [nrf noup] platform: crypto: Check if for config instead of setting it

    Check if the required configuration has been set in the configuration
    header instead of suddenly setting it outside of the configuration
    header.
    If the configuration is missing this definition this could lead to an
    inconsistent configuration.
    
    This is a noup commit because this definition has been removed in
    another upstream commit 7e80490 and
    this is not easily backported.
    
    Signed-off-by: Joakim Andersson <[email protected]>
    (cherry picked from commit 4be04d6)
    Signed-off-by: Markus Swarowsky <[email protected]>
    Change-Id: Iea8daa284033611c76dd8102a3cd9bbec99ffcbf
    Signed-off-by: Markus Swarowsky <[email protected]>
    joerchan committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    1b67f48 View commit details
    Browse the repository at this point in the history
  6. [nrf fromtree] platform: Add platform default UART control definition

    Add platform default UART control definition.
    For platforms that wishes to use a UART configuration different from
    the default CMSIS control value the default valuse need to be supplied
    in the call to set control.
    
    This makes it possible for a platform to set for example Hardware
    Flow Contol configuration.
    Having support for Hardware Flow Control is useful for running the TF-M
    regression tests reliably.
    
    Upstream PR:
    https://review.trustedfirmware.org/c/TF-M/trusted-firmware-m/+/20374
    
    Signed-off-by: Joakim Andersson <[email protected]>
    (cherry picked from commit f16b472)
    Signed-off-by: Markus Swarowsky <[email protected]>
    Change-Id: I64ea2f1f261624c82037d3e85231234427978c7e
    Signed-off-by: Markus Swarowsky <[email protected]>
    joerchan committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    009179c View commit details
    Browse the repository at this point in the history
  7. [nrf fromtree] platform: nordic_nrf: Add hardware flow control support

    Add driver support for hardware flow control.
    Leave it as default off.
    
    Upstream PR:
    https://review.trustedfirmware.org/c/TF-M/trusted-firmware-m/+/20375
    
    Signed-off-by: Joakim Andersson <[email protected]>
    (cherry picked from commit ab8140d)
    Signed-off-by: Markus Swarowsky <[email protected]>
    Change-Id: I86aa7a19270ad6cd9d852c73101c9de1941f364c
    Signed-off-by: Markus Swarowsky <[email protected]>
    joerchan committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    8737c6f View commit details
    Browse the repository at this point in the history
  8. [nrf noup] crypto: replace usage of mbedtls_hkdf

    Replaces usage of mbedtls_hkdf with PSA Crypto API.
    
    Noup: This is essentially the same functionality as in change
    I41ea9cb2af6627aa7ed3a8454898d16d4b5d6306 from upstream, that
    can't be cleanly cherry-picked since the code has been refactored.
    
    Signed-off-by: Vidar Lillebø <[email protected]>
    (cherry picked from commit 2ff3fdd)
    Signed-off-by: Markus Swarowsky <[email protected]>
    Change-Id: Ib4bcea3f9b7ea2676b612a20b226a8ae6118bb9b
    Signed-off-by: Markus Swarowsky <[email protected]>
    vili-nordic authored and joerchan committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    ac52dba View commit details
    Browse the repository at this point in the history
  9. [nrf noup] Include PSA config file in TF-M PSA interface header

    Include the PSA config file in TF_M PSA interface header.
    
    This is a noup commit because it is and adapted change based on upstream
    commit that contains other changes that would cause merge conflicts.
    An additional PR was made to upstream to improve the way the config
    header is included.
    
    Upstream commit:
    34a0ffd
    Upstream PR:
    https://review.trustedfirmware.org/c/TF-M/trusted-firmware-m/+/21759
    
    Signed-off-by: Joakim Andersson <[email protected]>
    (cherry picked from commit 86fdfb9)
    Signed-off-by: Markus Swarowsky <[email protected]>
    Change-Id: I048f4174486a911bd1451de5a244446601608d29
    Signed-off-by: Markus Swarowsky <[email protected]>
    joerchan committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    20df030 View commit details
    Browse the repository at this point in the history
  10. [nrf fromtree] crypto: Fix PSA max hash size without configuration he…

    …ader included
    
    The PSA header only includes the configuration header when
    MBEDTLS_PSA_CRYPTO_CONFIG_FILE is given on the command line.
    If the configuration file has not been included assume that the
    maximum hash size is the maximum possible instead of the minimal
    possible.
    This is consistent with how PSA_VENDOR_ECC_MAX_CURVE_BITS is defined.
    
    Change-Id: I4c137a947ca0dbdbddf7eaac74e6ce59ae988224
    Signed-off-by: Joakim Andersson <[email protected]>
    (cherry picked from commit 779cfe0)
    (cherry picked from commit ccab64f)
    Signed-off-by: Markus Swarowsky <[email protected]>
    joerchan committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    bbad10a View commit details
    Browse the repository at this point in the history
  11. [nrf noup] platform: nordic_nrf: Unify code between startup files

    Unify common code between nrf startup files.
    
    Signed-off-by: Sebastian Bøe <[email protected]>
    (cherry picked from commit cca1de1)
    Signed-off-by: Markus Swarowsky <[email protected]>
    Change-Id: I78be920afe68f2a9d930605617b654cbf12af5d4
    Signed-off-by: Markus Swarowsky <[email protected]>
    SebastianBoe authored and joerchan committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    26ab2aa View commit details
    Browse the repository at this point in the history
  12. [nrf noup] platform: nordic_nrf: Use aliased default IRQ handlers

    Currently we are generating dozens of default IRQ Handlers that each
    just spin. In sum, 256 bytes of IRQ handlers that do nothing.
    
    In this patch we save these bytes by using the alias attribute.
    
    Now there is only one default IRQ handler placed in flash and all the
    default IRQ handlers alias to it.
    
    I tried to place the duplicated default_tfm_IRQHandler in the common
    startup.c, but it did not work. I am not certain, but I think this is
    due to a problem with the way we link in TF-M.
    
    Signed-off-by: Sebastian Bøe <[email protected]>
    (cherry picked from commit 3dcb0c3)
    Signed-off-by: Markus Swarowsky <[email protected]>
    SebastianBoe authored and joerchan committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    80d2fb0 View commit details
    Browse the repository at this point in the history
  13. [nrf noup] platform: nordic_nrf: Don't hang in IRQs by default

    The current default IRQ handler will hang forever. It is bad practice
    to hang forever in production.
    
    Instead we now print the exception information and then panic. Which
    will either reboot or hang forever depending on the configuration.
    
    It is bad practice to for the default IRQ handler to be triggered at
    all and it should indicate a configuration error.
    
    Signed-off-by: Sebastian Bøe <[email protected]>
    (cherry picked from commit 49627ca)
    Signed-off-by: Markus Swarowsky <[email protected]>
    SebastianBoe authored and joerchan committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    a34be11 View commit details
    Browse the repository at this point in the history
  14. [nrf noup] platform: nordic_nrf: Use the correct SPU_IRQHandler

    There is a build system bug where the wrong IRQ handler is used for
    the SPU.
    
    trusted-firmware-m/platform/ext/target/nordic_nrf/common/core/faults.c
    defines the symbol SPU_IRQHandler.
    
    And the intention is for this to be used.
    
    But the linker never checks faults.c for undefined symbols because it
    already has a weak symbol for SPU_IRQHandler from the startup file to
    satisfy itself.
    
    For the weak symbol to work properly faults.c needs to be linked into
    the build either because it provides some symbol that is undefined, or
    through the use of --whole-archive as Zephyr does.
    
    Until TF-M uses --whole-archive, weak symbols will not work as
    intended.
    
    Signed-off-by: Sebastian Bøe <[email protected]>
    (cherry picked from commit b2580be)
    Signed-off-by: Markus Swarowsky <[email protected]>
    SebastianBoe authored and joerchan committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    837c522 View commit details
    Browse the repository at this point in the history
  15. [nrf noup] platform: nordic_nrf: ifdef out weak fault handlers

    Default IRQ handlers will usually be overriden as they are weak. But
    due to the way TF-M links it's binary (doesn't use whole-archive),
    weak doesn't always work. So we explicitly ifdef out some IRQ handlers
    that we know will be overridden by non-weak symbols anyway to be safe.
    
    Signed-off-by: Sebastian Bøe <[email protected]>
    (cherry picked from commit 5fa2863)
    Signed-off-by: Markus Swarowsky <[email protected]>
    SebastianBoe authored and joerchan committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    b9ca43b View commit details
    Browse the repository at this point in the history
  16. [nrf noup] platform: nordic_nrf: Bugfix in startup file

    Fix a bug in the startup file where the ifdef was incorrectly negated.
    
    Also add declarations for when the default irq handler is not used.
    
    Signed-off-by: Sebastian Bøe <[email protected]>
    (cherry picked from commit 26d6cb4)
    Signed-off-by: Markus Swarowsky <[email protected]>
    SebastianBoe authored and joerchan committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    82287a5 View commit details
    Browse the repository at this point in the history
  17. [nrf fromtree] Platform: nordic: unify target configuration

    unify target configuration for nrf53, nrf91, and laird.
    
    Combining these three source files into a single file makes it easier
    to make changes as patches don't need to be applied three times.
    
    Change-Id: I3c0db861b8db9981552b689e298b525918afff36
    Signed-off-by: Sebastian Bøe <[email protected]>
    (cherry picked from commit 652bcb4)
    Signed-off-by: Markus Swarowsky <[email protected]>
    SebastianBoe authored and joerchan committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    7b6cc5f View commit details
    Browse the repository at this point in the history
  18. [nrf fromtree] platform: nordic_nrf: rewrite SPU functions

    Rewrite the SPU functions to make it more clear what the permissions
    will be and thereby prevent accidental priviledge elevation.
    
    Signed-off-by: Sebastian Bøe <[email protected]>
    Change-Id: I3c0db861b8db9981552b699e298b525918afff36
    (cherry picked from commit 64f3141)
    Signed-off-by: Markus Swarowsky <[email protected]>
    SebastianBoe authored and joerchan committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    063f830 View commit details
    Browse the repository at this point in the history
  19. [nrf noup] platform: nordic_nrf: Move startup CMake code into common

    Move CMake code for adding a startup file into common code.
    
    This improves portability.
    
    Signed-off-by: Sebastian Bøe <[email protected]>
    (cherry picked from commit 7815216)
    Signed-off-by: Markus Swarowsky <[email protected]>
    SebastianBoe authored and joerchan committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    4791102 View commit details
    Browse the repository at this point in the history
  20. [nrf noup] platform: nrf_nordic: Add temp fix for for secure FPU on 9161

    The MDK for nRF9120 used in the nRF9161 target doesn't define the Secure FPU
    as it doesn't exist, but for other platforms like the 9160 it has a dummy
    define, with an UNUSED field in the type.
    The long plan is to get this fixed in the MDK but until then, to make
    the nrfxlib 3.1.0 update possible this tempfix is applied.
    
     Ref: NCSDK-23046
    
    Signed-off-by: Markus Swarowsky <[email protected]>
    Change-Id: I44042ee9aada99c59a5930440306bb6c40ae4880
    (cherry picked from commit 6ad9c58)
    Signed-off-by: Markus Swarowsky <[email protected]>
    mswarowsky authored and joerchan committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    a489e9f View commit details
    Browse the repository at this point in the history
  21. [nrf fromtree] ITS: Add support for encrypted ITS

    -Adds encryption and authentication support for ITS files
    -Encryption is optional and is enabled using a CMake variable
    -The encryption implementation is platform dependent,
     the signatures of the APIs are provided in this change
    
    Change-Id: Ifd3a67ac2274fa8d7ceec19482f7cec01b2cac54
    Signed-off-by: Markus Swarowsky <[email protected]>
    (cherry picked from commit 7de096f)
    Signed-off-by: Markus Swarowsky <[email protected]>
    mswarowsky authored and joerchan committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    45db59c View commit details
    Browse the repository at this point in the history
  22. [nrf fromtree] platform: nordic_nrf: Move ITS defines to common CMake

    The TFM_ITS_ENCRYPTED define (and friends) are the same for all nrf
    platforms so put the CMake code in the common CMakeLists.txt file.
    
    This improves portability.
    
    Change-Id: Ifedb4eb6119aa9a50dd5444a07fb0d4ee3ab4303
    (cherry picked from commit d49a3e4)
    Signed-off-by: Markus Swarowsky <[email protected]>
    SebastianBoe authored and joerchan committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    2f39a22 View commit details
    Browse the repository at this point in the history
  23. [nrf fromtree] nordic_nrf: Set FLIH IRQ tests as default

    Disabling Second-level Interrupt handling tests to run the first-level
    tests as default on nordic platforms.
    
    Change-Id: I6547d942e892f78dfa954f4aed2398807eafa1df
    Signed-off-by: Markus Swarowsky <[email protected]>
    (cherry picked from commit a3e5318)
    Signed-off-by: Markus Swarowsky <[email protected]>
    mswarowsky authored and joerchan committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    263f942 View commit details
    Browse the repository at this point in the history
  24. [nrf fromtree] platform: nordic_nrf: Move STORAGE define to common CMake

    Move NRF_NS_STORAGE define to a common CMake file.
    
    This improves portability.
    
    Signed-off-by: Markus Swarowsky <[email protected]>
    Change-Id: I1fc57f58b507222a0927a9688d56c55549d5dcfa
    (cherry picked from commit 2f9e785)
    Signed-off-by: Markus Swarowsky <[email protected]>
    SebastianBoe authored and joerchan committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    e99176e View commit details
    Browse the repository at this point in the history
  25. [nrf fromtree] platform: nordic_nrf: Move define to common CMake

    Move NRF_NS_SECONDARY define to common CMake.
    
    This improves portability.
    
    Change-Id: Ie6dfff1b89cedfbc4bec93088c7d6f6e190a6f69
    Signed-off-by: Markus Swarowsky <[email protected]>
    (cherry picked from commit eb5162f)
    Signed-off-by: Markus Swarowsky <[email protected]>
    SebastianBoe authored and joerchan committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    ea9bc57 View commit details
    Browse the repository at this point in the history
  26. [nrf fromtree] platform: nordic_nrf: Fix ITS encryption config

    The wrong CMake define for enabling encryption in ITS was used.
    
    Change-Id: I9e3b0e363e6588272167ef84f6ca1769ff7687d5
    Signed-off-by: Markus Swarowsky <[email protected]>
    (cherry picked from commit 6e2de43)
    Signed-off-by: Markus Swarowsky <[email protected]>
    mswarowsky authored and joerchan committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    504e700 View commit details
    Browse the repository at this point in the history
  27. [nrf fromtree] Docs: Update ITS encryption graphic

    The design of the ITS encryption was changed during the review
    process but the graphic in the doc was not updated to the final design.
    So update the graphic now.
    
    Change-Id: I97c9ece25743bdd1eae05557d5e027b8128b4a90
    Signed-off-by: Markus Swarowsky <[email protected]>
    (cherry picked from commit d1c6dd1)
    Signed-off-by: Markus Swarowsky <[email protected]>
    mswarowsky authored and joerchan committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    68ce232 View commit details
    Browse the repository at this point in the history
  28. [nrf fromlist] platform: nordic_nrf: Fix assert in initialization

    This fixes an erroneous attempt to configure the FPU
    peripheral in NRF91 series. The FPU is not configurable
    in NRF91 series and it is always non-secure. This caused
    a failed assertion in the initialzation since the FPU
    present field is not set for the SPU configuration.
    
    This change configures the FPU only in NRF53 series devices
    which have a configurable FPU.
    
    Ref: NCSDK-23619
    
    Upstream PR:
    https://review.trustedfirmware.org/c/TF-M/trusted-firmware-m/+/23470
    
    Signed-off-by: Georgios Vasilakis <[email protected]>
    Change-Id: Ia00e0e620ab51850e6ee8b382e5d03a245b6db0c
    Vge0rge authored and joerchan committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    afd54b6 View commit details
    Browse the repository at this point in the history

Commits on Oct 27, 2023

  1. [nrf fromtree] platform: nordic_nrf: add builtin atomic macros to glue

    Updated nrfx_uarte driver requires missing atomic macros:
    - nrfx_atomic_t
    - NRFX_ATOMIC_FETCH_*
    
    Signed-off-by: Nikodem Kastelik <[email protected]>
    (cherry picked from commit 33c0f47)
    nika-nordic authored and de-nordic committed Oct 27, 2023
    Configuration menu
    Copy the full SHA
    6854dd5 View commit details
    Browse the repository at this point in the history

Commits on Oct 31, 2023

  1. [nrf fromtree] platform: nordic_nrf: Set UART pins using pinctrl method

    Use the pinctrl method to define the UART pins for the nordic platform
    UART driver.
    This makes it easier to assign the UART pins from devicetree information
    which is used in out-of-tree board support.
    
    Change-Id: I8f18b730d705214670438b85c58032c6f32fff1c
    Signed-off-by: Joakim Andersson <[email protected]>
    (cherry picked from commit 70abd66)
    Signed-off-by: Joakim Andersson <[email protected]>
    joerchan authored and rlubos committed Oct 31, 2023
    Configuration menu
    Copy the full SHA
    0f553bc View commit details
    Browse the repository at this point in the history
  2. [nrf fromtree] platform: nordic_nrf: Remove unused nrf_board.h header

    Remove the unused nrf_board.h header.
    LED and Button are not in use anywhere.
    
    Change-Id: Id331ff7780202a0c0f77d1b50b92c03ee51f4b19
    Signed-off-by: Joakim Andersson <[email protected]>
    (cherry picked from commit 42283f9)
    Signed-off-by: Joakim Andersson <[email protected]>
    joerchan authored and rlubos committed Oct 31, 2023
    Configuration menu
    Copy the full SHA
    a05533d View commit details
    Browse the repository at this point in the history
  3. [nrf fromtree] platform: nordic_nrf: Add missing DEFAULT_UART_CONTROL…

    … for nrf9161 DK
    
    Add missing DEFAULT_UART_CONTROL for nrf9161 DK.
    
    Change-Id: I8dac4527d5c4904829933e837a6161c91bee2945
    Signed-off-by: Joakim Andersson <[email protected]>
    (cherry picked from commit 6089a1e)
    Signed-off-by: Joakim Andersson <[email protected]>
    joerchan authored and rlubos committed Oct 31, 2023
    Configuration menu
    Copy the full SHA
    a454c04 View commit details
    Browse the repository at this point in the history
  4. [nrf fromtree] platform: lairdconnectivity: Fix build of bl5340 DVK

    Fix build of BL 5340 DVK.
    This broke after the changes in:
    e4d4842
    
    Change-Id: I5ca66b6d929cc9a02f39f98607c487af9be206f3
    Signed-off-by: Joakim Andersson <[email protected]>
    (cherry picked from commit ab3ad73)
    Signed-off-by: Joakim Andersson <[email protected]>
    joerchan authored and rlubos committed Oct 31, 2023
    Configuration menu
    Copy the full SHA
    8f6d965 View commit details
    Browse the repository at this point in the history

Commits on Nov 13, 2023

  1. [nrf fromtree] platform: nordic_nrf: Fix nrf9160 non-secure periphera…

    …l regression
    
    Fix regression since target_cfg.c was refactored to a common file
    for nrf91 and nrf53.
    The I2S and PDM peripheral are not configured as non-secure peripherals.
    
    Change-Id: Ibc2c0caa0694458f2b0071976a7494a0d23f529b
    Signed-off-by: Joakim Andersson <[email protected]>
    (cherry picked from commit 3bd6fb8)
    joerchan authored and rlubos committed Nov 13, 2023
    Configuration menu
    Copy the full SHA
    f2a4620 View commit details
    Browse the repository at this point in the history
  2. [nrf fromlist] config: Disable cipher crypto module in small and medi…

    …um profile
    
    Disable the cipher crypto module in small, medium and mediuam-arotless
    profile. There is no algorithm for this module enabled in the mbedcrypto
    configuration header for these profiles.
    
    Upstream PR:
    https://review.trustedfirmware.org/c/TF-M/trusted-firmware-m/+/24688
    
    Change-Id: Ief1d38a984824c0e746ecbf9b1fe1a8483dba91b
    Signed-off-by: Joakim Andersson <[email protected]>
    joerchan authored and rlubos committed Nov 13, 2023
    Configuration menu
    Copy the full SHA
    b61b38d View commit details
    Browse the repository at this point in the history
  3. [nrf fromlist] partitions: crypto: Add missing PSA defined algorithms…

    … and keys checks
    
    Add missing PSA defined algorithms and keys checks.
    The checks only covered supported algorithms in mbedtls.
    However mbedtls supports accelerated PSA crypto support through the
    psa crypto driver wrappers, which can support additional algorithms
    and key types.
    
    Upstream PR:
    https://review.trustedfirmware.org/c/TF-M/trusted-firmware-m/+/24685
    
    Change-Id: Ic609d7ac58b7341316d0a071e5229ea9980fafab
    Signed-off-by: Joakim Andersson <[email protected]>
    joerchan authored and rlubos committed Nov 13, 2023
    Configuration menu
    Copy the full SHA
    13330e2 View commit details
    Browse the repository at this point in the history

Commits on Nov 22, 2023

  1. [nrf fromlist] platform: exception_info: Add getter for exception inf…

    …o context
    
    Add an API, `tfm_exception_info_get_context()`, which can be used to
    retrieve exception info from the exception_info module.
    
    This option is added allow for platform specific handling logic -- for
    example, saving the exception info to a non-volatile storage medium
    for postmortem analysis.
    
    Change Highlights:
    
      * Moved `struct exception_info_t` from `exception_info.c` to
        `exception_info.h`
      * Defined `tfm_exception_info_get_context()` which exposes access to
        the static scope `exception_info` struct from exception_info.h
    
    Upstream PR:
    https://review.trustedfirmware.org/c/TF-M/trusted-firmware-m/+/24335
    
    Signed-off-by: Chris Coleman <[email protected]>
    Change-Id: I635ef2cc79bf5221300064a3a2813d504f62d46a
    Signed-off-by: Joakim Andersson <[email protected]>
    chrisc11 authored and nordicjm committed Nov 22, 2023
    Configuration menu
    Copy the full SHA
    e80c858 View commit details
    Browse the repository at this point in the history
  2. [nrf fromlist] platform: Change exception handler to use system regis…

    …ters
    
    Change exception handler to use system registers instead of handler
    provided information to provide active exception information to the
    exception information handler.
    
    This frees up one register argument to the store and dump function.
    
    Upstream PR:
    https://review.trustedfirmware.org/c/TF-M/trusted-firmware-m/+/24876
    
    Change-Id: I70a29438fd5ac0bad6945588c5ae7431cd66d060
    Signed-off-by: Joakim Andersson <[email protected]>
    joerchan authored and nordicjm committed Nov 22, 2023
    Configuration menu
    Copy the full SHA
    dc26a72 View commit details
    Browse the repository at this point in the history
  3. [nrf fromlist] platform: Store callee saved register in exception inf…

    …ormation
    
    Store the callee saved registers in the exception information logging.
    We store the current exception frame, which has the registers of the
    caller saved registers when the exception occurs, but the callee saved
    register information is lost during the exception handling.
    This provides us with an incomplete picture of the state at the time
    the exception occurred.
    
    Upstream PR:
    https://review.trustedfirmware.org/c/TF-M/trusted-firmware-m/+/24877
    
    Change-Id: I3d15f9eccf1aa8c2c1b99e75e38229ab82420f36
    Signed-off-by: Joakim Andersson <[email protected]>
    joerchan authored and nordicjm committed Nov 22, 2023
    Configuration menu
    Copy the full SHA
    985a959 View commit details
    Browse the repository at this point in the history
  4. [nrf fromlist] platform: nordic_nrf: Store SPU fault information

    Move the SPU fault handling to only dump fault information on UART
    when TFM_EXCEPTION_INFO_DUMP is enabled.
    Store the exception info for later retrieval as the SPU handler clears
    the events.
    
    Upstream PR:
    https://review.trustedfirmware.org/c/TF-M/trusted-firmware-m/+/24878
    
    Change-Id: I3da12c30dc845e81e8725c687aefb498c82c90d7
    Signed-off-by: Joakim Andersson <[email protected]>
    joerchan authored and nordicjm committed Nov 22, 2023
    Configuration menu
    Copy the full SHA
    9739501 View commit details
    Browse the repository at this point in the history
  5. [nrf fromtree] Build: Fixed CRYPTO_TFM_BUILTIN_KEYS_DRIVER option

    Signed-off-by: Brian Quach <[email protected]>
    Change-Id: If3a43ebf1627f1929d52580dc2cf8f25cf241af4
    (cherry picked from commit c3b795f)
    Signed-off-by: Joakim Andersson <[email protected]>
    brianq-ti authored and nordicjm committed Nov 22, 2023
    Configuration menu
    Copy the full SHA
    9988cc0 View commit details
    Browse the repository at this point in the history
  6. [nrf fromlist] platform: nordic_nrf: unify target configuration header

    Unify the target configuration header, the target configuration source
    has already been unified.
    
    Upstream PR:
    https://review.trustedfirmware.org/c/TF-M/trusted-firmware-m/+/25014
    
    Signed-off-by: Joakim Andersson <[email protected]>
    joerchan authored and nordicjm committed Nov 22, 2023
    Configuration menu
    Copy the full SHA
    29f5e2b View commit details
    Browse the repository at this point in the history
  7. [nrf fromlist] platform: nordic_nrf: Refactor peripheral SPU configur…

    …ation
    
    Refactor peripheral SPU configuration to use peripheral ID instead
    of address.
    Remove helper function that is only used once.
    Refactor peripheral SPU init configuration to be a loop over an
    array of peripheral IDs.
    This is done to save flash-usage of this function.
    
    Upstream PR:
    https://review.trustedfirmware.org/c/TF-M/trusted-firmware-m/+/25015
    
    Signed-off-by: Joakim Andersson <[email protected]>
    joerchan authored and nordicjm committed Nov 22, 2023
    Configuration menu
    Copy the full SHA
    c549292 View commit details
    Browse the repository at this point in the history

Commits on Nov 23, 2023

  1. [nrf noup] platform: nordic_nrf: Fix NS build with floating point ena…

    …bled
    
    Fix TF-M building of the NS application with floating point enabled.
    This is needed in order to run the TF-M regression tests.
    
    NOUP:
    This does not have an upstream PR as this problem does not exits in the
    main branch after the TF-M split NS build feature merge.
    This commit should therefore just be reverted on next TF-M sync.
    
    Signed-off-by: Joakim Andersson <[email protected]>
    joerchan authored and rlubos committed Nov 23, 2023
    Configuration menu
    Copy the full SHA
    4c908f4 View commit details
    Browse the repository at this point in the history

Commits on Nov 29, 2023

  1. Don't set max ECP curve size

    frkv committed Nov 29, 2023
    Configuration menu
    Copy the full SHA
    dc589e3 View commit details
    Browse the repository at this point in the history
  2. WIP: removing unused user-config

    frkv committed Nov 29, 2023
    Configuration menu
    Copy the full SHA
    80c9a70 View commit details
    Browse the repository at this point in the history