summaryrefslogtreecommitdiff
path: root/drivers/video/tegra/Kconfig
diff options
context:
space:
mode:
authorGary King <gking@nvidia.com>2010-10-12 17:40:18 -0700
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:36:28 -0800
commit90c1781ef8411908879b4cffd941acb1c6a1c554 (patch)
tree1f4b7e5a9a7cc070490d19bda94d3c1c24c3e5c0 /drivers/video/tegra/Kconfig
parentf56081ea173d422d36bd382120ba487de6276c83 (diff)
video: tegra: nvmap: eliminate arm_attrib_allocator dependency
remove the dependency that nvmap has on the arm_attrib_allocator and the lowmem in PTEs change by adding a private page allocator utility function and calling vm_map_ram unconditionally for all sysmem handles. also, add Kconfig variables to allow platforms to disallow the SYSMEM heap, and to optionally restrict the SYSMEM and IOVMM heaps to just HIGHMEM. Change-Id: I3dab1c7323f54a8ab3994dc672b27fd79a9057d7 Signed-off-by: Gary King <gking@nvidia.com>
Diffstat (limited to 'drivers/video/tegra/Kconfig')
-rw-r--r--drivers/video/tegra/Kconfig26
1 files changed, 21 insertions, 5 deletions
diff --git a/drivers/video/tegra/Kconfig b/drivers/video/tegra/Kconfig
index f9192c6d68b8..2b8160877688 100644
--- a/drivers/video/tegra/Kconfig
+++ b/drivers/video/tegra/Kconfig
@@ -28,22 +28,38 @@ config FB_TEGRA
Framebuffer device support for the Tegra display controller.
config TEGRA_NVMAP
- bool "Tegra GPU memory management driver"
- select ARM_ATTRIB_ALLOCATOR
+ bool "Tegra GPU memory management driver (nvmap)"
default y
help
Say Y here to include the memory management driver for the Tegra
GPU, multimedia and display subsystems
config NVMAP_RECLAIM_UNPINNED_VM
- bool "Allow /dev/nvmap to reclaim unpinned I/O virtual memory"
+ bool "Virtualize IOVMM memory in nvmap"
depends on TEGRA_NVMAP && TEGRA_IOVMM
default y
help
- Say Y here to enable /dev/nvmap to reclaim I/O virtual memory after
- it has been unpinned, and re-use it for other objects. This can
+ Say Y here to enable nvmap to reclaim I/O virtual memory after
+ it has been unpinned, and re-use it for other handles. This can
allow a larger virtual I/O VM space than would normally be
supported by the hardware, at a slight cost in performance.
+config NVMAP_ALLOW_SYSMEM
+ bool "Allow physical system memory to be used by nvmap"
+ depends on TEGRA_NVMAP
+ default y
+ help
+ Say Y here to allow nvmap to use physical system memory (i.e.,
+ shared with the operating system but not translated through
+ an IOVMM device) for allocations.
+
+config NVMAP_HIGHMEM_ONLY
+ bool "Use only HIGHMEM for nvmap"
+ depends on TEGRA_NVMAP && (NVMAP_ALLOW_SYSMEM || TEGRA_IOVMM) && HIGHMEM
+ default n
+ help
+ Say Y here to restrict nvmap system memory allocations (both
+ physical system memory and IOVMM) to just HIGHMEM pages.
+
endif