summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/platform_gv11b_tegra.c
diff options
context:
space:
mode:
authorAlex Waterman <alexw@nvidia.com>2018-04-23 15:28:09 -0400
committerTejal Kudav <tkudav@nvidia.com>2018-06-14 09:44:06 -0400
commit1b71581b9e3534661b4552faadf38bbb98851c45 (patch)
tree68667bc04c737b8963d5507aa446f69233201c5a /drivers/gpu/nvgpu/common/linux/platform_gv11b_tegra.c
parent1e889871bc0ec3af05280f27497c0e7bd7a023b5 (diff)
gpu: nvgpu: Set DMA mask on a per-platform basis
Each GPU platform has different DMA limitations. For older chips the maximum size of a DMA buffer was more limited than newer SoCs (read: Xavier) and discrete GPUs. This patch adds support to set the DMA mask for a GPU on a per platform basis by adding a platform field that is populated with the maximum allowed DMA mask. That mask is programmed by the driver common code. If no mask is specified then the default mask size is 16GB (34 bits). Bug 2043276 Change-Id: I9c3c76c86bac6c485eb1197326e662516fbcaa41 Signed-off-by: Alex Waterman <alexw@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1700980 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/platform_gv11b_tegra.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/platform_gv11b_tegra.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/platform_gv11b_tegra.c b/drivers/gpu/nvgpu/common/linux/platform_gv11b_tegra.c
index f8ff57b9..9f9d5ee1 100644
--- a/drivers/gpu/nvgpu/common/linux/platform_gv11b_tegra.c
+++ b/drivers/gpu/nvgpu/common/linux/platform_gv11b_tegra.c
@@ -237,6 +237,7 @@ struct gk20a_platform gv11b_tegra_platform = {
237 237
238 .honors_aperture = true, 238 .honors_aperture = true,
239 .unified_memory = true, 239 .unified_memory = true,
240 .dma_mask = DMA_BIT_MASK(36),
240 241
241 .reset_assert = gp10b_tegra_reset_assert, 242 .reset_assert = gp10b_tegra_reset_assert,
242 .reset_deassert = gp10b_tegra_reset_deassert, 243 .reset_deassert = gp10b_tegra_reset_deassert,