video: tegra: host: Attach comptags to nvmap allocation
authorLauri Peltonen <lpeltonen@nvidia.com>
Sun, 21 Jul 2013 20:54:16 +0000 (13:54 -0700)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 20:38:41 +0000 (13:38 -0700)
commit0436883908a2bdb2804a83da9b54978cd47b816a
treea4ff75f0bca36b7090d38cba63015ea8f4d95980
parent3b05d546958840df05a87755eefc4d3f612e7523
video: tegra: host: Attach comptags to nvmap allocation

Attach comptags to the nvhost private part of the nvmap allocation.
This is needed for sharing compressed buffers across address spaces.

When mapping a buffer to gk20a, we check if comptags have already
been attached to the allocation. If not, we request them to be
allocated.

Bug 1290753
Bug 1174439

Change-Id: I8e1bc6cfef1da66134227a9a55c38bb21c6d9e99
Signed-off-by: Lauri Peltonen <lpeltonen@nvidia.com>
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/255015
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
drivers/video/tegra/host/gk20a/mm_gk20a.c
drivers/video/tegra/host/nvhost_memmgr.c
drivers/video/tegra/host/nvhost_memmgr.h
drivers/video/tegra/host/nvmap.c
drivers/video/tegra/host/nvmap.h