Skip to content

Add GPCDMA support in Tegra264

Akhil R dmaengine linux-devicetree linux-tegra lkml 6 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest10 patches 19 repliesApplied
  2. v510 patches 4 repliesSuperseded
  3. v410 patches 2 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v39 patches4 repliesSuperseded
v29 patches14 repliesSuperseded
v18 patches22 repliesSuperseded

Changes in v6 from the cover letter

- Replace dev_err() with dev_err_probe() in the probe function for fixed return values also.

Patches in v6 Applied

#Subject and filesSizeRepliesApplied
1/10dt-bindings: dma: nvidia,tegra186-gpc-dma: Make reset optionalDocumentation/devicetree/bindings/dma/nvidia,tegra186-gpc-dma.yaml+16 -71 reply
2/10arm64: tegra: Remove fallback compatible for GPCDMAarch/arm64/boot/dts/nvidia/tegra264.dtsi+1 -13 replies
3/10dt-bindings: dma: nvidia,tegra186-gpc-dma: Add iommu-map propertyDocumentation/devicetree/bindings/dma/nvidia,tegra186-gpc-dma.yaml+9 -01 reply
4/10dmaengine: tegra: Make reset control optionaldrivers/dma/tegra186-gpc-dma.c+2 -21 reply
5/10dmaengine: tegra: Use struct for register offsetsdrivers/dma/tegra186-gpc-dma.c+142 -1401 reply
6/10dmaengine: tegra: Support address width > 39 bitsdrivers/dma/tegra186-gpc-dma.c+52 -311 reply
7/10dmaengine: tegra: Use managed DMA controller registrationdrivers/dma/tegra186-gpc-dma.c+4 -151 reply
8/10dmaengine: tegra: Use iommu-map for stream IDdrivers/dma/tegra186-gpc-dma.c+44 -92 replies
9/10dmaengine: tegra: Add Tegra264 supportdrivers/dma/tegra186-gpc-dma.c+30 -01 reply
10/10arm64: tegra: Enable GPCDMA in Tegra264 and add iommu-maparch/arm64/boot/dts/nvidia/tegra264-p3834.dtsi arch/arm64/boot/dts/nvidia/tegra264.dtsi+5 -00 replies

Reviews trailers per patch

8 of 10 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchRob Herring (Arm)Frank LiJon HunterThierry Reding
SeriesR-b
1/10A-b A-b
2/10
3/10A-b A-b
4/10R-b A-b
5/10R-b A-b
6/10R-b
7/10A-b
8/10R-b
9/10R-b A-b
10/10

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v6 thread

Cover letter [PATCH v6 00/10] Add GPCDMA support in Tegra264

This series adds support for GPCDMA in Tegra264 with additional support for separate stream ID for each channel. Tegra264 GPCDMA controller has changes in the register offsets and uses 41-bit addressing for memory. Add changes in the tegra186-gpc-dma driver to support these.

v5->v6:
- Replace dev_err() with dev_err_probe() in the probe function for fixed return values also.
v4->v5:
- Use dev_err_probe() when returning error from the probe function.
- Remove tegra194 and tegra234 compatible from the reset 'if' condition in the bindings as suggested in v2 (which I missed).
v3->v4:
- Split device tree changes to two patches.
- Reordered patches to have fixes first.
- Added fixes tag to dt-bindings and device tree changes. v2->v3:
- Add description for iommu-map property and update commit descriptions.
- Use enum for compatible string instead of const.
- Remove unused registers from struct tegra_dma_channel_regs.
- Use devm_of_dma_controller_register() to register the DMA controller.
- Remove return value check for mask setting in the driver as the bitmask value is always greater than 32.
v1->v2:
- Fix dt_bindings_check warnings
- Drop fallback compatible "nvidia,tegra186-gpcdma" from Tegra264 DT
- Use dma_addr_t for sg_req src/dst fields and drop separate high_add variable and check for the addr_bits only when programming the registers.
- Update address width to 39 bits for Tegra234 and before since the SMMU supports only up to 39 bits till Tegra234.
- Add a patch to do managed DMA controller registration.
- Describe the second iteration in the probe.
- Update commit descriptions.

Akhil R (10):
dt-bindings: dma: nvidia,tegra186-gpc-dma: Make reset optional
arm64: tegra: Remove fallback compatible for GPCDMA
dt-bindings: dma: nvidia,tegra186-gpc-dma: Add iommu-map property
dmaengine: tegra: Make reset control optional
dmaengine: tegra: Use struct for register offsets
dmaengine: tegra: Support address width > 39 bits
dmaengine: tegra: Use managed DMA controller registration
dmaengine: tegra: Use iommu-map for stream ID
dmaengine: tegra: Add Tegra264 support
arm64: tegra: Enable GPCDMA in Tegra264 and add iommu-map

 .../bindings/dma/nvidia,tegra186-gpc-dma.yaml |  32 +-
 .../arm64/boot/dts/nvidia/tegra264-p3834.dtsi |   4 +
 arch/arm64/boot/dts/nvidia/tegra264.dtsi      |   3 +-
 drivers/dma/tegra186-gpc-dma.c                | 429 +++++++++++-------
 4 files changed, 284 insertions(+), 184 deletions(-)
Signature · 1 line
2.50.1