Enhance TI-SCI FFI with ABI5.0 support
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest6 patches 8 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | dt-bindings: arm: keystone: ti,sci: Update nodename patternDocumentation/ | +14 | 3 replies | |
| 2/6 | dt-bindings: arm: keystone: ti,sci: Add ti,tda54-sci-pdm compatibleDocumentation/ | +33 | 4 replies | |
| 3/6 | firmware: ti: ti_sci_core: Add ABI5.0 Enhancements and TDA54 PDM SCI supportdrivers/ drivers/ | +185 | 0 replies | |
| 4/6 | firmware: ti: ti_sci_device: Add ABI5.0 compliant Device and Reset APIsdrivers/ drivers/ drivers/ | +101 | 0 replies | |
| 5/6 | firmware: ti: ti_sci_clock: Add ABI5.0 compliant Clock APIsdrivers/ drivers/ drivers/ | +520 | 1 reply | |
| 6/6 | firmware: ti: ti_sci_rm: Add ABI5.0 compliant basic RM APIsdrivers/ drivers/ drivers/ | +186 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/6] Enhance TI-SCI FFI with ABI5.0 support
The previous TI K2G and K3 architectures were tightly coupled systems in terms of Safety and Security. All the TI-SCI messages from HLOS (Linux) were sent to a single sec proxy thread terminating at the core running Safety service (DM). In K2G systems, DM handled both Safety & Security requests by itself. Whereas in K3 systems, DM serviced the Safety requests itself, and forwarded the Security requests to core running Security service (TIFS) on the HLOS's behalf. This posed various limitations:
a. Increased latency: An extra forwarding hop through DM adds latency
in requests and responses.
b. Freedom From Interference (FFI) concerns: Having Safety service
proxy Security's requests (& vice versa) undermines the isolation and FFI of the system.
c. Potential Dealock Scenario: Forwarding messages between Safety and
Security cores can result in a deadlock if there are circular dependencies.
To eliminate all the above limitations, the TI TDA54 class of SoCs introduce an architectural change: Isolation of Security and Safety services. To realize this enhanced isolation in hardware, two independent sec proxy threads are now provided for HLOS to communicate separately with the Security and Safety cores respectively. And the TI-SCI message forwarding has been eliminated in Software. The System Firmware ABI5.0 version necessitates this improved isolation and FFI change.
This series adds the support for TI TDA54 PDM System Controller across Devicetree bindings and TI-SCI Driver to support the ABI 5.0 change.
Note:
a. The first half of the series i.e, patches
[PATCH 01/06] - [PATCH 02/06] are independent and can be applied directly.
b. The second half of the series i.e, patches
[PATCH 03/06] - [PATCH 06/06] is dependent on the following 2 series
1. https://lore.kernel.org/all/[email protected]/
2. https://lore.kernel.org/all/[email protected]/
Testing done:
- Build and Boot tested on all Keystone and K3 platforms.
- Verified ABI5.0 core and device operations on TI TDA54 platform. (after applying an out-of-tree patch to add DTS support)
- Verified that none of the patches in the series generate any warnings or errors.
Logs:
https://gist.github.com/3V3RYONE/d821cea46f5dc1e70a759c97878fa487
Beleswar Padhi (6):
dt-bindings: arm: keystone: ti,sci: Update nodename pattern
dt-bindings: arm: keystone: ti,sci: Add ti,tda54-sci-pdm compatible
firmware: ti: ti_sci_core: Add ABI5.0 Enhancements and TDA54 PDM SCI
support
firmware: ti: ti_sci_device: Add ABI5.0 compliant Device and Reset
APIs
firmware: ti: ti_sci_clock: Add ABI5.0 compliant Clock APIs
firmware: ti: ti_sci_rm: Add ABI5.0 compliant basic RM APIs
.../bindings/arm/keystone/ti,sci.yaml | 48 ++- drivers/firmware/ti/ti_sci.h | 233 +++++++++++ drivers/firmware/ti/ti_sci_clock.c | 380 ++++++++++++++++++ drivers/firmware/ti/ti_sci_core.c | 204 ++++++++-- drivers/firmware/ti/ti_sci_device.c | 62 +++ drivers/firmware/ti/ti_sci_rm.c | 148 +++++++ 6 files changed, 1039 insertions(+), 36 deletions(-)
Signature · 1 line
2.34.1