Skip to content

Host1x IOMMU support + VIC support

Mikko Perttunen dri-devel linux-tegra 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 of 8 patches 12 repliesIn review

4 of 8 patches are in this archive. The cover letter announces 8.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8drm/tegra: Add Tegra DRM allocation APIdrivers/gpu/drm/tegra/drm.c drivers/gpu/drm/tegra/drm.h+100 -52 replies
2/8drm/tegra: Allocate BOs from lower 4G when without IOMMUdrivers/gpu/drm/tegra/gem.c+1 -12 replies
5/8gpu: host1x: Add IOMMU supportdrivers/gpu/host1x/cdma.c drivers/gpu/host1x/cdma.h drivers/gpu/host1x/dev.c +4 more+171 -292 replies
6/8dt-bindings: Add bindings for the Tegra VICDocumentation/devicetree/bindings/display/tegra/nvidia,tegra20-host1x.txt+13 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/8] Host1x IOMMU support + VIC support

This series adds IOMMU support to Host1x and TegraDRM and adds support for the VIC host1x client so that host1x can be tested on modern Tegra platforms. It depends on the previous fix series. The whole thing (modulo patch order) is available as a git repository at
git://github.com/cyndis/linux.git; branch vic-v1.

IO memory management is organized such that there are two domains: the host1x domain and the tegradrm domain. The host1x domain is used by the host1x engine and contains the host1x CDMA and pushbuffers for submitted jobs.

The tegradrm domain is shared by all host1x units and contains GEM objects and memory allocated by the separate tegra_drm_alloc function. This function is currently used to allocate space for firmware blobs in the tegradrm domain.

A userspace test case for VIC can be found at
https://github.com/cyndis/drm/tree/work/tegra.
The testcase is in tests/tegra and is called submit_vic. The in-kernel firewall is not implemented for VIC; therefore, IOMMU must be enabled for the test to pass.

Tested with Jetson TX1 (T210). Probably works also with Jetson TK1 (T124). Note that due to hardware changes the testcase also needs to be changed to run properly on T124.

Thanks,
Mikko.

Arto Merilainen (2):
drm/tegra: Add falcon helper library
drm/tegra: Add VIC support

Mikko Perttunen (6):
drm/tegra: Add Tegra DRM allocation API drm/tegra: Allocate BOs from lower 4G when without IOMMU
gpu: host1x: Add IOMMU support
dt-bindings: Add bindings for the Tegra VIC
arm64: tegra: Enable VIC on T210
arm64: tegra: Enable IOMMU for Host1x on Tegra210

 .../display/tegra/nvidia,tegra20-host1x.txt        |  13 +
 arch/arm64/boot/dts/nvidia/tegra210.dtsi           |  19 +-
 drivers/gpu/drm/tegra/Makefile                     |   4 +-
 drivers/gpu/drm/tegra/drm.c                        | 101 +++++-
 drivers/gpu/drm/tegra/drm.h                        |   8 +
 drivers/gpu/drm/tegra/falcon.c                     | 256 +++++++++++++
 drivers/gpu/drm/tegra/falcon.h                     | 130 +++++++
 drivers/gpu/drm/tegra/gem.c                        |   2 +-
 drivers/gpu/drm/tegra/vic.c                        | 400 +++++++++++++++++++++
 drivers/gpu/drm/tegra/vic.h                        |  31 ++
 drivers/gpu/host1x/cdma.c                          |  65 +++-
 drivers/gpu/host1x/cdma.h                          |   4 +-
 drivers/gpu/host1x/dev.c                           |  39 +-
 drivers/gpu/host1x/dev.h                           |   5 +
 drivers/gpu/host1x/hw/cdma_hw.c                    |  10 +-
 drivers/gpu/host1x/job.c                           |  76 +++-
 drivers/gpu/host1x/job.h                           |   1 +
 include/linux/host1x.h                             |   1 +
 18 files changed, 1128 insertions(+), 37 deletions(-)
 create mode 100644 drivers/gpu/drm/tegra/falcon.c
 create mode 100644 drivers/gpu/drm/tegra/falcon.h
 create mode 100644 drivers/gpu/drm/tegra/vic.c
 create mode 100644 drivers/gpu/drm/tegra/vic.h
Signature · 6 lines
2.10.2

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel