drm/tegra: Support NVIDIA downstream

This patch modifies TegraDRM to compile on NVIDIA downstream kernel.

Currently buffers are pinned to virtual drm device. In upstream this
is ok since the buffers will be remapped into the TegraDRM maintained
IOMMU domain. However, NVIDIA downstream kernel relies on DMA mapping
API and hence requires that the buffers are pinned to the real
hardware device.

In addition, this patch modifies code to use downstream
power-management APIs if the downstream option is enabled.

Bug 1698151

Change-Id: I1cb7a1a0ad0ae767c48bfecb608d899e484d6b40
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/823640
This commit is contained in:
Arto Merilainen
2015-10-21 16:09:32 +03:00
parent 632a86f7cd
commit 3298a8befb

View File

@@ -56,6 +56,7 @@ config GK20A_CYCLE_STATS
config TEGRA_GK20A
bool "Enable the GK20A GPU on Tegra"
depends on TEGRA_GRHOST || TEGRA_HOST1X
depends on GK20A
default y
help