dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/8] Host1x IOMMU support + VIC support
@ 2016-11-10 18:23 Mikko Perttunen
  2016-11-10 18:23 ` [PATCH 1/8] drm/tegra: Add Tegra DRM allocation API Mikko Perttunen
                   ` (5 more replies)
  0 siblings, 6 replies; 25+ messages in thread
From: Mikko Perttunen @ 2016-11-10 18:23 UTC (permalink / raw)
  To: thierry.reding; +Cc: linux-tegra, dri-devel, Mikko Perttunen

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

-- 
2.10.2

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2016-12-14  8:50 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-10 18:23 [PATCH 0/8] Host1x IOMMU support + VIC support Mikko Perttunen
2016-11-10 18:23 ` [PATCH 1/8] drm/tegra: Add Tegra DRM allocation API Mikko Perttunen
     [not found]   ` <20161110182345.31777-2-mperttunen-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2016-12-05 18:37     ` Thierry Reding
     [not found]       ` <20161205183726.GA22918-EkSeR96xj6Pcmrwk2tT4+A@public.gmane.org>
2016-12-07  9:23         ` Mikko Perttunen
2016-11-10 18:23 ` [PATCH 2/8] drm/tegra: Allocate BOs from lower 4G when without IOMMU Mikko Perttunen
     [not found]   ` <20161110182345.31777-3-mperttunen-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2016-12-05 18:39     ` Thierry Reding
     [not found]       ` <20161205183955.GB22918-EkSeR96xj6Pcmrwk2tT4+A@public.gmane.org>
2016-12-07  9:32         ` Mikko Perttunen
2016-11-10 18:23 ` [PATCH 5/8] gpu: host1x: Add IOMMU support Mikko Perttunen
2016-12-05 19:49   ` Thierry Reding
     [not found]     ` <20161205194924.GE22918-EkSeR96xj6Pcmrwk2tT4+A@public.gmane.org>
2016-12-14  8:50       ` Mikko Perttunen
2016-11-10 18:23 ` [PATCH 6/8] dt-bindings: Add bindings for the Tegra VIC Mikko Perttunen
     [not found] ` <20161110182345.31777-1-mperttunen-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2016-11-10 18:23   ` [PATCH 3/8] drm/tegra: Add falcon helper library Mikko Perttunen
2016-12-05 19:13     ` Thierry Reding
     [not found]       ` <20161205191346.GC22918-EkSeR96xj6Pcmrwk2tT4+A@public.gmane.org>
2016-12-07 11:54         ` Mikko Perttunen
2016-11-10 18:23   ` [PATCH 4/8] drm/tegra: Add VIC support Mikko Perttunen
2016-12-05 19:35     ` Thierry Reding
     [not found]       ` <20161205193559.GD22918-EkSeR96xj6Pcmrwk2tT4+A@public.gmane.org>
2016-12-14  8:28         ` Mikko Perttunen
2016-11-10 18:23   ` [PATCH 7/8] arm64: tegra: Enable VIC on T210 Mikko Perttunen
2016-11-10 18:23   ` [PATCH 8/8] arm64: tegra: Enable IOMMU for Host1x on Tegra210 Mikko Perttunen
2016-12-05 13:25   ` [PATCH 0/8] Host1x IOMMU support + VIC support Mikko Perttunen
2016-12-05 19:51 ` Thierry Reding
     [not found]   ` <20161205195131.GF22918-EkSeR96xj6Pcmrwk2tT4+A@public.gmane.org>
2016-12-05 19:58     ` Mikko Perttunen
2016-12-06  7:14     ` Daniel Vetter
     [not found]       ` <20161206071450.uedxvvtcxbkwsoza-dv86pmgwkMBes7Z6vYuT8azUEOm+Xw19@public.gmane.org>
2016-12-06  9:33         ` Mikko Perttunen
2016-12-07 10:36           ` Daniel Vetter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).