summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/Kconfig
diff options
context:
space:
mode:
authorKonsta Holtta <kholtta@nvidia.com>2016-06-14 07:26:32 -0400
committerTerje Bergstrom <tbergstrom@nvidia.com>2016-06-15 12:34:07 -0400
commit75f6a1dff48bba1fe08ef82a76a0fa5727f3b6f8 (patch)
tree1e367a377c1b55da28795d9c3980223e0afefea8 /drivers/gpu/nvgpu/Kconfig
parente9fd9e9fe3e80c0437542eb119ddc82e9f85aa43 (diff)
gpu: nvgpu: add vidmem allocation API
Add in-nvgpu APIs for allocating and freeing mem_descs in video memory. Changes for gmmu tables etc. will be added in upcoming changes. Video memory is allocated via nvmap by initially registering the aperture size to it and binding it to a struct device, and then going via the usual dma alloc. This API allows also fixed-address allocations, meant for reserving special memory areas at boot. The aperture registration is skipped completely if vidmem isn't found for the particular device. gk20a_gmmu_alloc_attr() still uses sysmem, and the unmap/free paths select internally the correct path by the mem_desc's aperture. Video memory allocation is off by default, and can be turned on with CONFIG_GK20A_VIDMEM. JIRA DNVGPU-16 Change-Id: I77eae5ea90cbed6f4b5db0da86c5f70ddf2a34f9 Signed-off-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-on: http://git-master/r/1157216 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/Kconfig')
-rw-r--r--drivers/gpu/nvgpu/Kconfig9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/Kconfig b/drivers/gpu/nvgpu/Kconfig
index 156b7889..6f3a1f8f 100644
--- a/drivers/gpu/nvgpu/Kconfig
+++ b/drivers/gpu/nvgpu/Kconfig
@@ -100,4 +100,13 @@ config GK20A_PCI
100 help 100 help
101 Enable support for GPUs on PCIe bus. 101 Enable support for GPUs on PCIe bus.
102 102
103config GK20A_VIDMEM
104 bool "Support separate video memory on nvgpu"
105 depends on GK20A
106 default n
107 help
108 Enable support for using and allocating buffers in a distinct video
109 memory aperture (in contrast to general system memory), available on
110 GPUs that have their own banks. PCIe GPUs have this, for example.
111
103trysource "../nvgpu-t19x/drivers/gpu/nvgpu/Kconfig" 112trysource "../nvgpu-t19x/drivers/gpu/nvgpu/Kconfig"