Skip to content
  1. Jun 09, 2025
  2. Jun 03, 2025
  3. May 22, 2025
  4. May 21, 2025
  5. May 20, 2025
    • Mikael's avatar
      Add support for networks with no IFMs · 39eb146f
      Mikael authored
      
      
      Support for running networks with no IFMs has been added to the Linux
      driver stack. When a network with no IFMs is run, the kernel driver will
      produce a warning to notify the user that no IFMs are used.
      
      Change-Id: I421d09015b3eacdc96a2152d9205e63b4682f3a2
      Signed-off-by: Mikael's avatarMikael Olsson <mikael.olsson@arm.com>
      39eb146f
  6. May 15, 2025
  7. May 14, 2025
    • Jonny Svärd's avatar
      Update thirdparty CMakeLists for TensorFlow 2.18.1 · 57fa0731
      Jonny Svärd authored
      
      
      The TensorFlow Lite build system (v2.18.1) requires the
      TFLITE_HOST_TOOLS_DIR CMake variable to be set or else the CMake
      configuration step fails. The build system will use the tools found in
      PATH _before_ looking in whatever folder is specified in this variable,
      but the variable is not allowed to be empty. If you don't have the
      required host tools (currently flatc only) in your PATH, make sure to
      set this variable to the correct folder where the tools can be found.
      
      Silence deprecation warnings for third party libraries and/or their
      dependencies. TensorFlow Lite downloads its own dependencies, but the
      regular cmake_policy calls will not affect these, hence setting the
      variables for policy CMP0169 instead.
      
      Change-Id: I99983e757efbd6cfbce6c4a3c368db02413bb0d8
      Signed-off-by: Jonny Svärd's avatarJonny Svärd <jonny.svaerd@arm.com>
      57fa0731
    • Rajasekaran Kalidoss's avatar
      Add supported kernel versions and build tools info · f483ad16
      Rajasekaran Kalidoss authored
      
      
      Add details of supported Linux kernel versions and the required
      sparse version. Also update information about the host systems used to
      verify the build system.
      
      Change-Id: Ic92bfd76d760796fe644fa518c356e5c203be7f9
      Signed-off-by: Rajasekaran Kalidoss's avatarRajasekaran Kalidoss <rajasekaran.kalidoss@arm.com>
      f483ad16
    • Rajasekaran Kalidoss's avatar
      Use of_property_read_u32_array to get region cfgs · fbaa35b1
      Rajasekaran Kalidoss authored
      
      
      The parameter list for the of_property_for_each_u32() macro has changed
      in kernel v6.6.76 and later. In order to make the region config parsing
      compatible with both newer and older kernel versions, it has been
      changed to use of_property_count_u32_elems() and
      of_property_read_u32_array() to read the values.
      
      Change-Id: Ic535690031eada30e0b51aa81c707c0ef024e231
      Signed-off-by: Rajasekaran Kalidoss's avatarRajasekaran Kalidoss <rajasekaran.kalidoss@arm.com>
      fbaa35b1
  8. 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
  9. May 12, 2025
  10. May 09, 2025
  11. 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
  12. Apr 30, 2025
  13. 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
  14. Apr 22, 2025
  15. Apr 15, 2025
  16. 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
  17. 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
  18. Apr 03, 2025
  19. Apr 02, 2025
  20. Apr 01, 2025
  21. 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
  22. 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
  23. Mar 04, 2025
Loading