Re: [PATCH 0/3] dt-bindings: dma: ti: k3* : Update optional reg regions

From: Péter Ujfalusi
Date: Fri Aug 11 2023 - 11:14:38 EST


Vignesh,

On 10/08/2023 20:43, Vignesh Raghavendra wrote:
DMAs on TI K3 SoCs have channel configuration registers region which are
usually hidden from Linux and configured via Device Manager Firmware
APIs. But certain early SWs like bootloader which run before Device
Manager is fully up would need to directly configure these registers and
thus require to be in DT description.

This add bindings for such configuration regions. Backward
compatibility is maintained to existing DT by only mandating existing
regions to be present and this new region as optional.

These regions were 'hidden' from Linux or other open coded access for a reason.
If I recall the main reason is security and the need to make sure that the allocation of the channels not been violated.

IMho the boot loader should be no exception and it should be using the DM firmware to configure the DMAs.

Or has the security concern been dropped and SW can do whatever it wants?


Vignesh Raghavendra (3):
dt-bindings: dma: ti: k3-bcdma: Describe cfg register regions
dt-bindings: dma: ti: k3-pktdma: Describe cfg register regions
dt-bindings: dma: ti: k3-udma: Describe cfg register regions

.../devicetree/bindings/dma/ti/k3-bcdma.yaml | 25 +++++++++++++------
.../devicetree/bindings/dma/ti/k3-pktdma.yaml | 18 ++++++++++---
.../devicetree/bindings/dma/ti/k3-udma.yaml | 14 ++++++++---
3 files changed, 43 insertions(+), 14 deletions(-)


--
Péter