Skip to content

dmaengine: ti: k3-udma: Support for per channel atype

Peter Ujfalusi dmaengine linux-devicetree lkml 1 version Applied

Status from this message: Applied, thanks

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2dt-bindings: dma: ti: k3-udma: Update for atype support (virtualization)Documentation/devicetree/bindings/dma/ti/k3-udma.yaml+18 -11 reply
2/2dmaengine: ti: k3-udma: Implement support for atype (for virtualization)drivers/dma/ti/k3-udma-glue.c drivers/dma/ti/k3-udma.c+58 -100 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchRob Herring
1/2R-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] dmaengine: ti: k3-udma: Support for per channel atype

Hi,

The series is on top of the 5.6 update patches:
https://lore.kernel.org/lkml/[email protected]/

UDMA channels have ATYPE property which tells UDMA on how to treat the pointers within descriptors (and TRs).
The ATYPE defined for j721e are:
0: pointers are physical addresses (no translation)
1: pointers are intermediate addresses (PVU)
2: pointers are virtual addresses (SMMU)

When Linux is booting within a virtualized environment channels must have the ATYPE configured correctly to be able to access memory (ATYPE == 0 is not allowed).
The ATYPE can be different for channels and their ATYPE depends on which endpoint they are servicing, but it is not hardwired.

In order to be able to tell the driver the ATYPE for the channel we need to extend the dma-cells in case the device is going to be used in virtualized setup.

Non virtualized setups can still use dma-cells == 1.

If dma-cells == 2, then the UDMA node must have ti,udma-atype property which is used for non slave channels (where no DT binding is exist for a channel).

Regards,
Peter
---
Peter Ujfalusi (2):
dt-bindings: dma: ti: k3-udma: Update for atype support
(virtualization)
dmaengine: ti: k3-udma: Implement support for atype (for
virtualization)

 .../devicetree/bindings/dma/ti/k3-udma.yaml   | 19 ++++++-
 drivers/dma/ti/k3-udma-glue.c                 | 18 ++++++-
 drivers/dma/ti/k3-udma.c                      | 50 ++++++++++++++++---
 3 files changed, 76 insertions(+), 11 deletions(-)
Signature · 4 lines
Peter

Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki