platform-ports-policy.rst 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. Platform Ports Policy
  2. =====================
  3. This document clarifies a couple of policy points around platform ports
  4. management.
  5. Platform compatibility policy
  6. -----------------------------
  7. Platform compatibility is mainly affected by changes to Platform APIs (as
  8. documented in the :ref:`Porting Guide`), driver APIs (like the GICv3 drivers) or
  9. library interfaces (like xlat_table library). The project will try to maintain
  10. compatibility for upstream platforms.
  11. Due to evolving requirements and enhancements, there might be changes affecting
  12. platform compatibility, which means the previous interface needs to be deprecated
  13. and a new interface introduced to replace it. In case the migration to the new
  14. interface is trivial, the contributor of the change is expected to make good
  15. effort to migrate the upstream platforms to the new interface.
  16. The project will generally not take into account downstream platforms. If those
  17. are affected by a deprecation / removal decision, we encourage their maintainers
  18. to upstream their platform code or copy the latest version of the code being
  19. deprecated into their downstream tree.
  20. The deprecated interfaces are listed inside :ref:`Release Processes` as well as
  21. the release after which each one will be removed. When an interface is
  22. deprecated, the page must be updated to indicate the release after which the
  23. interface will be removed. This must be at least 1 full release cycle in future.
  24. For non-trivial interface changes, an email should be sent out to the `TF-A
  25. public mailing list`_ to notify platforms that they should migrate away from the
  26. deprecated interfaces. Platforms are expected to migrate before the removal of
  27. the deprecated interface.
  28. Deprecation policy
  29. ------------------
  30. If a platform, driver or library interface is no longer maintained, it is best
  31. to deprecate it to keep the projects' source tree clean and healthy. Deprecation
  32. can be a 1-stage or 2-stage process (up to the maintainers).
  33. - *2-stage*: The source code can be kept in the repository for a cooling off
  34. period before deleting it (typically 2 release cycles). In this case, we keep
  35. track of the *Deprecated* version separately from the *Deleted* version.
  36. - *1-stage*: The source code can be deleted straight away. In this case, both
  37. versions are the same.
  38. The :ref:`Platform Ports` page provides a list of all deprecated/deleted
  39. platform ports (or soon to be) to this day.
  40. --------------
  41. *Copyright (c) 2018-2023, Arm Limited and Contributors. All rights reserved.*
  42. .. _TF-A public mailing list: https://lists.trustedfirmware.org/mailman3/lists/tf-a.lists.trustedfirmware.org/