Skip to content
  1. May 14, 2025
  2. May 13, 2025
    • Rajasekaran Kalidoss's avatar
      Add Linux 6.x support for Ethos-U kernel drivers · 4aa84f0d
      Rajasekaran Kalidoss authored
      
      
      The signatures of two core APIs(class_create and remove member of
      struct platform_driver) has changed between 5.16.20 and the 6.x kernel
      series. Wrap these calls in version‐guarded macros and inline shims to
      enable the drivers in 6.x kernel versions as well. Also remove the
      trivial remove callback functions and include appropriate headers
      required for the of_property_* functions.
      
      Signed-off-by: Rajasekaran Kalidoss's avatarRajasekaran Kalidoss <rajasekaran.kalidoss@arm.com>
      Change-Id: Ib69b894ddfeb066e434a67e6d9fe3efd7710f7e6
      4aa84f0d
  3. May 12, 2025
  4. May 09, 2025
  5. May 05, 2025
    • Mikael's avatar
      Add NPU setup checks to driver library Python API · ab5368cb
      Mikael authored
      
      
      The Python API tests and InferenceRunner for driver library only
      supports the Subsystem NPU configuration, so checks have been added to
      verify that the correct configuration is used.
      
      Change-Id: I85a99549ae2588c598f9dde69b7a35b554c9b2a1
      Signed-off-by: Mikael's avatarMikael Olsson <mikael.olsson@arm.com>
      ab5368cb
    • Mikael's avatar
      Fix using deprecated CMake method to find Python · 082f1c86
      Mikael authored
      
      
      Locating the Python interpreter and development libraries with
      "find_package(PythonInterp)" and "find_package(PythonLibs)" has been
      deprecated since CMake version 3.12 and was disabled by a policy in
      3.27.
      
      The new method of getting the interpreter and development libraries is
      by using find_package with Python3 and requesting the specific
      components needed.
      
      To allow the driver library's Python API to be build with CMake version
      3.27 and newer, the CMake file for the Python API has been changed to
      use the new method.
      
      Change-Id: I0ab7e9741a4bdae54894e360c5f2e40a79e496d1
      Signed-off-by: Mikael's avatarMikael Olsson <mikael.olsson@arm.com>
      082f1c86
  6. Apr 30, 2025
  7. Apr 25, 2025
    • Rajasekaran Kalidoss's avatar
      Ignore sparse warnings on restricted integer types · c389a21e
      Rajasekaran Kalidoss authored
      
      
      Add "-Wbitwise" flag to prevent sparse from treating "cast to restricted
      __le32" warnings as errors. This warning originates from the kernel code
      and is not a driver issue. In the kernel header(asm-generic/io.h), a
      u32 type is implicitly cast to a restricted type "le32" and sparse
      throws a warning. This doesn't affect the driver functionality and can
      be ignored. Note that this issue exists only in kernel version from 6.0
      to 6.2.x. In v5.x and v6.3.0 or later this issue is fixed.
      
      Change-Id: Ibc6533a55678b0515b0ffe0af80128dc5293dde3
      Signed-off-by: Rajasekaran Kalidoss's avatarRajasekaran Kalidoss <rajasekaran.kalidoss@arm.com>
      c389a21e
  8. Apr 22, 2025
  9. Apr 15, 2025
  10. Apr 07, 2025
    • Mikael's avatar
      Fix wrong index being used for constant tensor · ea814c46
      Mikael authored
      
      
      The delegate still uses a predefined index to get the tensor with the
      constant data which isn't guaranteed to be correct because TFLite will
      reorder the inputs. It has now been changed to use the index retrieved
      during the prepare stage to ensure the correct tensor is used.
      
      Change-Id: Ia3a930a0a61a7e9094ba3e671a2c297d423c2f7c
      Signed-off-by: Mikael's avatarMikael Olsson <mikael.olsson@arm.com>
      ea814c46
  11. Apr 04, 2025
    • Jonny Svärd's avatar
      CMake version 4 compatibility · 1250b086
      Jonny Svärd authored
      
      
      CMake version 4 is no longer compatible with CMakefiles that set
      cmake_minimum_required < 3.5. Update the required version to 3.16.0 to
      match what is required by TensorFlow Lite.
      
      Add policy override in thirdparty/CMakeLists.txt to force CMake to treat
      all third party CMake files as 3.10 compatible, no matter if they
      specify cmake_minimum_required and/or cmake_policy with a version
      explicitly. (Currently unclear why it's required setting both a regular
      variable and an environment variable for it to take effect.)
      
      Change-Id: Ie429433fd9c8837fc3d7129c4aca41ca52560340
      Signed-off-by: Jonny Svärd's avatarJonny Svärd <jonny.svaerd@arm.com>
      1250b086
  12. Apr 03, 2025
  13. Apr 02, 2025
  14. Apr 01, 2025
  15. Mar 14, 2025
    • Mikael's avatar
      Fix incorrect ifm and ofm order in delegate · 3f477b85
      Mikael authored
      
      
      The delegate assumed that the order of the input and output indexes
      would stay the same between the Init and Eval call. However, this is not
      the case because TFLite will sort the input and output indexes when the
      nodes are replaced and the graph gets partitioned.
      
      To handle this, the delegate will now store the initial order of the
      input and output indexes before the nodes are replaced.
      
      Change-Id: Ia5e4e218fa2e2ab6e549823c2a43c5380865890f
      Signed-off-by: Mikael's avatarMikael Olsson <mikael.olsson@arm.com>
      3f477b85
  16. Mar 11, 2025
    • Mikael's avatar
      Add support for empty constant tensor in delegate · c013b89d
      Mikael authored
      
      
      The constant tensor's data pointer was reused for the scratch tensors to
      avoid TFLite failing because TFLite sees tensors with a size but no data
      as an error.
      
      However, in some cases, the constant tensor will be empty and cannot be
      reused for the scratch tensors. To avoid this, the command tensor's data
      pointer is reused instead as it will always be set.
      
      Change-Id: I40fe5bde04f3cc5cccde96d6e4c1ea2ed2a60e2c
      Signed-off-by: Mikael's avatarMikael Olsson <mikael.olsson@arm.com>
      c013b89d
  17. Mar 04, 2025
  18. Mar 03, 2025
    • Mikael's avatar
      Fix copyFromFile reading more data than requested · f4fddb33
      Mikael authored
      
      
      The copyFromFile buffer function will always attempt to fill the full
      temporary buffer when copying from the file. This is an issue because
      the file might contain data for other buffers as well.
      
      To resolve this, the function will now take the remaining size to be
      read into account and not read more than that from the file.
      
      Change-Id: I0e9265d6f203e4157c5d40607bb522cbf457a34a
      Signed-off-by: Mikael's avatarMikael Olsson <mikael.olsson@arm.com>
      f4fddb33
  19. Feb 28, 2025
  20. Feb 27, 2025
Loading